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(1.5);
    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;
}

.croc-cart-popup button {
  background: #fff;
  color: #2f241f;
  border: 1px solid #cbb8a6;
  border-radius: 8px;
  cursor: pointer;
}

.croc-cart-popup button:hover {
  background: #f3e7d8;
}

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

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

.image-frame {
  position: relative;
}

.image-frame > .image {
  display: block;
}

.croc-slot-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.croc-slot-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.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);
}

#viewer h2,
#viewer h5 {
  color: #fff;
}

#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;
}

.selected-charm {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #cbb8a6;
  border-radius: 8px;
  background: #fffaf3;
  color: #3b2f29;
}

.selected-charm-heading {
  margin: 0 0 6px 0;
  font-size: 1rem;
}

.selected-charm-title,
.selected-charm-id,
.selected-charm-meta,
.selected-charm-description {
  margin: 4px 0;
}

.croc-slot-overlay rect {
  fill: rgba(0, 0, 0, 0.001);
  stroke: transparent;
  stroke-width: 0;
  pointer-events: all;
}

.croc-slot-overlay rect:hover,
.croc-slot-overlay rect.is-hovered {
  fill: rgba(32, 208, 96, 0.15);
}

.croc-slot-overlay rect:hover {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
}

.croc-slot-overlay rect.is-selected {
  fill: rgba(32, 208, 96, 0.22);
  stroke: #ffffff;
  stroke-width: 2.5;
}

..croc-slot-overlay rect.in-cart {
  fill: rgba(34, 197, 94, 0.22);
  stroke: rgba(22, 163, 74, 1);
  stroke-width: 3;
}

.croc-slot-checkmark {
  display: none;
  pointer-events: none;
  user-select: none;

  font-size: 36px;
  font-weight: 900;

  fill: #ffffff;
  stroke: #14532d;
  stroke-width: 6px;
  paint-order: stroke fill;

  transform-box: fill-box;
  transform-origin: center;
}

.croc-slot-checkmark.in-cart {
  display: block;
  animation: crocCartCheckPulse 1.6s ease-in-out infinite;
}

@keyframes crocCartCheckPulse {
  0% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }

  100% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .croc-slot-checkmark.in-cart {
    animation: none;
  }
}

.croc-slot-overlay rect {
  fill: rgba(0, 0, 0, 0.001);
  stroke: transparent;
  stroke-width: 0;
  pointer-events: all;
}

.croc-slot-overlay rect:hover {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
}

.croc-slot-overlay rect.in-cart {
  fill: rgba(34, 197, 94, 0.12);
  stroke: rgba(34, 197, 94, 0.9);
  stroke-width: 2;
}

.croc-cart-popup {
  position: absolute;
  z-index: 20;
  min-width: 220px;
  max-width: 280px;
  padding: 10px;
  border-radius: 10px;
  background: #fffaf3;
  color: #2f241f;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  border: 1px solid #cbb8a6;
  text-align: left;
  line-height: 1.3;
}

.croc-cart-popup-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.croc-cart-popup-meta {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 8px;
}

.croc-cart-popup-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.croc-cart-popup-qty {
  width: 70px;
  padding: 4px 6px;
}

.croc-cart-popup-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.croc-cart-popup-actions button {
  padding: 6px 8px;
}

#croc-app {
  position: relative;
}

.cart-status-bar {
  position: fixed;
  top: 20px;
  right: 70px;
  z-index: 1000;

  padding: 0;
  margin: 0;

  pointer-events: none;
}

.cart-button {
  position: relative;
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #cbb8a6;
  border-radius: 999px;
  background: #fffaf3;
  color: #2f241f;

  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  cursor: pointer;
  pointer-events: auto;
}

.cart-icon {
  font-size: 24px;
  line-height: 1;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;

  min-width: 22px;
  height: 22px;
  padding: 0 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: #e6004c;
  color: #fff;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid #fffaf3;
}

.cart-count[hidden] {
  display: none;
}

.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.cart-empty {
  padding: 16px;
  background: #fffaf3;
  border: 1px solid #cbb8a6;
  border-radius: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;

  margin-bottom: 12px;
  padding: 12px;

  background: #fffaf3;
  border: 1px solid #cbb8a6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cart-line-preview-link {
  display: inline-block;
  width: 96px;
  height: 96px;
  text-decoration: none;
}

.cart-line-preview-link:hover .cart-slot-preview {
  box-shadow: 0 0 0 2px rgba(110, 35, 42, 0.25);
}

.cart-slot-preview {
  display: block;
  width: 96px;
  height: 96px;
  border: 1px solid #cbb8a6;
  border-radius: 10px;
  background: #fff;
}

.cart-line-main {
  min-width: 0;
}

@media (max-width: 600px) {
  .cart-line {
    grid-template-columns: 80px 1fr;
    align-items: start;
  }

  .cart-line-preview-link,
  .cart-slot-preview {
    width: 80px;
    height: 80px;
  }

  

  .cart-line-controls {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 6px;
  }
}

.cart-line h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #3b2f29;
}

.cart-line-meta,
.cart-line-source {
  margin: 4px 0;
  color: #4b4038;
}

.cart-line-meta,
.cart-line-source {
  margin: 4px 0;
  color: #4b4038;
  line-height: 1.3;
}

.cart-line-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  white-space: nowrap;
}

.cart-line-qty {
  width: 70px;
  padding: 6px;
}

.cart-line-remove,
.cart-actions button {
  padding: 8px 10px;
  border: 1px solid #cbb8a6;
  border-radius: 8px;
  background: #fff;
  color: #2f241f;
  cursor: pointer;
}

.cart-line-remove:hover,
.cart-actions button:hover {
  background: #f3e7d8;
}

.cart-totals {
  margin-top: 18px;
  padding: 14px;
  background: #fffaf3;
  border: 1px solid #cbb8a6;
  border-radius: 12px;
  font-weight: 700;
}

.cart-note {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #5f5148;
}

.cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .cart-line {
    grid-template-columns: 1fr;
  }

  .cart-line-controls {
    align-items: flex-start;
  }
}