:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --accent-color: #555555;
  --primary-font: "Outfit", sans-serif;
  --serif-font: "Playfair Display", serif;
  --transition-speed: 0.3s;
  --header-gradient: linear-gradient(
    90deg,
    #ff9a9e 0%,
    #fecfef 99%,
    #fecfef 100%
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--primary-font);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Header */
/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s ease;
  color: #fff; /* White text initially */
}

body.product-page header, 
body.cart-page header, 
body.checkout-page header,
body.search-page header {
  color: var(--text-color);
}

body.product-page .hamburger,
body.cart-page .hamburger,
body.checkout-page .hamburger,
body.search-page .hamburger {
  color: var(--text-color);
}


header nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.scrolled {
  padding: 1rem 4rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: var(--text-color); /* Black text */
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--serif-font);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: inherit;
  font-style: italic;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 50%;
  background-color: currentColor;
  transition: all 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.1); /* Slight zoom for effect */
  animation: zoomEffect 20s infinite alternate;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  z-index: 1;
}

@keyframes zoomEffect {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.2);
  }
}

.hero-content {
  text-align: center;
  z-index: 1;
  color: #fff; /* Force white text over video */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
  font-family: var(--serif-font);
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-style: italic;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  transition: all var(--transition-speed);
}

.btn:hover {
  background: #fff;
  color: var(--bg-color); /* Invert for hover */
}

/* Featured Products */
.featured-products {
  padding: 8rem 4rem;
  background: var(--bg-color);
}

.featured-products h2 {
  font-family: var(--serif-font);
  font-size: 3rem;
  margin-bottom: 4rem;
  text-align: center;
  font-style: italic;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  max-width: 1200px; /* Constrain width for better layout on large screens */
  margin: 0 auto; /* Center the grid container */
}

.product-card {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-speed);
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  width: 100%;
  height: 400px;
  background: #f5f5f5; /* Light gray for image background */
  margin-bottom: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.product-info p {
  color: var(--accent-color);
  font-family: var(--serif-font);
  font-style: italic;
}

/* About Section */
.about-section {
  padding: 10rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    #fdfbfb 0%,
    #ebedee 100%
  ); /* Subtle light gradient */
  position: relative;
  overflow: hidden;
}

.about-content {
  max-width: 800px;
}

.about-content h2 {
  font-family: var(--serif-font);
  font-size: 4rem;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.5rem;
  color: var(--accent-color);
  line-height: 1.8;
}

/* Footer */
.footer {
  padding: 4rem;
  background: var(--bg-color);
  border-top: 1px solid #eee;
  text-align: center;
}

.footer-brand {
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.footer-links {
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 1rem;
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: var(--text-color);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  color: #fff; /* Initial color matches header text */
  transition: color 0.4s ease;
}

.hamburger svg {
  display: block;
}

.hamburger .icon-close {
  display: none;
}

.hamburger.toggle .icon-menu {
  display: none;
}

.hamburger.toggle .icon-close {
  display: block;
}

.hamburger.toggle {
  color: var(--text-color);
}

header.scrolled .hamburger {
  color: var(--text-color);
}

/* Mobile */
@media (max-width: 768px) {
  header {
    padding: 1.5rem 2rem;
  }

  header.scrolled {
    padding: 1rem 2rem; /* Reduce vertical padding on scroll */
  }

  .hamburger {
    display: flex;
    z-index: 1001; /* Above nav menu */
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .nav-links {
    position: fixed;
    right: 0px;
    height: 100vh;
    top: 0px;
    background-color: #fff; /* Solid white background */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    padding-top: 6rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links li {
    opacity: 0;
    margin: 1.5rem 0;
  }

  .nav-links a {
    color: var(--text-color); /* Always black in mobile menu */
    font-size: 1.2rem;
  }

  .nav-active {
    transform: translateX(0%);
  }

  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .featured-products {
    padding: 4rem 1rem; /* Reduce padding significantly */
  }

  .product-grid {
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .about-section {
    padding: 4rem 1rem;
  }
}

/* Product Detail Page Styles */
.product-detail-section {
  padding: 8rem 2rem 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 3rem;
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumb a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}

.product-container {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 6rem;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 450px;
}

.product-gallery .gallery-item {
  width: 100%;
  background: #fcfcfc;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

.product-gallery .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info-panel {
  position: sticky;
  top: 10rem;
}

.product-info-panel h1 {
  font-family: var(--serif-font);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.1;
}

.product-info-panel .price {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 3rem;
  color: #333;
}

.product-info-panel .description {
  color: #666;
  line-height: 1.8;
  margin-bottom: 4rem;
  font-size: 1rem;
}

.selector-group {
  margin-bottom: 3rem;
}

.selector-label {
  display: block;
  margin-bottom: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #999;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.option-btn {
  padding: 1rem 2rem;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.option-btn:hover {
  border-color: #1a1a1a;
}

.option-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.buy-button {
  width: 100%;
  height: 70px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s ease;
}

.buy-button:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.buy-button:disabled {
  background: #eee;
  color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.out-of-stock-message {
  padding: 1.5rem;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 3rem;
}

.product-footer-meta {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid #f0f0f0;
}

.product-footer-meta p {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.product-footer-meta span {
  font-weight: 600;
  color: #1a1a1a;
}

/* Mobile Product Detail */
@media (max-width: 1024px) {
  .product-detail-section {
    padding: 6rem 1.5rem 2rem 1.5rem;
  }

  .product-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .product-info-panel {
    position: static;
  }

  .product-info-panel h1 {
    font-size: 2.5rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-container {
  background: #fff;
  width: 100%;
  max-width: 550px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: var(--serif-font);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #1a1a1a;
}

.modal-body {
  padding: 1rem 2rem;
  overflow-y: auto;
  flex-grow: 1;
}

.variant-selection-list {
  display: flex;
  flex-direction: column;
}

.variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f9f9f9;
}

.variant-row:last-child {
  border-bottom: none;
}

.variant-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.variant-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.variant-stock {
  font-size: 0.75rem;
  color: #27ae60;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Compact Quantity Selector */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.qty-stepper-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-stepper-btn:hover:not(:disabled) {
  background: #f5f5f5;
}

.qty-stepper-btn:disabled {
  color: #eee;
  cursor: not-allowed;
}

.qty-stepper-input {
  width: 50px;
  height: 40px;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: #fff;
}

.confirm-btn {
  width: 100%;
  height: 60px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-btn:hover {
  background: #000;
}

.confirm-btn:disabled {
  background: #eee;
  color: #ccc;
  cursor: not-allowed;
}

/* Modern Cart Redesign */
.cart-section {
  padding: 10rem 2rem 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.cart-header {
  margin-bottom: 5rem;
  text-align: left;
}

.cart-header h1 {
  font-family: var(--serif-font);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.cart-header p {
  color: #999;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 6rem;
  align-items: start;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cart-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 2.5rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.cart-card:hover {
  border-color: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cart-card-image {
  width: 140px;
  height: 180px;
  object-fit: cover;
  background: #f9f9f9;
}

.cart-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-card-content h3 {
  font-family: var(--serif-font);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.cart-card-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.cart-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty-stepper {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 0.2rem;
  margin-left: 1rem;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cart-qty-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.cart-qty-value {
  width: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #1a1a1a;
}


.cart-card-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.cart-card-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.5rem 0;
}

.remove-trigger {
  color: #c53030;
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
  font-weight: 700;
}

.remove-trigger:hover {
  opacity: 0.7;
}

.cart-sidebar {
  position: sticky;
  top: 10rem;
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  padding: 4rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1a1a1a;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

.sidebar-total {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #eee;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
}

.checkout-btn {
  width: 100%;
  height: 75px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.checkout-btn:hover {
  background: #333;
  letter-spacing: 5px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.checkout-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.checkout-btn:hover::after {
  left: 100%;
}



/* Checkout Page Styles */
.checkout-section {
  padding: 8rem 2rem 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6rem;
  align-items: start;
}

.checkout-form-container h2 {
  font-family: var(--serif-font);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 400;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  color: #999;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.order-summary-side {
  background: #f9f9f9;
  padding: 4rem;
  position: sticky;
  top: 10rem;
}

.order-summary-side h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
}

.empty-cart {
  text-align: center;
  padding: 10rem 0;
}

.empty-cart p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.continue-shopping {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Nav Icons Styling */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cart-trigger {
  position: relative;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-trigger:hover {
  color: #666;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

header.scrolled .cart-count {
  background: #1a1a1a;
  color: #fff;
}

/* Cart & Checkout Mobile Responsive Fixes */
@media (max-width: 1024px) {
  .cart-grid, .checkout-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .cart-sidebar, .order-summary-side {
    position: static;
    padding: 3rem 2rem;
  }

  .cart-card {
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .cart-card-image {
    width: 100px;
    height: 130px;
  }

  .cart-card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f9f9f9;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  .cart-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .cart-section, .checkout-section {
    padding: 7rem 1.5rem 4rem 1.5rem;
  }

  .cart-header h1 {
    font-size: 2rem;
  }

  .cart-card-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sidebar-title, .checkout-form-container h2 {
    font-size: 1.8rem;
  }

  .summary-box, .cart-sidebar, .order-summary-side {
    padding: 2rem 1.5rem;
  }

  .cart-qty-stepper {
    margin-left: 0;
    margin-top: 0.5rem;
    width: fit-content;
  }

  .cart-qty-btn {
    width: 32px;
    height: 32px;
  }
}

/* Search Overlay */
.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: opacity 0.3s ease;
}

.search-trigger:hover {
  opacity: 0.7;
}

.search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 2rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container form {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 1rem 3rem 1rem 0;
  border: none;
  border-bottom: 2px solid #eee;
  font-size: 1.5rem;
  font-family: var(--serif-font);
  outline: none;
  transition: border-color 0.3s ease;
}

.search-container input:focus {
  border-color: #1a1a1a;
}

.search-submit {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0.5rem;
}

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  transition: color 0.3s ease;
}

.search-close:hover {
  color: #1a1a1a;
}

[x-cloak] { display: none !important; }

/* Search Results Page Overhaul */
.search-results-section {
  padding: 12rem 2rem 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.search-results-header {
  margin-bottom: 6rem;
  text-align: center;
}

.search-results-header h1 {
  font-family: var(--serif-font);
  font-size: 3.8rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.search-results-header h1 span {
  font-style: italic;
  color: #1a1a1a;
  position: relative;
  display: inline-block;
}

.search-results-header h1 span::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #1a1a1a;
  opacity: 0.2;
}

.search-result-count {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.search-result-count::before, .search-result-count::after {
  content: "";
  width: 40px;
  height: 1px;
  background: #eee;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6rem 3rem;
}

.search-product-card {
  opacity: 0;
  transform: translateY(20px);
  animation: searchItemFade 0.6s ease forwards;
}

.search-product-card .product-image-container {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #f9f9f9;
}

.search-product-card .product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-product-card:hover .product-image-container img {
  transform: scale(1.05);
}

@keyframes searchItemFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.no-results {
  text-align: center;
  padding: 10rem 0;
  max-width: 600px;
  margin: 0 auto;
}

.no-results-icon {
  font-size: 4rem;
  color: #f0f0f0;
  margin-bottom: 3rem;
  display: block;
}

.no-results h2 {
  font-family: var(--serif-font);
  font-size: 2.8rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.no-results p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .search-results-header h1 {
    font-size: 3rem;
  }
  
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .search-results-section {
    padding-top: 8rem;
  }

  .search-results-header h1 {
    font-size: 2.2rem;
  }
  
  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Global Notifications */
.notifications-container {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 2000;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Global Notifications */
.notifications-container {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 2000;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alert {
  padding: 1.2rem 3rem 1.2rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: slideInRight 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.alert-success {
  background: #ffffff;
  color: #1a1a1a;
  border-left: 4px solid #1a1a1a;
  border: 1px solid #eee;
}

.alert-danger {
  background: #c53030;
  color: #fff;
}

.alert button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.alert button:hover {
  opacity: 1;
}

/* Success Modal Popup Improvements */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85); /* Light, airy backdrop */
  backdrop-filter: blur(15px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.success-modal {
  background: #ffffff;
  padding: 6rem 4rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
}

.success-icon {
  color: #1a1a1a;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.success-icon svg {
  stroke-width: 1;
}

.success-modal h2 {
  font-family: var(--serif-font);
  font-size: 3.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.1;
}

.success-modal p {
  color: #666;
  margin-bottom: 4rem;
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--primary-font);
}

.btn-primary {
  display: inline-block;
  background: #1a1a1a;
  color: #ffffff;
  padding: 1.5rem 3.5rem;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #1a1a1a;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #ffffff;
  color: #1a1a1a;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .notifications-container {
    top: auto;
    bottom: 2rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
  
  .success-modal {
    padding: 4rem 2rem;
  }
  
  .success-modal h2 {
    font-size: 2.5rem;
  }
}




