/* ==========================================================================
   photo-frame-site — devotional resin photo frames
   Temple maroon & antique gold on warm ivory. Loaded last (after tailwind.css
   and style.css) by common/header.html.

   tailwind.css is precompiled (no Tailwind build in this repo), so:
   1. the template's colour utilities (primary / navy / brand-bg) are re-mapped
      here to the new palette, which re-themes every page at once;
   2. new design pieces use the .pf-* classes below, not new Tailwind classes.
   ========================================================================== */

:root {
  --pf-maroon: #7a1f2b;
  --pf-maroon-dark: #5c1520;
  --pf-maroon-soft: #f6e9e4;
  --pf-gold: #c9a24a;
  --pf-gold-light: #e7cf8f;
  --pf-gold-dark: #9c7a2c;
  --pf-ivory: #fbf6ec;
  --pf-ivory-deep: #f3e9d6;
  --pf-brown: #2b1d14;
  --pf-brown-soft: #5a463a;
  --pf-line: #e8dcc6;
  --pf-shadow: 0 10px 30px rgba(74, 34, 18, 0.10);
  --pf-shadow-lg: 0 22px 48px rgba(74, 34, 18, 0.18);
  --pf-font-head: 'Marcellus', 'Playfair Display', Georgia, serif;
  --pf-font-body: 'Mulish', 'Poppins', system-ui, sans-serif;
}

/* ---------- 1. Palette re-map of the template's Tailwind colours ---------- */
.bg-primary, .hover\:bg-primary:hover { background-color: var(--pf-maroon) !important; }
.hover\:bg-primary-hover:hover { background-color: var(--pf-maroon-dark) !important; }
.bg-primary-light, .hover\:bg-primary-light:hover { background-color: var(--pf-maroon-soft) !important; }
.text-primary, .hover\:text-primary:hover, .group:hover .group-hover\:text-primary { color: var(--pf-maroon) !important; }
.border-primary { border-color: var(--pf-maroon) !important; }
.hover\:border-primary\/30:hover { border-color: rgba(122, 31, 43, 0.3) !important; }
.focus\:ring-primary:focus { --tw-ring-color: var(--pf-maroon) !important; }
.ring-primary\/20 { --tw-ring-color: rgba(122, 31, 43, 0.2) !important; }
.shadow-primary\/20 { --tw-shadow-color: rgba(122, 31, 43, 0.2) !important; }
.hover\:shadow-primary\/30:hover { --tw-shadow-color: rgba(122, 31, 43, 0.3) !important; }
.accent-primary { accent-color: var(--pf-maroon) !important; }

.bg-navy, .hover\:bg-navy:hover { background-color: var(--pf-brown) !important; }
.text-navy, .hover\:text-navy:hover { color: var(--pf-brown) !important; }
.border-navy { border-color: var(--pf-brown) !important; }
.from-navy { --tw-gradient-from: var(--pf-brown) var(--tw-gradient-from-position) !important; --tw-gradient-to: rgba(43, 29, 20, 0) var(--tw-gradient-to-position) !important; }
.to-navy { --tw-gradient-to: var(--pf-brown) var(--tw-gradient-to-position) !important; }

.bg-brand-bg, .bg-\[\#f8f6f2\] { background-color: var(--pf-ivory) !important; }

/* On dark surfaces (footer, top bar) the accent is gold, not maroon (contrast). */
footer .text-primary, .pf-on-dark .text-primary, footer .hover\:text-primary:hover { color: var(--pf-gold-light) !important; }
footer .bg-primary { background-color: var(--pf-gold) !important; color: var(--pf-brown) !important; }

/* ---------- 2. Base ---------- */
body {
  font-family: var(--pf-font-body) !important;
  background-color: var(--pf-ivory) !important;
  color: var(--pf-brown);
}
h1, h2, h3, .pf-head { font-family: var(--pf-font-head) !important; font-weight: 400 !important; letter-spacing: 0.01em; }
h4, h5, h6 { font-family: var(--pf-font-body); }
::selection { background: var(--pf-gold-light); color: var(--pf-brown); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--pf-gold) !important; outline-offset: 2px;
}

/* ---------- 3. Header & announcement bar ---------- */
.pf-topbar { background: linear-gradient(90deg, var(--pf-maroon-dark), var(--pf-maroon), var(--pf-maroon-dark)) !important; color: #fbeccb !important; }
.pf-topbar .pf-topbar-tag { background: var(--pf-gold) !important; color: var(--pf-brown) !important; }
nav.pf-nav { background: rgba(251, 246, 236, 0.96) !important; backdrop-filter: blur(10px); border-bottom: 1px solid var(--pf-line) !important; box-shadow: 0 2px 0 rgba(201, 162, 74, 0.35), 0 8px 24px rgba(74, 34, 18, 0.06) !important; }
.pf-brand-name { font-family: var(--pf-font-head) !important; font-weight: 400 !important; color: var(--pf-maroon) !important; letter-spacing: 0.02em; }
.pf-brand-tagline { display: block; font-family: var(--pf-font-body); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pf-gold-dark); margin-top: 2px; }

/* ---------- 4. Ornaments & section headings ---------- */
.pf-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--pf-gold); margin: 10px auto 0; }
.pf-ornament::before, .pf-ornament::after { content: ''; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--pf-gold)); }
.pf-ornament::after { transform: scaleX(-1); }
.pf-ornament svg { width: 30px; height: 18px; }
.pf-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pf-gold-dark); margin-bottom: 8px; }
.pf-section-head { text-align: center; margin-bottom: 32px; }
.pf-section-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--pf-maroon); line-height: 1.15; margin: 0; }
.pf-section-head p { color: var(--pf-brown-soft); font-size: 15px; max-width: 560px; margin: 12px auto 0; line-height: 1.6; }

/* ---------- 4b. Promo Banner Slider (admin-managed, Marketing -> Slider Master) ---------- */
.pf-slider { position: relative; overflow: hidden; background: var(--pf-ivory-deep); }
.pf-slider-track { position: relative; max-width: 1280px; margin: 0 auto; aspect-ratio: 1600 / 480; }
.pf-slide { display: none; position: absolute; inset: 0; animation: pfSlideFade 0.5s ease forwards; }
.pf-slide.active { display: block; }
.pf-slide img, .pf-slide-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-slide-link { display: block; width: 100%; height: 100%; }
@keyframes pfSlideFade { from { opacity: 0; } to { opacity: 1; } }
.pf-slider-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 1; }
.pf-slider-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.55); cursor: pointer; padding: 0; transition: all 0.2s ease; }
.pf-slider-dot.active { background: var(--pf-gold); width: 22px; border-radius: 999px; }

/* ---------- 5. Hero ---------- */
.pf-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 20%, rgba(201, 162, 74, 0.22), transparent 60%), linear-gradient(135deg, #4a1019 0%, var(--pf-maroon) 55%, #8f2a35 100%); color: #fdf3df; }
.pf-hero::before { /* faint mandala rings */
  content: ''; position: absolute; width: 760px; height: 760px; right: -220px; top: -200px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(231, 207, 143, 0.12) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.pf-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--pf-gold-dark), var(--pf-gold-light), var(--pf-gold-dark)); }
.pf-hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 64px 24px 72px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.pf-hero .pf-eyebrow { color: var(--pf-gold-light); }
.pf-hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; margin: 0 0 18px; color: #fff7e6 !important; }
.pf-hero h1 em { font-style: normal; color: var(--pf-gold-light); }
.pf-hero p.pf-hero-sub { font-size: 17px; line-height: 1.7; color: #f3dfc0; max-width: 520px; margin: 0 0 28px; }
.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: #f3dfc0; }
.pf-hero-points i { color: var(--pf-gold-light); margin-right: 6px; }

.pf-hero-art { position: relative; height: 470px; }
.pf-arch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 300px; height: 440px; border-radius: 150px 150px 14px 14px; padding: 10px; background: linear-gradient(145deg, var(--pf-gold-light), var(--pf-gold-dark)); box-shadow: 0 30px 60px rgba(20, 4, 6, 0.45); }
.pf-arch-inner { width: 100%; height: 100%; border-radius: 140px 140px 8px 8px; overflow: hidden; border: 3px solid #fff3d6; background: var(--pf-ivory); }
.pf-arch-inner img { width: 100%; height: 100%; object-fit: cover; }
.pf-float-frame { position: absolute; width: 150px; padding: 8px; background: #fffaf0; border-radius: 6px; box-shadow: 0 18px 36px rgba(20, 4, 6, 0.40); border: 1px solid var(--pf-gold-light); }
.pf-float-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; box-shadow: inset 0 0 0 1px var(--pf-gold); }
.pf-float-frame.is-left { left: 0; bottom: 20px; transform: rotate(-6deg); }
.pf-float-frame.is-right { right: 0; top: 40px; transform: rotate(5deg); }

/* ---------- 6. Buttons ---------- */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-decoration: none !important; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s; }
.pf-btn:hover { transform: translateY(-2px); }
.pf-btn-gold { background: linear-gradient(135deg, var(--pf-gold-light), var(--pf-gold)); color: var(--pf-brown) !important; box-shadow: 0 10px 24px rgba(201, 162, 74, 0.35); }
.pf-btn-gold:hover { box-shadow: 0 14px 30px rgba(201, 162, 74, 0.5); }
.pf-btn-outline-light { border-color: rgba(253, 243, 223, 0.55); color: #fdf3df !important; }
.pf-btn-outline-light:hover { background: rgba(253, 243, 223, 0.1); }
.pf-btn-maroon { background: var(--pf-maroon); color: #fff !important; }
.pf-btn-maroon:hover { background: var(--pf-maroon-dark); box-shadow: 0 10px 22px rgba(122, 31, 43, 0.3); }

/* ---------- 7. Trust strip ---------- */
.pf-trust { background: var(--pf-ivory-deep); border-bottom: 1px solid var(--pf-line); }
.pf-trust-grid { max-width: 1280px; margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pf-trust-item { display: flex; align-items: center; gap: 12px; }
.pf-trust-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--pf-maroon); background: #fff8ea; border: 1px solid var(--pf-gold-light); }
.pf-trust-item strong { display: block; font-size: 14px; color: var(--pf-brown); }
.pf-trust-item span { font-size: 12px; color: var(--pf-brown-soft); }

/* ---------- 8. Categories (shop by deity / collection) ---------- */
.pf-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 22px 16px; }
.pf-cat { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none !important; }
.pf-cat-ring { width: 112px; height: 112px; border-radius: 50%; padding: 5px; background: conic-gradient(from 210deg, var(--pf-gold-dark), var(--pf-gold-light), var(--pf-gold), var(--pf-gold-light), var(--pf-gold-dark)); box-shadow: var(--pf-shadow); transition: transform 0.3s, box-shadow 0.3s; }
.pf-cat-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--pf-ivory); background: #fff; }
.pf-cat:hover .pf-cat-ring { transform: translateY(-4px); box-shadow: var(--pf-shadow-lg); }
.pf-cat-name { margin-top: 12px; font-family: var(--pf-font-head); font-size: 16px; color: var(--pf-brown); line-height: 1.25; }
.pf-cat:hover .pf-cat-name { color: var(--pf-maroon); }

/* ---------- 9. Product card: a framed artwork ---------- */
.pf-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fffdf8; border: 1px solid var(--pf-line); border-radius: 14px; box-shadow: var(--pf-shadow); transition: transform 0.3s, box-shadow 0.3s; }
.pf-card:hover { transform: translateY(-6px); box-shadow: var(--pf-shadow-lg); }
.pf-card-mat { position: relative; margin: 12px 12px 0; padding: 12px; background: linear-gradient(160deg, #f8f0e1, #efe3cb); border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(156, 122, 44, 0.35); }
.pf-card-media { display: block; position: relative; overflow: hidden; border-radius: 2px; background: #fffdf7; box-shadow: 0 0 0 1px var(--pf-gold), 0 6px 14px rgba(43, 29, 20, 0.18); aspect-ratio: 4 / 5; }
.pf-card.is-landscape .pf-card-media { aspect-ratio: 16 / 10; }
/* contain, never crop: the whole frame must be visible (same rule as the other templates since 1.18) */
.pf-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform 0.6s; }
.pf-card:hover .pf-card-media img { transform: scale(1.03); }
.pf-card-badge { position: absolute; top: 20px; left: 20px; z-index: 2; background: var(--pf-maroon); color: #fff6e3; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(122, 31, 43, 0.35); }
.pf-card-tools { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.pf-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--pf-line); background: rgba(255, 252, 245, 0.95); color: var(--pf-brown); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(43, 29, 20, 0.12); transition: transform 0.2s, background 0.2s, color 0.2s; }
.pf-icon-btn:hover { transform: scale(1.08); color: var(--pf-maroon); }
.pf-icon-btn .bi-heart-fill { color: #c0273b; }
.pf-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex-grow: 1; }
.pf-card-code { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pf-gold-dark); font-weight: 700; }
.pf-card-title { font-family: var(--pf-font-head); font-size: 17px; line-height: 1.3; color: var(--pf-brown); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-card-title a { color: inherit; text-decoration: none !important; }
.pf-card-title a:hover { color: var(--pf-maroon); }
.pf-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pf-card-price strong { font-size: 18px; color: var(--pf-maroon); font-weight: 800; }
.pf-card-price s { font-size: 12px; color: #9c8b7c; }
.pf-card-price .pf-save { font-size: 11px; font-weight: 800; color: #2f6b3a; background: #e8f3e6; padding: 2px 6px; border-radius: 4px; }
.pf-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.pf-card-actions .pf-btn { padding: 10px 14px; font-size: 12px; flex: 1; letter-spacing: 0.02em; }
.pf-card-actions .pf-btn-ghost { flex: 0 0 auto; border-color: var(--pf-line); color: var(--pf-brown) !important; background: #fff; }
.pf-card-actions .pf-btn-ghost:hover { border-color: var(--pf-maroon); color: var(--pf-maroon) !important; }

/* ---------- 10. Section backgrounds ---------- */
.pf-band { background: linear-gradient(180deg, var(--pf-ivory) 0%, var(--pf-ivory-deep) 100%); border-top: 1px solid var(--pf-line); border-bottom: 1px solid var(--pf-line); }
.pf-gift { position: relative; overflow: hidden; border-radius: 22px; background: var(--pf-brown); color: #fbeccb; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--pf-shadow-lg); }
.pf-gift img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.pf-gift-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.pf-gift-copy h2 { color: #fff3dc !important; font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; }
.pf-gift-copy p { color: #e9d6b6; line-height: 1.7; margin: 0 0 22px; }
.pf-gift .pf-eyebrow { color: var(--pf-gold-light); }

/* ---------- 11. Footer ---------- */
footer.pf-footer { background: radial-gradient(900px 300px at 10% 0%, rgba(201, 162, 74, 0.12), transparent 60%), var(--pf-brown) !important; }
/* The FAQ is inserted at the top of the footer: keep it on the light band, then start the dark footer with a gold rule. */
footer.pf-footer .pf-faq { color: var(--pf-brown); }
footer.pf-footer .pf-faq .text-primary { color: var(--pf-maroon) !important; }
footer.pf-footer .pf-faq .pf-ornament { justify-content: center; margin: 10px auto 0; }
footer.pf-footer .pf-faq .pf-ornament::before { display: block; }
footer.pf-footer { overflow-x: clip; }
footer.pf-footer .pf-footer-main { position: relative; padding-top: 52px; }
footer.pf-footer .pf-footer-main::before { content: ''; position: absolute; top: 0; left: 50%; width: 100vw; height: 4px; transform: translateX(-50%); background: linear-gradient(90deg, var(--pf-gold-dark), var(--pf-gold-light), var(--pf-gold-dark)); }
.pf-cookie { background: var(--pf-brown) !important; border-top: 2px solid var(--pf-gold) !important; }
footer.pf-footer h2 { font-family: var(--pf-font-head) !important; font-weight: 400 !important; }
footer.pf-footer .pf-footer-tagline { color: #d9c4a3; }
footer.pf-footer .pf-ornament { justify-content: flex-start; margin: 0; }
footer.pf-footer .pf-ornament::before { display: none; }

/* ---------- 12. Product details: show the image as a framed artwork ---------- */
.pf-pdp-frame { padding: 14px !important; background: linear-gradient(160deg, #f8f0e1, #efe3cb) !important; box-shadow: inset 0 0 0 1px rgba(156, 122, 44, 0.35), var(--pf-shadow) !important; border-color: var(--pf-line) !important; }
.pf-pdp-frame img { box-shadow: 0 0 0 1px var(--pf-gold), 0 10px 24px rgba(43, 29, 20, 0.2); background: #fff; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1024px) {
  .pf-hero-inner { grid-template-columns: 1fr; padding: 44px 20px 56px; text-align: center; }
  .pf-hero p.pf-hero-sub { margin-left: auto; margin-right: auto; }
  .pf-hero-actions, .pf-hero-points { justify-content: center; }
  .pf-hero-art { height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
  .pf-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-gift { grid-template-columns: 1fr; }
  .pf-gift-copy { padding: 30px 24px; text-align: center; align-items: center; }
}
@media (max-width: 640px) {
  .pf-slider-track { aspect-ratio: 4 / 3; }
  .pf-hero h1 { font-size: 34px; }
  .pf-hero-art { height: 360px; }
  .pf-arch { width: 230px; height: 340px; border-radius: 115px 115px 12px 12px; }
  .pf-arch-inner { border-radius: 106px 106px 8px 8px; }
  .pf-float-frame { width: 104px; padding: 6px; }
  .pf-trust-grid { grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px; }
  .pf-trust-icon { width: 36px; height: 36px; font-size: 16px; }
  .pf-trust-item strong { font-size: 13px; }
  .pf-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .pf-cat-ring { width: 86px; height: 86px; padding: 4px; }
  .pf-cat-name { font-size: 13px; }
  .pf-card-mat { margin: 8px 8px 0; padding: 7px; }
  .pf-card-body { padding: 10px 10px 12px; }
  .pf-card-title { font-size: 14px; }
  .pf-card-price strong { font-size: 15px; }
  .pf-card-actions { flex-wrap: wrap; }
  .pf-card-tools { top: 14px; right: 14px; }
  .pf-card-badge { top: 14px; left: 14px; }
  .pf-icon-btn { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card, .pf-card-media img, .pf-cat-ring, .pf-btn { transition: none; }
}

/* ── Blog pages (blogs.html, blog-details.html) ───────────────────────────────────────────────── */
.pf-blog-cover { display: block; width: 100%; height: 10rem; object-fit: cover; }
.pf-blog-thumb { display: block; width: 100%; height: 7rem; object-fit: cover; }
.pf-blog-narrow { max-width: 48rem; }
.pf-blog-search-input { padding-left: 2.75rem; }
.pf-blog-search-icon { left: 1rem; top: 50%; transform: translateY(-50%); }
.pf-blog-crumb-current { display: inline-block; max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.pf-blog-pager { padding-top: 2rem; }
.pf-blog-body h2, .pf-blog-body h3 { font-family: var(--pf-font-head); color: var(--pf-brown); margin: 1.6em 0 .5em; line-height: 1.25; }
.pf-blog-body h2 { font-size: 1.5rem; }
.pf-blog-body h3 { font-size: 1.2rem; }
.pf-blog-body ul { list-style: disc; padding-left: 1.4rem; }
.pf-blog-body ol { list-style: decimal; padding-left: 1.4rem; }
.pf-blog-body a { color: var(--pf-maroon); text-decoration: underline; }
.pf-blog-body img { max-width: 100%; height: auto; border-radius: .75rem; }
.pf-blog-body blockquote { border-left: 3px solid var(--pf-maroon); padding-left: 1rem; color: #4b5563; font-style: italic; }
@media (min-width: 640px) { .pf-blog-cover { height: 13rem; } .pf-blog-thumb { height: 9rem; } }
