/* === Base Styles and CSS Variables === */
:root {
  --background: #FFFFFF;
  --foreground: #333333;
  --kissna-pink: #FF6B8B; /* Used in form/landing styles */
  --form-bg: #fde4e7;     /* Used in form/landing styles */
  --text-dark: #333333;
  --text-light: #666666;
  --welcome-text: #e7446f; /* Used in form/landing styles, similar to catalog pink */
  --catalog-pink: #e7446f; /* Catalog theme color */
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #128C7E;
  --border-color: #E5E7EB;
  --border-radius: 8px;
  --border-radius-small: 4px;
  --border-radius-large: 12px;
  --border-radius-pill: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --font-primary: 'Inter', Arial, sans-serif;
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom right, white, rgba(253, 228, 231, 0.5));
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
}

a {
  color: var(--catalog-pink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem; /* 24px */
}

/* === Utilities === */
.section-title {
  text-align: center;
  font-size: 2rem; /* 32px */
  font-weight: 700;
  margin-bottom: 3rem; /* 48px */
  color: var(--text-dark);
}

.bg-gradient {
  background-color: var(--form-bg);
  padding: 3rem 0;
}

/* Hide/Show Utilities for Responsiveness */
.mobile-only { display: none !important; } /* Hide on desktop */
.desktop-only { display: block !important; } /* Show on desktop (default) */

/* --- Buttons --- */
/* Generic size button (used in categories) */
.size-button-generic {
  display: inline-block;
  background-color: var(--catalog-pink);
  color: #ffffff;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  text-align: center;
}
.size-button-generic:hover {
  background-color: #c13357;
  transform: scale(1.05);
  text-decoration: none;
}

.whatsapp-button { /* Example, not used in current catalog view */
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  background-color: var(--whatsapp-green);
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
  margin-top: 1.5rem;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
}
.whatsapp-button:hover {
  background-color: var(--whatsapp-green-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

.phone-link {
    font-weight: 600;
    color: var(--text-dark);
}
.phone-link:hover {
    color: var(--catalog-pink);
}

/* === Components === */

/* --- Carousels (General and Hero Specific) --- */
.carousel-container {
    position: relative;
    overflow: hidden;
    background-color: #eee; /* Light background while images load */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: block;
}

/* Hero Carousel specific size - DESKTOP */
.hero-carousel.carousel-container {
    width: 552px;
    height: 972px;
    margin: 0;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
}
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.carousel-slide:not(.active) {
     z-index: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius); /* Inherit container radius */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 24px;
    color: var(--catalog-pink);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s, background-color 0.3s, transform 0.2s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    box-shadow: var(--shadow-sm);
}
.carousel-nav button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}
.carousel-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background-color: rgba(200, 200, 200, 0.4);
}

.carousel-history {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: var(--border-radius-small);
}

.carousel-history img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    transition: border-color 0.3s, opacity 0.3s;
    opacity: 0.7;
}
.carousel-history img:hover {
    opacity: 1;
}
.carousel-history img.active {
    border-color: white;
    opacity: 1;
}

.price-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
}

/* === Sections === */

/* --- Hero Section --- */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Default desktop layout */
  gap: 2rem;
  align-items: start;
}

.left-column {
  /* Holds form and consent */
}

#klaviyo-signup-form {
    min-height: 300px;
    margin-bottom: 1.5rem;
    background-color: transparent;
    padding: 0;
    overflow: hidden; /* Keep this - good practice */
}

.consent-text {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem; /* Adjust if needed */
  line-height: 1.4;
}
.consent-text p { margin-bottom: 0.5rem; }
.consent-text a { color: var(--text-dark); text-decoration: underline; }
.consent-text a:hover { color: var(--kissna-pink); }

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* --- Catalog Section --- */
.catalog-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.catalog-header { /* Optional Header */
  text-align: center;
  margin-bottom: 2rem;
}
.catalog-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--catalog-pink);
  margin-bottom: 0.5rem;
}
.catalog-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}


/* Catalog Viewer Section Specific Styles */

.catalog-container {
  display: grid;
  grid-template-columns: 180px 1fr 300px; /* Desktop: Thumb | Main | Details */
  gap: 1.5rem; /* 24px */
  align-items: start;
}

/* 1. Thumbnail Sidebar Styles */
.thumbnail-sidebar {
  /* Desktop: Vertical scroll */
  width: 100%;
  height: 600px; /* Adjust as needed */
  overflow: hidden;
  position: relative;
  background-color: var(--background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  /* Mobile order: Will be set in media query */
  order: 1; /* Default order */
}
.thumbnail-container {
  /* Desktop */
  height: calc(100% - 80px); /* Account for nav buttons */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--catalog-pink) #f0f0f0;
  position: absolute;
  top: 40px; bottom: 40px; left: 0; right: 0;
}
.thumbnail-container::-webkit-scrollbar { width: 6px; }
.thumbnail-container::-webkit-scrollbar-track { background: #f0f0f0; }
.thumbnail-container::-webkit-scrollbar-thumb {
  background-color: var(--catalog-pink);
  border-radius: 6px;
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1.2; /* Example aspect ratio */
  margin-bottom: 0.75rem; /* 12px */
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--border-radius-small); /* Smaller radius for thumbs */
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnail:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 68, 111, 0.5); /* Light pink border on hover */
}
.thumbnail.active {
  border-color: var(--catalog-pink);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--catalog-pink); /* Highlight effect */
}
.thumbnail.active:hover {
    transform: none; /* Prevent jump when active and hovered */
}

.loading { /* Style for loading indicator */
  text-align: center;
  padding: 20px;
  font-size: 1rem; /* 16px */
  color: var(--text-light);
}

/* Thumbnail navigation arrows (Desktop - Vertical) */
.thumbnail-nav {
  position: absolute;
  width: 100%;
  height: 40px; /* Height of nav area */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  left: 0; /* Ensure it spans width */
}
.thumbnail-nav-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.thumbnail-nav-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}
/* Common button style for nav arrows */
.thumbnail-nav button {
  background-color: rgba(80, 80, 80, 0.6); /* Darker nav buttons */
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px; /* Default arrow size */
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  line-height: 1;
  padding: 0;
}
.thumbnail-nav button:hover {
  background-color: var(--catalog-pink);
  transform: scale(1.1);
}
.thumbnail-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background-color: rgba(150, 150, 150, 0.5);
}

/* 2. Main Image Display Styles */
.main-image-display {
  position: relative;
  background-color: var(--background);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* Desktop grid position */
  grid-column: 2 / 3;
  /* Mobile order: Will be set in media query */
  order: 2; /* Default order */
}
.main-image-container {
  width: 100%;
  aspect-ratio: 1 / 1.2; /* Adjust as needed */
  position: relative;
  background-color: #f0f0f0;
}
.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Fit the whole image */
  object-position: center center;
  background-color: #fff; /* White background if image is transparent or smaller */
}
.zoom-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: background-color 0.2s;
    padding: 0;
    z-index: 5; /* Above image */
}
.zoom-button:hover {
    background: rgba(255, 255, 255, 0.9);
}
.zoom-button svg {
    width: 20px;
    height: 20px;
}

/* 3. Product Info Styles */
.product-info { /* Common base for mobile/desktop wrappers */
    /* Specific styles applied via product-info-mobile/desktop */
}

/* Mobile-only info block below image */
.product-info-mobile {
    padding: 0.75rem 1rem;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    text-align: left; /* Match mockup */
}
.product-info-mobile .product-style {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}
.product-info-mobile .product-price {
    font-size: 1.125rem; /* 18px */
    color: var(--catalog-pink);
    font-weight: 700;
}

/* Desktop-only info block in details sidebar */
.product-info-desktop {
    padding: 0; /* No extra padding needed */
    margin-bottom: 1.5rem; /* Spacing before size selector */
    text-align: left; /* Match mockup */
}
.product-info-desktop .product-style {
    font-size: 1.5rem; /* Larger style name on desktop (24px) */
    font-weight: 600; /* Bold like mockup */
    color: var(--text-dark); /* Ensure dark color */
    margin-bottom: 0.5rem;
}
.product-info-desktop .product-price {
    font-size: 1.25rem; /* 20px */
    color: var(--catalog-pink);
    font-weight: 700;
    margin-bottom: 0.75rem; /* Space before link */
}
.size-catalog-link {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: none;
}
.size-catalog-link:hover {
   text-decoration: none;
}


/* 4. Product Details Sidebar Styles */
.product-details {
  /* Desktop grid position */
  grid-column: 3 / 4;
  padding: 1.5rem; /* More padding on desktop */
  background-color: var(--background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  align-self: start;
  /* Mobile order: Will be set in media query */
  order: 3; /* Default order */
}

/* Size Selector Styles */
.size-selector {
    margin-bottom: 1.5rem;
}
.size-label {
    display: block;
    font-weight: 600; /* Bold like mockup */
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.875rem; /* 14px */
    text-transform: uppercase;
}
.size-options {
    display: flex;
    gap: 0.75rem; /* 12px */
    flex-wrap: wrap;
}
.size-button { /* Style for S, M, L, XL buttons/links */
    padding: 8px 0; /* Vertical padding */
    width: 45px; /* Fixed width */
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-dark);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    line-height: 1.5; /* Adjust line height for padding */
    transition: border-color 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
    /* Ensure it behaves like a block for link styling */
    display: inline-block;
    text-decoration: none;
}
.size-button:hover {
    border-color: var(--text-light);
    background-color: #f9f9f9; /* Slight hover effect */
    text-decoration: none; /* Prevent underline on hover */
}
/* Optional visual feedback for clicked link */
.size-button.active-link {
    border-color: var(--catalog-pink);
    background-color: var(--catalog-pink);
    color: #fff;
    box-shadow: 0 0 0 1px var(--catalog-pink);
}

.size-button:focus {
    outline: 2px solid var(--catalog-pink);
    outline-offset: 2px;
}


/* Quantity Selector Styles */
.quantity-selector {
    margin-bottom: 1.5rem;
}
.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.875rem; /* 14px */
    text-transform: uppercase;
}
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    width: fit-content; /* Adjust width to content */
    overflow: hidden; /* Clip buttons inside border */
}
.quantity-button {
    background-color: #f9f9f9;
    border: none;
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    font-weight: bold; /* Bolder +/- */
    cursor: pointer;
    line-height: 36px; /* Center vertically */
    transition: background-color 0.2s;
    text-align: center;
    padding: 0;
}
.quantity-button:hover {
    background-color: #eee;
}
.quantity-button.decrease {
    border-right: 1px solid var(--border-color);
}
.quantity-button.increase {
    border-left: 1px solid var(--border-color);
}
#quantityInput {
    width: 50px; /* Adjust width */
    height: 36px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    /* Remove spinner arrows */
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0 5px; /* Small horizontal padding */
}
#quantityInput::-webkit-outer-spin-button,
#quantityInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#quantityInput:focus {
    outline: none; /* Remove default focus outline */
}


/* Buy Button Styles (Now an <a> tag) */
.buy-button {
  display: block;
  width: 100%;
  padding: 14px 24px; /* More padding like mockup */
  background-color: var(--catalog-pink); /* Original pink color */
  color: white;
  text-align: center;
  font-size: 1rem; /* 16px */
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-small); /* Slightly rounded */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-transform: uppercase;
  margin-bottom: 1.5rem; /* Spacing before service info on desktop */
  text-decoration: none; /* Ensure no underline for link */
}
.buy-button:hover {
  background-color: #c13357; /* Darker pink */
  transform: translateY(-1px);
  text-decoration: none; /* Keep no underline on hover */
  color: white; /* Ensure text remains white */
}
.buy-button:focus {
   outline: 2px solid #c13357;
   outline-offset: 2px;
}

/* Service Info List Styles (Desktop Only) */
.service-info-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0; /* Margin top */
}
.service-info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
    margin-bottom: 0.75rem;
    font-size: 0.875rem; /* 14px */
    color: var(--text-light);
}
.service-info-list li:last-child {
    margin-bottom: 0;
}
.service-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.7; /* Slightly muted icon */
}

/* --- Categories Section --- */
.categories-section {
  padding: 4rem 0;
  background: var(--background);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
  gap: 2rem;
}

.category-card {
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.category-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem; /* 12px */
}
.category-list li {
  margin-bottom: 0; /* Handled by gap */
}
/* Use generic button style */
.category-list a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--catalog-pink);
    color: var(--catalog-pink);
    border-radius: var(--border-radius-pill);
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
    background-color: white; /* Ensure background is white initially */
    text-decoration: none; /* Remove underline from links */
}
.category-list a:hover {
  background-color: var(--catalog-pink);
  color: white;
  text-decoration: none;
}

/* --- Footer --- */
.footer {
  background-color: var(--form-bg);
  padding: 3rem 0;
  margin-top: auto; /* Pushes footer down with flexbox */
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--catalog-pink);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}
.facebook-link:hover {
    opacity: 0.8;
    text-decoration: none;
}
.facebook-icon {
  width: 24px;
  height: 24px;
}

.copyright { }
.copyright-text {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.caption {
  color: var(--text-light);
  font-size: 0.8125rem;
}


/* === Responsive Design === */

/* Apply hide/show rules based on breakpoint */
/* Using 968px as the switch point, adjust if needed */
@media (max-width: 968px) {
    .mobile-only { display: block !important; } /* Show on mobile */
     /* Adjust display type if needed (e.g., flex, grid) */
     .product-info-mobile { display: block !important; } /* Ensure block display */

    .desktop-only { display: none !important; } /* Hide on mobile */
}

/* ~~~ Large Tablets / Small Laptops (<= 1024px) ~~~ */
@media (max-width: 1024px) {
    .catalog-container {
        grid-template-columns: 150px 1fr 250px; /* Adjust column sizes */
        gap: 1rem; /* Reduce gap */
    }
    .thumbnail-sidebar {
        height: 500px; /* Adjust height potentially */
    }
    .product-details {
        padding: 1rem;
    }
    .product-info-desktop .product-style { font-size: 1.3rem; }
    .product-info-desktop .product-price { font-size: 1.15rem; }
}

/* ~~~ Tablets (<= 968px) - Major Layout Shift Point ~~~ */
@media (max-width: 968px) {
  /* --- Hero Section Stack --- */
  .hero-section {
    grid-template-columns: 1fr; /* Stack hero columns */
    gap: 1.5rem;
  }
  .left-column { order: 1; }
  .hero-image-container {
    order: 2;
    width: 100%;
    max-width: 552px; /* Limit max width */
    margin: 1.5rem auto 0; /* Center and add top margin */
  }
  /* Hero carousel responsive sizing */
  .hero-carousel.carousel-container {
      width: 100%;
      height: auto;
      aspect-ratio: 552 / 972; /* Maintain desktop aspect ratio */
      max-height: 70vh;
      display: block;
      visibility: visible;
      opacity: 1;
      margin: 0;
  }

  /* --- Catalog Layout Stack --- */
    .catalog-container {
        display: grid; /* Keep using grid for gap control */
        grid-template-columns: 1fr; /* Stack columns */
        gap: 1.5rem;
    }

    /* Re-order elements for mobile flow */
    .thumbnail-sidebar { order: 1; }
    .main-image-display { order: 2; grid-column: 1 / -1; }
    .product-details { order: 3; grid-column: 1 / -1; }

    /* Thumbnail Sidebar: Horizontal Scroll */
    .thumbnail-sidebar {
      height: 120px;
      width: 100%;
      border-radius: var(--border-radius-large);
      box-shadow: var(--shadow-md);
      overflow: hidden; /* Needed to clip arrows */
      position: relative; /* For absolute nav arrows */
    }
    .thumbnail-container {
      display: flex;
      flex-direction: row;
      overflow-x: auto;
      overflow-y: hidden;
      height: 100%; /* Takes height of sidebar */
      padding: 0.75rem 45px; /* Vertical padding, Horizontal for side navs */
      scrollbar-width: none;
      -ms-overflow-style: none;
      align-items: center; /* Vertically center thumbs */
      /* Reset desktop position/size */
      position: static;
      top: auto; bottom: auto; left: auto; right: auto;
      width: auto; /* Let flexbox determine width */
      gap: 0.75rem; /* Spacing between thumbs */
    }
    .thumbnail-container::-webkit-scrollbar { display: none; }
    .thumbnail {
      width: 80px; /* Fixed width */
      height: 96px; /* Fixed height */
      flex-shrink: 0; /* Prevent shrinking */
      margin-right: 0; /* Use gap instead */
      margin-bottom: 0;
      aspect-ratio: auto; /* Override desktop */
    }

    /* Thumbnail Nav: Horizontal Arrows */
    .thumbnail-nav {
      position: absolute;
      flex-direction: column; /* Stack button if needed, but usually not */
      height: 100%;
      width: 45px;
      top: 0;
      bottom: 0; /* Stretch vertically */
      align-items: center;
      justify-content: center;
      z-index: 10;
    }
    .thumbnail-nav-top { /* Becomes Left Nav */
      left: 0;
      border-radius: var(--border-radius-large) 0 0 var(--border-radius-large);
      background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
    }
    .thumbnail-nav-bottom { /* Becomes Right Nav */
      right: 0;
      left: auto; /* Override left */
      border-radius: 0 var(--border-radius-large) var(--border-radius-large) 0;
      background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
    }
     .thumbnail-nav button {
        transform: none; /* Reset any rotation */
        width: 32px;
        height: 32px;
        font-size: 0; /* Hide text, use pseudo-elements */
        position: relative;
     }
     /* Use pseudo-elements for horizontal arrows */
     .thumbnail-nav button::before {
        content: ''; /* Defined below */
        font-family: inherit;
        font-size: 18px;
        line-height: 1;
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        color: var(--text-dark); /* Arrow color */
     }
     #scrollUp::before { content: '◀'; }   /* Left arrow */
     #scrollDown::before { content: '▶'; } /* Right arrow */


    /* Main Image Adjustments */
    .main-image-container {
         aspect-ratio: 1 / 1.1; /* Adjust aspect ratio */
         max-height: 70vh;
    }

    /* Product Details Adjustments */
    .product-details {
        padding: 1rem; /* Less padding on mobile */
        box-shadow: none; /* Remove shadow if desired */
        border-radius: 0; /* Can remove radius */
        background: transparent; /* Match background if needed */
    }
    .buy-button {
        margin-bottom: 0; /* No service list below on mobile */
    }
}


/* ~~~ Mobile (<= 768px) ~~~ */
@media (max-width: 768px) {
  .container {
      padding: 0 1rem; /* 16px */
  }

  .section-title {
      font-size: 1.75rem; /* 28px */
      margin-bottom: 2rem; /* 32px */
  }

  /* Hero Carousel Adjustments */
  .hero-carousel.carousel-container {
      max-height: 65vh;
  }
  .carousel-nav button {
      width: 36px;
      height: 36px;
      font-size: 20px;
  }
  .carousel-history {
      bottom: 10px;
      gap: 5px;
      padding: 4px 8px;
  }
  .carousel-history img {
      width: 35px;
      height: 35px;
  }
  .price-tag {
      top: 10px;
      left: 10px;
      font-size: 0.8rem;
      padding: 4px 8px;
  }

  /* Catalog adjustments */
  .catalog-section { padding: 2rem 0; }
  .catalog-container { gap: 1rem; }

  /* Categories grid adjustment */
  .categories-grid {
    grid-template-columns: 1fr; /* Stack categories */
    gap: 1.5rem;
  }
}

/* ~~~ Small Mobile (<= 480px) ~~~ */
@media (max-width: 480px) {
  .container {
      padding: 0 0.75rem; /* 12px */
  }
  .bg-gradient {
    padding: 2rem 0;
  }

  /* Adjust hero text/form */
  .consent-text { font-size: 0.6875rem; } /* 11px */

  /* Further adjust hero carousel if needed */
  .hero-carousel.carousel-container { max-height: 60vh; }
   .carousel-nav button { width: 32px; height: 32px; font-size: 18px; }
   .carousel-history img { width: 30px; height: 30px; }
   .carousel-history { gap: 4px; }

  /* Adjust catalog */
  .catalog-header { margin-bottom: 1.5rem; }
  .catalog-title { font-size: 1.5rem; } /* 24px */
  .catalog-subtitle { font-size: 1rem; } /* 16px */

  .thumbnail-sidebar { height: 110px; }
  .thumbnail-container { padding: 0.5rem 40px; gap: 0.5rem;}
  .thumbnail { width: 70px; height: 84px; }
  .thumbnail-nav { width: 40px; }
  .thumbnail-nav button { width: 28px; height: 28px; }
  .thumbnail-nav button::before { font-size: 16px; }

  /* Mobile product info */
  .product-info-mobile { padding: 0.5rem 0.75rem; }
  .product-info-mobile .product-style { font-size: 0.9rem; }
  .product-info-mobile .product-price { font-size: 1rem; }

  /* Mobile product details */
  .product-details { padding: 0.75rem; } /* Even less padding */
  .size-selector { margin-bottom: 1rem; }
  .size-label { margin-bottom: 0.5rem; font-size: 0.8rem; }
  .size-options { gap: 0.5rem; }
  .size-button { padding: 6px 0; width: 40px; font-size: 0.875rem;}

  .buy-button { padding: 12px 20px; font-size: 0.9rem;}

  .category-card { padding: 1rem; }
  .category-title { font-size: 1.25rem; margin-bottom: 1rem; }
  .category-list a { padding: 0.4rem 0.8rem; font-size: 0.875rem; }

  .footer { padding: 2rem 0; }
  .facebook-link { font-size: 0.9rem; margin-bottom: 1rem; }
  .copyright-text { font-size: 0.8rem; }
  .caption { font-size: 0.75rem; }
}