/* ===========================
   E-Commerce Custom Styles
   =========================== */

:root {
  --brand-ink: #241f1a;
  --brand-paper: #f4efe7;
  --brand-sand: #d9c7af;
  --brand-cocoa: #4b3a2a;
  --brand-clay: #9f6f3c;
  --brand-accent: #3f5b4b;
  --brand-muted: #746a5f;
  --brand-border: #e6ddd0;
  --radius-lg: 22px;
  --radius-md: 14px;
}

body.site-body {
  font-family: 'Sora', sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 10% 8%, #f8f1e8 0%, transparent 35%),
    radial-gradient(circle at 90% 2%, #efe5d8 0%, transparent 28%),
    #fdfaf6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-wordmark,
.section-title,
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.announcement-bar {
  background: linear-gradient(90deg, #32261e 0%, #46362c 100%);
  font-size: 0.78rem;
}

.site-header {
  backdrop-filter: blur(10px);
}

.main-nav {
  border-bottom: 1px solid rgba(230, 221, 208, 0.8);
  background-color: rgba(255, 255, 255, 0.95);
}

.logo-wordmark {
  color: var(--brand-cocoa);
  font-size: 1.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link {
  color: #44372d;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-clay) !important;
}

.btn-accent {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
  background: #324a3d;
  border-color: #324a3d;
  color: #fff;
}

.btn-soft {
  border-color: var(--brand-border);
  color: #56493d;
}

.btn-soft:hover,
.btn-soft:focus {
  border-color: var(--brand-sand);
  background: #f9f4ec;
  color: #3d3129;
}

.hero-section {
  padding: 1rem 0 0.5rem;
}

.hero-slide {
  min-height: 620px;
  border-radius: 30px;
  margin: 0 14px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(120deg, rgba(24, 18, 14, 0.92), rgba(45, 33, 26, 0.76)),
    var(--hero-image, url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1600&q=80')) center/cover no-repeat;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  opacity: 0.4;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1rem;
}

.hero-title {
  line-height: 0.9;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  line-height: 1.7;
}

.hero-side-stack {
  display: grid;
  gap: 0.9rem;
}

.hero-mini-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
  padding: 1.1rem 1.2rem;
}

.hero-mini-card span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-mini-card h6 {
  margin: 0.25rem 0;
  font-size: 1.28rem;
  color: #fff;
}

.hero-mini-card a {
  font-size: 0.82rem;
  color: #f4dbc1;
}

.stats-section {
  background: linear-gradient(90deg, #3e2d21 0%, #5f4636 100%);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-subtitle {
  color: var(--brand-muted);
}

.collection-tile {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--brand-border);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.collection-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(67, 49, 37, 0.14);
}

.featured-section,
.bestsellers-section,
.brands-section {
  background: linear-gradient(180deg, #fbf7f1 0%, #f5eee4 100%);
}

.product-tile {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--brand-border);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.product-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(63, 43, 29, 0.16) !important;
}

.product-image-wrap {
  overflow: hidden;
  background: #f7f3ec;
}

.product-img {
  transition: transform 0.35s ease;
}

.product-tile:hover .product-img {
  transform: scale(1.05);
}

.product-name {
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-name a {
  color: #332b24;
}

.product-price-row .text-primary {
  color: var(--brand-clay) !important;
}

.product-tile .wishlist-btn {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
}

.trust-section {
  background: #fff;
}

.testimonial-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border) !important;
}

.grayscale-hover {
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.grayscale-hover:hover {
  filter: grayscale(0);
  opacity: 1;
}

.site-footer {
  background:
    radial-gradient(circle at 15% 15%, #5a4636 0%, transparent 30%),
    linear-gradient(120deg, #241b15 0%, #1a130f 100%);
}

.mega-dropdown {
  position: static;
}

.mega-menu {
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-top: 0.95rem;
}

.mega-menu-inner {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.mega-menu-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  color: #3f3127;
}

.mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: #4f4034;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega-link:hover {
  background: #f9f3ea;
  color: #2f241c;
}

.mega-menu-panel {
  background: linear-gradient(180deg, #f8f2e8 0%, #f0e4d4 100%);
}

.mega-picks-title {
  color: #4a392c;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.mega-picks-grid {
  display: grid;
  gap: 0.65rem;
}

.mega-pick-group {
  border: 1px solid rgba(124, 95, 64, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  padding: 0.5rem;
}

.mega-pick-group + .mega-pick-group {
  margin-top: 0.2rem;
}

.mega-pick-group-title {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #715b48;
  margin: 0 0 0.35rem 0.2rem;
}

.mega-pick-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid rgba(124, 95, 64, 0.22);
  border-radius: 12px;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.64);
  color: #3f3024;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mega-pick-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.mega-pick-card + .mega-pick-card {
  margin-top: 0.45rem;
}

.mega-pick-media {
  position: relative;
}

.mega-pick-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
}

.mega-pick-badges {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: flex;
  gap: 4px;
}

.mega-pick-badges .badge {
  font-size: 0.56rem;
  line-height: 1;
  padding: 0.24rem 0.34rem;
  border-radius: 999px;
}

.mega-pick-badges .badge-sale {
  background: #b8472b;
  color: #fff;
}

.mega-pick-badges .badge-stock {
  background: #2f6c4b;
  color: #fff;
}

.mega-pick-badges .badge-oos {
  background: #7a7269;
  color: #fff;
}

.mega-pick-card strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
  margin: 0.12rem 0;
}

.mega-pick-card span {
  font-size: 0.73rem;
  color: #6f5642;
  font-weight: 600;
}

.shop-hero {
  padding-bottom: 0;
}

.shop-hero-inner {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(248, 239, 229, 0.94)),
    url('https://images.unsplash.com/photo-1517705008128-361805f42e86?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  padding: 3rem;
}

.shop-hero-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7b6958;
}

.shop-filter-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
}

.section-title-sm {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
}

.shop-filter-card .form-control,
.shop-filter-card .form-select {
  border-color: #e1d6c8;
}

.shop-sortbar {
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 0.85rem;
}

.shop-empty {
  border: 1px dashed #d5c4ae;
  border-radius: var(--radius-md);
  background: #fff;
}

.product-page .breadcrumb {
  margin-bottom: 1.35rem;
}

.product-main-frame {
  border-color: #e7dccf !important;
  background: #fff;
}

.product-thumb {
  border-color: #dfd2c1 !important;
}

.product-info-card {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
}

.product-brand-link {
  letter-spacing: 0.13em;
}

.product-price-block .text-primary {
  color: var(--brand-clay) !important;
}

.product-info-card .btn-outline-secondary {
  border-color: #d6c9b8;
}

.product-page .nav-tabs .nav-link {
  color: #5f4b3c;
}

.product-page .nav-tabs .nav-link.active {
  color: #2d241d;
  border-color: #d9c8b2 #d9c8b2 #fff;
  background: #fff;
}

.site-footer .text-muted {
  color: #b4a999 !important;
}

.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 998;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  border: 0;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#backToTop.show {
  display: flex;
}

.flash-message {
  animation: slideDown 0.3s ease;
}

img[loading='lazy'] {
  opacity: 0;
  transition: opacity 0.4s;
}

img.loaded {
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .hero-slide {
    min-height: 520px;
    border-radius: 18px;
    margin: 0;
  }

  .mega-menu {
    margin-top: 0.4rem;
  }

  .mega-menu-inner {
    border-radius: 14px;
  }

  .mega-dropdown .dropdown-menu {
    position: static;
    transform: none !important;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .product-card .card-body {
    padding: 0.75rem;
  }

  .logo-wordmark {
    font-size: 1.25rem;
  }

  .shop-hero-inner {
    padding: 1.5rem;
  }
}
