/* ============================================================
   SITE.CSS — AureoVault
   ============================================================ */

:root {
  --bg: #ffffff; --surface: #ffffff;
  --ink: #111111; --ink-2: #444444; --ink-3: #707070; --ink-4: #aaaaaa;
  --border: #e8e8e8; --border-2: #f4f4f4;
  --sale: #e53935; --r: 8px; --r-sm: 6px;
  --cart-w: 420px; --ease: cubic-bezier(.4,0,.2,1);
  --max-w: 1160px; --pad-x: 32px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad-x); background: #fff; }
@media (min-width: 961px) {
  .nav { padding: 0 200px; }
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo svg { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--ink-3); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: none; border: none; cursor: pointer; border-radius: var(--r-sm); color: var(--ink); transition: background .15s; }
.icon-btn:hover { background: var(--border-2); }
.cart-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--ink); color: #fff; font-size: 9px; font-weight: 700; border-radius: 100px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; }
.cart-badge.show { opacity: 1; transform: scale(1); }
.nav-hamburger { display: none; }

/* ============================================================
   HERO (home page)
   ============================================================ */
/* Hero — contained, aligned with page max-width */
.hero-wrap { margin-top: 60px; max-width: var(--max-w); margin-left: auto; margin-right: auto; padding: 0 var(--pad-x); }
.hero { display: grid; grid-template-rows: 180px 400px; background: #f0f0f0; border-radius: var(--r); overflow: hidden; }

/* Top row: text content */
.hero-content { padding: 28px 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; background: rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.1); border-radius: 100px; padding: 4px 12px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #555; margin-bottom: 12px; }
.hero h1 { font-size: clamp(18px, 2.5vw, 26px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: #111; margin-bottom: 8px; }
.hero-sub { font-size: 12px; color: #777; line-height: 1.6; max-width: 360px; margin-bottom: 5px; }
.hero-cta { display: inline-flex; align-items: center; gap: 7px; background: #111; color: #fff; border: none; border-radius: var(--r-sm); padding: 9px 18px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s; }
.hero-cta:hover { background: #2a2a2a; }

/* Bottom row: image as background */
.hero-image { background-size: cover; background-position: center; background-repeat: no-repeat; width: 100%; }

/* ============================================================
   HOME — collections
   ============================================================ */
.main { max-width: var(--max-w); margin: 0 auto; padding: 56px var(--pad-x) 80px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.section-link { font-size: 13px; color: var(--ink-3); text-decoration: none; transition: color .15s; }
.section-link:hover { color: var(--ink); }
.collection { margin-bottom: 56px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Home cards */
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; transition: transform .25s var(--ease); }
.card:hover { transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--border-2); border-radius: var(--r); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-badge { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; background: var(--ink); color: #fff; }
.card-badge.sale { background: var(--sale); }
.card-body { padding: 12px 2px 0; }
.card-name { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price-row { display: flex; align-items: center; gap: 7px; }
.card-price { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.card-price-original { font-size: 12px; color: var(--ink-4); text-decoration: line-through; }
.card-sale-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--sale); letter-spacing: .04em; }
.card-footer { margin-top: 10px; }
.add-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border: none; border-radius: var(--r-sm); padding: 8px 14px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
.add-btn:hover { background: #2a2a2a; }
.add-btn:active { transform: scale(.97); }
.add-btn.in-cart { background: #2a6e4a; pointer-events: none; }

/* Skeleton loader */
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.skeleton-card { border-radius: var(--r); overflow: hidden; }
.sk { background: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.sk-media { width: 100%; aspect-ratio: 1/1; border-radius: var(--r); }
.sk-body { padding: 12px 0 0; }
.sk-line { height: 10px; border-radius: 5px; margin-bottom: 8px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }

/* ============================================================
   OVERLAY & CART DRAWER (shared all pages)
   ============================================================ */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.overlay.open { opacity: 1; pointer-events: all; }

.drawer { position: fixed; inset: 0 0 0 auto; z-index: 201; width: var(--cart-w); max-width: 100vw; background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -16px 0 50px rgba(0,0,0,.08); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.drawer-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 48px 20px; color: var(--ink-3); }
.cart-empty svg { opacity: .2; }
.cart-empty p { font-size: 14px; line-height: 1.65; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); animation: fadeSlide .22s var(--ease); }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.cart-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--border); }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.cart-price-label { font-size: 12px; color: var(--ink-3); }
.remove-btn { flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--ink-4); transition: color .15s, background .15s; }
.remove-btn:hover { color: var(--sale); background: #fff0f0; }
.drawer-foot { padding: 18px 22px 28px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-summary { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cart-summary-label { font-size: 13px; color: var(--ink-3); }
.cart-total { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.checkout-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--ink); color: #fff; border: none; border-radius: var(--r-sm); padding: 14px 24px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, transform .1s; }
.checkout-btn .btn-text { display: flex; align-items: center; gap: 5px; }
.checkout-btn:hover { background: #2a2a2a; }
.checkout-btn:active { transform: scale(.99); }
.checkout-btn:disabled { background: var(--ink-4); cursor: not-allowed; transform: none; }
.checkout-btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite; }
.checkout-btn.loading .spinner { display: block; }
.checkout-btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.secure-note { margin-top: 10px; font-size: 11px; color: var(--ink-4); text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* Toast & error */
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 400; transform: translateX(-50%) translateY(12px); background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 11px 20px; border-radius: 100px; opacity: 0; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.state-error { text-align: center; padding: 60px 20px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #252525; color: #707070; font-size: 13px; }
.footer-main { max-width: var(--max-w); margin: 0 auto; padding: 56px var(--pad-x) 48px; display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: 48px; }
.footer-logo { display: block; margin-bottom: 14px; }
.footer-logo svg { height: 20px; width: auto; }
.footer-slogan { font-size: 12px; color: #555; line-height: 1.7; max-width: 200px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links-title { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #555; margin-bottom: 14px; }
.footer-links a { color: #707070; text-decoration: none; padding: 4px 0; line-height: 1.8; transition: color .15s; }
.footer-links a:hover { color: #aaa; }
.footer-newsletter-title { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #555; margin-bottom: 14px; }
.footer-newsletter p { font-size: 12px; color: #555; line-height: 1.65; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input { flex: 1; background: #333; border: 1px solid #3d3d3d; border-radius: var(--r-sm); padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #ccc; outline: none; transition: border-color .15s; }
.newsletter-input::placeholder { color: #555; }
.newsletter-input:focus { border-color: #666; }
.newsletter-btn { background: #fff; color: #111; border: none; border-radius: var(--r-sm); padding: 10px 18px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s; }
.newsletter-btn:hover { background: #e8e8e8; }
.footer-bottom-wrap { border-top: 1px solid #333; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 20px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-copy { font-size: 12px; color: #555; }
.footer-socials { display: flex; align-items: center; gap: 2px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-sm); color: #555; text-decoration: none; transition: color .15s, background .15s; }
.social-btn:hover { color: #aaa; background: #333; }

/* ============================================================
   INNER PAGES — shared wrapper & controls
   ============================================================ */
.page-wrap { margin-top: 60px; }
.page-main { max-width: var(--max-w); margin: 0 auto; padding: 48px var(--pad-x) 80px; }
.page-wrap { margin-top: 60px; }

/* Pill filter controls (products + search) */
.controls-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.controls-left  { display: flex; align-items: center; gap: 8px; }
.controls-right { display: flex; align-items: center; gap: 10px; }
.pill-btn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 100px; font-size: 12px; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: border-color .15s; font-family: 'DM Sans', sans-serif; }
.pill-btn:hover { border-color: var(--ink-4); }
.pill-btn svg { flex-shrink: 0; }
.controls-count { font-size: 12px; color: var(--ink-3); }
.grid-toggle { display: flex; align-items: center; gap: 4px; }
.grid-toggle-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 5px; background: none; border: none; cursor: pointer; color: var(--ink-4); transition: color .15s, background .15s; }
.grid-toggle-btn.active, .grid-toggle-btn:hover { color: var(--ink); background: var(--border-2); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-intro { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.contact-title { font-size: 34px; font-weight: 700; color: #000000; margin-bottom: 24px; letter-spacing: -.01em; }
.contact-p { font-size: 14px; color: var(--ink-3); line-height: 1.75; margin-bottom: 16px; }
.contact-p--bold { font-weight: 700; color: #444; }

.contact-form { max-width: 620px; margin: 0 auto; }
.cf-row { display: flex; gap: 12px; margin-bottom: 14px; }
.cf-row .cf-input { flex: 1; }
.cf-field { margin-bottom: 14px; }
.cf-input { width: 100%; padding: 13px 14px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-family: 'DM Sans', sans-serif; font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s; box-shadow: none; appearance: none; -webkit-appearance: none; }
.cf-input::placeholder { color: #bbb; }
.cf-input:focus { border-color: #bbb; }
.cf-textarea { width: 100%; height: 200px; padding: 14px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--ink); outline: none; resize: vertical; box-shadow: none; }
.cf-textarea::placeholder { color: #bbb; }
.cf-textarea:focus { border-color: #bbb; }
.cf-submit { height: 44px; padding: 0 20px; background: var(--ink); color: #fff; border: none; border-radius: 5px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; }
.cf-submit:hover { background: #2a2a2a; }
.cf-success { display: none; text-align: center; padding: 32px 0; font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.cf-success.show { display: block; }

/* ============================================================
   PRODUCTS PAGE — 5-col grid
   ============================================================ */
.plp-title { font-size: 30px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

/* ============================================================
   SEARCH PAGE — 4-col grid
   ============================================================ */
.search-title { font-size: 30px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; letter-spacing: -.02em; }
.search-input-wrap { position: relative; width: 38%; min-width: 260px; margin-bottom: 28px; }
.search-input-wrap svg.si-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #999; pointer-events: none; }
.search-field { width: 100%; height: 44px; padding: 0 38px; border: 1px solid #d1d1d1; border-radius: var(--r); font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--ink); outline: none; background: #fff; transition: border-color .15s; }
.search-field:focus { border-color: var(--ink-4); }
.search-field::placeholder { color: #bbb; }
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: #ddd; border: none; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; font-size: 10px; line-height: 1; transition: background .15s; padding: 0; }
.search-clear:hover { background: #ccc; }
.search-clear.hidden { display: none; }
.search-empty { padding: 40px 0; font-size: 14px; color: var(--ink-3); }
.grid-4s { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* pcard rules — see ADDITIONS section */

/* ============================================================
   PRODUCT DETAIL PAGE (PDP)
   ============================================================ */
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Gallery */
.pdp-main-img { aspect-ratio: 1/1; background: #f0f0f0; border-radius: var(--r); overflow: hidden; margin-bottom: 10px; }
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pdp-thumb { width: 60px; height: 60px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color .15s; background: #f0f0f0; }
.pdp-thumb.active { border-color: var(--ink); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info column */
.pdp-title { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 6px; letter-spacing: -.02em; }
.pdp-price { font-size: 15px; color: var(--ink-3); margin-bottom: 18px; }
.pdp-price .pdp-price-sale { color: var(--sale); font-weight: 600; margin-right: 6px; }
.pdp-price .pdp-price-orig { text-decoration: line-through; color: var(--ink-4); }

.pdp-bundle { display: flex; align-items: center; gap: 10px; background: #f5f5f5; border: 1px solid var(--border); border-radius: var(--r); padding: 10px 14px; margin-bottom: 18px; cursor: pointer; transition: border-color .15s; }
.pdp-bundle:hover { border-color: var(--ink-4); }
.pdp-bundle-img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: var(--border-2); }
.pdp-bundle-text { flex: 1; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.pdp-bundle-text strong { display: block; font-size: 13px; color: var(--ink); }
.pdp-bundle svg { color: var(--ink-3); flex-shrink: 0; }

/* pdp-btn-row removed — single cart button */
.pdp-btn-cart { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--ink); color: #fff; border: none; border-radius: var(--r-sm); padding: 13px 20px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; }
.pdp-btn-cart:hover { background: #2a2a2a; }
.pdp-btn-cart.in-cart { background: #2a6e4a; pointer-events: none; }
/* pdp-btn-shop removed */
.pdp-btn-shop:hover { background: #4a28d4; }
.pdp-more-opts { text-align: center; font-size: 12px; color: var(--ink-3); text-decoration: underline; cursor: pointer; margin-bottom: 14px; background: none; border: none; width: 100%; font-family: 'DM Sans', sans-serif; }
.pdp-more-opts:hover { color: var(--ink); }

.pdp-discount { background: #f2f2f2; border-radius: var(--r-sm); padding: 9px 14px; text-align: center; font-size: 12px; color: var(--ink-2); margin-bottom: 20px; }

.pdp-desc { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin-bottom: 18px; margin-top: 30px; }
.pdp-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pdp-bullets li { font-size: 13px; color: var(--ink-2); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.pdp-bullets li::before { content: '\2713'; font-size: 11px; font-weight: 700; color: var(--ink); margin-top: 2px; flex-shrink: 0; }

/* Related products */
.pdp-related { margin-top: 64px; }
.pdp-related-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 24px; letter-spacing: -.01em; }
.pdp-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { cursor: pointer; transition: transform .22s var(--ease); }
.related-card:hover { transform: translateY(-2px); }
.related-card-img { aspect-ratio: 1/1; background: #f0f0f0; border-radius: var(--r); overflow: hidden; margin-bottom: 10px; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-name { font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.related-card-price { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  :root { --pad-x: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-newsletter { grid-column: 1 / -1; }
  .contact-intro { max-width: 70%; }
  .contact-form  { max-width: 70%; }
  .grid-5  { grid-template-columns: repeat(3, 1fr); }
  .grid-4s { grid-template-columns: repeat(2, 1fr); }
  .search-input-wrap { width: 60%; }
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root { --cart-w: 100vw; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-content { padding: 36px 24px 28px; }
  .hero { grid-template-rows: auto 200px; }
  .hero h1 { font-size: 24px; }
  .main { padding: 40px 20px 60px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-newsletter { grid-column: auto; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { text-align: center; }
  .contact-intro { max-width: 100%; }
  .contact-form  { max-width: 100%; }
  .cf-row { flex-direction: column; gap: 0; }
  .grid-5  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-4s { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .plp-title    { font-size: 22px; }
  .search-title { font-size: 22px; }
  .search-input-wrap { width: 100%; }
  .pdp-btn-row  { flex-direction: column; }
  .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ADDITIONS — v3 changes
   ============================================================ */

/* Mobile nav drawer */
.nav-drawer { display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 99; background: #fff; padding: 8px 0 16px; box-shadow: 0 12px 32px rgba(0,0,0,.1); flex-direction: column; }
.nav-drawer.open { display: flex; }
.nav-drawer li { list-style: none; }
.nav-drawer a { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 13px var(--pad-x); transition: color .15s, background .15s; }

.nav-drawer a:hover { background: var(--border-2); color: var(--ink); }
.nav-drawer a.active { color: var(--ink); font-weight: 600; }

/* Active nav link */
.nav-link.active { color: var(--ink); }

/* Filter dropdown panel */
.filter-dropdown { position: relative; }
.filter-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.08); flex-direction: column; gap: 10px; display: none; }
.filter-panel.open { display: flex; }
.filter-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); }
.filter-input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #ddd; border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--ink); outline: none; }
.filter-input:focus { border-color: var(--ink-4); }
.filter-panel-actions { display: flex; gap: 8px; }
.filter-apply-btn { flex: 1; height: 34px; background: var(--ink); color: #fff; border: none; border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s; }
.filter-apply-btn:hover { background: #2a2a2a; }
.filter-clear-btn { flex: 1; height: 34px; background: none; color: var(--ink-3); border: 1px solid var(--border); border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 12px; cursor: pointer; transition: border-color .15s; }
.filter-clear-btn:hover { border-color: var(--ink-4); }
.sort-opt { width: 100%; text-align: left; background: none; border: none; padding: 8px 4px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--ink-2); cursor: pointer; border-radius: 4px; transition: background .12s, color .12s; }
.sort-opt:hover { background: var(--border-2); color: var(--ink); }
.pill-btn--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-btn--active:hover { border-color: #2a2a2a; background: #2a2a2a; }

/* Unified pcard — used everywhere (home, products, search, related) */
.pcard { background: transparent; border-radius: 0; overflow: visible; cursor: pointer; transition: transform .22s var(--ease); }
.pcard:hover { transform: translateY(-2px); }
.pcard-media { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--r); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-badge { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; background: #111; color: #fff; }
.pcard-body { padding: 8px 2px 4px; }
.pcard-name { font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-price-row { display: flex; align-items: center; gap: 6px; }
.pcard-price { font-size: 12px; color: #888; }
.pcard-sale-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--sale); }
.pcard-price-original { font-size: 11px; color: var(--ink-4); text-decoration: line-through; }

/* Home collections now use pcard grid classes */
.grid-2 .pcard, .grid-4 .pcard { /* inherit pcard styles */ }

/* PDP single cart button */
.pdp-btn-cart { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--ink); color: #fff; border: none; border-radius: var(--r-sm); padding: 13px 20px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; margin-bottom: 10px; }
.pdp-btn-cart:hover { background: #2a2a2a; }
.pdp-btn-cart.in-cart { background: #2a6e4a; pointer-events: none; }

/* Responsive additions */
@media (max-width: 960px) {
  .filter-panel { min-width: 180px; }
}
@media (max-width: 600px) {
  .contact-intro { max-width: 100%; }
  .contact-form  { max-width: 100%; }
}

/* Newsletter success message */

/* Contact page — match page padding, generous width */
.contact-intro { max-width: 620px !important; }
.contact-form  { max-width: 620px !important; }
@media (max-width: 960px) {
  .contact-intro { max-width: 100% !important; }
  .contact-form  { max-width: 100% !important; }
}

/* ============================================================
   FIXES — v4
   ============================================================ */

/* Newsletter — keep form visible, success message below */
.newsletter-success { display: none; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: #6abf8a; line-height: 1.5; }
.newsletter-success:not([hidden]) { display: flex; }
.newsletter-success svg { flex-shrink: 0; }

/* Filter pill SVG icons */
.pill-chevron { display: inline-block; vertical-align: middle; margin-left: 2px; }
.pill-check   { display: inline-block; vertical-align: middle; margin-left: 4px; }

/* Contact form — taller inputs on mobile */
@media (max-width: 768px) {

  .cf-textarea { font-size: 16px; }
  .cf-row { flex-direction: column; gap: 12px; }
}

/* Product bullets — icon + text layout */
.pdp-bullets li { display: flex; align-items: flex-start; gap: 10px; }
.pdp-bullets li svg { flex-shrink: 0; margin-top: 2px; color: var(--ink-3); }
.pdp-bullets li span { line-height: 1.5; }
/* Override the old ::before checkmark since we now use inline SVG icons */
.pdp-bullets li::before { display: none; }

/* Add to cart button — SVG icon alignment */
.pdp-btn-cart svg { flex-shrink: 0; }
/* Cart item — clickable link area */
.cart-item-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; color: inherit; border-radius: var(--r-sm); transition: opacity .15s; }
.cart-item-link:hover { opacity: .75; }
.cart-item { gap: 10px; }