/* =========================================================================
   Backdrop Gallery BD — Design tokens & public site styles
   Palette: Dark Cocoa / Champagne Gold / Ivory / Cream / Rose Gold
   Type: Playfair Display (display) + Poppins (body/UI)
   ========================================================================= */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Roman.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  /* Brand palette */
  --cocoa: #4A342A;
  --cocoa-700: #5c4235;
  --cocoa-100: #efe6e0;
  --gold: #B88B3B;
  --gold-dark: #96702c;
  --gold-light: #d8b978;
  --ivory: #FFFDF9;
  --cream: #FAF3EC;
  --rose-gold: #E8C8B6;
  --muted: #7D6B62;

  /* Functional colors, desaturated to sit with the palette */
  --success: #5f8768;
  --danger: #b3564a;
  --warning: #c08a2e;
  --info: #5b7c8d;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 30px rgba(74, 52, 42, 0.08);
  --shadow-med: 0 14px 40px rgba(74, 52, 42, 0.14);

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--cocoa);
  --bs-body-bg: var(--ivory);
  --bs-primary: var(--cocoa);
  --bs-link-color: var(--cocoa);
}

html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
}
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  color: var(--cocoa);
  font-weight: 600;
  letter-spacing: 0.2px;
}
h5, h6 { font-family: var(--font-body); font-weight: 600; }
a { color: var(--cocoa); text-decoration: none; }
a.link-gold { color: var(--gold-dark); }
::selection { background: var(--rose-gold); color: var(--cocoa); }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

.text-muted-brand { color: var(--muted) !important; }
.text-gold { color: var(--gold-dark) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-cocoa { background: var(--cocoa) !important; }
.bg-ivory { background: var(--ivory) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: 0.65rem 1.5rem; letter-spacing: 0.2px; transition: all .2s ease; }
.btn-sm { padding: 0.4rem 1rem; }
.btn-gold, .btn-primary {
  background: var(--gold); border-color: var(--gold); color: #fff;
}
.btn-gold:hover, .btn-primary:hover {
  background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-1px);
}
.btn-outline-cocoa {
  border: 1.5px solid var(--cocoa); color: var(--cocoa); background: transparent;
}
.btn-outline-cocoa:hover { background: var(--cocoa); color: #fff; }
.btn-outline-gold { border: 1.5px solid var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-cocoa { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }
.btn-cocoa:hover { background: #37271f; border-color: #37271f; color: #fff; }
.btn-link-underline { color: var(--cocoa); border-bottom: 1px solid var(--rose-gold); border-radius: 0; padding: 0; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: var(--cocoa); color: var(--cream); font-size: 0.82rem; letter-spacing: 0.4px;
  text-align: center; padding: 7px 12px;
}
.announcement-bar a { color: var(--gold-light); }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rose-gold);
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-wordmark {
  font-family: var(--font-heading); font-size: 1.5rem; color: var(--cocoa); letter-spacing: 0.3px;
}
.brand-wordmark span { color: var(--gold-dark); }
.main-nav a {
  color: var(--cocoa); font-weight: 500; font-size: 0.93rem; position: relative; padding: 0.4rem 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-icon-btn {
  color: var(--cocoa); position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; transition: background .2s ease;
}
.header-icon-btn:hover { background: var(--cream); }
.cart-badge {
  position: absolute; top: -2px; right: -2px; background: var(--gold); color: #fff;
  font-size: 0.62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px;
  display: flex; align-items: center; background: linear-gradient(120deg, var(--cream), var(--rose-gold) 140%);
}
.hero-section img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(74,52,42,0.55) 0%, rgba(74,52,42,0.15) 55%, rgba(74,52,42,0.02) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 3rem 3rem; color: #fff; max-width: 560px; }
.hero-eyebrow {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-light); font-weight: 600;
}
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; margin: 0.5rem 0 1rem; }
.hero-content p { color: rgba(255,255,255,0.88); font-size: 1.02rem; }

/* ---------- Section headers ---------- */
.section-eyebrow {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-dark); font-weight: 700;
}
.section-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 0.35rem 0 0.25rem; }
.section-sub { color: var(--muted); max-width: 540px; }
.section-divider {
  width: 60px; height: 2px; background: var(--gold); border: none; margin: 1rem 0 1.75rem;
}

/* ---------- Category cards ---------- */
.category-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden; display: block; aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-med); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card .cat-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(74,52,42,0.75) 100%);
  display: flex; align-items: flex-end; padding: 1rem;
}
.category-card .cat-label { color: #fff; font-family: var(--font-heading); font-size: 1.05rem; }

/* ---------- Product cards (signature: corner-fold like a photo mount) ---------- */
.product-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--cocoa-100);
  transition: transform .22s ease, box-shadow .22s ease; height: 100%; display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-med); }
.product-card .pc-image-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--cream); }
.product-card .pc-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .pc-image-wrap img { transform: scale(1.05); }
/* corner-fold signature element */
.product-card .pc-fold {
  position: absolute; top: 0; right: 0; width: 34px; height: 34px;
  background: linear-gradient(135deg, transparent 50%, var(--ivory) 50%);
  filter: drop-shadow(-2px 2px 3px rgba(74,52,42,0.15));
}
.product-card .pc-badge {
  position: absolute; top: 10px; left: 10px; background: var(--cocoa); color: #fff; font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.4px; padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.product-card .pc-badge.sale { background: var(--danger); }
.product-card .pc-wish {
  position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,253,249,0.92); display: flex; align-items: center; justify-content: center; color: var(--cocoa);
  border: none; transition: all .2s ease;
}
.product-card .pc-wish:hover { background: var(--gold); color: #fff; }
.product-card .pc-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.product-card .pc-name {
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--cocoa); margin: 0.15rem 0 0.4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .pc-price { margin-top: auto; display: flex; align-items: baseline; gap: 0.5rem; }
.product-card .pc-price .current { font-weight: 700; color: var(--cocoa); font-size: 1.02rem; }
.product-card .pc-price .original { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }
.product-card .pc-rating { color: var(--gold); font-size: 0.78rem; }
.product-card .pc-add {
  margin-top: 0.65rem; width: 100%; border-radius: 999px; background: var(--cream); color: var(--cocoa);
  border: 1px solid var(--rose-gold); font-weight: 600; font-size: 0.85rem; padding: 0.5rem;
  transition: all .2s ease;
}
.product-card .pc-add:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Promo banner ---------- */
.promo-banner {
  border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 220px;
  display: flex; align-items: center; background: var(--cocoa);
}
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.promo-banner .promo-content { position: relative; z-index: 2; padding: 2.2rem; color: #fff; }

/* ---------- Why choose us ---------- */
.feature-tile { text-align: center; padding: 1.5rem 1rem; }
.feature-tile .ft-icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--cream); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem;
}

/* ---------- Testimonials ---------- */
.review-card { background: var(--cream); border-radius: var(--radius-md); padding: 1.5rem; height: 100%; }
.review-card .stars { color: var(--gold); letter-spacing: 2px; }
.review-card .rq { font-family: var(--font-heading); font-style: italic; color: var(--cocoa-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cocoa); color: var(--cream); }
.site-footer a { color: var(--cream); opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--gold-light); }
.site-footer h6 { color: var(--gold-light); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 1.4px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; opacity: 0.75; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; justify-content: center; color: var(--cream) !important;
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Mobile bottom nav ---------- */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040; background: #fff;
  border-top: 1px solid var(--rose-gold); display: none; box-shadow: 0 -6px 18px rgba(74,52,42,0.08);
}
.mobile-bottom-nav a {
  flex: 1; text-align: center; padding: 8px 4px 6px; color: var(--muted); font-size: 0.66rem; position: relative;
}
.mobile-bottom-nav a i { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.mobile-bottom-nav a.active { color: var(--gold-dark); }
@media (max-width: 991.98px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 62px; }
}

/* ---------- Cart drawer ---------- */
.cart-drawer .offcanvas-header { border-bottom: 1px solid var(--cocoa-100); }
.cart-line { display: flex; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--cocoa-100); }
.cart-line img { width: 64px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--rose-gold); border-radius: 999px; }
.qty-stepper button { border: none; background: none; width: 28px; height: 28px; color: var(--cocoa); }
.qty-stepper input { width: 32px; text-align: center; border: none; background: transparent; font-weight: 600; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1.5px solid var(--cocoa-100); padding: 0.6rem 0.9rem; font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(184, 139, 59, 0.15);
}
label.form-label { font-weight: 600; font-size: 0.85rem; color: var(--cocoa-700); }
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 2.5rem; }

/* ---------- Filters sidebar ---------- */
.filter-panel { background: #fff; border: 1px solid var(--cocoa-100); border-radius: var(--radius-md); padding: 1.25rem; }
.filter-panel h6 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--cocoa); margin-top: 1rem; }
.filter-panel h6:first-child { margin-top: 0; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--cocoa-100);
  display: inline-block; cursor: pointer;
}
.swatch.active { box-shadow: 0 0 0 2px var(--gold); }

/* ---------- Breadcrumb ---------- */
.bg-breadcrumb { font-size: 0.82rem; color: var(--muted); }
.bg-breadcrumb a { color: var(--muted); }
.bg-breadcrumb a:hover { color: var(--gold-dark); }

/* ---------- Misc ---------- */
.badge-soft-gold { background: var(--cream); color: var(--gold-dark); font-weight: 600; }
.card-plain { border: 1px solid var(--cocoa-100); border-radius: var(--radius-md); }
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--rose-gold), transparent); border: none; }
.rating-stars { color: var(--gold); }
.sticky-mobile-cart {
  position: fixed; left: 12px; right: 12px; bottom: 74px; z-index: 1035; display: none;
}
@media (max-width: 991.98px) { .sticky-mobile-cart.show { display: block; } }

.skeleton { background: linear-gradient(90deg, var(--cream) 25%, #f1e6da 37%, var(--cream) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.toast-stack { position: fixed; top: 90px; right: 16px; z-index: 1080; }

.install-banner {
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--cocoa); color: #fff; padding: 10px 16px; font-size: 0.85rem;
}
.site-header .site-logo {
    display: block !important;
    width: auto !important;
    height: 46px !important;
    max-height: 46px !important;
    max-width: 210px !important;
    object-fit: contain !important;
}

@media (max-width: 767px) {
    .site-header .site-logo {
        width: auto !important;
        height: 30px !important;
        max-height: 30px !important;
        max-width: 125px !important;
        object-fit: contain !important;
    }

    .site-header .container > div {
        min-height: 58px !important;
        height: 58px !important;
    }
}