:root {
  --item--wallpaper: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSw3-58BF3Avx1fdcnz0b4xFPTCDbtmmwlemteVKvD-yiFDE_dXpPRfdsYRH4ibyzk7-vE&usqp=CAU");
  --shop--wallpaper: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSw3-58BF3Avx1fdcnz0b4xFPTCDbtmmwlemteVKvD-yiFDE_dXpPRfdsYRH4ibyzk7-vE&usqp=CAU");
}

#shop-app-container {
}

main {
  background-image: unset !important;
  background-color: var(--background-light) !important;
}

/* Screen reader only for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

#product-short-description-section {
  display: none;
}
.banner-msg {
  display: none !important;
}
/* Category Wrapper */
.category__wrapper {
  overflow-x: auto; /* Enable horizontal scrolling for small screens */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  padding: 30px;
}

/* Hide scrollbar for Webkit browsers */
.category__wrapper::-webkit-scrollbar {
  display: none;
}

.category__list {
  display: flex;
  justify-content: center; /* Center categories */
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 15px; /* Space between categories */
  flex-wrap: nowrap; /* Prevent wrapping for horizontal scroll */
  gap: 10px;
}

.category__item {
  flex-shrink: 0;
  border-radius: 30px;
  overflow: hidden;
  color: var(--color-brand);
  border: 2px solid #777;
  padding: 10px;
  backdrop-filter: blur(10px) brightness(4);
}

.category__link {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease;
  white-space: nowrap;
}

.category__link:hover,
.category__link.active {
  background-color: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

/* Items Wrapper */
.items__wrapper {
}

.search-title {
  padding: 5px;
  border-bottom: 2px solid #0d46317a;
  position: sticky;
  top: 70px;
  z-index: 5;
  font-size: 1.3rem;
  background-color: #e8f5ed;
  opacity: .8;
  font-weight: 300;
  color: #518f78;
  letter-spacing: 1px;
}
.items__grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(350px, 1fr)
  ); /* Responsive grid */
  gap: 0px;
  min-height: 100vh;
  padding: 0 2px;
}

.items__not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  h2 {
    text-align: center;
  }
}

@media (max-width: 950px) {
  .items__grid {
    grid-template-columns: repeat(
      80px,
      minmax(250px, 1fr)
    ); /* Adjust for smaller screens */
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category__list {
    justify-content: flex-start; /* Align categories to start for better horizontal scroll */
  }

  .items__grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .category__list {
    gap: 10px;
  }

  .category__link {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  .items__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .shop-item__title {
  }

  .shop-item__description {
    font-size: 0.85rem;
  }

  .shop-item__price {
    font-size: 1rem;
  }
}

/* ========================================= */
/* Shop Item Detail Component Styles */
/* self-contained CSS code that doesnt affect to other sections */
/* ========================================= */

.shop-item-detail {
  display: grid; /* Use grid for complex desktop layout */
  gap: 20px; /* Space between grid columns/rows */
  width: 100%;
  max-width: 100%; /* Example max width for the whole component */
  margin: 40px auto; /* Center the component */
  padding: 25px;
  border-radius: 8px;
  grid-template-columns: 100px 1fr 500px;
  grid-template-rows: auto; /* Rows will size based on content */
  grid-template-areas: "thumbnail-nav content-display sidebar-data";
}

@media (max-width: 950px) {
  .shop-item-detail {
    grid-template-columns: 75px 1fr 350px;
  }
}
/* SR-ONLY helper for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----------------------------------------- */
/* Column 1: Thumbnail Navigation (Gray boxes) */
/* ----------------------------------------- */
.shop-item-detail__thumbnail-nav {
  grid-area: thumbnail-nav;
  display: flex;
  flex-direction: column; /* Stack thumbnails vertically */
  gap: 10px;
  position: sticky;
  top: 100px;
  height: min-content;
}

.shop-item-detail__thumbnail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.shop-item-detail__thumbnail-item {
  flex-shrink: 0; /* Don't shrink on smaller heights */
  width: 100%;
  /* Maintain aspect ratio by using padding-bottom hack or fixed height/min-height */
  height: 90px; /* Example fixed height */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  border-radius: 25px;
}

.shop-item-detail__thumbnail-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  border-radius: 25px;
  background-image: var(--item--wallpaper);
}

.shop-item-detail__thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the area */
  display: block;
  transition: transform 0.2s ease;
}

.shop-item-detail__thumbnail-link:hover img {
  transform: scale(1.05); /* Slight zoom on hover */
}

/* ----------------------------------------- */
/* Column 2: Content Display (Middle Section - Red/White boxes) */
/* ----------------------------------------- */
.shop-item-detail__content-display {
  grid-area: content-display;
  display: flex;
  flex-direction: column; /* Stack content blocks vertically */
  gap: 20px; /* Space between content blocks */
  margin-top: 35px;
  /* No specific background here, content blocks will have their own */
}

.shop-item-detail__content-block {
  min-height: 200px; /* Minimum height for each content block */
  max-height: 60vh;
  flex-grow: 1; /* Allow blocks to grow */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-sizing: border-box;
  overflow: hidden; /* Hide overflowing content, especially for media */
  position: relative; /* For scroll-to targets */
}

/* Specific styling for the first content block (main image visual) */
.shop-item-detail__content-display #main-visual-section {
  /*! background-color: #800000; */ /* Red box as per image */
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--item--wallpaper);
  background-image: var(--item--wallpaper);
  background-size: cover;
  box-shadow: inset 0px 0px 48px black;
  border-radius: 25px;
  /*! filter: url('https://png.pngtree.com/png-clipart/20240626/original/pngtree-distorted-black-and-white-analog-glitch-texture-with-overlayed-distressed-effect-png-image_15416968.png') !important; */
}

.shop-item-detail__media-element {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 100%;
  background-image: var(--item--wallpaper);
  background-size: cover;
  box-shadow: inset 0 0 50px #000000b0;
  border-radius: 25px;
}
.shop-item-detail__product-title::first-letter {
  text-transform: uppercase;
  font-weight: bold;
}
.shop-item-detail__text-content {
  color: #f7ebe0; /* Dark text on white background */
  font-size: 1.1em;
  line-height: 1.6;
  max-height: 100%; /* Ensure text doesn't overflow if container has limited height */
  overflow-y: auto; /* Enable scrolling for long text */
}
.shop-item-detail__text-content h3 {
  margin-top: 0;
  font-size: 1.4em;
  color: #fffecc;
}
.shop-item-detail__text-content ul {
  list-style: disc;
  margin-left: 20px;
}

.shop-item-detail__content-description {
  font-size: 0.9em;
  color: #555;
  margin-top: 10px;
  position: absolute;
  bottom: 25px;
  color: #fff;
  background: #0b090969;
  padding: 5px 25px;
  width: 100%;
  text-align: center;
  letter-spacing: 3px;
}

/* ----------------------------------------- */
/* Column 3: Sidebar Data (Right Section - Blue boxes, CTA) */
/* ----------------------------------------- */
.shop-item-detail__sidebar-data {
  grid-area: sidebar-data;
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  gap: 15px; /* Space between sidebar sections */
  padding: 5px; /* Little padding around the sidebar content */
  position: sticky;
  top: 100px;
  height: calc(100vh - 150px);
}

.shop-item-detail__product-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-direction: column;
  gap: 10px;
  text-align: start;
}
.shop-item-detail__product-title {
  margin: 0;
  font-size: 2.8em;
  font-weight: 700;
  flex-grow: 1;
  letter-spacing: 0px;
  text-align: start;
}

.shop-item-detail__product-price {
  font-size: 2.5rem;
  font-weight: 500;
  white-space: nowrap;
  width: 100%;
  letter-spacing: 0px;
  color: #888;
  font-family: var(--font-family-subtitle);
}

.shop-item-detail__description {
  color: white;
  font-size: 1em;
  line-height: 1.2;
  overflow-y: auto; /* Enable scrolling for long descriptions */
  max-height: 198px;
}

.shop-item-detail__description p {
  color: #666;
  font-weight: 300;
  overflow: hidden;
  font-family: var(--font-family-subtitle);
  width: 80%;
}

.shop-item-detail__characteristics {
  display: flex;
  flex-direction: column;
  max-height: max-content;
}

.shop-item-detail__characteristic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-content: flex-start;
  width: 100%;
  padding: 15px 0 0 0;
}

.shop-item-detail__variants {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0 0 0;
  .variant-options.variant-options--sizes {
    display: flex;
    gap: 10px;
    border-radius: 0px;
    flex-wrap: wrap;
  }

  .variant-options {
    padding: 0 0 15px 0;
    display: flex;
    gap: 10px;
  }

  .variant-options.variant-options--colors {
    display: flex;
    gap: 10px;

    button {
      padding: 20px;
      border: 2px solid white;
    }
  }

  .variant-option.unavailable {
    opacity: 0.6;
  }

  button.variant-option {
    border-radius: 10px;
    border-width: 0px;
    padding: 15px;
    border: 2px solid var(--button-backgroud);
  }
  .variant-option.selected {
    border: 2px solid #0877c7 !important;
  }
}

.variant-heading {
  font-style: unset;
  font-weight: 400;
  font-size: 1.2rem;
  opacity: 0.8;
}

.variant-stock {
  color: var(--color-brand);
}

.shop-item-detail__characteristic-item {
  background-color: #555453ad; /* Light blue for characteristics boxes */
  border: 1px solid #000; /* Black border for boxes */
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
  color: #fff;
  white-space: nowrap; /* Prevent text from wrapping within a box */
  /* Min/max width to control box sizing */
  min-width: 60px;
  text-align: center;
  box-sizing: border-box;
  flex-grow: 1; /* Allow items to grow to fill space */
  flex-basis: auto; /* Allow items to determine their own base size */
  max-width: calc(50% - 4px); /* Example: 2 items per row, considering gap */
}

.shop-item-detail__cta-area {
  display: flex;
  align-items: end;
  flex-shrink: 0;
  border-radius: 25px;
  gap: 10px;
  flex-grow: 1;
  width: 80%;
}

.shop-item-detail__cta-button {
  display: block;
  color: #222; /* Darker green for the button itself */
  background-color: #fff0de;
  text-decoration: none;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 0.2222222222em;
  font-weight: 400;

  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  width: 100%;
}

.cta-area__buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.cta-button--secondary {
  background-color: #333;
  color: #fff0de;
  width: min-content;
}

.shop-item-detail__cta-button:hover {
  transform: scale(0.95) translateY(-2px);
}

/* ========================================= */
/* Mobile Responsiveness (max-width: 768px) */
/* ========================================= */
@media (max-width: 768px) {
  .shop-item-detail {
    /* Mobile: Switch to a single column flex layout */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduce gap for mobile */
    padding: 15px;
  }

  /* Column 1: Thumbnail Navigation - Invisible/Non-Displayed */
  .shop-item-detail__thumbnail-nav {
    display: none; /* Hide the desktop thumbnail column */
  }

  /* Columns 2 & 3: Now full width and stacked */
  .shop-item-detail__content-display,
  .shop-item-detail__sidebar-data {
    width: 100%;
    grid-column: auto; /* Reset grid column */
    grid-row: auto; /* Reset grid row */
    /* Ensure they maintain their internal column structures as per image_a75428.png */
    display: flex; /* These are already flex columns internally */
    gap: 15px; /* Adjust internal gaps */
    height: unset;
  }
  .shop-item-detail__content-display {
    flex-direction: row;
    overflow-x: scroll;
  }

  /* Specific adjustments for mobile content blocks */
  .shop-item-detail__content-block {
    min-width: 100dvw; /* Smaller min height for mobile blocks */
    border: none; /* Remove border for the main image block if it's the very first element visually */
  }
  /* If you want the first content block to appear like the first image in mobile layout */
  .shop-item-detail__content-display section:first-child {
    border: none; /* No border for the top main image in mobile */
    padding: 0; /* No padding if image is full bleed */
  }

  .shop-item-detail__media-element {
  }

  /* Adjustments for sidebar elements in mobile */
  .shop-item-detail__product-header,
  .shop-item-detail__description,
  .shop-item-detail__characteristics,
  .shop-item-detail__cta-area {
    width: 100%; /* Take full width */
    box-sizing: border-box;
  }

  .shop-item-detail__product-header {
    flex-direction: column; /* Stack title and price */
    align-items: flex-start;
  }
  .shop-item-detail__product-title {
    font-size: 2.5em;
  }
  .shop-item-detail__product-price {
    font-size: 2em;
  }

  .shop-item-detail__characteristic-item {
    max-width: calc(50% - 4px); /* Keep 2 items per row, or adjust as needed */
    padding: 6px 10px;
    font-size: 0.85em;
  }

  .shop-item-detail__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 0.2222222222em;
  }
}

/* Optional: Additional breakpoint for smaller mobiles if needed */
@media (max-width: 480px) {
  .shop-item-detail__characteristic-item {
    max-width: 100%; /* Stack characteristics on very small screens */
  }
}
