/* BarkGains Main Stylesheet */

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #3a7bd5;
  --secondary-color: #f7941d;
  --accent-color: #00a651;
  --text-color: #333333;
  --light-text: #666666;
  --background-color: #ffffff;
  --light-background: #f5f5f5;
  --border-color: #dddddd;
  --success-color: #00a651;
  --error-color: #d53a3a;
  --sale-color: #d53a3a;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

button, .btn {
  cursor: pointer;
  border: none;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

button:hover, .btn:hover {
  background-color: #2a6ac5;
}

.btn.secondary {
  background-color: var(--secondary-color);
}

.btn.secondary:hover {
  background-color: #e78410;
}

.btn.outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn.outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== HEADER STYLES ===== */
.top-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
}

header {
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  max-height: 60px;
}

.search-container {
  display: flex;
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-container input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 14px;
}

.search-container button {
  padding: 10px 15px;
  background-color: var(--secondary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.user-actions {
  display: flex;
  gap: 15px;
}

.user-action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  font-size: 14px;
}

.user-action-link span:first-child {
  font-size: 20px;
  margin-bottom: 2px;
}

.count-badge {
  position: relative;
  top: -8px;
  right: -8px;
  background-color: var(--secondary-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  display: none;
}

.count-badge.has-items {
  display: inline-block;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  color: var(--text-color);
  padding: 5px;
}

/* Main Navigation */
.main-nav-container {
  background-color: var(--light-background);
  border-top: 1px solid var(--border-color);
}

.main-nav {
  display: flex;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 15px;
  color: var(--text-color);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--primary-color);
  background-color: rgba(58, 123, 213, 0.05);
}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background-color: white;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.dropdown-link:hover {
  background-color: var(--light-background);
  color: var(--primary-color);
}

.dropdown-link:last-child {
  border-bottom: none;
}

/* Life Stage Navigation */
.life-stage-nav {
  display: flex;
  background-color: var(--light-background);
  border-bottom: 1px solid var(--border-color);
}

.life-stage-link {
  flex: 1;
  text-align: center;
  padding: 12px;
  color: var(--text-color);
  font-weight: 500;
  border-right: 1px solid var(--border-color);
  transition: var(--transition);
}

.life-stage-link:last-child {
  border-right: none;
}

.life-stage-link:hover, .life-stage-link.active {
  background-color: white;
  color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
  background: none;
  color: var(--text-color);
  font-size: 20px;
  padding: 5px;
}

.mobile-user-actions {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.mobile-user-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  color: var(--text-color);
}

.mobile-search {
  padding: 15px;
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.mobile-search input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.mobile-search button {
  padding: 10px 15px;
  background-color: var(--secondary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  color: var(--text-color);
  font-weight: 500;
}

.submenu-toggle {
  background: none;
  color: var(--text-color);
  font-size: 16px;
  padding: 5px;
}

.mobile-submenu {
  display: none;
  background-color: var(--light-background);
}

.mobile-nav-item.submenu-open .mobile-submenu {
  display: block;
}

.mobile-submenu-link {
  display: block;
  padding: 12px 15px 12px 30px;
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 400px;
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 40px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-description {
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.product-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  background-color: white;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--sale-color);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--border-radius);
  z-index: 1;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: white;
  padding: 10px;
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.3;
}

.product-title a {
  color: var(--text-color);
}

.product-title a:hover {
  color: var(--primary-color);
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.stars {
  color: var(--secondary-color);
  margin-right: 5px;
}

.review-count {
  color: var(--light-text);
}

.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

.original-price {
  font-size: 14px;
  color: var(--light-text);
  text-decoration: line-through;
  margin-left: 8px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.add-to-cart {
  flex: 1;
  font-size: 14px;
  padding: 8px 12px;
}

.wishlist-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--light-text);
  padding: 8px 10px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.wishlist-btn:hover {
  color: var(--sale-color);
  border-color: var(--sale-color);
  background-color: rgba(213, 58, 58, 0.05);
}

/* ===== CATEGORY FEATURES ===== */
.category-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.category-feature {
  position: relative;
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.category-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-feature:hover img {
  transform: scale(1.05);
}

.category-feature-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}

.category-feature-title {
  font-size: 18px;
  margin-bottom: 5px;
}

.category-feature-link {
  color: white;
  font-size: 14px;
  text-decoration: underline;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter p {
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 14px;
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: var(--secondary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  background-color: #1a2a3a;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #b0b0b0;
  font-size: 14px;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #b0b0b0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 10px 0;
  background-color: var(--light-background);
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--light-text);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

/* ===== CATEGORY PAGE ===== */
.category-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 0;
  background-color: var(--light-background);
}

.category-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.category-description {
  max-width: 800px;
  margin: 0 auto;
  color: var(--light-text);
}

.filter-section {
  margin-bottom: 30px;
  padding: 15px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
}

.filter-group label {
  margin-right: 10px;
  font-size: 14px;
}

.filter-group select {
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
}

.filter-toggle {
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 15px;
  font-size: 14px;
  position: relative;
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background-color: white;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 15px;
  z-index: 10;
}

.filter-option {
  margin-bottom: 15px;
}

.filter-option h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.price-range {
  margin-bottom: 10px;
}

.price-slider {
  width: 100%;
  margin-bottom: 5px;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--light-text);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.checkbox-group input {
  margin-right: 8px;
}

.apply-filters {
  width: 100%;
  margin-top: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 14px;
}

.pagination a.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination a:hover:not(.active) {
  background-color: var(--light-background);
}

.prev-page, .next-page {
  width: auto !important;
  padding: 0 12px;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
  margin-bottom: 40px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.product-images {
  position: relative;
}

.main-image {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 10px;
  background-color: white;
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: contain;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.thumbnail:hover, .thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.product-info h1 {
  font-size: 24px;
  margin-bottom: 15px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}

.product-sku {
  color: var(--light-text);
}

.product-price {
  margin-bottom: 20px;
}

.discount-label {
  display: inline-block;
  background-color: var(--sale-color);
  color: white;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: var(--border-radius);
  margin-left: 10px;
}

.product-short-description {
  margin-bottom: 20px;
  color: var(--light-text);
}

.product-options {
  margin-bottom: 20px;
}

.option-group {
  margin-bottom: 15px;
}

.option-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-button {
  padding: 8px 15px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: var(--transition);
}

.option-button:hover, .option-button.active {
  border-color: var(--primary-color);
  background-color: rgba(58, 123, 213, 0.05);
}

.color-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.color-button:hover, .color-button.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

.add-to-cart-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.quantity-decrease, .quantity-increase {
  width: 36px;
  height: 36px;
  background-color: var(--light-background);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: none;
}

.quantity-input {
  width: 50px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 14px;
}

.add-to-cart-btn {
  flex: 1;
}

.shipping-info {
  background-color: var(--light-background);
  padding: 15px;
  border-radius: var(--border-radius);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item .icon {
  margin-right: 10px;
  font-size: 18px;
}

.product-tabs {
  margin-top: 40px;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab-button {
  padding: 12px 20px;
  background: none;
  color: var(--light-text);
  border-bottom: 2px solid transparent;
  font-weight: 500;
  transition: var(--transition);
}

.tab-button:hover, .tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.product-description h2, .tab-panel h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.product-description h3 {
  font-size: 18px;
  margin: 20px 0 10px;
}

.product-description ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.product-description li {
  margin-bottom: 8px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th, .specs-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.specs-table th {
  width: 30%;
  font-weight: 500;
  color: var(--light-text);
}

.reviews-summary {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.average-rating {
  text-align: center;
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--border-color);
}

.rating-number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.average-rating .stars {
  font-size: 20px;
  margin-bottom: 5px;
}

.review-count {
  font-size: 14px;
  color: var(--light-text);
}

.rating-breakdown {
  flex: 1;
}

.rating-bar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.rating-label {
  width: 40px;
  font-size: 14px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background-color: var(--light-background);
  border-radius: 4px;
  margin: 0 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--secondary-color);
}

.rating-count {
  font-size: 14px;
  color: var(--light-text);
}

.review {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 500;
  margin-right: 10px;
}

.review-date {
  color: var(--light-text);
  font-size: 14px;
}

.review-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.review-content {
  margin-bottom: 10px;
}

.review-photos {
  display: flex;
  gap: 10px;
}

.review-photos img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.load-more-reviews {
  text-align: center;
  margin-top: 20px;
}

.related-products, .recently-viewed {
  margin-top: 40px;
}

.related-products h2, .recently-viewed h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* ===== CONTENT PAGE ===== */
.content-header {
  text-align: center;
  margin-bottom: 30px;
}

.content-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.content-meta {
  color: var(--light-text);
  font-size: 14px;
}

.publish-date, .read-time {
  margin-right: 15px;
}

.social-share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--light-background);
  color: var(--text-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
}

.content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
}

.featured-image {
  margin-bottom: 20px;
}

.image-caption {
  font-size: 14px;
  color: var(--light-text);
  text-align: center;
  margin-top: 5px;
}

.intro-paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.content-text h2 {
  font-size: 24px;
  margin: 30px 0 15px;
}

.content-text h3 {
  font-size: 20px;
  margin: 25px 0 10px;
}

.content-text p {
  margin-bottom: 15px;
}

.content-callout {
  background-color: var(--light-background);
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  margin: 20px 0;
}

.content-callout h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.content-image {
  margin: 20px 0;
}

.content-summary {
  background-color: var(--light-background);
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 30px 0;
}

.content-summary h3 {
  margin-top: 0;
}

.content-summary ul {
  margin-left: 20px;
}

.author-bio {
  display: flex;
  align-items: center;
  background-color: var(--light-background);
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 30px 0;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
}

.author-info h3 {
  margin: 0 0 5px;
}

.author-title {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.comments-section {
  margin-top: 30px;
}

.content-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.sidebar-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-product {
  margin-bottom: 15px;
}

.sidebar-product img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}

.sidebar-product h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.sidebar-product .product-price {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

.related-articles {
  list-style: none;
}

.related-articles li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.related-articles li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--light-background);
  color: var(--text-color);
  font-size: 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== CART PAGE ===== */
.cart-section {
  margin-bottom: 40px;
}

.cart-section h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px;
  background-color: var(--light-background);
  border-radius: var(--border-radius);
}

.cart-empty p {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--light-text);
}

.cart-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
}

.cart-items {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 100px;
  margin-right: 20px;
}

.item-image img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.item-details {
  flex: 1;
}

.item-title {
  font-size: 16px;
  margin-bottom: 5px;
}

.item-options {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 5px;
}

.item-option {
  margin-right: 10px;
}

.item-quantity {
  margin: 0 20px;
}

.item-total {
  font-weight: 500;
  margin-right: 20px;
  min-width: 80px;
  text-align: right;
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.remove-item {
  background: none;
  color: var(--light-text);
  font-size: 16px;
  padding: 0;
}

.remove-item:hover {
  color: var(--error-color);
}

.save-for-later {
  background: none;
  color: var(--primary-color);
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
}

.cart-summary {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  position: sticky;
  top: 20px;
}

.cart-summary h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.summary-line.total {
  font-size: 18px;
  font-weight: 500;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.coupon-code {
  display: flex;
  margin: 20px 0;
}

.coupon-code input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 14px;
}

.apply-coupon {
  padding: 10px 15px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 14px;
}

.checkout-buttons {
  margin-bottom: 20px;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  margin-bottom: 10px;
}

.continue-shopping {
  display: block;
  text-align: center;
  color: var(--primary-color);
  font-size: 14px;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.saved-for-later, .recommended-products {
  margin-top: 40px;
}

.saved-for-later h2, .recommended-products h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
  background-color: var(--light-background);
}

.checkout-header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  margin-bottom: 20px;
}

.checkout-steps {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.step {
  display: flex;
  align-items: center;
  margin: 0 15px;
  color: var(--light-text);
}

.step.active {
  color: var(--primary-color);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--light-background);
  border-radius: 50%;
  margin-right: 8px;
  font-size: 12px;
}

.step.active .step-number {
  background-color: var(--primary-color);
  color: white;
}

.secure-checkout {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--success-color);
  font-size: 14px;
}

.secure-icon {
  margin-right: 5px;
}

.checkout-section {
  margin-bottom: 40px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}

.checkout-form {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
}

.checkout-step-content {
  display: none;
}

.checkout-step-content.active {
  display: block;
}

.checkout-form h2 {
  font-size: 20px;
  margin: 0 0 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-checkbox input {
  margin-right: 10px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.back-link, .back-step {
  color: var(--light-text);
  font-size: 14px;
}

.next-step {
  padding: 10px 20px;
}

.shipping-options {
  margin-bottom: 20px;
}

.shipping-option {
  margin-bottom: 10px;
}

.shipping-option label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
}

.shipping-option input {
  display: none;
}

.shipping-option input:checked + label {
  border-color: var(--primary-color);
  background-color: rgba(58, 123, 213, 0.05);
}

.option-name {
  font-weight: 500;
}

.option-description {
  font-size: 14px;
  color: var(--light-text);
}

.option-price {
  font-weight: 500;
}

.option-note {
  font-size: 12px;
  color: var(--success-color);
}

.payment-options {
  margin-bottom: 20px;
}

.payment-option {
  margin-bottom: 15px;
}

.payment-option > label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.payment-option input[type="radio"] {
  margin-right: 10px;
  width: auto;
}

.payment-details {
  padding: 15px;
  background-color: var(--light-background);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.review-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.review-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.review-info {
  font-size: 14px;
  margin-bottom: 10px;
}

.edit-section {
  background: none;
  color: var(--primary-color);
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
}

.place-order-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

.order-summary {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
}

.order-summary h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.summary-items {
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item .item-image {
  position: relative;
  width: 60px;
  margin-right: 15px;
}

.summary-item .item-image img {
  width: 100%;
  height: 60px;
  object-fit: contain;
}

.item-quantity {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.summary-item .item-details {
  flex: 1;
}

.summary-item .item-title {
  font-size: 14px;
  margin-bottom: 3px;
}

.summary-item .item-options {
  font-size: 12px;
}

.summary-item .item-price {
  font-weight: 500;
  margin-left: 10px;
}

.summary-totals {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.checkout-footer {
  background-color: white;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 14px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 10px;
  color: var(--light-text);
}

.copyright {
  color: var(--light-text);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .content-sidebar {
    position: static;
  }
  
  .cart-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .main-image img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-features {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-group {
    margin-bottom: 10px;
    width: 100%;
  }
  
  .filter-group select {
    width: 100%;
  }
  
  .filter-toggle {
    width: 100%;
  }
  
  .tabs-header {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }
  
  .cart-item {
    flex-wrap: wrap;
  }
  
  .item-image {
    width: 80px;
  }
  
  .item-quantity {
    margin: 10px 0;
  }
  
  .item-total {
    margin: 10px 0;
  }
  
  .item-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero {
    height: 300px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .thumbnail-gallery {
    justify-content: center;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .reviews-summary {
    flex-direction: column;
  }
  
  .average-rating {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
  }
}
