/* Trophy House Modern Storefront Enhancements */

:root {
  --fm-primary: #ec3237;
  --fm-primary-dark: #d42b30;
  --fm-secondary: #d42b30;
  --fm-accent: #ec3237;
  --fm-gradient-1: linear-gradient(135deg, #ec3237 0%, #d42b30 100%);
  --fm-gradient-2: linear-gradient(135deg, #d42b30 0%, #b82428 100%);
  --fm-gradient-3: linear-gradient(135deg, #ec3237 0%, #c9282d 100%);
  --fm-gradient-hero: linear-gradient(135deg, rgba(236,50,55,.95) 0%, rgba(212,43,48,.9) 100%);
  --fm-glass: rgba(255,255,255,.72);
  --fm-shadow: 0 10px 40px rgba(15,23,42,.08);
  --fm-radius: 16px;
}

body { scroll-behavior: smooth; }

/* Section backgrounds */
.section-hero { background: var(--fm-gradient-hero); color: #fff; }
.section-featured { background: linear-gradient(180deg, #fff 0%, #fff5f5 100%); }
.section-trending { background: linear-gradient(180deg, #fff 0%, #fef2f2 100%); }
.section-categories { background: linear-gradient(135deg, #fff 0%, #fff5f5 100%); }
.section-offers { background: #1a1a1a; color: #fff; }
.section-testimonials { background: linear-gradient(180deg, #fff5f5 0%, #fef2f2 100%); }
.section-newsletter { background: var(--fm-gradient-1); color: #fff; }
.section-footer { background: #1a1a1a; color: #e5e5e5; }
.section-footer .widget-title { color: #ec3237; }
.section-footer .nav-link { color: #e5e5e5; }
.section-footer .nav-link:hover { color: #ec3237; }
#footer-bottom { background: #111; color: #999; border-top: 1px solid rgba(236, 50, 55, 0.25); }

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Glass cards */
.glass-card {
  background: var(--fm-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--fm-radius);
  box-shadow: var(--fm-shadow);
}

/* Product cards enhanced */
.product-item {
  position: relative;
  border-radius: var(--fm-radius);
  background: #fff;
  box-shadow: var(--fm-shadow);
  padding: 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15,23,42,.12);
}
.product-item figure img,
.product-card-media img {
  border-radius: 12px;
  transition: transform .4s ease;
  object-fit: cover;
  aspect-ratio: 1;
  width: 100%;
}
.product-item:hover figure img,
.product-box:hover .product-card-media img { transform: scale(1.05); }

/* Uniform product boxes + horizontal scroll */
.product-scroll-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.product-scroll-track::-webkit-scrollbar {
  height: 6px;
}
.product-scroll-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.product-scroll-item {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  scroll-snap-align: start;
}
.product-scroll-track .product-item.product-box {
  width: 100%;
  height: 360px;
  margin-bottom: 0;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.product-scroll-track .product-item:hover {
  transform: translateY(-4px);
}
.product-scroll-track .product-discount-badge {
  font-size: 0.65rem;
  z-index: 3;
}
.product-scroll-track .btn-wishlist {
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
}
.product-scroll-track .product-card-media {
  flex: 0 0 150px;
  height: 150px;
  margin: 0 0 0.5rem;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-scroll-track .product-card-media img {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: contain;
  aspect-ratio: auto;
}
.product-scroll-track .product-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.product-scroll-track .product-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-scroll-track .product-card-title a {
  color: #1e293b;
}
.product-scroll-track .qty {
  font-size: 0.7rem;
  line-height: 1.2;
}
.product-scroll-track .rating {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.product-scroll-track .product-price-block {
  min-height: 2.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
.product-scroll-track .price-old {
  font-size: 0.75rem;
  line-height: 1.2;
  min-height: 1.2em;
}
.product-scroll-track .price-old.invisible {
  visibility: hidden;
  min-height: 1.2em;
}
.product-scroll-track .price-current {
  font-size: 1rem;
  line-height: 1.25;
  display: block;
}
.product-scroll-track .product-card-footer {
  flex: 0 0 auto;
  margin-top: 0.5rem;
  padding-top: 0;
}
.product-scroll-track .product-card-footer .btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

/* Swiper carousel: same uniform box */
.products-carousel .swiper-slide {
  height: auto;
  width: 220px;
}
.products-carousel .product-item.product-box {
  height: 360px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}
.products-carousel .product-card-media {
  flex: 0 0 150px;
  height: 150px;
  margin: 0 0 0.5rem;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.products-carousel .product-card-media img {
  object-fit: contain;
  max-height: 150px;
}
.products-carousel .product-card-title {
  font-size: 0.875rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.6em;
}
.products-carousel .product-price-block {
  min-height: 2.75rem;
}

/* Product box layout (grid pages) */
.product-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-box .product-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product-box .product-price-block {
  min-height: 2.75rem;
  margin-top: auto;
}
.product-box .product-card-footer {
  margin-top: 0.5rem;
}
.product-box .product-card-title {
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-box .product-card-desc {
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0.15rem 0 0.35rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}
.product-box .price-old.invisible {
  visibility: hidden;
  min-height: 1.2em;
  display: block;
}

/* Home page minimal cards */
.product-box--home {
  padding: 0.5rem;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.product-box--home:hover {
  transform: none;
  box-shadow: none;
}
.product-box--home .product-card-media {
  margin: 0 0 0.55rem;
  border-radius: 0;
  background: #f8fafc;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-box--home .product-card-media img {
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.products-carousel .product-item.product-box.product-box--home,
.product-scroll-track .product-item.product-box.product-box--home {
  height: 430px;
  min-height: 430px;
  padding: 0.3rem;
}
.products-carousel .product-box--home .product-card-body,
.product-scroll-track .product-box--home .product-card-body {
  overflow: visible;
  min-height: auto;
}
.products-carousel .product-box--home .product-card-media,
.product-scroll-track .product-box--home .product-card-media {
  height: 320px;
  flex: 0 0 auto;
  margin: 0 0 0.55rem;
}
.products-carousel .product-box--home .product-card-media img,
.product-scroll-track .product-box--home .product-card-media img {
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.product-box--home .product-card-body {
  gap: 0.2rem;
  padding: 0;
  justify-content: space-between;
}
.product-box--home .product-card-title {
  margin: 0;
  min-height: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  -webkit-line-clamp: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.product-box--home .product-price-block {
  min-height: 2.2rem;
  margin-top: 0;
  padding-top: 0;
  overflow: visible;
}
.product-price-hover {
  position: relative;
}
.home-card-price-link {
  display: inline-block;
  width: auto;
  text-align: left;
  background: transparent;
  color: #111;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0;
  margin: 0;
  line-height: 1.3;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.home-card-price-value {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.home-card-price-link::after {
  content: attr(data-after);
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: #111;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.product-price-hover:hover .home-card-price-value,
.product-price-hover:focus-within .home-card-price-value {
  opacity: 0;
  transform: translateY(-8px);
}
.product-price-hover:hover .home-card-price-link::after,
.product-price-hover:focus-within .home-card-price-link::after {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 767px) {
  .home-card-price-value {
    opacity: 1;
    transform: none;
  }
  .home-card-price-link::after {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Home sections: make cards larger like reference */
.section-home-showcase .products-carousel .swiper-slide {
  width: 270px;
}
.section-home-showcase .product-scroll-track .product-scroll-item {
  flex: 0 0 270px;
  width: 270px;
  min-width: 270px;
}

/* Product detail related list: show full product image */
.related-products-grid .product-box--home .product-card-media {
  background: #fff;
}
.related-products-grid .product-box--home .product-card-media img {
  object-fit: contain;
  aspect-ratio: auto;
  width: 100%;
  height: 220px;
}

.product-variant-picker {
  margin: 0.35rem 0 0.5rem;
}
.product-variant-picker--detail {
  margin: 0.75rem 0 1.25rem;
}
.product-variant-picker-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fm-muted, #64748b);
  margin-bottom: 0.35rem;
}
.product-variant-picker--detail .product-variant-picker-label {
  font-size: 0.75rem;
  margin-bottom: 0.55rem;
}
.product-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.product-variant-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.product-variant-chip:hover {
  border-color: #ec3237;
  color: #ec3237;
}
.product-variant-chip.is-active {
  background: #ec3237;
  border-color: #ec3237;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(236, 50, 55, 0.25);
}

/* Product detail — clickable option tiles */
.product-variant-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.55rem;
}
.product-variant-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.product-variant-tile:hover {
  border-color: #ec3237;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.product-variant-tile.is-active {
  border-color: #ec3237;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
  box-shadow: 0 0 0 1px #ec3237, 0 8px 20px rgba(236, 50, 55, 0.18);
}
.product-variant-tile-name {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.product-variant-tile-size {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
}
.product-variant-tile-size--solo {
  font-weight: 600;
  color: #334155;
}
.product-variant-tile-price {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ec3237;
}

/* Fallback dropdown — visible border + chevron */
.product-variant-select-wrap {
  position: relative;
  max-width: 100%;
}
.product-variant-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.35rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  pointer-events: none;
}
.product-variant-select.product-variant-select--styled {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background-color: #fff;
  padding: 0.55rem 2.25rem 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-variant-picker--card .product-variant-select.product-variant-select--styled {
  padding: 0.35rem 2rem 0.35rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 8px;
}
.product-variant-select.product-variant-select--styled:hover,
.product-variant-select.product-variant-select--styled:focus {
  border-color: #ec3237;
  box-shadow: 0 0 0 3px rgba(236, 50, 55, 0.12);
  outline: none;
}

.btn-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-wishlist:hover, .btn-wishlist.active {
  background: #fde8e9;
  color: #ec3237;
  transform: scale(1.1);
}
.btn-wishlist.active svg { fill: #ec3237; stroke: #ec3237; }

/* Cart disabled
.btn-add-cart {
  border-radius: 999px;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-add-cart:hover { transform: scale(1.03); }
*/

/* ─── Minimal site header (logo | nav | actions) ─── */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(236, 50, 55, 0.12);
  position: sticky;
  top: 0;
  z-index: 1030;
  overflow: visible;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.65rem 0;
}

.site-header-brand {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-header-logo {
  height: 55px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.site-header-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}

.site-header-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222222;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.35rem;
  border: none;
  background: none;
}

.site-header-link:hover,
.site-header-link:focus {
  color: #ec3237;
}

.site-header-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.25rem;
  height: 3px;
  margin-left: -0.625rem;
  background: #ec3237;
  border-radius: 2px;
}

.site-header-link.dropdown-toggle::after {
  margin-left: 0.35rem;
  vertical-align: 0.2em;
  border-top-color: #222222;
}

.site-header-dropdown {
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  padding: 0.5rem;
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
}

.site-header-dropdown .dropdown-item {
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 0.85rem;
}

.site-header-dropdown .dropdown-item:hover,
.site-header-dropdown .dropdown-item:focus {
  background: #fde8e9;
  color: #ec3237;
}

.site-header-dropdown .dropdown-item.active {
  background: #fde8e9;
  color: #ec3237;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #222222;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.site-header-icon:hover {
  color: #ec3237;
  transform: scale(1.06);
}

.site-header-icon .header-badge {
  top: 2px;
  right: 2px;
}

.site-header-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.35rem;
  border: 1.5px solid #222222;
  border-radius: 999px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222222;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.site-header-login-btn:hover {
  background: #ec3237;
  border-color: #ec3237;
  color: #fff;
}

.site-header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(236, 50, 55, 0.35);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  color: #ec3237;
  font-size: 1.65rem;
  line-height: 1;
  flex-shrink: 0;
}

.site-header-toggle:hover,
.site-header-toggle:focus {
  background: #fde8e9;
  color: #d42b30;
}

.site-header-offcanvas {
  z-index: 1055;
  width: min(320px, 88vw);
}

.site-header-offcanvas .offcanvas-header,
.site-header-offcanvas .offcanvas-body {
  background: #fff;
  color: #222;
}

.site-header-offcanvas .offcanvas-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: #222222;
}

.site-header-mobile-menu {
  position: relative;
  z-index: 1;
}

.site-header-mobile-link {
  display: block;
  width: 100%;
  padding: 0.65rem 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #222222;
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 50, 55, 0.1);
}

.site-header-mobile-link.is-active {
  color: #ec3237;
}

.site-header-mobile-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #fff !important;
  color: #222 !important;
  cursor: pointer;
}

.site-header-mobile-toggle[aria-expanded="true"] .site-header-mobile-chevron {
  transform: rotate(180deg);
}

.site-header-mobile-chevron {
  font-size: 0.9rem;
  color: #ec3237;
  transition: transform 0.2s ease;
}

.site-header-mobile-sub {
  padding-bottom: 0.5rem;
}

.site-header-mobile-sublink {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
}

.site-header-mobile-sublink:hover {
  color: #ec3237;
}

.site-header-search .form-control {
  border-radius: 999px;
  border-color: rgba(236, 50, 55, 0.2);
}

@media (max-width: 991.98px) {
  .site-header-inner {
    min-height: 64px;
    gap: 0.5rem;
  }

  .site-header-logo {
    height: 38px;
    max-width: 120px;
  }

  .site-header-actions {
    gap: 0.35rem;
  }

  .site-header-login-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
  }

  .site-header-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .site-header-login-btn {
    display: none;
  }
}

/* Compact inline nav (legacy) */
.compact-nav-row {
  border-top: 1px solid #eee;
}
.compact-nav .compact-nav-desktop {
  overflow-x: auto;
  scrollbar-width: thin;
}
.compact-nav .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  padding: 0.25rem 0.5rem !important;
  line-height: 1.3;
}
.compact-nav .nav-link:hover {
  color: var(--fm-primary, #ec3237);
}
.compact-nav-select {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  padding: 0.2rem 1.5rem 0.2rem 0.4rem;
  border: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 12px;
  max-width: 11rem;
  flex-shrink: 0;
  cursor: pointer;
}
.compact-nav .navbar-toggler {
  padding: 0.2rem 0.4rem;
}
.compact-nav .navbar-toggler-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Header badges */
.header-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  transition: all .2s ease;
  text-decoration: none;
  color: inherit;
}
.header-icon-link:hover {
  background: var(--fm-primary);
  color: #fff;
  transform: translateY(-2px);
}
.header-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ec3237;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--fm-gradient-1);
  padding: 2rem 0;
}
.auth-card {
  border-radius: var(--fm-radius);
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  border: none;
  overflow: hidden;
}
.auth-card .card-header {
  background: transparent;
  border: none;
  padding: 2rem 2rem 0;
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { height: 320px; border-radius: var(--fm-radius); }

/* Empty states */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--fm-radius);
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #fde8e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Product gallery */
.product-gallery-main img {
  border-radius: var(--fm-radius);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.product-gallery-thumb.active, .product-gallery-thumb:hover {
  border-color: var(--fm-primary);
}

/* Reviews */
.star-rating { color: #ec3237; letter-spacing: 2px; }
.review-card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: box-shadow .2s;
}
.review-card:hover { box-shadow: var(--fm-shadow); }

/* Shop filters */
.shop-toolbar {
  background: #fff;
  border-radius: var(--fm-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--fm-shadow);
  margin-bottom: 1.5rem;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: .4rem 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.filter-pill-icon {
  font-size: 1rem;
  line-height: 1;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--fm-primary);
  color: #fff;
  border-color: var(--fm-primary);
}
.filter-pill:hover .filter-pill-icon,
.filter-pill.active .filter-pill-icon {
  color: inherit;
}

/* Category carousel — Bootstrap Icons */
.category-item .icon-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fde8e9;
  color: var(--fm-primary, #ec3237);
}
.category-item .category-icon {
  font-size: 2.25rem;
  line-height: 1;
}
.category-carousel .category-item .image-holder {
  display: none;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--fm-radius);
  padding: 2rem;
  box-shadow: var(--fm-shadow);
  height: 100%;
  transition: transform .3s;
}
.testimonial-card:hover { transform: translateY(-4px); }

/* Newsletter */
.newsletter-form .form-control {
  border-radius: 999px 0 0 999px;
  border: none;
  padding: .75rem 1.25rem;
}
.newsletter-form .btn {
  border-radius: 0 999px 999px 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Error / 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  background: var(--fm-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Cart disabled
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}
*/

/* Spinner overlay */
.store-loading {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

/* Lazy load fade */
img.lazy-load { opacity: 0; transition: opacity .4s; }
img.lazy-load.loaded { opacity: 1; }

@media (max-width: 767px) {
  .product-item { margin-bottom: .5rem; }
}
