:root {
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --line-height: 1.6;
  --color-text: #333;
  --color-bg: #ffffff;
  --color-primary: #c5a059; /* Muted Gold */
  --color-secondary: #f8f8f8;
  --color-dark: #1a1a1a;
  --color-border: #eee;
  --color-input-border: #ddd;
  --color-surface: #fff;
}

body.dark-mode {
  --color-text: #adb5bd;
  --color-bg: #212529;
  --color-secondary: #343a40;
  --color-dark: #3290ef;
  --color-border: #495057;
  --color-input-border: #555;
  --color-surface: #2c3034;
}

body.dark-mode .status-badge.processing {
  background-color: #8d6c02;
  color: #ffc107;
}

body.dark-mode .status-badge.delivered {
  background-color: #052c19;
  color: #20c997;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 90%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-dark);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

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

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

/* Layout Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background-color: var(--color-bg);
  z-index: 1000;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-family);
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  color: var(--color-dark);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

nav a[data-tooltip], .theme-switch[data-tooltip] {
  position: relative;
}

nav a[data-tooltip]::after, .theme-switch[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-dark);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 10;
  pointer-events: none; /* So it doesn't interfere with clicks */
}

nav a[data-tooltip]:hover::after, .theme-switch[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Search Bar */
.search-bar {
  display: flex;
  margin: 0 2rem;
  flex: 1;
  max-width: 300px;
}

.search-bar input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-input-border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font-family);
  font-size: 0.9rem;
}

.search-bar button {
  background-color: var(--color-dark);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-bar button:hover {
  background-color: var(--color-primary);
}

/* Theme Toggle */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Cart Badge */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  margin-bottom: 4rem;
  overflow: hidden;
  color: #fff;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1, .hero p, .hero .btn {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.hero h1 {
  animation-delay: 0.2s;
}

.hero p {
  animation-delay: 0.4s;
}

.hero .btn {
  animation-delay: 0.6s;
}

.btn {
  display: inline-block;
  background-color: var(--color-dark);
  color: #fff;
  padding: 0.8rem 2rem;
  margin-top: 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border: 1px solid transparent;
}

.btn:hover {
  background-color: var(--color-primary);
  color: #fff;
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-danger {
  background-color: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.btn-danger:hover {
  background-color: #e74c3c;
  color: #fff;
}

.btn + .btn {
  margin-left: 1rem;
}

@media (max-width: 480px) {
  .btn + .btn {
    margin-left: 0;
  }
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.product-card {
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  background-color: #eee;
  height: 350px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-image-wrapper {
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-family);
}

.product-card p {
  color: var(--color-primary);
  font-weight: 500;
}

.badge {
  position: absolute;
  top: 10px;
  right: auto;
  left: 10px;
  background-color: #e74c3c;
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--color-surface);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.wishlist-btn:hover {
  transform: scale(1.1);
}

.wishlist-btn.active svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}

.quick-view-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--color-surface);
  color: var(--color-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
}

.quick-view-btn:hover {
  background-color: var(--color-dark);
  color: #fff;
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quick-add-btn {
  position: absolute;
  bottom: 60px; /* Positioned above Quick View */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  width: max-content;
}

.product-card:hover .quick-add-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--color-dark);
  transition: color 0.2s;
}

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

/* Newsletter */
.newsletter-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.newsletter-section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  color: #777;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--color-input-border);
  font-family: var(--font-family);
}

.newsletter-form button {
  margin-top: 0;
}

/* Mobile Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-dark);
  transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  nav {
    width: 100%;
    display: none;
    margin-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav a {
    display: block;
    padding: 1rem 0;
    text-align: center;
  }

  .search-bar {
    order: 3;
    width: 100%;
    max-width: none;
    margin: 1rem 0 0;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-surface);
  width: 90%;
  max-width: 800px;
  position: relative;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-image {
  background-color: #eee;
  height: 300px;
  width: 100%;
}

.modal-details h2 {
  margin-top: 0;
}

.modal-price {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

/* Collections Masonry */
.collections {
  padding: 4rem 0;
  background-color: var(--color-secondary);
  margin-bottom: 4rem;
}

.masonry-grid {
  column-count: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.collection-card {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.collection-image {
  background-color: #ddd;
  width: 100%;
  transition: transform 0.5s ease;
}

.collection-card:hover .collection-image {
  transform: scale(1.05);
}

.collection-info {
  padding: 1.5rem;
  text-align: center;
}

.collection-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* Collections Page */
.collections-page {
  padding: 4rem 0;
  text-align: center;
}

.intro-text {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: #777;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Shop Page Styles */
.shop-layout {
  display: flex;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.shop-sidebar {
  flex: 0 0 250px;
}

.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-section h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-section li {
  margin-bottom: 0.75rem;
}

.sidebar-section a {
  color: #555;
  font-size: 0.95rem;
}

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

.shop-products {
  flex: 1;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.shop-header h1 {
  margin-bottom: 0.25rem;
}

.shop-header p {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.sort-dropdown {
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-input-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
}

.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .shop-layout {
    flex-direction: column;
  }
  
  .shop-sidebar {
    flex: auto;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
  }
}

/* Product Detail Page */
.breadcrumbs {
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #777;
}

.breadcrumbs a {
  color: #777;
}

.breadcrumbs span {
  color: var(--color-dark);
}

.product-detail {
  display: flex;
  gap: 4rem;
  margin-bottom: 5rem;
}

.product-gallery {
  flex: 1;
}

.main-image {
  background-color: #eee;
  height: 500px;
  width: 100%;
  margin-bottom: 1rem;
}

.thumbnail-list {
  display: flex;
  gap: 1rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  background-color: #eee;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

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

.product-info {
  flex: 1;
}

.product-info h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.product-info .price {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 2rem;
}

.product-info .description {
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #555;
}

.product-form {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group select, .form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-input-border);
  font-family: var(--font-family);
}

.product-reviews {
  margin-bottom: 4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
}

.product-reviews h2 {
  margin-bottom: 2rem;
}

.review-list {
  margin-bottom: 3rem;
}

.review-item {
  background-color: var(--color-secondary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.review-rating {
  color: var(--color-primary);
}

.review-form-container {
  max-width: 600px;
}

.review-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-input-border);
  font-family: var(--font-family);
  resize: vertical;
}

.size-label-group {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

#openSizeGuide {
  font-size: 0.85rem;
  text-decoration: underline;
  color: #777;
}

.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  text-align: center;
}

.size-chart-table th,
.size-chart-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
}

.size-chart-table th {
  background-color: var(--color-secondary);
}

.btn-large {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 1rem;
}

.product-meta p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
    gap: 2rem;
  }
  
  .main-image {
    height: 350px;
  }
}

/* Cart Page */
.cart-page {
  padding: 4rem 0;
}

.cart-layout {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.cart-items {
  flex: 2;
}

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

.cart-table th {
  text-align: left;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
  color: #777;
  font-size: 0.9rem;
}

.cart-table td {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-product-image {
  width: 80px;
  height: 80px;
  background-color: #eee;
}

.cart-product-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cart-product-info p {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.cart-quantity input {
  width: 50px;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid var(--color-input-border);
}

.save-for-later-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  color: #777;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.25rem;
}

.save-for-later-btn:hover {
  color: var(--color-primary);
}

.move-to-cart-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.cart-remove {
  color: #e74c3c;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.cart-summary {
  flex: 1;
  background-color: var(--color-secondary);
  padding: 2rem;
  height: fit-content;
}

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

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.promo-code-section {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.promo-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--color-input-border);
  font-family: var(--font-family);
}

.gift-wrap-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.gift-wrap-option input {
  cursor: pointer;
}

.gift-message-container {
  margin-bottom: 1rem;
}

.gift-message-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.gift-message-container textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-input-border);
  font-family: var(--font-family);
  resize: vertical;
}

.summary-row.total {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-input-border);
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .cart-layout {
    flex-direction: column;
  }
}

/* Checkout Page */
.checkout-page {
  padding: 4rem 0;
}

.checkout-layout {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.checkout-forms {
  flex: 2;
}

.checkout-summary {
  flex: 1;
  background-color: var(--color-secondary);
  padding: 2rem;
  height: fit-content;
}

.form-section {
  margin-bottom: 3rem;
}

.form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-row .form-group {
  flex: 1;
}

@media (max-width: 768px) {
  .checkout-layout {
    flex-direction: column;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Order Confirmation */
.confirmation-page {
  padding: 6rem 0;
  text-align: center;
  max-width: 600px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  margin: 0 auto 2rem;
}

/* Track Order Page */
.track-order-page {
  padding: 4rem 0;
  max-width: 800px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  background-color: var(--color-secondary);
  padding: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-radius: 4px;
}

.order-header p {
  margin: 0;
}

.timeline {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1rem;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 3rem;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--color-border);
  z-index: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item.completed::before {
  background-color: var(--color-primary);
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-border);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bold;
  flex-shrink: 0;
  border: 4px solid var(--color-surface);
}

.timeline-item.completed .timeline-icon {
  background-color: var(--color-primary);
}

.timeline-item.active .timeline-icon {
  background-color: var(--color-dark);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

/* Login/Register Page */
.login-page {
  padding: 4rem 0;
  max-width: 600px;
  margin: 0 auto;
}

.login-register-form {
  background-color: var(--color-secondary);
  padding: 2rem;
  border-radius: 4px;
}

.form-tabs {
  display: flex;
  margin-bottom: 2rem;
}

.tab-button {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
  font-weight: 500;
}

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

.form-content {
  margin-bottom: 2rem;
}

.form-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.login-register-form .form-group {
  margin-bottom: 1.5rem;
}

.login-register-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.login-register-form input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-input-border);
  font-family: var(--font-family);
}

.login-register-form .btn-large {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 1rem;
}

@media (max-width: 768px) {
  .login-page {
    padding: 2rem;
  }
}

/* Profile Page */
.profile-page {
  padding: 4rem 0;
}

.profile-layout {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.profile-sidebar {
  flex: 0 0 250px;
  background-color: var(--color-secondary);
  padding: 2rem;
  height: fit-content;
  text-align: center;
  border-radius: 4px;
}

.avatar {
  width: 80px;
  height: 80px;
  background-color: var(--color-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.profile-menu {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  text-align: left;
}

.profile-menu li {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.profile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: #555;
}

.profile-menu a.active {
  color: var(--color-dark);
  font-weight: bold;
}

.profile-content {
  flex: 1;
}

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

.order-table th {
  text-align: left;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
  color: #777;
  font-size: 0.9rem;
}

.order-table td {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
}

.status-badge.processing {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.delivered {
  background-color: #d1e7dd;
  color: #0f5132;
}

.btn-text {
  font-size: 0.9rem;
  text-decoration: underline;
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .profile-layout {
    flex-direction: column;
  }
  .profile-sidebar {
    flex: auto;
  }
}

/* New Arrivals Page */
.new-arrivals-hero {
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--color-secondary);
  margin-bottom: 3rem;
  margin-top: 2rem;
}

.new-arrivals-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.new-arrivals-hero p {
  color: #777;
  font-size: 1.1rem;
}

/* Contact Page */
.contact-page {
  padding: 4rem 0;
}

.contact-layout {
  display: flex;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-form-section {
  flex: 3;
}

.contact-info-section {
  flex: 2;
  background-color: var(--color-secondary);
  padding: 2rem;
  border-radius: 4px;
  height: fit-content;
}

.contact-form-section textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-input-border);
  font-family: var(--font-family);
  resize: vertical;
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-block p {
  color: #555;
  line-height: 1.6;
}

.map-placeholder {
  background-color: #e0e0e0;
  height: 250px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #777;
  font-weight: bold;
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
    gap: 3rem;
  }
}

/* About Page */
.about-page {
  padding: 4rem 0;
}

.about-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.about-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.about-section.reverse {
  flex-direction: row-reverse;
}

.about-image {
  flex: 1;
  background-color: #eee;
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.8;
  color: #555;
}

.team-section {
  text-align: center;
  margin-top: 4rem;
}

.team-section h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.member-image {
  width: 150px;
  height: 150px;
  background-color: #eee;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.team-member h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.team-member p {
  color: #777;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .about-section, .about-section.reverse {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-image {
    height: 300px !important;
  }
}

/* Print Styles */
@media print {
  header, footer, .btn, .cart-remove, .save-for-later-btn, .move-to-cart-btn, .promo-code-section, .gift-wrap-option, .you-might-like {
    display: none !important;
  }
  .cart-page {
    padding: 0;
  }
  .cart-layout {
    display: block;
  }
  .cart-summary {
    box-shadow: none;
    border: 1px solid var(--color-border);
    margin-top: 2rem;
    page-break-inside: avoid;
  }
}

/* Blog Page */
.blog-page {
  padding: 4rem 0;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  text-align: left;
}

.blog-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #eee;
  transition: transform 0.5s ease;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.blog-post-content .blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.share-btn {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--color-primary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

/* Blog Post Page */
.blog-post-page {
  padding-bottom: 4rem;
  max-width: 800px;
}

.blog-post-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.blog-post-hero {
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 4px;
}

.post-body {
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 4rem;
}

.post-body h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.comments-section {
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
}

.comment {
  background-color: var(--color-secondary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.comment-date {
  color: #777;
  font-size: 0.8rem;
}

.comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-input-border);
  font-family: var(--font-family);
  resize: vertical;
}

/* Back to Top Button */
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 1.5rem;
  border: none;
  outline: none;
  background-color: var(--color-primary);
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}