body {
  font-family: sans-serif;
}
html {
  max-width: 100vw;
  overflow-x: hidden;
}
.result-count {
  margin: 8px 0 12px 0;
  font-size: 14px;
  opacity: 0.8;
}
#thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  overflow: visible !important;
}

.thumb-wrapper {
  position: relative;
  width: 150px;
  overflow: visible; /* allow zoom to spill out */
}

.thumb {
  width: 100%;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {

  #thumbnails .thumb-wrapper:hover {
    z-index: 10;
  }

  #thumbnails .thumb-wrapper:hover .thumb {
    transform: scale(2);
    object-fit: contain;
    background: #fffaf3;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  }

  .hero-feature-thumb:hover {
    transform: scale(2);
    z-index: 20;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
}

.thumb-id {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #222;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  position: static;
  padding: 0;
  border-radius: 0;
}

.thumb-wrapper:hover .thumb-id {
  opacity: 1;
}

.viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  color: white;

  display: none;              /* 🔑 THIS MUST BE HERE */
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.viewer .content {
  max-width: 600px;
  text-align: center;
}

.viewer .content .price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  color: white;
}

.viewer button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

#prev, #next {
  font-size: 36px;
}

.viewer img {
  max-width: 100%;
}

.viewer .close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
}
.description {
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: 15px;
  opacity: 0.9;
}

#search {
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  margin-bottom: 16px;
  font-size: 16px;
}



.sku {
  font-size: 18px;
  opacity: 0.6;
  margin-top: -6px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 64px;
  width: auto;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: bold;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
}

#croc-app #thumbnails {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

#croc-app .thumb-wrapper {
  width: 240px;
}

#croc-app .thumb-id {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.image-wrap {
  position: relative;
  background: #111; /* fallback behind image */
}

.image-loading {
  position: absolute;
  inset: 0;
  display: none;

  align-items: center;
  justify-content: center;

  font-size: 1rem;
  letter-spacing: 0.5px;

  color: #e5e5e5;
  background: rgba(0, 0, 0, 0.75); /* dark overlay */
  z-index: 2;
}

/* Optional: subtle animation */
.image-loading::after {
  content: " …";
  animation: dots 1.2s infinite;
}

@keyframes dots {
  0% { content: " ."; }
  33% { content: " .."; }
  66% { content: " ..."; }
}

.image-wrap.loading .image-loading {
  display: flex;
}

.image-wrap.loading .image {
  visibility: hidden;
}

#caps-app #thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#caps-app .thumb-wrapper {
  width: 175px;
  margin: 0;
}

#caps-app .thumb {
  width: 175px;
  height: 175px;
  object-fit: cover;
  display: block;
}

#caps-app .thumb-id {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
}
/* =========================
   HOMEPAGE LAYOUT TUNING
   ========================= */

/* Reduce header vertical footprint */
header .container {
  padding-top: 0.75rem !important;
  padding-bottom: 0.5rem !important;
}

header img {
  max-height: 130px !important;
}

header h2 {
  font-size: 1.35rem;
  margin-bottom: 0;
}

/* Tighten intro */
.home-title {
  margin: 0 auto 0.75rem;
  font-size: 1.05rem;
}

.home-intro {
  max-width: 760px;
  margin: 0 auto 1rem;
  text-align: center;
}

/* Reduce overly wide content */
.container {
  max-width: 1100px;
}

/* Product cards */
.product-card {
  height: 100%;
}

.product-card .card-body {
  padding: 1rem;
}

/* Featured (top) categories */
.feature-card h5 {
  margin-bottom: 0.35rem;
}

.feature-card p {
  margin-bottom: 0.75rem;
}

/* Make top sections feel less "full width" */
.feature-row {
  margin-bottom: 0.5rem;
}

/* Compact buttons + search row */
.tote-cta-row {
  gap: 8px;
}

/* Secondary products spacing */
.secondary-products {
  margin-top: 1rem;
}

/* Optional: tighten vertical rhythm globally */
.card {
  margin-bottom: 0.5rem;
}

:root {
  --primary: #8b2e37;    /* cranberry red */
  --secondary: #bfa58a;  /* warm beige */
  --accent: #4e3b31;     /* dark wood brown */
  --light-bg: #f8f1e7;   /* soft cream */
}

body {
  background-color: var(--light-bg);
}

h2, h5 {
  color: var(--accent);
}

#thumbnails .thumb-wrapper {
  overflow: visible !important;
  position: relative;
}



    .navbar, .card-header {
      background-color: var(--primary) !important;
    }

    .navbar-brand, .nav-link, .card-header {
      color: white !important;
      font-weight: 600;
    }

    .product-card {
      border-color: var(--secondary);
    }

    .btn-theme {
      background-color: var(--primary);
      color: white;
    }

    .btn-theme:hover {
      background-color: #6e232a;
      color: #fff;
    }
    .home-totes {
      margin: 0rem 0;
    }

    .tote-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .mini-search input {
      padding: 8px 10px;
      font-size: 14px;
    }

    .mini-search button {
      padding: 8px 12px;
      font-size: 14px;
    }
    .home-title {
      margin: 0 auto 14px;
      font-size: 1.2rem;
      font-weight: 500;
      font-style: italic;
      color: #444;
      text-align: center;
      max-width: 700px;   /* prevents overly wide line */
    }
    .home-hero {
      padding: 0.75rem 0 0.5rem;
    }

    .hero-inner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
    }

    .hero-logo-link {
      flex: 0 0 auto;
    }

    .hero-logo {
      max-height: 180px;
      width: auto;
      object-fit: contain;
      transition: max-height 700ms ease;
    }

    .home-hero.compact .hero-logo {
      max-height: 95px;
    }


    .home-hero.compact .hero-slideshow {
      display: block;
    }

    .hero-slideshow a {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 0.75rem;
      align-items: center;
      text-decoration: none;
      color: inherit;
      background: #fffaf3;
      border: 1px solid var(--secondary);
      border-radius: 12px;
      padding: 0.75rem;
      box-shadow: 0 0.125rem 0.35rem rgba(0,0,0,0.12);
    }

    .hero-slideshow img {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 10px;
    }

    .hero-welcome {
      text-align: center;
      font-size: 1.25rem;
      margin: 0.4rem 0 0;
    }

    @media (max-width: 700px) {
      .hero-inner {
        flex-direction: column;
      }

      .home-hero.compact .hero-logo {
        max-height: 110px;
      }

      .hero-slideshow {
        width: 100%;
      }

      .hero-slideshow a {
        grid-template-columns: 96px 1fr;
      }

      .hero-slideshow img {
        width: 96px;
        height: 96px;
      }
    }  
    

    .hero-slideshow img {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 10px;
    }

.hero-category-feature {
  flex: 1 1 auto;
  max-width: 560px;
}

.hero-feature-thumbs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: visible;
}

.hero-feature-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center center;
}

.hero-logo {
  max-height: 130px !important;
  max-width: 260px !important;
}

.market-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin: 1.25rem 0 1.75rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.market-showcase-copy {
  max-width: 36rem;
}

.market-showcase-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.75;
}

.market-showcase h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.market-showcase-copy p {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.market-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.market-showcase-images {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem;
  align-items: center;
}

.market-showcase-images figure {
  margin: 0;
}

.market-showcase-images img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.9rem;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.16);
}

.market-showcase-images figure:first-child img {
  aspect-ratio: 3 / 2;
  max-height: 440px;
}

.market-showcase-images figure:nth-child(2) img {
  aspect-ratio: 1 / 1;
  max-height: 300px;
}

@media (max-width: 767px) {
  .market-showcase {
    display: block;
    margin: 1rem 0 1.5rem;
    padding: 0.85rem;
  }

  .market-showcase-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .market-showcase-actions .btn {
    width: 100%;
  }

  .market-showcase-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
  }

  .market-showcase-images figure {
    margin: 0;
  }

  .market-showcase-images figure:nth-child(2) {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }

  .market-showcase-images img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }
}

.market-showcase-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 0.9rem;
}

.market-showcase-image-button img {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .market-showcase-image-button:hover img,
  .market-showcase-image-button:focus-visible img {
    transform: scale(1.035);
    box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.22);
  }
}

.market-showcase-image-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.market-image-modal-content {
  border-radius: 1rem;
  overflow: hidden;
}

.market-image-modal-content .modal-body {
  padding: 0;
  background: #111;
}

.market-image-modal-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}