/* ══════════════════════════════════════════════════════════
       RESET & ROOT VARIABLES
       ── All colours, fonts, and spacing tokens live here.
       ── Edit --red, --black, --white to retheme the whole site.
    ══════════════════════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
    :root {
      --red:    #D0021B;   /* accent / CTA colour */
      --black:  #111;      /* primary text + backgrounds */
      --white:  #FAF9F7;   /* off-white page background */
      --gray:   #888;      /* muted text */
      --light:  #EFEFED;   /* light surface */
      --border: #ddd;      /* divider lines */
    }
 
    html { scroll-behavior: smooth; }
 
    body {
      background: var(--white);
      color: var(--black);
      font-family: 'Cormorant Garamond', serif;
      font-size: 16px;
      overflow-x: hidden;
    }
 
    /* ══════════════════════════════════════════════════════════
       ANNOUNCEMENT BAR
       ── Top-most strip. Edit text directly in the HTML below.
    ══════════════════════════════════════════════════════════ */
    .announcement {
      background: var(--black);
      color: var(--white);
      text-align: center;
      padding: 10px 20px;
      font-size: 12px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }
 
    /* ══════════════════════════════════════════════════════════
       NAVIGATION
       ── Sticky so it stays visible while scrolling.
       ── On mobile (<900px) the left links hide to save space.
    ══════════════════════════════════════════════════════════ */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--white);
      border-bottom: 1.5px solid var(--black);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 48px;
      height: 64px;
    }
 
    .nav-left, .nav-right {
      display: flex;
      gap: 28px;
      font-size: 13px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 500;
    }
 
    .nav-left a, .nav-right a {
      color: var(--black);
      text-decoration: none;
      transition: color 0.2s;
      cursor: pointer;
    }
 
    .nav-left a:hover, .nav-right a:hover { color: var(--red); }
 
    /* Logo — centre of the nav */
    .nav-logo {
      font-family: 'Playfair Display', serif;
      font-size: 28px;
      font-weight: 900;
      letter-spacing: -0.02em;
      color: var(--black);
      text-decoration: none;
      cursor: pointer;
    }
 
    .nav-logo span { color: var(--red); }
 
    /* ══════════════════════════════════════════════════════════
       HERO SECTION
       ── Full-bleed background image/gif with a dark overlay.
       ── To change the hero image: update HERO_IMAGE_URL in JS.
    ══════════════════════════════════════════════════════════ */
    .hero {
      position: relative;
      overflow: hidden;
      min-height: 580px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
 
    /* Background layer — set via JS using HERO_IMAGE_URL */
    .hero-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transform: scale(1.04);
      transition: transform 8s ease;
    }
 
    .hero:hover .hero-bg { transform: scale(1.0); }
 
    /* Gradient overlay ensures text remains readable over any image */
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.72) 50%,
        rgba(0,0,0,0.82) 100%
      );
    }
 
    .hero-content {
      position: relative;
      z-index: 2;
      color: var(--white);
      padding: 72px 40px 60px;
    }
 
    .hero-issue {
      font-size: 13px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 16px;
    }
 
    .hero h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(52px, 9vw, 120px);
      font-weight: 900;
      line-height: 0.9;
      letter-spacing: -0.03em;
      margin-bottom: 24px;
    }
 
    .hero h1 em { font-style: italic; color: var(--red); }
 
    .hero-sub {
      font-size: 15px;
      letter-spacing: 0.06em;
      color: rgba(255,255,255,0.65);
      max-width: 520px;
      margin: 0 auto;
      line-height: 1.7;
    }
 
    /* ══════════════════════════════════════════════════════════
       SCROLLING TICKER
       ── Red marquee strip beneath the hero.
       ── Duplicate the text inside .ticker-inner to keep it looping.
    ══════════════════════════════════════════════════════════ */
    .ticker {
      background: var(--red);
      overflow: hidden;
      white-space: nowrap;
      padding: 10px 0;
    }
 
    .ticker-inner {
      display: inline-block;
      animation: ticker 18s linear infinite;
      font-size: 13px;
      font-style: italic;
      letter-spacing: 0.12em;
      color: var(--white);
    }
 
    @keyframes ticker {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
 
    /* ══════════════════════════════════════════════════════════
       NOTICE / INFO BAR
       ── Shipping and pre-order notes. Edit text in HTML below.
    ══════════════════════════════════════════════════════════ */
    .notice-bar {
      background: var(--light);
      border-bottom: 1px solid var(--border);
      text-align: center;
      padding: 18px 20px;
    }
 
    .notice-bar p {
      font-size: 14px;
      line-height: 1.8;
      color: #444;
      letter-spacing: 0.01em;
    }
 
    .notice-bar strong { font-weight: 700; font-style: italic; }
 
    /* ══════════════════════════════════════════════════════════
       SHOP — HEADER & FILTER BUTTONS
       ── filterProducts() in JS controls which cards are shown.
    ══════════════════════════════════════════════════════════ */
    .shop-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 48px 56px 32px;
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
      gap: 16px;
    }
 
    .shop-title {
      font-family: 'Playfair Display', serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }
 
    .shop-count {
      font-size: 13px;
      color: var(--gray);
      letter-spacing: 0.08em;
    }
 
    .shop-filter { display: flex; gap: 12px; flex-wrap: wrap; }
 
    .filter-btn {
      font-family: 'Cormorant Garamond', serif;
      font-size: 12px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      border: 1px solid var(--black);
      background: transparent;
      padding: 7px 18px;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }
 
    .filter-btn:hover, .filter-btn.active {
      background: var(--black);
      color: var(--white);
    }
 
    /* ══════════════════════════════════════════════════════════
       PRODUCT GRID
       ── 3 columns on desktop → 2 on tablet → 1 on mobile.
       ── Each card fades up on load via CSS animation.
    ══════════════════════════════════════════════════════════ */
    .shop-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      border-left: 1px solid var(--border);
    }
 
    .product-card {
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 0.6s forwards;
    }
 
    /* Staggered entrance delays for each card */
    .product-card:nth-child(1) { animation-delay: 0.05s; }
    .product-card:nth-child(2) { animation-delay: 0.12s; }
    .product-card:nth-child(3) { animation-delay: 0.19s; }
    .product-card:nth-child(4) { animation-delay: 0.26s; }
    .product-card:nth-child(5) { animation-delay: 0.33s; }
    .product-card:nth-child(6) { animation-delay: 0.40s; }
 
    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }
 
    /* Cover image wrapper — 3:4 portrait ratio */
    .product-img {
      position: relative;
      aspect-ratio: 3/4;
      overflow: hidden;
      background: #e5e5e5;
    }
 
    /* Cover overlay — contains the editorial text layered on the photo */
    .cover-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 24px 20px 20px;
      position: relative;
      overflow: hidden;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
 
    .product-card:hover .cover-placeholder { transform: scale(1.04); }
 
    /* Typography inside cover artwork */
    .cover-placeholder .cover-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(32px, 5vw, 52px);
      font-weight: 900;
      line-height: 0.9;
      letter-spacing: -0.02em;
      text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }
 
    .cover-placeholder .cover-tagline {
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      font-size: clamp(18px, 2.5vw, 26px);
      line-height: 1.2;
      text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
 
    .cover-placeholder .cover-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    }
 
    /* ── Individual cover colour schemes ──
       To change a cover image update the background-image URL. */
    .cover-1 { background-image: url("https://i.mdel.net/i/db/2022/2/1658063/1658063-800w.jpg"); color: var(--white); }
    .cover-1 .cover-title { color: var(--white); }
    .cover-1 .cover-tagline { color: var(--red); }
    .cover-1 .cover-name { color: rgba(255,255,255,0.85); }
    .cover-1 .cover-deco {
      position: absolute; bottom: 60px; right: -10px; width: 70%; height: 70%;
      background: radial-gradient(circle at 60% 60%, rgba(208,2,27,0.18) 0%, transparent 70%);
    }
 
    .cover-2 { background-image: url("https://ca-times.brightspotcdn.com/dims4/default/a2bf432/2147483647/strip/false/crop/4480x5546+0+0/resize/1200x1486!/quality/75/?url=https%3A%2F%2Fcalifornia-times-brightspot.s3.amazonaws.com%2F52%2F80%2F8897802b4a6c9f90c07c25f4b658%2F1360594-env-penelope-cruz-cover-1.jpg"); color: var(--white); }
    .cover-2 .cover-title { color: var(--white); }
    .cover-2 .cover-tagline { color: #fff; }
    .cover-2 .cover-name { color: rgba(255,255,255,0.85); }
    .cover-2 .cover-deco {
      position: absolute; inset: 0;
      background: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(0,0,0,0.04) 18px, rgba(0,0,0,0.04) 36px);
    }
 
    .cover-3 { background-image: url("https://i.pinimg.com/736x/48/63/9e/48639e686daa18c5334c79310df60b6a.jpg"); color: var(--white); }
    .cover-3 .cover-title { color: var(--white); }
    .cover-3 .cover-tagline { color: var(--red); }
    .cover-3 .cover-name { color: rgba(255,255,255,0.85); }
 
    .cover-4 { background-image: url("https://i.pinimg.com/736x/c5/c8/81/c5c8817d93ab53d5bdf87dcba1e051eb.jpg"); color: var(--white); }
    .cover-4 .cover-title { color: var(--red); }
    .cover-4 .cover-tagline { color: var(--white); }
    .cover-4 .cover-name { color: rgba(255,255,255,0.85); }
 
    .cover-5 { background-image: url("https://i.pinimg.com/736x/f6/24/ea/f624ea1e6c7e8e2cbfbba12f83bead0d.jpg"); color: var(--white); }
    .cover-5 .cover-title { color: var(--white); }
    .cover-5 .cover-tagline { color: var(--red); }
    .cover-5 .cover-name { color: rgba(255,255,255,0.85); }
 
    .cover-6 { background-image: url("https://i.pinimg.com/736x/36/6e/45/366e4592d7f357341d10a8f75da91820.jpg"); color: var(--white); }
    .cover-6 .cover-title { color: var(--white); }
    .cover-6 .cover-tagline { color: #ffd700; }
    .cover-6 .cover-name { color: rgba(255,255,255,0.85); }
 
    /* Issue number badge (top-right of cover) */
    .cover-badge {
      position: absolute; top: 14px; right: 14px;
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--red); color: var(--white);
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; letter-spacing: 0.05em; z-index: 2;
    }
 
    /* Striped bar along the bottom of each cover */
    .cover-stripe {
      position: absolute; left: 0; bottom: 0; width: 100%; height: 6px;
      background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 20px, transparent 20px, transparent 40px);
      z-index: 2;
    }
 
    /* ══════════════════════════════════════════════════════════
       PRODUCT INFO (below cover image)
    ══════════════════════════════════════════════════════════ */
    .product-info { padding: 20px 24px 24px; background: var(--white); }
 
    .product-issue {
      font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--red); margin-bottom: 4px;
    }
 
    .product-name {
      font-family: 'Playfair Display', serif; font-size: 17px;
      font-weight: 700; line-height: 1.25; margin-bottom: 10px;
    }
 
    .product-price {
      font-size: 16px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 16px;
    }
 
    /* ── ADD TO CART / OUT OF STOCK BUTTONS ──
       .in-stock   → clickable, dark background
       .out-of-stock → greyed out, not clickable
       .added      → green flash after adding (resets after 1.2s) */
    .stock-btn {
      width: 100%; padding: 12px;
      font-family: 'Cormorant Garamond', serif; font-size: 12px;
      letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
      border: 1.5px solid; cursor: pointer; transition: all 0.25s;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
 
    .stock-btn.out-of-stock {
      border-color: #ccc; background: #f5f5f5; color: var(--gray); cursor: not-allowed;
    }
 
    .stock-btn.in-stock {
      border-color: var(--black); background: var(--black); color: var(--white);
    }
 
    .stock-btn.in-stock:hover { background: var(--red); border-color: var(--red); }
 
    /* Brief green confirmation flash when item is added */
    .stock-btn.added {
      border-color: #2a7a2a; background: #2a7a2a; color: var(--white);
    }
 
    /* ══════════════════════════════════════════════════════════
       MID-PAGE TRUST BANNER (Free Returns / Shipping / etc.)
    ══════════════════════════════════════════════════════════ */
    .mid-banner {
      background: var(--red); color: var(--white); text-align: center;
      padding: 32px 24px; display: flex; align-items: center;
      justify-content: center; gap: 40px; flex-wrap: wrap;
      border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    }
 
    .mid-banner p { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
    .mid-banner strong { font-size: 18px; font-style: italic; display: block; margin-top: 2px; }
    .mid-banner .divider { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }
 
    /* ══════════════════════════════════════════════════════════
       FOOTER
    ══════════════════════════════════════════════════════════ */
    footer {
      background: var(--black); color: rgba(255,255,255,0.55);
      padding: 56px 56px 32px; margin-top: 64px;
    }
 
    .footer-top {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px; padding-bottom: 48px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
 
    .footer-brand .logo {
      font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900;
      color: var(--white); margin-bottom: 16px; display: block;
    }
 
    .footer-brand .logo span { color: var(--red); }
    .footer-brand p { font-size: 14px; line-height: 1.8; max-width: 260px; }
 
    .footer-col h4 {
      font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--white); margin-bottom: 20px;
    }
 
    .footer-col ul { list-style: none; }
    .footer-col ul li { margin-bottom: 10px; }
    .footer-col ul li a {
      color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; transition: color 0.2s;
    }
    .footer-col ul li a:hover { color: var(--white); }
 
    .footer-bottom {
      display: flex; justify-content: space-between; align-items: center;
      padding-top: 32px; font-size: 12px; letter-spacing: 0.06em;
      flex-wrap: wrap; gap: 12px;
    }
 
    /* ══════════════════════════════════════════════════════════
       FLOATING CART BUTTON (bottom-right)
       ── The badge (cart-count) shows the current item count.
       ── Clicking it opens the cart drawer.
    ══════════════════════════════════════════════════════════ */
    .cart-float {
      position: fixed; bottom: 32px; right: 32px; z-index: 200;
      background: var(--black); color: var(--white); border: none;
      width: 56px; height: 56px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; box-shadow: 0 8px 32px rgba(0,0,0,0.28);
      transition: background 0.2s, transform 0.2s; font-size: 20px;
    }
 
    .cart-float:hover { background: var(--red); transform: scale(1.08); }
 
    /* Red badge — hidden when cart is empty */
    .cart-count {
      position: absolute; top: -4px; right: -4px;
      background: var(--red); color: var(--white);
      min-width: 20px; height: 20px; border-radius: 10px;
      padding: 0 4px;
      font-size: 11px; font-weight: 700;
      display: none; align-items: center; justify-content: center;
    }
 
    .cart-count.show { display: flex; }
 
    /* ══════════════════════════════════════════════════════════
       TOAST NOTIFICATION
       ── Slides in from the right when items are added/removed.
    ══════════════════════════════════════════════════════════ */
    .toast {
      position: fixed; bottom: 100px; right: 32px;
      background: var(--black); color: var(--white);
      padding: 14px 24px;
      font-size: 15px; letter-spacing: 0.05em; border-left: 3px solid var(--red);
      transform: translateX(120%); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      z-index: 300; pointer-events: none; max-width: calc(100vw - 64px);
    }
 
    .toast.show { transform: translateX(0); }
 
    /* ══════════════════════════════════════════════════════════
       CART DRAWER
       ── Slides in from the right side of the screen.
       ── Opened by openCart(), closed by closeCart().
       ── renderCart() rebuilds the item list from the cartItems array.
    ══════════════════════════════════════════════════════════ */
    .cart-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.45);
      z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
    }
 
    .cart-overlay.open { opacity: 1; pointer-events: all; }
 
    .cart-drawer {
      position: fixed; top: 0; right: 0; height: 100%;
      width: 420px; max-width: 95vw; background: var(--white);
      z-index: 500; display: flex; flex-direction: column;
      transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      box-shadow: -12px 0 48px rgba(0,0,0,0.18);
    }
 
    .cart-drawer.open { transform: translateX(0); }
 
    .cart-drawer-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 28px 32px 24px; border-bottom: 1.5px solid var(--black);
    }
 
    .cart-drawer-title {
      font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900;
    }
 
    .cart-drawer-title span { color: var(--red); }
 
    .cart-close-btn {
      background: none; border: none; cursor: pointer; padding: 6px;
      color: var(--black); font-size: 22px; transition: color 0.2s; line-height: 1;
    }
 
    .cart-close-btn:hover { color: var(--red); }
 
    /* Scrollable item list */
    .cart-drawer-body { flex: 1; overflow-y: auto; padding: 0; }
 
    /* Shown when cartItems is empty */
    .cart-empty-state {
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; height: 100%; min-height: 300px; gap: 12px;
    }
 
    .cart-empty-state .empty-icon { font-size: 48px; opacity: 0.4; }
 
    .cart-empty-state p {
      font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray);
    }
 
    /* ── Individual cart row ── */
    .cart-item {
      display: flex; align-items: center; gap: 18px;
      padding: 20px 32px; border-bottom: 1px solid var(--border);
      animation: fadeUp 0.3s forwards;
    }
 
    .cart-item-thumb {
      width: 64px; height: 80px; flex-shrink: 0;
      overflow: hidden; border: 1px solid var(--border);
    }
 
    .cart-item-thumb-inner { width: 100%; height: 100%; background-size: cover; background-position: center; }
 
    .cart-item-info { flex: 1; min-width: 0; }
    .cart-item-issue { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
    .cart-item-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
    .cart-item-price { font-size: 14px; color: var(--gray); }
 
    .cart-item-remove {
      background: none; border: 1px solid var(--border); cursor: pointer;
      padding: 6px 10px; font-size: 12px; color: var(--gray); transition: all 0.2s;
      font-family: 'Cormorant Garamond', serif; letter-spacing: 0.1em;
      text-transform: uppercase; flex-shrink: 0;
    }
 
    .cart-item-remove:hover { border-color: var(--red); color: var(--red); background: rgba(208,2,27,0.04); }
 
    /* Sticky footer: total + checkout button */
    .cart-drawer-footer {
      padding: 24px 32px 32px; border-top: 1.5px solid var(--black); background: var(--white);
    }
 
    .cart-total-row {
      display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px;
    }
 
    .cart-total-label {
      font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray);
    }
 
    .cart-total-amount { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; }
 
    .cart-checkout-btn {
      width: 100%; padding: 16px; background: var(--black); color: var(--white); border: none;
      font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 0.2em;
      text-transform: uppercase; cursor: pointer; transition: background 0.25s;
    }
 
    .cart-checkout-btn:hover { background: var(--red); }
 
    /* "Clear all" link — removes every item at once */
    .cart-clear-btn {
      background: none; border: none; cursor: pointer;
      font-family: 'Cormorant Garamond', serif; font-size: 12px;
      letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray);
      text-decoration: underline; margin-top: 10px; transition: color 0.2s;
      display: block; width: 100%; text-align: center; padding: 4px 0;
    }
 
    .cart-clear-btn:hover { color: var(--red); }
 
    .cart-shipping-note {
      text-align: center; font-size: 11px; letter-spacing: 0.08em;
      color: var(--gray); margin-top: 12px; text-transform: uppercase;
    }
 
    /* ══════════════════════════════════════════════════════════
       NEWSLETTER POPUP
       ── Fades in after 0.8s. closeNewsletter() hides it.
    ══════════════════════════════════════════════════════════ */
    .newsletter-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.55);
      z-index: 600; display: flex; align-items: center; justify-content: center;
      padding: 24px; opacity: 0; animation: overlayIn 0.5s 0.8s forwards;
    }
 
    @keyframes overlayIn { to { opacity: 1; } }
 
    .newsletter-overlay.hidden { display: none; }
 
    .newsletter-modal {
      background: var(--white); width: 100%; max-width: 560px;
      position: relative; overflow: hidden;
      transform: translateY(32px);
      animation: modalIn 0.5s 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
 
    @keyframes modalIn { to { transform: translateY(0); } }
 
    .newsletter-modal-top {
      background: var(--white); color: var(--black);
      padding: 48px 48px 40px; position: relative; text-align: center;
      border-bottom: 1px solid var(--border);
    }
 
    /* Large watermark "P" in the background */
    .newsletter-modal-top::before {
      content: 'P'; position: absolute;
      font-family: 'Playfair Display', serif; font-size: 200px; font-weight: 900;
      color: rgba(0,0,0,0.04); top: 50%; left: 50%;
      transform: translate(-50%, -50%); line-height: 1; pointer-events: none;
    }
 
    .newsletter-label {
      font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
      color: var(--red); margin-bottom: 12px; position: relative;
    }
 
    .newsletter-heading {
      font-family: 'Playfair Display', serif;
      font-size: clamp(28px, 5vw, 44px); font-weight: 900;
      line-height: 1; letter-spacing: -0.02em; margin-bottom: 14px; position: relative;
    }
 
    .newsletter-heading em { color: var(--red); font-style: italic; }
 
    .newsletter-sub {
      font-size: 15px; color: var(--gray); line-height: 1.65;
      max-width: 340px; margin: 0 auto; position: relative;
    }
 
    .newsletter-modal-bottom { padding: 36px 48px 40px; }
    .newsletter-form { display: flex; border: 1.5px solid var(--black); }
 
    .newsletter-input {
      flex: 1; padding: 14px 18px; border: none; background: transparent;
      font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--black); outline: none;
    }
 
    .newsletter-input::placeholder { color: var(--gray); }
 
    .newsletter-submit {
      padding: 14px 24px; background: var(--black); color: var(--white); border: none;
      font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 0.18em;
      text-transform: uppercase; cursor: pointer; transition: background 0.2s; white-space: nowrap;
    }
 
    .newsletter-submit:hover { background: var(--red); }
 
    .newsletter-fine { margin-top: 14px; font-size: 11px; color: var(--gray); text-align: center; }
 
    .newsletter-close {
      position: absolute; top: 16px; right: 16px;
      background: none; border: 1px solid var(--border); color: var(--gray);
      width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
      display: flex; align-items: center; justify-content: center; font-size: 16px;
      transition: all 0.2s; line-height: 1; z-index: 2;
    }
 
    .newsletter-close:hover { background: var(--light); color: var(--black); border-color: var(--black); }
 
    /* Decorative stripe at the top of the newsletter modal */
    .newsletter-stripe {
      height: 5px;
      background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 20px, var(--black) 20px, var(--black) 40px);
    }
 
    .newsletter-success { display: none; text-align: center; padding: 0 48px 40px; }
    .newsletter-success.show { display: block; }
    .newsletter-modal-bottom.hide { display: none; }
    .success-icon { font-size: 36px; margin-bottom: 12px; display: block; }
    .success-heading { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
    .success-text { font-size: 14px; color: var(--gray); }
 
    /* ══════════════════════════════════════════════════════════
       SEARCH OVERLAY
       ── Full-screen dark overlay.
       ── openSearch() / closeSearch() toggle it.
    ══════════════════════════════════════════════════════════ */
    .search-overlay {
      position: fixed; inset: 0; z-index: 700;
      background: rgba(17,17,17,0.96);
      display: flex; flex-direction: column; align-items: center;
      justify-content: flex-start; padding-top: 120px;
      opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    }
 
    .search-overlay.open { opacity: 1; pointer-events: all; }
 
    .search-close-btn {
      position: absolute; top: 28px; right: 36px;
      background: none; border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.6); width: 44px; height: 44px;
      border-radius: 50%; cursor: pointer; font-size: 20px;
      display: flex; align-items: center; justify-content: center; transition: all 0.2s;
    }
 
    .search-close-btn:hover { border-color: var(--red); color: var(--white); background: var(--red); }
 
    .search-label {
      font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
      color: var(--red); margin-bottom: 24px;
    }
 
    .search-form {
      width: 100%; max-width: 680px; padding: 0 24px;
      display: flex; align-items: center;
      border-bottom: 2px solid rgba(255,255,255,0.3); transition: border-color 0.2s;
    }
 
    .search-form:focus-within { border-color: var(--white); }
 
    .search-input {
      flex: 1; background: transparent; border: none; outline: none;
      font-family: 'Playfair Display', serif;
      font-size: clamp(28px, 5vw, 48px); font-weight: 700;
      color: var(--white); padding: 8px 0 16px; caret-color: var(--red);
    }
 
    .search-input::placeholder { color: rgba(255,255,255,0.2); }
 
    .search-submit {
      background: none; border: none; cursor: pointer;
      color: rgba(255,255,255,0.4); font-size: 28px; padding: 8px 0 16px 16px; transition: color 0.2s;
    }
 
    .search-submit:hover { color: var(--red); }
 
    .search-hints { margin-top: 40px; width: 100%; max-width: 680px; padding: 0 24px; }
 
    .search-hints-label {
      font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
      color: rgba(255,255,255,0.35); margin-bottom: 16px; display: block;
    }
 
    .search-tags { display: flex; flex-wrap: wrap; gap: 10px; }
 
    .search-tag {
      font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 0.1em;
      text-transform: uppercase; color: rgba(255,255,255,0.55);
      border: 1px solid rgba(255,255,255,0.15); padding: 8px 18px;
      cursor: pointer; transition: all 0.2s; background: transparent;
    }
 
    .search-tag:hover { border-color: var(--red); color: var(--white); background: rgba(208,2,27,0.15); }
 
    .search-results {
      margin-top: 32px; width: 100%; max-width: 680px; padding: 0 24px;
      max-height: 300px; overflow-y: auto;
    }
 
    .search-result-item {
      display: flex; align-items: center; gap: 16px;
      padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
      cursor: pointer; transition: opacity 0.2s;
    }
 
    .search-result-item:hover { opacity: 0.75; }
 
    .search-result-thumb {
      width: 40px; height: 52px; flex-shrink: 0;
      background-size: cover; background-position: center;
      border: 1px solid rgba(255,255,255,0.1);
    }
 
    .search-result-info { flex: 1; }
    .search-result-sub { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }
    .search-result-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--white); }
    .search-no-results { font-size: 15px; color: rgba(255,255,255,0.35); padding: 24px 0; }
 
    /* ══════════════════════════════════════════════════════════
       ACCOUNT MODAL
    ══════════════════════════════════════════════════════════ */
    .account-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.6);
      z-index: 650; display: flex; align-items: center; justify-content: center;
      padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    }
 
    .account-overlay.open { opacity: 1; pointer-events: all; }
 
    .account-modal {
      background: var(--white); width: 100%; max-width: 480px;
      position: relative; overflow: hidden;
      transform: translateY(24px) scale(0.97);
      transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s ease;
      opacity: 0;
    }
 
    .account-overlay.open .account-modal { transform: translateY(0) scale(1); opacity: 1; }
 
    .account-stripe {
      height: 5px;
      background: repeating-linear-gradient(90deg, var(--black) 0px, var(--black) 20px, var(--red) 20px, var(--red) 40px);
    }
 
    .account-modal-inner { padding: 40px 44px 44px; }
    .account-modal-header { margin-bottom: 32px; text-align: center; }
 
    .account-logo {
      font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900;
      letter-spacing: -0.02em; display: block; margin-bottom: 10px;
    }
 
    .account-logo span { color: var(--red); }
 
    .account-tabs {
      display: flex; border-bottom: 1.5px solid var(--black); margin-bottom: 32px;
    }
 
    .account-tab {
      flex: 1; padding: 12px 0; text-align: center;
      font-family: 'Cormorant Garamond', serif; font-size: 12px;
      letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
      cursor: pointer; border: none; background: none; color: var(--gray);
      border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: all 0.2s;
    }
 
    .account-tab.active { color: var(--black); border-bottom-color: var(--black); }
    .account-tab:hover:not(.active) { color: var(--black); }
 
    .account-panel { display: none; }
    .account-panel.active { display: block; }
 
    .account-field { margin-bottom: 22px; }
 
    .account-field label {
      display: block; font-size: 11px; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--gray); margin-bottom: 8px;
    }
 
    .account-field input {
      width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
      background: transparent; font-family: 'Cormorant Garamond', serif;
      font-size: 15px; color: var(--black); outline: none; transition: border-color 0.2s;
    }
 
    .account-field input:focus { border-color: var(--black); }
    .account-field input::placeholder { color: #bbb; }
 
    .account-submit {
      width: 100%; padding: 16px; background: var(--black); color: var(--white);
      border: none; font-family: 'Cormorant Garamond', serif; font-size: 13px;
      letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
      transition: background 0.25s; margin-top: 8px;
    }
 
    .account-submit:hover { background: var(--red); }
 
    .account-forgot { text-align: right; margin-top: -12px; margin-bottom: 20px; }
    .account-forgot a { font-size: 12px; color: var(--gray); text-decoration: none; transition: color 0.2s; }
    .account-forgot a:hover { color: var(--red); }
 
    .account-divider {
      display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--gray);
    }
 
    .account-divider::before, .account-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }
 
    .account-divider span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
 
    .account-social {
      width: 100%; padding: 14px; border: 1.5px solid var(--border);
      background: transparent; font-family: 'Cormorant Garamond', serif;
      font-size: 13px; letter-spacing: 0.1em; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      transition: border-color 0.2s, background 0.2s; color: var(--black);
    }
 
    .account-social:hover { border-color: var(--black); background: var(--light); }
 
    .account-terms { font-size: 11px; color: var(--gray); text-align: center; margin-top: 20px; line-height: 1.6; }
    .account-terms a { color: var(--black); text-decoration: underline; }
 
    .account-close {
      position: absolute; top: 16px; right: 16px;
      background: none; border: 1px solid var(--border); color: var(--gray);
      width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; transition: all 0.2s; line-height: 1; z-index: 2;
    }
 
    .account-close:hover { background: var(--light); color: var(--black); border-color: var(--black); }
 
    .account-success { text-align: center; padding: 32px 0; display: none; }
    .account-success.show { display: block; }
    .account-success-icon { font-size: 40px; margin-bottom: 12px; display: block; }
    .account-success-heading { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
    .account-success-text { font-size: 14px; color: var(--gray); }
 
    /* ══════════════════════════════════════════════════════════
       ABOUT OVERLAY (iframe)
       ── Loads theperfectmagazine.com/about in an iframe.
    ══════════════════════════════════════════════════════════ */
    .about-overlay {
      position: fixed; inset: 0; z-index: 680;
      display: flex; flex-direction: column;
      opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
    }
 
    .about-overlay.open { opacity: 1; pointer-events: all; }
 
    .about-bar {
      height: 52px; background: var(--black);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 28px; flex-shrink: 0;
    }
 
    .about-bar-left { display: flex; align-items: center; gap: 14px; }
 
    .about-bar-logo {
      font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 900;
      color: var(--white);
    }
 
    .about-bar-logo span { color: var(--red); }
 
    .about-bar-label {
      font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
      color: rgba(255,255,255,0.4); border-left: 1px solid rgba(255,255,255,0.15); padding-left: 14px;
    }
 
    .about-close {
      background: none; border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.6); padding: 7px 20px;
      font-family: 'Cormorant Garamond', serif; font-size: 12px;
      letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
    }
 
    .about-close:hover { border-color: var(--red); color: var(--white); background: var(--red); }
 
    .about-frame { flex: 1; border: none; background: var(--white); }
 
    /* ══════════════════════════════════════════════════════════
       RESPONSIVE BREAKPOINTS
       ── 900px: 2-column grid, hide left nav links
       ── 700px: stack mid-banner vertically, hide dividers
       ── 580px: 1-column grid, full-width shop header
    ══════════════════════════════════════════════════════════ */
    @media (max-width: 900px) {
      .shop-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-top { grid-template-columns: 1fr 1fr; }
      nav { padding: 0 24px; }
      .nav-left { display: none; }    /* hide "Magazine / Shop / About" on tablet */
    }
 
    @media (max-width: 700px) {
      /* Stack trust-banner items vertically on small screens */
      .mid-banner { flex-direction: column; gap: 24px; }
      .mid-banner .divider { display: none; }
 
      footer { padding: 40px 24px 24px; }
      .footer-top { grid-template-columns: 1fr; gap: 32px; }
 
      /* Floating cart + toast move closer to edge on mobile */
      .cart-float { bottom: 20px; right: 20px; }
      .toast { right: 20px; bottom: 84px; }
    }
 
    @media (max-width: 580px) {
      /* Single-column product grid */
      .shop-grid { grid-template-columns: 1fr; }
 
      /* Stack shop header items */
      .shop-header { flex-direction: column; align-items: flex-start; padding: 24px; }
 
      .account-modal-inner { padding: 28px 24px 32px; }
 
      /* Ensure newsletter modal padding works on small screens */
      .newsletter-modal-top { padding: 36px 28px 32px; }
      .newsletter-modal-bottom { padding: 28px 28px 32px; }
    }