/* ============================================================
     1. DESIGN TOKENS
     ============================================================ */
  /* Two themes, one gallery.
     Day  — the shop in daylight: cream walls, deep brown ink, gold trim.
     Night— the same room after closing: the walls go dark and recede, the
            canvases stay lit, and brass is the only warm light left on.
     Every value that differs between the two lives here; nothing below this
     block hard-codes a colour. */
  :root{
    color-scheme: light;

    --color-bg:            #F8F4ED;
    --color-bg-alt:        #EFE6D6;
    --color-surface:       #FFFFFF;
    --color-ink:           #221A13;
    --color-ink-soft:      #5C5148;
    --color-heading:       #43301D;   /* headings, logo, section titles */
    --color-price:         #43301D;
    --color-solid:         #43301D;   /* filled buttons, chips, badges  */
    --color-solid-hover:   #221A13;
    --color-on-solid:      #FFFFFF;
    --color-gold:          #A8843E;
    --color-gold-deep:     #8A6A2E;
    --color-gold-soft:     #DFC98F;
    --color-line:          #E4D9C2;
    --color-danger:        #A3402F;
    --color-success:       #3E6B4F;

    --color-band-bg:       #43301D;   /* announcement bar */
    --color-band-ink:      #F4EEDF;
    --color-header-bg:     rgba(255,255,255,0.85);
    --color-overlay:       rgba(36,28,21,0.55);
    --color-frame:         #FFFFFF;   /* mat around the hero canvas */
    --color-frame-caption: rgba(255,255,255,0.80);
    --color-input-bg:      var(--color-surface);
    --color-note-bg:       #F0F5F1;
    --color-note-line:     #CFE3D5;
    --color-track-dot:     #FFFFFF;
    --color-admin-side:    #43301D;
    --color-admin-side-ink:#EFE7D8;
    --color-footer-ink:    #EFE7D8;
    --color-footer-strong: #FFFFFF;
    --gradient-offer:      linear-gradient(135deg,#4E3821,#43301D 55%,#2E2013);
    --gradient-footer:     linear-gradient(180deg,#3B2A18,#43301D);
    --gradient-hero:       linear-gradient(135deg,var(--color-bg-alt),var(--color-bg));
    --glow-gold:           rgba(168,132,62,0.16);
    --glow-ink:            rgba(67,48,29,0.10);
    --tint-gold-weak:      rgba(168,132,62,0.10);
    --tint-gold-mid:       rgba(168,132,62,0.12);
    --ring-gold:           rgba(168,132,62,0.15);

    --font-display: "Noto Naskh Arabic", Georgia, "Amiri", "Traditional Arabic", serif;
    --font-body:    "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

    --radius-s: 8px;
    --radius-m: 16px;
    --radius-l: 24px;
    --shadow-card:  0 1px 2px rgba(36,28,21,0.05), 0 6px 18px -8px rgba(36,28,21,0.12);
    --shadow-hover: 0 4px 10px rgba(36,28,21,0.08), 0 22px 40px -14px rgba(36,28,21,0.28);
    --shadow-soft:  0 10px 30px -12px rgba(36,28,21,0.18);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.18s var(--ease);
    --t-med:  0.32s var(--ease);

    --gutter: 24px;
  }

  /* --- night palette -------------------------------------------------
     The ground is a warm bistre, never a neutral black — it is the brand
     brown carried down, so the cream and gold still belong to it. Surfaces
     sit a step ABOVE the page rather than below it, the way a hung canvas
     catches the light on a dark wall. Solids flip from brown to brass:
     deep brown on a dark wall is invisible, brass is the picture-light. */
  .theme-night{
    color-scheme: dark;

    --color-bg:            #14100A;
    --color-bg-alt:        #1C160E;
    --color-surface:       #221A11;
    --color-ink:           #F0E6D4;
    --color-ink-soft:      #B3A48C;
    --color-heading:       #F2E7D2;
    --color-price:         #E4C384;
    --color-solid:         #D9B36A;
    --color-solid-hover:   #EFCE8E;
    --color-on-solid:      #1A1309;
    --color-gold:          #D2A85C;
    --color-gold-deep:     #E0BC78;
    --color-gold-soft:     #C9A860;
    --color-line:          #392D1D;
    --color-danger:        #E08B78;
    --color-success:       #7FB894;

    --color-band-bg:       #241B10;
    --color-band-ink:      #DCC79A;
    --color-header-bg:     rgba(20,16,10,0.86);
    --color-overlay:       rgba(8,6,3,0.72);
    --color-frame:         #2E2417;
    --color-frame-caption: rgba(244,236,220,0.82);
    --color-input-bg:      #1A140D;
    --color-note-bg:       #16211A;
    --color-note-line:     #2C4436;
    --color-track-dot:     #221A11;
    --color-admin-side:    #1C160E;
    --color-admin-side-ink:#E4D6B8;
    --color-footer-ink:    #D9C9A9;
    --color-footer-strong: #F4EBD8;
    --gradient-offer:      linear-gradient(135deg,#2B2114,#1E1710 55%,#120D07);
    --gradient-footer:     linear-gradient(180deg,#1A140D,#100C07);
    --gradient-hero:       linear-gradient(135deg,#1B150D,#14100A);
    --glow-gold:           rgba(217,179,106,0.14);
    --glow-ink:            rgba(0,0,0,0.35);
    --tint-gold-weak:      rgba(217,179,106,0.09);
    --tint-gold-mid:       rgba(217,179,106,0.13);
    --ring-gold:           rgba(217,179,106,0.22);

    /* On a dark ground a drop shadow reads as dirt. Depth comes from a warm
       rim of light on the top edge instead. */
    --shadow-card:  0 0 0 1px rgba(0,0,0,0.35), 0 10px 24px -14px rgba(0,0,0,0.9);
    --shadow-hover: 0 0 0 1px rgba(217,179,106,0.22), 0 26px 46px -20px rgba(0,0,0,0.95);
    --shadow-soft:  0 12px 30px -16px rgba(0,0,0,0.85);
  }

  /* Follow the system until the visitor picks a side. */
  @media (prefers-color-scheme: dark){
    :root:not(.theme-day){
      color-scheme: dark;

      --color-bg:            #14100A;
      --color-bg-alt:        #1C160E;
      --color-surface:       #221A11;
      --color-ink:           #F0E6D4;
      --color-ink-soft:      #B3A48C;
      --color-heading:       #F2E7D2;
      --color-price:         #E4C384;
      --color-solid:         #D9B36A;
      --color-solid-hover:   #EFCE8E;
      --color-on-solid:      #1A1309;
      --color-gold:          #D2A85C;
      --color-gold-deep:     #E0BC78;
      --color-gold-soft:     #C9A860;
      --color-line:          #392D1D;
      --color-danger:        #E08B78;
      --color-success:       #7FB894;

      --color-band-bg:       #241B10;
      --color-band-ink:      #DCC79A;
      --color-header-bg:     rgba(20,16,10,0.86);
      --color-overlay:       rgba(8,6,3,0.72);
      --color-frame:         #2E2417;
      --color-frame-caption: rgba(244,236,220,0.82);
      --color-input-bg:      #1A140D;
      --color-note-bg:       #16211A;
      --color-note-line:     #2C4436;
      --color-track-dot:     #221A11;
      --color-admin-side:    #1C160E;
      --color-admin-side-ink:#E4D6B8;
      --color-footer-ink:    #D9C9A9;
      --color-footer-strong: #F4EBD8;
      --gradient-offer:      linear-gradient(135deg,#2B2114,#1E1710 55%,#120D07);
      --gradient-footer:     linear-gradient(180deg,#1A140D,#100C07);
      --gradient-hero:       linear-gradient(135deg,#1B150D,#14100A);
      --glow-gold:           rgba(217,179,106,0.14);
      --glow-ink:            rgba(0,0,0,0.35);
      --tint-gold-weak:      rgba(217,179,106,0.09);
      --tint-gold-mid:       rgba(217,179,106,0.13);
      --ring-gold:           rgba(217,179,106,0.22);

      --shadow-card:  0 0 0 1px rgba(0,0,0,0.35), 0 10px 24px -14px rgba(0,0,0,0.9);
      --shadow-hover: 0 0 0 1px rgba(217,179,106,0.22), 0 26px 46px -20px rgba(0,0,0,0.95);
      --shadow-soft:  0 12px 30px -16px rgba(0,0,0,0.85);
    }
  }

  *{ box-sizing:border-box; margin:0; padding:0; }

  html{ scroll-behavior:smooth; }

  ::selection{ background:var(--color-gold-soft); color:#2E2114; }

  body{
    font-family:var(--font-body);
    background:var(--color-bg);
    color:var(--color-ink);
    transition:background-color var(--t-med), color var(--t-med);
    line-height:1.7;
    font-size:16px;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
    overflow-x:hidden;
  }
  #storefront-root{ overflow-x:hidden; }
  body.scroll-locked{ position:fixed; left:0; right:0; width:100%; }

  img, svg{ display:block; max-width:100%; }
  /* display:block above outranks the browser's [hidden] rule, which is why the
     empty image preview in the admin form showed as a broken-image icon. */
  [hidden]{ display:none !important; }
  a{ color:inherit; text-decoration:none; }
  button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
  ul{ list-style:none; }
  input, select, textarea{ font-family:inherit; font-size:15px; }

  .container{
    max-width:1180px;
    margin:0 auto;
    padding:0 var(--gutter);
  }

  .hidden{ display:none !important; }

  .section{ padding:76px 0; }
  .section-alt{ background:var(--color-bg-alt); }

  .section-head{
    text-align:center;
    max-width:580px;
    margin:0 auto 46px;
  }
  .section-head h2{
    font-family:var(--font-display);
    font-size:34px;
    font-weight:600;
    line-height:1.3;
    margin-bottom:14px;
    color:var(--color-heading);
  }
  .section-head h2::after{
    content:"";
    display:block;
    width:52px; height:3px;
    margin:16px auto 0;
    border-radius:3px;
    background:linear-gradient(90deg,var(--color-gold),var(--color-gold-soft));
  }
  .section-head p{ color:var(--color-ink-soft); font-size:15.5px; }

  /* ---- scroll / render reveal (replays on every SPA view swap) ---- */
  @keyframes artea-rise{
    from{ opacity:0; transform:translateY(22px); }
    to{ opacity:1; transform:none; }
  }
  #view-root > section{
    animation:artea-rise 0.6s var(--ease) both;
  }
  #view-root > section:nth-child(2){ animation-delay:0.06s; }
  #view-root > section:nth-child(3){ animation-delay:0.12s; }
  #view-root > section:nth-child(4){ animation-delay:0.18s; }
  #view-root > section:nth-child(n+5){ animation-delay:0.24s; }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    #view-root > section{ animation:none; }
    *,*::before,*::after{ transition-duration:0.01ms !important; }
  }

  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:13px 30px;
    border-radius:999px;
    font-size:15px;
    font-weight:600;
    border:1px solid transparent;
    transition:transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
    will-change:transform;
  }
  .btn:hover{ transform:translateY(-2px); }
  .btn:active{ transform:translateY(0); }
  .btn:focus-visible{ outline:2px solid var(--color-gold); outline-offset:3px; }
  .btn-primary{ background:var(--color-solid); color:var(--color-on-solid); box-shadow:var(--shadow-soft); }
  .btn-primary:hover{ background:var(--color-solid-hover); box-shadow:var(--shadow-hover); }
  .btn-outline{ background:transparent; border-color:var(--color-solid); color:var(--color-heading); }
  .btn-outline:hover{ background:var(--color-solid); color:var(--color-on-solid); }
  .btn-gold{ background:linear-gradient(135deg,var(--color-gold),var(--color-gold-deep)); color:var(--color-on-solid); box-shadow:var(--shadow-soft); }
  .btn-gold:hover{ filter:brightness(1.06); box-shadow:var(--shadow-hover); }
  .btn-block{ width:100%; }
  .btn-small{ padding:9px 18px; font-size:13px; }
  .btn:disabled{ opacity:0.5; cursor:not-allowed; transform:none; box-shadow:none; }

  .icon{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; }

  /* ============================================================
     2. ANNOUNCEMENT BAR + HEADER
     ============================================================ */
  .announcement-bar{
    background:var(--color-band-bg);
    color:var(--color-band-ink);
    font-size:13px;
    overflow-x:auto;
    white-space:nowrap;
  }
  .announcement-bar .container{
    display:flex;
    gap:32px;
    padding:9px var(--gutter);
  }
  .announcement-bar span{ opacity:0.95; }

  header.site-header{
    position:sticky; top:0; z-index:40;
    background:var(--color-header-bg);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-bottom:1px solid var(--color-line);
    transition:box-shadow var(--t-med);
  }
  header.site-header:hover{ box-shadow:var(--shadow-soft); }
  .header-row{
    display:flex; align-items:center; justify-content:space-between;
    /* Shorthand here would cancel .container's side padding and push the cart
       badge off the edge of a phone screen. */
    padding-top:16px; padding-bottom:16px;
  }
  .logo{
    font-family:var(--font-display);
    font-size:26px;
    font-weight:700;
    letter-spacing:1px;
    color:var(--color-heading);
    transition:color var(--t-fast);
  }
  .logo:hover{ color:var(--color-gold); }
  nav.main-nav{ display:flex; gap:28px; }
  nav.main-nav a{
    font-size:14.5px; color:var(--color-ink);
    position:relative; padding-bottom:4px;
    transition:color var(--t-fast);
  }
  nav.main-nav a::after{
    content:""; position:absolute; right:0; bottom:0;
    width:0; height:2px; border-radius:2px;
    background:var(--color-gold);
    transition:width var(--t-med);
  }
  nav.main-nav a:hover{ color:var(--color-gold); }
  nav.main-nav a:hover::after{ width:100%; }

  .header-actions{ display:flex; align-items:center; gap:18px; }
  @media (max-width:420px){
    .header-actions{ gap:12px; }
    .logo{ font-size:22px; }
  }
  .icon-btn{ position:relative; display:flex; }
  .icon-btn .badge{
    position:absolute; top:-7px; left:-7px;
    background:var(--color-gold);
    color:var(--color-on-solid); font-size:10px; font-weight:700;
    width:16px; height:16px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
  }
  .hamburger{ display:none; }

  .search-panel{
    display:none;
    border-top:1px solid var(--color-line);
    padding:14px 0;
  }
  .search-panel.open{ display:block; }
  .search-panel input{
    width:100%; padding:11px 14px;
    border:1px solid var(--color-line);
    border-radius:var(--radius-s);
    background:var(--color-input-bg);
    color:var(--color-ink);
  }

  .mobile-nav-search, .mobile-nav-contact{ display:none; }

  @media (max-width:860px){
    nav.main-nav{
      display:none;
      position:absolute; top:100%; right:0; left:0;
      flex-direction:column; gap:0;
      background:var(--color-header-bg);
      backdrop-filter:blur(12px);
      -webkit-backdrop-filter:blur(12px);
      border-bottom:1px solid var(--color-line);
      box-shadow:var(--shadow-soft);
      padding:6px var(--gutter) 18px;
      max-height:calc(100vh - 100%);
      overflow-y:auto;
    }
    nav.main-nav.open{ display:flex; }
    nav.main-nav a, nav.main-nav > button{
      display:flex; align-items:center; gap:10px;
      width:100%; text-align:right;
      padding:13px 2px; font-size:15px;
      border-bottom:1px solid var(--color-line);
      color:var(--color-ink); background:none;
    }
    nav.main-nav a::after{ content:none; }
    .mobile-nav-search{ display:flex; }
    .mobile-nav-search .icon{ width:18px; height:18px; }
    .mobile-nav-contact{
      display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px;
      padding-top:16px;
    }
    .mobile-nav-contact-label{
      width:100%; font-size:12.5px; font-weight:700;
      color:var(--color-ink-soft); text-transform:uppercase; letter-spacing:0.5px;
    }
    .mobile-nav-contact[hidden]{ display:none; }
    .mobile-nav-contact span[data-social] a{ font-size:14px; color:var(--color-gold-deep); }
    .hamburger{ display:flex; }
  }

  .back-btn{ margin-left:2px; }
  @media (min-width:861px){ .back-btn{ display:none !important; } }

  /* ============================================================
     3. HERO
     ============================================================ */
  .hero{
    position:relative;
    background:
      radial-gradient(ellipse 60% 50% at 85% 15%, var(--glow-gold), transparent 70%),
      radial-gradient(ellipse 70% 60% at 10% 90%, var(--glow-ink), transparent 70%),
      var(--gradient-hero);
    padding:88px 0 96px;
    overflow:hidden;
  }
  .hero-inner{
    display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;
    position:relative; z-index:1;
  }
  .hero h1{
    font-family:var(--font-display);
    font-size:52px; font-weight:700; line-height:1.22;
    color:var(--color-heading); margin-bottom:18px;
    letter-spacing:-0.01em;
  }
  .hero h1::before{
    content:"لوحات فنية \2014 ZF STORE";
    display:block;
    width:fit-content;
    font-family:var(--font-body);
    font-size:12.5px; font-weight:600; letter-spacing:2px;
    line-height:1;
    color:var(--color-gold-deep);
    background:var(--tint-gold-mid);
    border:1px solid var(--color-gold-soft);
    padding:7px 15px; border-radius:999px;
    margin-bottom:22px;
  }
  .hero p{ color:var(--color-ink-soft); font-size:17px; margin-bottom:30px; max-width:460px; }
  .hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:30px; }
  .hero-badges{ display:flex; gap:14px; flex-wrap:wrap; }
  .hero-badges span{
    font-size:13px; font-weight:600; color:var(--color-heading);
    background:var(--color-surface);
    border:1px solid var(--color-line);
    border-radius:999px;
    padding:8px 16px;
    box-shadow:var(--shadow-card);
  }

  .frame-art{
    position:relative;
    aspect-ratio:4/5;
    border:12px solid var(--color-frame);
    border-radius:4px;
    overflow:hidden;
    background:var(--color-bg-alt);
    box-shadow:var(--shadow-hover);
    outline:1px solid var(--color-line);
    transition:transform var(--t-med);
  }
  .frame-art::before{
    content:"";
    position:absolute; inset:-24px -24px auto auto;
    width:150px; height:150px; z-index:-1;
    border:2px solid var(--color-gold-soft);
    border-radius:6px;
  }
  .frame-art:hover{ transform:translateY(-6px) rotate(-0.6deg); }
  .frame-art img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease); }
  .frame-art:hover img{ transform:scale(1.05); }
  .frame-art::after{
    content:"ZF STORE";
    position:absolute; bottom:16px; right:16px;
    font-family:var(--font-display);
    color:var(--color-frame-caption);
    font-size:14px; letter-spacing:2px;
    text-shadow:0 1px 4px rgba(0,0,0,0.55);
  }

  @media (max-width:860px){
    .hero{ padding:56px 0 64px; }
    .hero-inner{ grid-template-columns:1fr; gap:40px; }
    .hero h1{ font-size:32px; }
    .frame-art::before{ display:none; }
  }

  /* ============================================================
     5. CATEGORY GRID
     ============================================================ */
  .category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:18px;
  }
  .category-card{
    background:var(--color-surface);
    border:1px solid var(--color-line);
    border-radius:var(--radius-m);
    overflow:hidden;
    text-align:center;
    box-shadow:var(--shadow-card);
    transition:transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  }
  .category-card:hover{
    border-color:var(--color-gold);
    transform:translateY(-4px);
    box-shadow:var(--shadow-hover);
  }
  .category-thumb{ aspect-ratio:1/1; overflow:hidden; background:var(--color-bg-alt); }
  .category-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform 0.7s var(--ease); }
  .category-card:hover .category-thumb img{ transform:scale(1.07); }
  .category-card .cat-body{ padding:14px 8px; }
  .category-card .cat-title{ font-size:14.5px; font-weight:600; }
  .category-card .cat-count{ font-size:12px; color:var(--color-ink-soft); }

  /* ============================================================
     6. PRODUCT CARDS / GRID
     ============================================================ */
  .toolbar{
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
    gap:14px; margin-bottom:28px;
  }
  .toolbar select, .toolbar input[type="text"]{
    padding:9px 12px; border:1px solid var(--color-line); border-radius:var(--radius-s);
    background:var(--color-input-bg); color:var(--color-ink);
  }
  .filter-chips{ display:flex; gap:8px; flex-wrap:wrap; }
  .chip{
    padding:7px 16px; border:1px solid var(--color-line); border-radius:999px; font-size:13px;
    transition:background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  }
  .chip:hover{ border-color:var(--color-gold); color:var(--color-gold-deep); }
  .chip.active{ background:var(--color-solid); color:var(--color-on-solid); border-color:var(--color-solid); }

  .product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:24px;
  }
  .product-card{
    background:var(--color-surface);
    border:1px solid var(--color-line);
    border-radius:var(--radius-m);
    overflow:hidden;
    position:relative;
    box-shadow:var(--shadow-card);
    transition:transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  }
  .product-card:hover{
    border-color:var(--color-gold);
    transform:translateY(-6px);
    box-shadow:var(--shadow-hover);
  }
  .product-art{
    aspect-ratio:4/5; position:relative; cursor:pointer; overflow:hidden; background:var(--color-bg-alt);
  }
  .product-art-image{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    transition:opacity var(--t-med), transform 0.9s var(--ease);
  }
  .product-art-image.hover{ opacity:0; }
  .product-art:hover .product-art-image.primary{ opacity:0; }
  .product-art:hover .product-art-image.hover{ opacity:1; }
  .product-card:hover .product-art-image{ transform:scale(1.04); }
  .product-badge{
    position:absolute; top:12px; right:12px;
    background:var(--color-solid); color:var(--color-on-solid);
    font-size:10.5px; padding:5px 11px; border-radius:999px; font-weight:700;
    letter-spacing:0.5px;
    box-shadow:var(--shadow-card);
  }
  .product-badge.discount{ background:var(--color-danger); }
  .product-badge.new{ background:var(--color-success); }
  .wishlist-toggle{
    position:absolute; top:12px; left:12px;
    width:34px; height:34px; border-radius:50%;
    background:var(--color-surface);
    color:var(--color-ink);
    backdrop-filter:blur(4px);
    display:flex; align-items:center; justify-content:center;
    box-shadow:var(--shadow-card);
    transition:transform var(--t-fast);
  }
  .wishlist-toggle:hover{ transform:scale(1.12); }
  .wishlist-toggle.active .icon{ fill:var(--color-danger); stroke:var(--color-danger); }
  .product-info{ padding:16px 16px 18px; }
  .product-name{ font-size:15px; font-weight:600; margin-bottom:6px; cursor:pointer; transition:color var(--t-fast); }
  .product-card:hover .product-name{ color:var(--color-gold-deep); }
  .product-price-row{ display:flex; align-items:baseline; gap:8px; margin-bottom:12px; }
  .price-now{ font-weight:700; color:var(--color-price); }
  .price-old{ font-size:13px; color:var(--color-ink-soft); text-decoration:line-through; }

  /* ============================================================
     6b. BUNDLES
     ============================================================ */
  .bundle-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:24px;
  }
  .bundle-card{
    background:var(--color-surface); border:1px solid var(--color-line);
    border-radius:var(--radius-m); overflow:hidden; box-shadow:var(--shadow-card);
    transition:transform var(--t-med), box-shadow var(--t-med);
  }
  .bundle-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); }
  .bundle-thumbs{ display:flex; aspect-ratio:16/9; background:var(--color-bg-alt); cursor:pointer; }
  .bundle-thumb{ flex:1; overflow:hidden; border-right:2px solid var(--color-surface); }
  .bundle-thumb:last-child{ border-right:none; }
  .bundle-thumb img{ width:100%; height:100%; object-fit:cover; }
  .bundle-body{ padding:16px; }
  .bundle-name{ font-size:15.5px; font-weight:700; margin-bottom:4px; color:var(--color-heading); cursor:pointer; }
  .bundle-name:hover{ color:var(--color-gold-deep); }
  .bundle-includes{ font-size:12.5px; color:var(--color-ink-soft); margin-bottom:10px; }
  .bundle-savings{ font-size:12.5px; font-weight:700; color:var(--color-success); margin-bottom:12px; }
  .bundle-details-btn{ margin-bottom:8px; }

  .bundle-modal-box{ grid-template-columns:1fr; max-width:560px; }
  .bundle-items{ display:flex; flex-direction:column; gap:12px; margin-bottom:18px; }
  .bundle-item{
    display:flex; gap:14px; align-items:flex-start; text-align:right; width:100%;
    padding:10px; border:1px solid var(--color-line); border-radius:var(--radius-s);
    transition:border-color var(--t-fast);
  }
  .bundle-item:hover{ border-color:var(--color-gold); }
  .bundle-item-thumb{ width:80px; height:100px; flex-shrink:0; border-radius:var(--radius-s); overflow:hidden; background:var(--color-bg-alt); }
  .bundle-item-thumb img{ width:100%; height:100%; object-fit:cover; }
  .bundle-item-info{ display:flex; flex-direction:column; gap:4px; flex:1; }
  .bundle-item-name{ font-size:15px; font-weight:700; color:var(--color-heading); }
  .bundle-item-meta{ font-size:12.5px; color:var(--color-ink-soft); }
  .bundle-item-desc{ font-size:13px; color:var(--color-ink); margin-top:2px; }
  .bundle-tag{
    font-size:10px; font-weight:700; color:var(--color-on-solid); background:var(--color-solid);
    padding:2px 8px; border-radius:999px; margin-right:4px; vertical-align:middle;
  }

  .empty-state{
    text-align:center; padding:60px 20px; color:var(--color-ink-soft);
  }

  /* ============================================================
     7. PRODUCT DETAIL MODAL
     ============================================================ */
  .overlay{
    position:fixed; inset:0; background:var(--color-overlay); z-index:80;
    backdrop-filter:blur(2px);
    animation:artea-fade 0.25s var(--ease) both;
  }
  @keyframes artea-fade{ from{ opacity:0; } to{ opacity:1; } }
  .no-anim{ animation:none !important; }
  @keyframes artea-pop{ from{ opacity:0; transform:translateY(16px) scale(0.97); } to{ opacity:1; transform:none; } }
  @keyframes artea-slide-in{ from{ transform:translateX(-100%); } to{ transform:translateX(0); } }
  .modal{
    position:fixed; z-index:90; inset:0;
    display:flex; align-items:center; justify-content:center; padding:20px;
  }
  .modal-box{
    background:var(--color-surface); border-radius:var(--radius-l);
    max-width:860px; width:100%; max-height:88vh; overflow-y:auto;
    display:grid; grid-template-columns:1fr 1fr;
    box-shadow:0 30px 80px -20px rgba(0,0,0,0.5);
    animation:artea-pop 0.32s var(--ease) both;
  }
  .modal-close{
    position:absolute; top:14px; left:14px; z-index:5;
    width:34px; height:34px; border-radius:50%;
    background:var(--color-surface); border:1px solid var(--color-line);
    display:flex; align-items:center; justify-content:center;
  }
  .modal-gallery{ position:relative; aspect-ratio:4/5; overflow:hidden; background:var(--color-bg-alt); }
  .modal-gallery img{ width:100%; height:100%; object-fit:cover; }
  .modal-details{ padding:28px; position:relative; }
  .modal-details h3{ font-family:var(--font-display); font-size:24px; margin-bottom:8px; color:var(--color-heading); }
  .stars{ color:var(--color-gold); font-size:14px; margin-bottom:10px; }
  .rating-count-text{ font-size:12.5px; color:var(--color-ink-soft); font-weight:400; }
  .modal-price{ font-size:22px; font-weight:700; color:var(--color-price); margin-bottom:4px; }
  .modal-price .price-old{ margin-right:10px; }
  .modal-desc{ font-size:14px; color:var(--color-ink-soft); margin:14px 0 18px; }

  .option-label{ font-size:13.5px; font-weight:600; margin-bottom:8px; display:block; }
  .size-options{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
  .modal-single-size{ font-size:14px; color:var(--color-ink); margin-bottom:20px; }
  .size-option{
    padding:9px 14px; border:1px solid var(--color-line); border-radius:var(--radius-s); font-size:13.5px;
  }
  .size-option.selected{ border-color:var(--color-solid); background:var(--color-solid); color:var(--color-on-solid); }

  .qty-control{
    display:inline-flex; align-items:center; border:1px solid var(--color-line);
    border-radius:var(--radius-s); margin-bottom:22px;
  }
  .qty-control button{ width:36px; height:36px; font-size:16px; }
  .qty-control span{ width:36px; text-align:center; font-weight:600; }

  .modal-actions{ display:flex; gap:12px; }

  @media (max-width:760px){
    .modal{ padding:0; align-items:flex-end; }
    .modal-box{
      grid-template-columns:1fr; max-width:none; width:100%;
      max-height:92vh; border-radius:var(--radius-l) var(--radius-l) 0 0;
    }
    .modal-gallery{ aspect-ratio:4/3; }
  }

  /* ============================================================
     8. UPSELL
     ============================================================ */
  .upsell-note{
    background:var(--color-bg-alt); border:1px dashed var(--color-gold);
    border-radius:var(--radius-s); padding:12px 16px; font-size:13.5px;
    margin-top:20px; color:var(--color-heading);
  }

  /* ============================================================
     8b. PRODUCT REVIEWS (MODAL) — form to submit + list of approved ones
     ============================================================ */
  .modal-reviews{ margin-top:26px; border-top:1px solid var(--color-line); padding-top:20px; }
  .modal-reviews h4{ font-family:var(--font-display); font-size:17px; margin-bottom:14px; color:var(--color-heading); }
  .modal-review-grid{ display:grid; gap:14px; margin-bottom:18px; }
  .rating-picker{ display:flex; gap:4px; margin-bottom:16px; }
  .rating-star{ font-size:24px; color:var(--color-gold); line-height:1; }
  .rating-star.filled{ color:var(--color-gold); }

  /* ============================================================
     9. CART DRAWER
     ============================================================ */
  .drawer{
    position:fixed; top:0; bottom:0; left:0; width:420px; max-width:92vw;
    background:var(--color-surface); z-index:95;
    display:flex; flex-direction:column;
    box-shadow:2px 0 40px rgba(0,0,0,0.22);
    animation:artea-slide-in 0.34s var(--ease) both;
  }
  .drawer-head{
    display:flex; align-items:center; justify-content:space-between;
    padding:20px; border-bottom:1px solid var(--color-line);
  }
  .drawer-head h3{ font-family:var(--font-display); font-size:20px; color:var(--color-heading); }
  .drawer-body{ flex:1; overflow-y:auto; padding:16px 20px; }
  .drawer-foot{ padding:20px; border-top:1px solid var(--color-line); }

  .cart-line{ display:flex; align-items:flex-start; gap:12px; padding:14px 0; border-bottom:1px solid var(--color-line); }
  .cart-line-thumb{ display:block; width:64px; height:80px; border-radius:var(--radius-s); flex-shrink:0; overflow:hidden; background:var(--color-bg-alt); }
  .cart-line-thumb img{ width:100%; height:100%; object-fit:cover; }
  .cart-line-info{ display:flex; flex-direction:column; gap:3px; flex:1; }
  .cart-line-name{ display:block; font-size:14px; font-weight:600; transition:color var(--t-fast); }
  .cart-line-meta{ display:block; font-size:12.5px; color:var(--color-ink-soft); }
  .cart-line-price{ display:block; font-size:13.5px; font-weight:600; color:var(--color-price); }
  .cart-line-price .old{ text-decoration:line-through; color:var(--color-ink-soft); font-weight:400; margin-left:6px; }
  .remove-line{ font-size:12.5px; color:var(--color-danger); text-decoration:underline; }

  .totals-row{ display:flex; justify-content:space-between; font-size:14px; margin-bottom:8px; color:var(--color-ink-soft); }
  .totals-row.grand{ font-size:17px; font-weight:700; color:var(--color-ink); border-top:1px solid var(--color-line); padding-top:10px; margin-top:10px; }

  /* ============================================================
     10. FORMS (checkout / custom design / tracking)
     ============================================================ */
  .form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .form-field{ margin-bottom:16px; }
  .form-field.full{ grid-column:1/-1; }
  .form-field label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:6px; }
  .delivery-type-options{ display:flex; gap:10px; flex-wrap:wrap; }
  .delivery-type-option{
    flex:1 1 160px; display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding:11px 14px; border:1px solid var(--color-line); border-radius:var(--radius-s);
    cursor:pointer; transition:border-color var(--t-fast), background var(--t-fast);
  }
  .delivery-type-option:has(input:checked){ border-color:var(--color-solid); background:var(--color-bg-alt); }
  .delivery-type-option.disabled{ opacity:0.5; cursor:not-allowed; }
  .delivery-type-option input[type="radio"]{
    width:16px; height:16px; margin:0 2px 0 0; padding:0; border:none; background:none; flex:none;
  }
  .delivery-type-label{ font-size:13.5px; flex:1; }
  .delivery-type-price{ font-size:13px; font-weight:600; color:var(--color-price); white-space:nowrap; }
  .form-field input, .form-field select, .form-field textarea{
    width:100%; padding:11px 13px; border:1px solid var(--color-line); border-radius:var(--radius-s);
    background:var(--color-input-bg);
    color:var(--color-ink);
    transition:border-color var(--t-fast), box-shadow var(--t-fast);
  }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus,
  .search-panel input:focus{
    outline:none;
    border-color:var(--color-gold);
    box-shadow:0 0 0 3px var(--ring-gold);
  }
  .form-field .hint{ font-size:12px; color:var(--color-ink-soft); margin-top:5px; }
  .admin-size-picker{ display:flex; flex-wrap:wrap; gap:8px; }
  .admin-size-check{
    display:inline-flex; align-items:center; gap:6px; padding:8px 12px;
    border:1px solid var(--color-line); border-radius:var(--radius-s);
    font-size:13px; cursor:pointer; user-select:none;
  }
  .admin-size-check input{ width:auto; margin:0; }
  .admin-size-check:has(input:checked){ border-color:var(--color-solid); color:var(--color-solid); }
  .wilaya-price-cell{ display:flex; flex-direction:column; gap:5px; }
  .wilaya-free-check{ display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--color-ink-soft); cursor:pointer; user-select:none; }
  .wilaya-free-check input{ width:auto; margin:0; }
  /* An empty frame waiting for the picture. The dashed rule is the only
     dashed edge on the site, which is what marks it as a place to put
     something rather than a panel of content. */
  .upload-box{
    display:flex; flex-direction:column; align-items:center; gap:6px;
    width:100%;
    border:1px dashed var(--color-line); border-radius:var(--radius-s);
    padding:26px; text-align:center; font-size:13.5px; color:var(--color-ink-soft);
    background:var(--color-input-bg);
    transition:border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  }
  .upload-box:hover{ border-color:var(--color-gold); color:var(--color-ink); }
  .upload-box:focus-visible{ outline:2px solid var(--color-gold); outline-offset:3px; }
  .upload-box.is-dropping{
    border-color:var(--color-gold);
    border-style:solid;
    background:var(--tint-gold-weak);
    color:var(--color-ink);
  }
  .upload-mark{ width:26px; height:26px; color:var(--color-gold); margin-bottom:2px; }
  .upload-lead{ font-weight:600; }
  .upload-note{ font-size:12px; opacity:0.8; }

  /* Once a photo lands it is mounted like a small proof of the canvas the
     customer is ordering, not listed as a file attachment. */
  .upload-proof{
    display:flex; align-items:center; gap:16px;
    border:1px solid var(--color-line); border-radius:var(--radius-s);
    padding:14px;
  }
  .upload-proof img{
    width:84px; height:105px; object-fit:cover; flex-shrink:0;
    border:6px solid var(--color-frame);
    outline:1px solid var(--color-line);
    background:var(--color-bg-alt);
  }
  .upload-proof-meta{ display:flex; flex-direction:column; gap:8px; min-width:0; }
  .upload-file-name{
    font-size:13.5px; font-weight:600;
    overflow-wrap:anywhere;
  }
  .upload-proof-actions{ display:flex; align-items:center; gap:14px; }
  #custom-image-error.is-error{ color:var(--color-danger); }
  @media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }

  .panel{
    max-width:640px; margin:0 auto;
    background:var(--color-surface); border:1px solid var(--color-line);
    border-radius:var(--radius-m); padding:32px;
  }

  .checkout-layout{ display:grid; grid-template-columns:1.3fr 1fr; gap:32px; align-items:start; }
  @media (max-width:860px){ .checkout-layout{ grid-template-columns:1fr; } }
  .order-summary-box{
    background:var(--color-bg-alt); border-radius:var(--radius-m); padding:22px;
  }
  .order-summary-box h4{ font-family:var(--font-display); font-size:18px; margin-bottom:14px; color:var(--color-heading); }
  .summary-line{ display:flex; justify-content:space-between; font-size:13.5px; margin-bottom:8px; }

  /* ============================================================
     11. CONFIRMATION / TRACKING
     ============================================================ */
  .confirm-box{ text-align:center; max-width:560px; margin:0 auto; }
  .order-number{
    display:inline-block; font-family:var(--font-display); font-size:26px;
    color:var(--color-heading); border:1px solid var(--color-gold); border-radius:var(--radius-s);
    padding:10px 26px; margin:14px 0 24px;
  }
  .confirm-details{ text-align:right; background:var(--color-bg-alt); border-radius:var(--radius-m); padding:20px; margin-bottom:24px; }

  .track-steps{ display:flex; flex-direction:column; gap:0; margin-top:24px; }
  .track-step{ display:flex; gap:14px; padding-bottom:26px; position:relative; }
  .track-step:not(:last-child)::before{
    content:""; position:absolute; top:22px; right:10px; bottom:0; width:2px; background:var(--color-line);
  }
  .track-step.done:not(:last-child)::before{ background:var(--color-gold); }
  .track-dot{
    width:22px; height:22px; border-radius:50%; border:2px solid var(--color-line);
    background:var(--color-track-dot); flex-shrink:0; z-index:1;
  }
  .track-step.done .track-dot{ background:var(--color-gold); border-color:var(--color-gold); }
  .track-label{ font-size:14.5px; font-weight:600; padding-top:1px; }
  .track-step.done .track-label{ color:var(--color-heading); }

  /* ============================================================
     12. INFO SECTIONS (why-us / how-it-works / reviews / faq)
     ============================================================ */
  .why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
  .why-card{
    text-align:center; padding:32px 20px;
    background:var(--color-surface);
    border:1px solid var(--color-line);
    border-radius:var(--radius-m);
    box-shadow:var(--shadow-card);
    transition:transform var(--t-med), box-shadow var(--t-med);
  }
  .why-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); }
  .why-mark{
    width:52px; height:52px; margin:0 auto 16px; border-radius:50%;
    border:1px solid var(--color-gold-soft);
    background:var(--tint-gold-weak);
    display:flex; align-items:center; justify-content:center;
    color:var(--color-gold);
  }
  .why-card h4{ font-size:15.5px; font-weight:700; margin-bottom:6px; }
  .why-card p{ font-size:13px; color:var(--color-ink-soft); }

  .steps-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
  .step-card{ text-align:center; padding:8px; }
  .step-number{
    font-family:var(--font-display); font-size:40px; font-weight:700;
    color:transparent;
    -webkit-background-clip:text; background-clip:text;
    background-image:linear-gradient(135deg,var(--color-gold),var(--color-gold-soft));
    margin-bottom:6px;
  }
  .step-card h4{ font-size:15px; font-weight:700; margin-bottom:6px; }
  .step-card p{ font-size:13px; color:var(--color-ink-soft); }

  .review-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  .review-card{
    background:var(--color-surface); border:1px solid var(--color-line);
    border-radius:var(--radius-m); padding:24px 22px;
    box-shadow:var(--shadow-card);
    transition:transform var(--t-med), box-shadow var(--t-med);
  }
  .review-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); }
  .review-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
  .review-avatar{ width:42px; height:42px; border-radius:50%; object-fit:cover; }
  .review-card .stars{ margin-bottom:10px; }
  .review-card p{ font-size:13.5px; margin-bottom:14px; }
  .review-author{ font-size:13px; font-weight:700; }
  .review-city{ font-size:12px; color:var(--color-ink-soft); }
  .review-product-thumb{ width:52px; height:64px; border-radius:var(--radius-s); object-fit:cover; }

  .faq-item{ border-bottom:1px solid var(--color-line); }
  .faq-question{
    width:100%; text-align:right; padding:18px 0; font-size:15px; font-weight:600;
    display:flex; justify-content:space-between; align-items:center;
    transition:color var(--t-fast);
  }
  .faq-question:hover{ color:var(--color-gold-deep); }
  .faq-answer{ display:none; padding-bottom:18px; font-size:13.5px; color:var(--color-ink-soft); }
  .faq-item.open .faq-answer{ display:block; }
  .faq-item.open .faq-plus{ display:none; }
  .faq-item .faq-minus{ display:none; }
  .faq-item.open .faq-minus{ display:block; }

  @media (max-width:860px){
    .why-grid, .steps-grid, .review-grid{ grid-template-columns:repeat(2,1fr); }
  }
  @media (max-width:560px){
    .why-grid, .steps-grid, .review-grid{ grid-template-columns:1fr; }
  }

  /* ============================================================
     13. FOOTER
     ============================================================ */
  footer{
    background:var(--gradient-footer);
    color:var(--color-footer-ink); padding-top:56px;
    border-top:3px solid var(--color-gold);
  }
  .footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px; padding-bottom:36px; }
  .footer-grid h5{ font-size:14.5px; margin-bottom:16px; color:var(--color-footer-strong); }
  .footer-grid ul li{ margin-bottom:9px; font-size:13.5px; opacity:0.85; transition:opacity var(--t-fast), transform var(--t-fast); }
  .footer-grid ul li:hover{ opacity:1; transform:translateX(-4px); color:var(--color-gold-soft); }
  .footer-logo{ font-family:var(--font-display); font-size:22px; color:var(--color-footer-strong); margin-bottom:10px; }
  .footer-tagline{ font-size:13.5px; opacity:0.75; margin-bottom:16px; }
  .footer-bottom{
    border-top:1px solid rgba(255,255,255,0.15);
    padding:18px 0; text-align:center; font-size:12.5px; opacity:0.7;
  }
  @media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

  /* ============================================================
     14. MOBILE STICKY NAV
     ============================================================ */
  .mobile-nav{
    display:none;
    position:fixed; bottom:0; right:0; left:0; z-index:60;
    background:var(--color-surface); border-top:1px solid var(--color-line);
    padding:8px 0;
  }
  .mobile-nav .container{ display:flex; justify-content:space-between; }
  .mobile-nav button{ display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10.5px; flex:1; }
  @media (max-width:760px){
    .mobile-nav{ display:block; }
    body{ padding-bottom:64px; }
  }

  /* ============================================================
     15. ADMIN DASHBOARD
     ============================================================ */
  .admin-login{
    min-height:100vh; display:flex; align-items:center; justify-content:center;
    padding:24px; background:var(--color-bg-alt);
  }
  .admin-login .panel{ width:100%; }

  .admin-shell{ display:grid; grid-template-columns:220px 1fr; min-height:100vh; }
  .admin-side{ background:var(--color-admin-side); color:var(--color-admin-side-ink); padding:26px 18px; border-inline-start:1px solid var(--color-line); }
  .admin-side .logo{ color:#fff; margin-bottom:30px; display:block; }
  .admin-side button{
    display:block; width:100%; text-align:right; padding:11px 12px; border-radius:var(--radius-s);
    font-size:14px; margin-bottom:4px; opacity:0.85;
  }
  .admin-side button.active{ background:rgba(255,255,255,0.12); opacity:1; }
  .admin-main{ padding:30px 34px; background:var(--color-bg); }
  .admin-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; }
  .admin-header h2{ font-family:var(--font-display); font-size:24px; color:var(--color-heading); }

  .stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:30px; }
  .stat-card{ background:var(--color-surface); border:1px solid var(--color-line); border-radius:var(--radius-m); padding:18px; }
  .stat-card .label{ font-size:12.5px; color:var(--color-ink-soft); margin-bottom:6px; }
  .stat-card .value{ font-size:24px; font-weight:700; color:var(--color-price); }

  .admin-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:var(--radius-m); }
  .admin-table{ width:100%; min-width:560px; border-collapse:collapse; background:var(--color-surface); border:1px solid var(--color-line); border-radius:var(--radius-m); overflow:hidden; }
  .admin-table th, .admin-table td{ padding:12px 14px; text-align:right; font-size:13.5px; border-bottom:1px solid var(--color-line); }
  .admin-table th{ background:var(--color-bg-alt); font-weight:700; }
  .status-tag{ padding:4px 10px; border-radius:12px; font-size:11.5px; font-weight:700; }
  .status-pending{ background:#F3E7C8; color:#8A6A17; }
  .status-confirmed{ background:#D9E7F0; color:#2B5E7A; }
  .status-preparing{ background:#EAD9F0; color:#6B2B8F; }
  .status-shipped{ background:#DAE8DC; color:#2F6B3E; }
  .status-delivered{ background:#CFEAD6; color:#1F5C33; }
  .status-cancelled{ background:#F1D4D0; color:#8F2B1E; }

  .bar-row{ display:flex; align-items:center; gap:10px; margin-bottom:10px; font-size:13px; }
  .bar-track{ flex:1; height:10px; background:var(--color-bg-alt); border-radius:6px; overflow:hidden; }
  .bar-fill{ height:100%; background:var(--color-gold); }

  .stock-low{ color:var(--color-danger); font-weight:700; }
  .low-stock-list{ font-size:13.5px; }
  .low-stock-list li{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--color-line); }
  .low-stock-list li:last-child{ border-bottom:none; }

  .file-input{
    width:100%; padding:9px 12px; border:1px solid var(--color-line);
    border-radius:var(--radius-s); background:var(--color-input-bg); color:var(--color-ink); font-size:13px;
  }
  .file-input::file-selector-button{
    font-family:inherit; font-size:13px; font-weight:600;
    padding:7px 14px; margin-inline-end:12px;
    border:1px solid var(--color-solid); border-radius:999px;
    background:var(--color-solid); color:var(--color-on-solid); cursor:pointer;
  }
  .pf-preview{
    margin-top:10px; width:96px; height:120px; object-fit:cover;
    border-radius:8px; border:1px solid var(--color-line); background:var(--color-bg-alt);
  }

  .admin-row-actions{ white-space:nowrap; }
  .admin-row-actions .btn{ margin-inline-start:6px; }
  .admin-row-actions .btn:first-child{ margin-inline-start:0; }
  .btn-danger{ background:var(--color-danger); color:var(--color-on-solid); }
  .btn-danger:hover{ filter:brightness(0.9); }
  .admin-table select[data-admin-action]{
    padding:6px 8px; border:1px solid var(--color-line);
    border-radius:var(--radius-s); background:var(--color-input-bg); color:var(--color-ink); font-size:12.5px;
  }
  .admin-order-detail td{
    background:var(--color-bg-alt); font-size:12.5px; color:var(--color-ink-soft);
    line-height:1.9;
  }
  .admin-order-detail ul{ margin:4px 0 8px; padding-inline-start:18px; list-style:disc; }
  .admin-order-detail li{ margin-bottom:3px; }

  @media (max-width:900px){
    .admin-shell{ grid-template-columns:1fr; }
    .admin-side{ display:flex; overflow-x:auto; gap:6px; padding:14px; }
    .admin-side .logo{ display:none; }
    .stat-grid{ grid-template-columns:repeat(2,1fr); }
  }
  /* ============================================================
     16. DAY / NIGHT SWITCH
     ============================================================ */
  /* One control, two states. The icon shows the room you are in, not the
     one you would switch to — a sun while the lights are up, a moon once
     they are down — and the label under it says the same thing out loud
     for anyone on a screen reader. */
  .theme-switch{
    position:relative;
    width:34px; height:34px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color:var(--color-heading);
    border:1px solid transparent;
    transition:border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  }
  .theme-switch:hover{ color:var(--color-gold); border-color:var(--color-line); }
  .theme-switch:focus-visible{ outline:2px solid var(--color-gold); outline-offset:2px; }
  .theme-switch .icon{ width:19px; height:19px; }
  .theme-switch .switch-moon{ display:none; }

  /* At night the switch is the only lit fixture on the header: a faint brass
     halo behind the moon, the same warmth the canvases keep. */
  .theme-night .theme-switch,
  .theme-night .theme-switch:hover{
    background:var(--tint-gold-mid);
    border-color:var(--color-line);
    color:var(--color-gold-deep);
  }
  .theme-night .theme-switch .switch-sun{ display:none; }
  .theme-night .theme-switch .switch-moon{ display:block; }

  /* .admin-side button sets display:block at equal weight, so restate it here. */
  .admin-side .theme-switch{
    display:flex;
    width:100%; height:auto; border-radius:var(--radius-s);
    justify-content:flex-start; gap:10px;
    padding:11px 12px; margin-top:10px;
    font-size:14px; color:inherit; opacity:0.85;
  }
  .admin-side .theme-switch:hover{ background:var(--tint-gold-mid); opacity:1; }
  .theme-night .admin-side .theme-switch{ background:none; border-color:transparent; color:inherit; }
  .theme-night .admin-side .theme-switch:hover{ background:var(--tint-gold-mid); }

  /* ============================================================
     17. NIGHT REFINEMENTS
     ============================================================ */
  /* The one rule that makes the night theme a gallery and not an inversion:
     the art never dims. Images keep full luminance and gain a warm hairline
     so each canvas reads as lit against the wall instead of as a hole in it. */
  .theme-night .product-art,
  .theme-night .category-thumb,
  .theme-night .modal-gallery,
  .theme-night .cart-line-thumb,
  .theme-night .review-product-thumb{
    box-shadow:inset 0 0 0 1px rgba(217,179,106,0.20);
  }
  .theme-night .frame-art{
    outline-color:rgba(217,179,106,0.35);
  }
  .theme-night .product-card:hover,
  .theme-night .category-card:hover{
    border-color:var(--color-gold);
  }

  /* ============================================================
     18. WISHLIST & CART LINE ACTIONS
     ============================================================ */
  /* A saved painting is a shopping intent, not an archive entry: the whole
     line opens the painting, and a buy button sits right on it. */
  .line-open{
    display:flex; gap:12px; flex:1; text-align:right; align-items:flex-start;
    border-radius:var(--radius-s);
    transition:opacity var(--t-fast);
  }
  .line-open:hover .cart-line-name{ color:var(--color-gold-deep); }
  .line-open:focus-visible{ outline:2px solid var(--color-gold); outline-offset:3px; }
  .line-actions{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding-top:2px; }
  .line-buy{
    font-size:12.5px; font-weight:700; color:var(--color-gold-deep);
    border-bottom:1px solid var(--color-gold-soft);
    padding-bottom:1px;
    transition:color var(--t-fast), border-color var(--t-fast);
  }
  .line-buy:hover{ color:var(--color-heading); border-color:var(--color-heading); }
  .drawer-hint{
    font-size:12.5px; color:var(--color-ink-soft);
    padding:0 0 12px;
  }

  /* ============================================================
     19. ADMIN EDIT FOCUS
     ============================================================ */
  /* Clicking تعديل far down the table used to change something the
     editor could not see. The form now announces itself for a moment. */
  .panel.is-editing{
    border-color:var(--color-gold);
    box-shadow:0 0 0 3px var(--ring-gold);
  }
  .admin-editing-flag{
    display:inline-block;
    font-size:12.5px; font-weight:700;
    color:var(--color-gold-deep);
    margin-inline-start:8px;
  }

  /* ============================================================
     20. WAITING FOR THE CATALOGUE
     ============================================================ */
  /* A slow, quiet rotation of the frame corner — the one piece of motion
     the store starts on its own, and only while it has nothing to show. */
  .loading-mark{
    width:36px; height:45px; margin:0 auto;
    border:2px solid var(--color-line);
    border-top-color:var(--color-gold);
    border-radius:2px;
    animation:artea-frame-turn 1.1s linear infinite;
  }
  @keyframes artea-frame-turn{ to{ transform:rotate(360deg); } }
  @media (prefers-reduced-motion: reduce){
    .loading-mark{ animation:none; border-top-color:var(--color-line); }
  }

  .admin-notice{
    background:var(--tint-gold-mid);
    border:1px solid var(--color-gold-soft);
    border-radius:var(--radius-s);
    padding:12px 16px; margin-bottom:20px;
    font-size:13.5px; line-height:1.8;
    color:var(--color-ink);
  }
  .admin-notice strong{ color:var(--color-heading); }

  .form-error{
    background:var(--tint-gold-weak);
    border:1px solid var(--color-danger);
    border-radius:var(--radius-s);
    padding:10px 14px; margin-bottom:14px;
    font-size:13.5px; color:var(--color-danger);
  }

  /* ============================================================
     21. POLICY DOCUMENTS
     ============================================================ */
  /* These pages are read, not browsed. Everything here serves the line
     of text: one column, a measure short enough to track comfortably in
     Arabic, and headings that are quiet enough not to interrupt it. */
  .policy-doc{
    max-width:660px;
    margin:0 auto;
  }
  .policy-doc h2{
    font-family:var(--font-display);
    font-size:32px; font-weight:600; line-height:1.3;
    color:var(--color-heading);
    margin-bottom:10px;
  }
  .policy-lead{
    font-size:16px; color:var(--color-ink-soft);
    margin-bottom:6px;
  }
  .policy-updated{
    font-size:12.5px; color:var(--color-ink-soft);
    opacity:0.75; margin-bottom:26px;
  }
  .policy-tabs{
    display:flex; flex-wrap:wrap; gap:8px;
    padding-bottom:30px; margin-bottom:8px;
    border-bottom:1px solid var(--color-line);
  }
  .policy-doc h3{
    font-family:var(--font-display);
    font-size:20px; font-weight:600;
    color:var(--color-heading);
    margin:34px 0 10px;
  }
  .policy-doc p{
    font-size:15px; line-height:2;
    color:var(--color-ink);
    margin-bottom:12px;
  }
  .policy-doc strong{ color:var(--color-heading); font-weight:700; }

  .policy-table{
    width:100%; min-width:420px; border-collapse:collapse;
    margin:16px 0 20px;
    background:var(--color-surface);
    border:1px solid var(--color-line);
    border-radius:var(--radius-s);
    overflow:hidden;
  }
  .policy-table th, .policy-table td{
    padding:11px 14px; text-align:right; font-size:14px;
    border-bottom:1px solid var(--color-line);
  }
  .policy-table th{ background:var(--color-bg-alt); font-weight:700; color:var(--color-heading); }
  .policy-table tr:last-child td{ border-bottom:none; }
  .policy-table td:first-child{ font-weight:600; }

  @media (max-width:560px){
    .policy-doc h2{ font-size:26px; }
    .policy-doc p{ font-size:14.5px; }
  }
