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

body {
  font-family: "Kameron", serif;
  line-height: 1.5;
  background-color: #fff;
  color: #333;
}

/* Header styles */
.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}

.header-top-row {
  display: flex;
  justify-content: flex-start; /* Align items to the start (left) */
  align-items: center;
  width: 100%;
  gap: 15px; /* Add gap between direct children: search, logo, toggle */
  /* margin-bottom: 10px; /* Removed, nav directly follows */
}

/* Search container wrapper - General structure for search within header */
/* Specific sizing and appearance will be in products.css for products-header-variant */
.search-container-wrapper {
  /* order: 1; /* Default order, not strictly needed if first in HTML */
  display: flex; /* Takes up its content's width by default */
  align-items: center;
}

.logo-link-header { /* Class added to <a> tag around logo */
  line-height: 0; /* Prevent extra space below image if it's display: inline */
  flex-shrink: 0; /* Kept from original, prevents shrinking if other items grow */
  /* New styles for centering */
  flex-grow: 1; /* Allow this container to take available space */
  display: flex;
  justify-content: center; /* Center the logo (img) within this <a> tag */
}

.main-header .logo {
  width: 160px; /* Slightly smaller for better balance with search */
  height: auto;
  display: block; /* Good for images in links */
  margin-right: 297px; /* Center the logo image */
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: auto; /* Pushes toggle to the far right */
  z-index: 999;
  flex-shrink: 0;
}

.menu-icon {
  font-size: 28px;
  color: #000;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: none;
  background-color: #fff;
  transform: translateX(100%);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  padding: 60px 20px 20px;
  gap: 15px;
}

.close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.close-icon {
  font-size: 28px;
  color: #000;
}

.menu-link {
  font-family: "Kameron", sans-serif;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.menu-link:hover {
  color: #2890e6;
}

.desktop-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  width: 100%;
  margin-top: 15px; /* Space between top row and nav */
}

.nav-link {
  font-family: "Kameron", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2890e6;
}

/* Hero section (styles remain the same) */
.hero-section {
  width: 100%;
  height: 560px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.video-container {
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
}

.hero-title {
  color: #fff;
  font-family: "Kameron", sans-serif;
  font-size: 48px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: normal;
}

/* Product carousel (styles remain the same) */
.product-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.product-carousel-container {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.carousel-arrow {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.product-item {
  flex: 0 0 auto;
  width: 200px;
  margin-right: 15px;
  margin-top: 15px;
  text-align: center;
  box-sizing: border-box;
}

.product-item:last-child {
  margin-right: 0;
}

.product-image {
  width: 150px;
  height: 250px;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

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

/* Brand showcase (styles remain the same) */
.brand-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

.brand-link {
  display: block;
  text-decoration: none;
  flex-basis: calc(20% - 15px);
  min-width: 160px;
}

.brand-button {
  width: 100%;
  height: 150px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.brand-button:hover {
  transform: scale(1.03);
  border-color: #bbb;
}

.brand-image, .brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vintage-label {
  width: 100%;
  height: 100%;
  color: #000;
  font-family: Athelas, serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Vintage Highlight Section (styles remain the same) */
.vintage-highlight-section {
  padding: 40px 20px;
  text-align: center;
  background-color: #f9f9f9;
  margin: 40px auto;
  max-width: 1440px;
}

.vintage-highlight-content h2 {
  font-size: 36px;
  font-family: "Kameron", serif;
  color: #333;
  margin-bottom: 15px;
}

.vintage-highlight-content p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 25px auto;
}

.vintage-cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-family: "Kameron", sans-serif;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.vintage-cta-button:hover {
  background-color: #333;
}

/* Omega collection (styles remain the same) */
.omega-collection {
  max-width: 1440px;
  margin: 40px auto;
  position: relative;
  width: 100%;
  min-height: 400px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  overflow: hidden;
  background-color: #f0f0f0;
  padding: 20px;
}

.collection-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  z-index: 2;
  flex-basis: 45%;
  min-width: 280px;
}

.collection-button {
  width: auto;
  max-width: 316px;
  border-radius: 30px;
  border: 2px solid #c6001f;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Kameron", sans-serif;
  font-size: 22px;
  color: #c6001f;
  padding: 12px 24px;
  text-align: center;
  background-color: #fff;
  margin-top: 10px;
}

.collection-button:hover {
  background: #c6001f;
  color: #fff;
  transform: scale(1.05);
}

.watch-display {
  width: 400px;
  max-width: 45%;
  height: auto;
  z-index: 1;
  margin: 10px;
}

.omega-watch {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.background-element {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  height: auto;
  opacity: 0.1;
  z-index: 0;
}

.background-image {
  width: 100%;
  height: auto;
}

/* Box collection (styles remain the same) */
.box-collection {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1440px;
  margin: 40px auto;
  min-height: 450px;
  height: auto;
  max-height: 60vh;
  overflow: hidden;
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.collection-image-wrapper {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.collection-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-info {
  width: 50%;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.collection-title {
  font-family: "Kameron", sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  color: #000;
  margin-bottom: 30px;
  font-weight: normal;
  line-height: 1.3;
}

.collection-cta {
  width: auto;
  max-width: 400px;
  padding: 15px 30px;
  height: auto;
  border-radius: 50px;
  border: 2px solid #000;
  font-family: "Kameron", sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.collection-cta:hover {
  background: #000;
  color: #fff;
  transform: scale(1.02);
}

/* Footer styles (styles remain the same) */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-column h3 {
  font-family: "Kameron", serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 15px;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
}

.footer-column p,
.footer-column address {
  margin-bottom: 10px;
}

.footer-column a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
}

.footer-about p {
  font-style: italic;
  color: #bbb;
}

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

.social-icon {
  color: #aaa;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 75px;
}

.social-icon:hover {
  color: #fff;
  transform: scale(1.1);
}

.social-icon i {
  display: block;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 13px;
  color: #888;
}

/* --- NEW CART STYLES --- */
.cart-icon-container {
    position: relative;
    cursor: pointer;
    margin-left: auto; /* Pushes cart to the right, next to menu toggle if present */
    flex-shrink: 0;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 4; /* Ensures it's always on the far right after existing elements */
}

.cart-icon {
    font-size: 28px;
    color: #000;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545; /* Red color */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    pointer-events: none; /* Allows clicks to pass through to the icon */
    transform: translate(25%, -25%); /* Adjust position relative to icon */
}

/* --- CART MODAL STYLES (similar to popup.css but specific to cart) --- */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem 1rem;
    overflow-y: auto;
}

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

.cart-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 650px; /* Wider for cart items */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    margin: auto;
}

.cart-modal-overlay.active .cart-modal-content {
    transform: scale(1);
}

.cart-modal-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-family: 'Kameron', serif;
    font-size: 1.8rem;
    color: #333;
}

.cart-items {
    max-height: 400px; /* Scrollable area for items */
    overflow-y: auto;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.cart-item-price {
    color: #007bff;
    font-weight: bold;
    margin-top: 5px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #a71d2a;
}

.cart-summary {
    padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-summary span:last-child {
    color: #007bff;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cart-actions .btn-primary {
    flex-grow: 1;
    background-color: #007bff;
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.2s;
}

.cart-actions .btn-primary:hover {
    opacity: 0.85;
}

.cart-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.2s;
}

.cart-actions .btn-secondary:hover {
    opacity: 0.85;
}


/* Responsive styles */
@media (max-width: 991px) { /* Tablet */
  .main-header {
    padding: 10px 15px; /* Adjust header padding for tablet */
  }
  .header-top-row {
    gap: 10px; /* Reduce gap for tablet */
    margin-bottom: 10px; /* Space before nav if it wraps */
  }
  .main-header .logo {
    width: 140px; /* Smaller logo for tablet */
  }
  /* Search wrapper styling is primarily in products.css, but ensure it behaves with less space */
  .search-container-wrapper {
    /* flex-grow: 1; Could allow it to grow if there's space next to logo */
    /* max-width: 300px; /* Limit width */
  }
  .desktop-menu {
    margin-top: 10px; /* Adjust space if header items wrap */
    gap: 20px;
  }
  .nav-link {
    font-size: 18px;
  }

  .brand-link {
    flex-basis: calc(33.333% - 15px);
    min-width: 140px;
  }

  .omega-collection {
    padding: 15px;
    align-items: center;
    text-align: center;
  }
  .watch-display {
    width: 280px;
    max-width: 100%;
    margin-top: 20px;
  }
  .background-element {
    display: none;
  }
  .collection-button {
    margin: 20px auto 0;
  }

  .box-collection {
    flex-direction: column;
    max-height: none;
    height: auto;
  }
  .collection-image-wrapper,
  .collection-info {
    width: 100%;
  }
  .collection-image-wrapper {
    height: 300px;
  }

  .footer-column {
    min-width: calc(50% - 15px);
    text-align: left;
  }
  .footer-column.footer-social, .footer-column.footer-about {
      min-width: 100%;
  }
  .social-icons {
    justify-content: flex-start;
  }

  .cart-modal-content {
      padding: 1.5rem;
  }
  .cart-modal-content h2 {
      font-size: 1.5rem;
  }
}


@media (max-width: 767px) { /* Mobile - Header specific changes */
  .main-header {
    /* padding: 10px 15px; Already set for tablet, fine for mobile */
  }
  .header-top-row {
    flex-wrap: wrap; /* Allow items to wrap: search, then logo, then toggle if needed */
    justify-content: center; /* Center items when they wrap */
    gap: 10px;
    margin-bottom: 0; /* Nav will be hidden (mobile menu shown) */
  }

  .search-container-wrapper {
    order: 1; /* Search first */
    width: 100%; /* Full width for search */
    margin-bottom: 10px; /* Space below search if logo/toggle wrap under */
    padding: 0; /* Remove side padding if full width */
  }

  .logo-link-header { /* This class is used in products.html */
    order: 2; /* Logo second */
    margin: 0 auto; /* Center logo link if it's on its own line */
    flex-grow: 0; /* Turn off flex-grow for margin:auto to work effectively if it becomes a block */
  }
  .main-header .logo { /* General logo style for mobile */
    width: 130px; /* Even smaller logo */
    margin: 0 auto; /* Ensures the image itself is centered */
  }

  .menu-toggle {
    order: 3; /* Menu toggle last */
    display: flex;
    margin-left: 0; /* Reset margin as it might be centered or part of wrap flow */
    /* If header-top-row is centered, toggle will be part of that centered block */
    /* For top-right absolute positioning of toggle, relative to .main-header: */
    position: absolute;
    top: 18px; /* Adjust based on overall header padding and logo size */
    right: 15px;
  }

  .mobile-menu {
    display: block; /* JS controls translateX for open/close */
  }
  .desktop-menu {
    display: none;
  }

  .cart-icon-container {
      position: absolute;
      top: 18px; /* Align with menu toggle */
      right: 55px; /* Position next to menu toggle */
      order: unset; /* Remove flex order */
  }
}


@media (max-width: 640px) { /* General Mobile */
  .hero-title {
    font-size: 32px;
  }
  .hero-overlay {
    padding: 20px;
  }

  .product-carousel {
    padding: 0 10px;
  }

  .carousel-arrow {
    display: none;
  }

  .product-item {
    width: 160px;
  }
  .product-image {
      width: 120px;
      height: 200px;
  }

  .brand-link {
    flex-basis: calc(50% - 10px);
    min-width: 120px;
  }
  .brand-button {
    height: 120px;
  }
  .vintage-label {
    font-size: 20px;
  }

  .vintage-highlight-content h2 {
    font-size: 28px;
  }
  .vintage-highlight-content p {
    font-size: 16px;
  }
  .vintage-cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .omega-collection {
    max-width: 100%;
    padding: 15px;
  }
  .collection-content {
      width: 100%;
      align-items: center;
  }
  .collection-button {
    width: 80%;
    font-size: 18px;
  }
  .watch-display {
      width: 60%;
      max-width: 250px;
  }


  .box-collection {
    margin: 20px auto;
  }
  .collection-image-wrapper {
    height: 250px;
  }
  .collection-info {
      padding: 20px;
  }
  .collection-title {
    font-size: 24px;
  }
  .collection-cta {
    width: 80%;
    font-size: 18px;
    padding: 12px 20px;
  }

  .footer-column {
    min-width: 100%;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  .site-footer {
      font-size: 13px;
  }
  .social-icon {
      font-size: 22px;
  }
}

/* Products page specific header variant class (already in products.html on .main-header) */
/* No specific general style needed here for .products-header-variant itself */
/* Its children like .search-container-wrapper are styled below or in products.css */


/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

/* Skip to content link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: white;
  padding: 10px 15px;
  z-index: 2000;
  transition: top 0.3s ease-in-out;
  border-radius: 0 0 5px 0;
}

.skip-link:focus {
  top: 0;
}