/* Joyful Box — shared stylesheet
   Contains styles for BOTH pages, scoped so they can't conflict:
     body.page-store  -> storefront (index.html)
     body.page-admin  -> admin dashboard (admin.html)
   Shared design tokens live in :root below. */

:root{
  --purple-deep:#4C1D95;
  --purple:#7C3AED;
  --purple-mid:#9D5CFF;
  --lavender:#F4EEFF;
  --white:#FFFFFF;
  --sun:#FFC629;
  --coral:#FF6B6B;
  --green:#16A34A;
  --ink:#221833;
  --radius:22px;
  --shadow: 0 10px 30px rgba(76,29,149,0.12);
}

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

/* ============================================================
   STOREFRONT  (index.html)
   ============================================================ */
*{box-sizing:border-box; margin:0; padding:0;}
body.page-store{
    font-family:'Nunito Sans', sans-serif;
    background: var(--white);
    color: var(--ink);
    -webkit-font-smoothing:antialiased;
  }
body.page-store h1, body.page-store h2, body.page-store h3, body.page-store .display{ font-family:'Baloo 2', sans-serif; }
body.page-store a{ text-decoration:none; color:inherit; }
body.page-store img{ max-width:100%; display:block; }
body.page-store .wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
body.page-store /* NAV */
  nav{
    position:sticky; top:0; z-index:50;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee2ff;
  }
body.page-store .nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:1180px; margin:0 auto; }
body.page-store .logo{ display:flex; align-items:center; }
body.page-store .logo-img{ height:38px; width:auto; }
body.page-store .nav-links{ display:flex; gap:28px; font-weight:700; }
body.page-store .nav-links a{ color:var(--purple-deep); opacity:0.75; transition:opacity .15s; }
body.page-store .nav-links a:hover{ opacity:1; }
body.page-store .cart-btn{
    background:var(--purple); color:white; border:none; border-radius:50px;
    padding:10px 20px; font-weight:800; font-family:'Nunito Sans'; cursor:pointer;
    display:flex; align-items:center; gap:8px; font-size:0.95rem;
  }
body.page-store .cart-count{ background:var(--sun); color:var(--purple-deep); border-radius:50%; width:22px; height:22px; display:flex; align-items:center; justify-content:center; font-size:0.8rem; }
body.page-store /* HERO */
  .hero{
    background: linear-gradient(160deg, var(--lavender) 0%, #ffffff 65%);
    padding: 72px 0 60px;
    overflow:hidden;
    position:relative;
  }
body.page-store .hero-inner{ display:flex; align-items:center; gap:48px; flex-wrap:wrap; }
body.page-store .hero-text{ flex:1; min-width:280px; }
body.page-store .eyebrow{
    display:inline-block; background:var(--sun); color:var(--purple-deep);
    font-weight:800; font-size:0.8rem; padding:6px 14px; border-radius:50px;
    margin-bottom:18px; letter-spacing:0.02em;
  }
body.page-store .hero h1{ font-size:3.4rem; line-height:1.05; color:var(--purple-deep); margin-bottom:18px; }
body.page-store .hero h1 span{ color:var(--coral); }
body.page-store .hero p{ font-size:1.15rem; color:#5a4b73; margin-bottom:28px; max-width:460px; }
body.page-store .hero-cta{
    background:var(--purple-deep); color:white; padding:16px 32px; border-radius:50px;
    font-weight:800; font-size:1.05rem; display:inline-block; box-shadow:var(--shadow);
    transition:transform .15s;
  }
body.page-store .hero-cta:hover{ transform:translateY(-2px); }
body.page-store .hero-visual{
    flex:1; min-width:280px; display:flex; justify-content:center; align-items:center;
  }
body.page-store .insta-orbit{
    position:relative; width:340px; height:340px;
  }
body.page-store .insta-orbit-ring{
    position:absolute; inset:0; animation:orbit-spin 24s linear infinite;
  }
@keyframes orbit-spin{from{ transform:rotate(0deg); }
to{ transform:rotate(360deg); }}
body.page-store .insta-tile{
    position:absolute; width:96px; height:96px; border-radius:20px; overflow:hidden;
    box-shadow:var(--shadow); border:3px solid white; cursor:pointer;
    display:flex; align-items:center; justify-content:center; text-decoration:none;
    animation:counter-spin 24s linear infinite; transition:transform .2s;
  }
@keyframes counter-spin{from{ transform:rotate(0deg); }
to{ transform:rotate(-360deg); }}
body.page-store .insta-tile:hover{ transform:scale(1.08) !important; z-index:10; }
body.page-store .insta-tile img{ width:100%; height:100%; object-fit:cover; }
body.page-store .insta-tile-placeholder{
    width:100%; height:100%; display:flex; align-items:center; justify-content:center;
    flex-direction:column; gap:4px; font-size:1.6rem; color:white;
  }
body.page-store .insta-tile-placeholder span{ font-size:0.55rem; font-weight:800; opacity:0.85; }
body.page-store .insta-center-badge{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    background:white; border-radius:50%; width:88px; height:88px; box-shadow:var(--shadow);
    display:flex; align-items:center; justify-content:center; z-index:5;
  }
body.page-store .insta-center-badge img{ width:60%; }
body.page-store /* CATEGORY TABS */
  .catalog{ padding:64px 0; }
body.page-store .catalog h2{ font-size:2rem; color:var(--purple-deep); margin-bottom:8px; }
body.page-store .catalog > .wrap > p{ color:#7a6b93; margin-bottom:32px; }
body.page-store .tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
body.page-store .search-bar{ position:relative; max-width:420px; margin-bottom:24px; }
body.page-store .search-bar input{
    width:100%; padding:13px 20px 13px 44px; border-radius:50px; border:1.5px solid #eee0ff;
    font-family:'Nunito Sans'; font-size:0.95rem; background:white;
  }
body.page-store .search-bar input:focus{ outline:none; border-color:var(--purple); }
body.page-store .search-bar::before{
    content:'🔍'; position:absolute; left:16px; top:50%; transform:translateY(-50%); font-size:0.95rem; opacity:0.5;
  }
body.page-store .no-results{ color:#aaa; grid-column:1/-1; text-align:center; padding:40px 0; }
body.page-store .tab{
    background:var(--lavender); color:var(--purple-deep); border:none; padding:10px 20px;
    border-radius:50px; font-weight:700; cursor:pointer; font-family:'Nunito Sans'; font-size:0.95rem;
    transition:all .15s;
  }
body.page-store .tab.active, body.page-store .tab:hover{ background:var(--purple-deep); color:white; }
body.page-store .grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; }
@media (min-width:700px){body.page-store .grid{ grid-template-columns:repeat(3, 1fr); gap:24px; }}
@media (min-width:1000px){body.page-store .grid{ grid-template-columns:repeat(4, 1fr); }}
body.page-store .card{
    background:white; border:1px solid #f0e8ff; border-radius:var(--radius); overflow:hidden;
    box-shadow:0 4px 16px rgba(76,29,149,0.06); display:flex; flex-direction:column;
    transition:transform .15s, box-shadow .15s;
  }
body.page-store .card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
body.page-store .card-img{
    height:170px; background:linear-gradient(135deg, var(--lavender), #fff);
    display:flex; align-items:center; justify-content:center; font-size:3rem;
    overflow:hidden;
  }
body.page-store .card-img img{ width:100%; height:100%; object-fit:cover; }
body.page-store .card-body{ padding:18px 18px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
body.page-store .card-cat{ font-size:0.72rem; font-weight:800; color:var(--coral); text-transform:uppercase; letter-spacing:0.04em; }
body.page-store .card-name{ font-size:1.1rem; font-weight:700; color:var(--ink); }
body.page-store .card-desc-row{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex:1; }
body.page-store .card-desc{ font-size:0.85rem; color:#8a7ba3; flex:1; min-width:0; }
body.page-store .card-size{
  font-size:0.72rem; font-weight:800; color:var(--purple);
  white-space:nowrap; flex-shrink:0;
}
body.page-store .variant-label{
  font-size:0.68rem; font-weight:800; color:#8a7ba3; text-transform:uppercase;
  letter-spacing:0.04em; margin-bottom:-4px;
}
body.page-store select.variant-select{
    width:100%; max-width:100%; border:1.5px solid #eee0ff; border-radius:10px; padding:9px 12px;
    font-family:'Nunito Sans'; font-weight:600; color:var(--ink); background:white; cursor:pointer;
    /* Never clip the variant name — let the control size to its content instead */
    text-overflow:clip; white-space:nowrap; overflow:visible;
  }

/* --- Quantity stepper on the product card, before adding to the cart --- */
body.page-store .card-qty{
  display:flex; align-items:center; justify-content:center; gap:14px; margin-top:2px;
}
body.page-store .card-qty .qty-btn{
  width:28px; height:28px; border:1.5px solid #eee0ff; border-radius:50%;
  background:var(--lavender); color:var(--purple-deep); font-size:1rem; font-weight:800;
  cursor:pointer; line-height:1; display:flex; align-items:center; justify-content:center;
  transition:background .12s;
}
body.page-store .card-qty .qty-btn:hover{ background:var(--purple); color:white; }
body.page-store .card-qty .qty-btn:active{ transform:scale(0.92); }
body.page-store .card-qty-value{ min-width:20px; text-align:center; font-weight:800; font-size:0.92rem; color:var(--ink); }

body.page-store .card-footer{ display:flex; align-items:center; justify-content:space-between; margin-top:4px; }
body.page-store .zone-eta{ font-size:0.75rem; color:#8a7ba3; margin-top:2px; }
body.page-store /* POPULAR ROW — always visible, body.page-store teases items before catalog is opened */
  .popular{ padding:8px 0 40px; }
body.page-store .popular h3{ color:var(--purple-deep); font-size:1.3rem; margin-bottom:14px; }
body.page-store .popular-scroll{ display:flex; gap:14px; overflow-x:auto; padding-bottom:6px; -webkit-overflow-scrolling:touch; }
body.page-store .popular-card{
    flex:0 0 auto; width:150px; background:white; border-radius:16px; overflow:hidden;
    border:1px solid #f0e8ff; cursor:pointer; transition:transform .15s;
  }
body.page-store .popular-card:hover{ transform:translateY(-3px); }
body.page-store .popular-card .pc-img{ height:100px; background:linear-gradient(135deg, var(--lavender), #fff); display:flex; align-items:center; justify-content:center; font-size:2rem; overflow:hidden; }
body.page-store .popular-card .pc-img img{ width:100%; height:100%; object-fit:cover; }
body.page-store .popular-card .pc-body{ padding:10px 12px; }
body.page-store .popular-card .pc-name{ font-weight:700; font-size:0.82rem; color:var(--ink); margin-bottom:2px; }
body.page-store .popular-card .pc-price{ font-weight:800; font-size:0.85rem; color:var(--purple-deep); }
body.page-store /* ORDER CONFIRMATION OVERLAY */
  .confirm-overlay{ position:fixed; inset:0; background:rgba(34,24,51,0.6); display:none; align-items:center; justify-content:center; z-index:120; padding:20px; }
body.page-store .confirm-overlay.show{ display:flex; }
body.page-store .confirm-card{ background:white; border-radius:24px; padding:36px; max-width:420px; width:100%; text-align:center; }
body.page-store .confirm-icon{ font-size:3.2rem; margin-bottom:8px; }
body.page-store .confirm-card h2{ color:var(--purple-deep); font-size:1.5rem; margin-bottom:6px; }
body.page-store .confirm-card p{ color:#8a7ba3; font-size:0.9rem; margin-bottom:20px; }
body.page-store .confirm-detail{ background:var(--lavender); border-radius:14px; padding:18px; text-align:left; margin-bottom:20px; }
body.page-store .confirm-detail .cd-row{ display:flex; justify-content:space-between; padding:6px 0; font-size:0.9rem; }
body.page-store .confirm-close{ width:100%; background:var(--purple-deep); color:white; border:none; padding:14px; border-radius:50px; font-weight:800; cursor:pointer; }
body.page-store .price{ font-weight:800; color:var(--purple-deep); font-size:1.15rem; }
body.page-store .add-btn{
    background:var(--purple); color:white; border:none; border-radius:50px; padding:9px 18px;
    font-weight:800; cursor:pointer; font-family:'Nunito Sans'; font-size:0.9rem; transition:background .15s;
  }
body.page-store .add-btn:hover{ background:var(--purple-deep); }
body.page-store .out-of-stock{ opacity:0.55; }
body.page-store .out-of-stock .add-btn{ background:#ccc; cursor:not-allowed; }
body.page-store /* TRACK ORDER */
  .track{ background:var(--lavender); padding:64px 0; }
body.page-store .track-box{ max-width:520px; margin:0 auto; text-align:center; }
body.page-store .track h2{ color:var(--purple-deep); font-size:1.8rem; margin-bottom:10px; }
body.page-store .track p{ color:#7a6b93; margin-bottom:28px; }
body.page-store .track-form{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
body.page-store .track-form input{
    flex:1; min-width:220px; padding:14px 18px; border-radius:50px; border:1.5px solid #ddc9ff;
    font-family:'Nunito Sans'; font-size:1rem;
  }
body.page-store .track-form #trackPhone{
    flex:0 0 auto; min-width:0; width:190px; text-align:center; letter-spacing:0.08em;
  }
body.page-store .track-form button{
    background:var(--purple-deep); color:white; border:none; padding:14px 28px; border-radius:50px;
    font-weight:800; cursor:pointer; font-family:'Nunito Sans';
  }
body.page-store #trackResult{ margin-top:24px; text-align:left; }
body.page-store .result-card{ background:white; border-radius:16px; padding:20px 24px; box-shadow:var(--shadow); }
body.page-store .result-row{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #f0e8ff; font-size:0.95rem; }
body.page-store .result-row:last-child{ border-bottom:none; }
body.page-store .badge{ padding:4px 12px; border-radius:50px; font-weight:800; font-size:0.78rem; }
body.page-store .badge.paid{ background:#dcfce7; color:#166534; }
body.page-store .badge.pending{ background:#fef3c7; color:#92400e; }
body.page-store .error-msg{ color:var(--coral); font-weight:700; }
body.page-store footer{ background:var(--purple-deep); color:white; padding:48px 0; text-align:center; }
body.page-store .footer-logo{ background:white; display:inline-block; padding:16px 28px; border-radius:20px; margin-bottom:18px; }
body.page-store .footer-logo img{ height:56px; width:auto; }
body.page-store footer p{ opacity:0.8; font-size:0.9rem; margin-top:6px; }
body.page-store .footer-contact{
    display:flex; align-items:center; justify-content:center; gap:24px; flex-wrap:wrap;
    margin-top:20px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.15);
  }
body.page-store .footer-contact a{
    color:white; opacity:0.9; font-weight:700; font-size:0.95rem;
    display:flex; align-items:center; gap:8px; transition:opacity .15s;
  }
body.page-store .footer-contact a:hover{ opacity:1; }
body.page-store .footer-legal{
  display:flex; gap:18px; justify-content:center; flex-wrap:wrap;
  margin-top:16px; padding-top:16px; border-top:1px solid rgba(255,255,255,0.12);
}
body.page-store .footer-legal a{
  color:white; opacity:0.7; font-size:0.8rem; font-weight:600; text-decoration:none;
}
body.page-store .footer-legal a:hover{ opacity:1; text-decoration:underline; }
body.page-store /* CART DRAWER */
  .overlay{ position:fixed; inset:0; background:rgba(34,24,51,0.5); display:none; z-index:90; }
body.page-store .overlay.open{ display:block; }
body.page-store .drawer{
    position:fixed; top:0; right:-420px; width:400px; max-width:92vw; height:100%; background:white;
    z-index:100; box-shadow:-10px 0 40px rgba(0,0,0,0.15); transition:right .25s ease; display:flex; flex-direction:column;
  }
body.page-store .drawer.open{ right:0; }
body.page-store .drawer-head{ padding:22px 24px; border-bottom:1px solid #f0e8ff; display:flex; justify-content:space-between; align-items:center; }
body.page-store .drawer-head h3{ color:var(--purple-deep); }
body.page-store .drawer-close{ background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--purple-deep); }
body.page-store .drawer-body{ flex:1; overflow-y:auto; padding:20px 24px; }
body.page-store .cart-item{ display:flex; justify-content:space-between; align-items:flex-start; padding:16px 0; border-bottom:1px solid #f7f2ff; gap:12px; }
body.page-store .cart-item-info{ flex:1; min-width:0; }
body.page-store .cart-item-name{ font-weight:700; font-size:0.95rem; }
body.page-store .cart-item-variant{ font-size:0.78rem; color:#8a7ba3; margin-top:2px; }
body.page-store .cart-item-right{ text-align:right; flex-shrink:0; }
body.page-store .cart-item-total{ font-weight:800; font-size:0.95rem; color:var(--purple-deep); }
body.page-store .cart-item-remove{ background:none; border:none; color:var(--coral); cursor:pointer; font-weight:700; font-size:0.8rem; padding:6px 0 0; }

/* --- Quantity stepper --- */
body.page-store .qty-control{
  display:inline-flex; align-items:center; margin-top:10px;
  border:1.5px solid #eee0ff; border-radius:50px; overflow:hidden; background:white;
}
body.page-store .qty-btn{
  width:32px; height:32px; border:none; background:var(--lavender); color:var(--purple-deep);
  font-size:1.1rem; font-weight:800; cursor:pointer; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:background .12s;
}
body.page-store .qty-btn:hover{ background:var(--purple); color:white; }
body.page-store .qty-btn:active{ transform:scale(0.92); }
body.page-store .qty-input{
  width:44px; height:32px; border:none; text-align:center;
  font-family:'Nunito Sans', sans-serif; font-weight:800; font-size:0.9rem; color:var(--ink);
  background:white; -moz-appearance:textfield;
}
body.page-store .qty-input:focus{ outline:none; background:var(--lavender); }
/* Hide the native number spinners — we have our own buttons */
body.page-store .qty-input::-webkit-outer-spin-button,
body.page-store .qty-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

body.page-store .cart-notice{
  background:#fff3cd; color:#92400e; font-size:0.8rem; font-weight:700;
  padding:10px 24px; text-align:center;
}
body.page-store .drawer-foot{ padding:20px 24px; border-top:1px solid #f0e8ff; }
body.page-store .subtotal-row{ display:flex; justify-content:space-between; font-weight:800; font-size:1.1rem; margin-bottom:16px; color:var(--purple-deep); }
body.page-store .checkout-btn{
    width:100%; background:var(--purple-deep); color:white; border:none; padding:16px; border-radius:50px;
    font-weight:800; font-size:1rem; cursor:pointer;
  }
body.page-store .checkout-btn:disabled{ background:#ccc; cursor:not-allowed; }
body.page-store .min-order-warning{
    background:#fff3cd; color:#92400e; border-radius:12px; padding:10px 14px;
    font-size:0.82rem; font-weight:700; margin-bottom:12px; text-align:center;
  }
body.page-store .empty-cart{ text-align:center; color:#aaa; padding:40px 0; }
body.page-store /* CHECKOUT MODAL */
  .modal-overlay{ position:fixed; inset:0; background:rgba(34,24,51,0.55); display:none; align-items:center; justify-content:center; z-index:110; padding:20px; }
body.page-store .modal-overlay.open{ display:flex; }
body.page-store .modal{ background:white; border-radius:24px; padding:32px; max-width:440px; width:100%; max-height:90vh; overflow-y:auto; }
body.page-store .modal h3{ color:var(--purple-deep); font-size:1.4rem; margin-bottom:20px; }
body.page-store .form-group{ margin-bottom:16px; }

/* --- Address autocomplete --- */
body.page-store .addr-wrap{ position:relative; }
body.page-store .addr-suggestions{
  display:none; position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:20;
  background:white; border:1.5px solid #eee0ff; border-radius:12px; overflow:hidden;
  box-shadow:0 10px 24px rgba(76,29,149,0.15); max-height:230px; overflow-y:auto;
}
body.page-store .addr-suggestions.show{ display:block; }
body.page-store .addr-item{ padding:11px 14px; cursor:pointer; border-bottom:1px solid #f7f2ff; }
body.page-store .addr-item:last-child{ border-bottom:none; }
body.page-store .addr-item:hover, body.page-store .addr-item.active{ background:var(--lavender); }
body.page-store .addr-main{ font-weight:700; font-size:0.88rem; color:var(--ink); }
body.page-store .addr-secondary{ font-size:0.76rem; color:#8a7ba3; margin-top:1px; }
body.page-store .addr-hint{ font-size:0.75rem; margin-top:6px; min-height:14px; }
body.page-store .addr-hint.ok{ color:var(--green); font-weight:700; }
body.page-store .addr-hint.warn{ color:#92400e; }
body.page-store .addr-loading{ padding:11px 14px; font-size:0.82rem; color:#aaa; }
body.page-store .form-group label{ display:block; font-weight:700; font-size:0.85rem; margin-bottom:6px; color:var(--ink); }
body.page-store .form-group input, body.page-store .form-group select{
    width:100%; padding:12px 14px; border-radius:12px; border:1.5px solid #eee0ff; font-family:'Nunito Sans'; font-size:0.95rem;
  }
body.page-store .fee-row{ display:flex; justify-content:space-between; padding:10px 0; font-size:0.9rem; color:#7a6b93; }
body.page-store .total-row{ display:flex; justify-content:space-between; font-weight:800; font-size:1.2rem; color:var(--purple-deep); padding-top:10px; border-top:1px solid #f0e8ff; margin-bottom:20px;}
/* --- Fulfilment choice (Delivery vs Pickup) --- */
body.page-store .modal-choice{ text-align:center; }
body.page-store .modal-choice h3{ margin-bottom:4px; }
body.page-store .choice-sub{ color:#8a7ba3; font-size:0.88rem; margin-bottom:20px; }
body.page-store .choice-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
body.page-store .choice-card{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:22px 12px; border:2px solid #eee0ff; border-radius:18px;
  background:white; cursor:pointer; font-family:'Nunito Sans', sans-serif;
  transition:border-color .15s, transform .12s, box-shadow .15s;
}
body.page-store .choice-card:hover{
  border-color:var(--purple); transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(76,29,149,0.12);
}
body.page-store .choice-card:active{ transform:translateY(0); }
body.page-store .choice-card.is-disabled{
  opacity:0.45; cursor:not-allowed; border-color:#eee0ff;
}
body.page-store .choice-card.is-disabled:hover{
  transform:none; box-shadow:none; border-color:#eee0ff;
}
body.page-store .choice-card.is-disabled .choice-desc{ color:var(--coral); font-weight:700; }
body.page-store .choice-icon{ font-size:1.9rem; line-height:1; }
body.page-store .choice-title{ font-weight:800; font-size:1rem; color:var(--purple-deep); }
body.page-store .choice-desc{ font-size:0.75rem; color:#8a7ba3; line-height:1.35; }
body.page-store .choice-back{
  width:100%; margin-top:16px; background:none; border:none;
  color:#8a7ba3; font-family:'Nunito Sans', sans-serif; font-weight:700;
  font-size:0.82rem; cursor:pointer; padding:6px;
}
body.page-store .choice-back:hover{ color:var(--purple-deep); }

/* --- Pickup details box --- */
body.page-store .pickup-box{
  background:var(--lavender); border-radius:14px; padding:16px; margin-bottom:16px;
}
body.page-store .pickup-label{
  font-size:0.72rem; font-weight:800; color:var(--purple);
  text-transform:uppercase; letter-spacing:0.04em; margin-bottom:6px;
}
body.page-store .pickup-address{ font-weight:700; font-size:0.95rem; color:var(--ink); }
body.page-store .pickup-meta{ font-size:0.8rem; color:#7a6b93; margin-top:4px; }

@media (max-width:400px){
  body.page-store .choice-grid{ grid-template-columns:1fr; }
}

body.page-store .pay-btn{ width:100%; background:var(--sun); color:var(--purple-deep); border:none; padding:16px; border-radius:50px; font-weight:800; font-size:1.05rem; cursor:pointer; }
@media (max-width:640px){body.page-store .hero h1{ font-size:2.3rem; }
body.page-store .nav-links{ display:none; }
body.page-store .insta-orbit{ transform:scale(0.75); }
body.page-store .card-img{ height:110px; font-size:2.2rem; }
body.page-store .card-body{ padding:12px 12px 14px; gap:6px; }
body.page-store .card-name{ font-size:0.92rem; }
body.page-store .card-desc{ font-size:0.75rem; }
body.page-store .card-size{ font-size:0.62rem; }
body.page-store .card-cat{ font-size:0.65rem; }
body.page-store select.variant-select{ padding:7px 8px; font-size:0.8rem; }
body.page-store .variant-select option:disabled{ color:#bbb; font-style:italic; }
body.page-store .variant-label{ font-size:0.6rem; margin-bottom:-2px; }
body.page-store .card-qty{ gap:10px; }
body.page-store .card-qty .qty-btn{ width:24px; height:24px; font-size:0.85rem; }
body.page-store .card-qty-value{ font-size:0.85rem; }
body.page-store .price{ font-size:0.95rem; }
body.page-store .add-btn{ padding:7px 12px; font-size:0.78rem; }
body.page-store .card-footer{ flex-wrap:wrap; gap:6px; }}

/* ============================================================
   ADMIN DASHBOARD  (admin.html)
   ============================================================ */
body.page-admin{ font-family:'Nunito Sans', sans-serif; background:var(--lavender); color:var(--ink); min-height:100vh; }
body.page-admin h1, body.page-admin h2{ font-family:'Baloo 2', sans-serif; }
body.page-admin /* LOGIN SCREEN */
  #loginScreen{ display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; }
body.page-admin .login-box{ background:white; border-radius:24px; padding:40px; max-width:360px; width:100%; box-shadow:0 10px 30px rgba(76,29,149,0.15); text-align:center; }
body.page-admin .login-box h1{ color:var(--purple-deep); font-size:1.6rem; margin-bottom:6px; }
body.page-admin .login-box p{ color:#8a7ba3; font-size:0.9rem; margin-bottom:24px; }
body.page-admin .login-box input{ width:100%; padding:14px 16px; border-radius:12px; border:1.5px solid #eee0ff; font-family:'Nunito Sans'; font-size:1rem; margin-bottom:14px; }
body.page-admin .login-box button{ width:100%; background:var(--purple-deep); color:white; border:none; padding:14px; border-radius:12px; font-weight:800; font-size:1rem; cursor:pointer; }
body.page-admin .login-error{ color:var(--coral); font-size:0.85rem; margin-top:10px; min-height:18px; }
body.page-admin .install-hint{ margin-top:18px; font-size:0.78rem; color:#aaa; }
body.page-admin .install-btn-login{ margin-top:10px; background:var(--lavender); color:var(--purple-deep); border:none; padding:10px 18px; border-radius:50px; font-weight:700; font-size:0.85rem; cursor:pointer; width:100%; }
body.page-admin /* DASHBOARD */
  #dashboard{ display:none; }
body.page-admin header{ background:white; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; box-shadow:0 2px 10px rgba(76,29,149,0.06); position:sticky; top:0; z-index:20; flex-wrap:wrap; gap:10px; }
body.page-admin header h1{ color:var(--purple-deep); font-size:1.3rem; }
body.page-admin .header-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
body.page-admin .header-right button{ font-family:'Nunito Sans'; }

/* --- Header menu ---
   Desktop: the panel is just an inline row, hamburger hidden (unchanged look).
   Mobile (<=640px): hamburger appears and the panel becomes a dropdown. */
body.page-admin .is-hidden{ display:none !important; }
body.page-admin .menu-btn{
  display:none; background:var(--lavender); color:var(--purple-deep); border:none;
  width:38px; height:38px; border-radius:50px; font-size:1.15rem; cursor:pointer;
  align-items:center; justify-content:center; line-height:1; flex-shrink:0;
}
body.page-admin .menu-btn.active{ background:var(--purple-deep); color:white; }
body.page-admin .menu-panel{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}

@media (max-width:640px){
  body.page-admin header{ position:relative; }
  body.page-admin header h1{ font-size:1.15rem; }
  body.page-admin .menu-btn{ display:flex; }
  body.page-admin .menu-panel{
    display:none;
    position:absolute; top:calc(100% - 4px); right:16px; z-index:30;
    flex-direction:column; align-items:stretch; gap:0; flex-wrap:nowrap;
    min-width:210px; padding:6px;
    background:white; border:1px solid #eee0ff; border-radius:14px;
    box-shadow:0 12px 30px rgba(76,29,149,0.18);
  }
  body.page-admin .menu-panel.open{ display:flex; }
  /* Menu items: full-width rows rather than pills */
  body.page-admin .menu-panel > button{
    width:100%; text-align:left; background:none; border:none;
    padding:11px 14px; border-radius:10px; font-size:0.88rem; font-weight:700;
    color:var(--ink); cursor:pointer;
  }
  body.page-admin .menu-panel > button:hover{ background:var(--lavender); }
  body.page-admin .menu-panel > .install-btn{ color:var(--purple-deep); }
  body.page-admin .menu-panel > .logout-btn{ color:#8a7ba3; }
  body.page-admin .menu-panel > .logout-all-btn{ color:var(--coral); }
  /* Keep the bell compact so the header fits on one line */
  body.page-admin .notif-toggle{ font-size:0.78rem; padding:8px 12px; }
}
body.page-admin .notif-toggle{ background:var(--lavender); border:none; padding:8px 14px; border-radius:50px; font-weight:700; font-size:0.82rem; cursor:pointer; color:var(--purple-deep); }
body.page-admin .notif-toggle.on{ background:var(--green); color:white; }
body.page-admin .push-hint{
  background:#e0e7ff; color:#3730a3; font-size:0.82rem; font-weight:700;
  padding:10px 20px; text-align:center; line-height:1.5;
}
body.page-admin .install-btn{ background:var(--sun); border:none; padding:8px 14px; border-radius:50px; font-weight:700; font-size:0.82rem; cursor:pointer; color:var(--purple-deep); }
body.page-admin .logout-btn{ background:none; border:none; color:#aaa; font-weight:700; cursor:pointer; font-size:0.82rem; }
body.page-admin .logout-all-btn{ color:var(--coral); opacity:0.85; }
body.page-admin .logout-all-btn:hover{ opacity:1; text-decoration:underline; }
body.page-admin /* ALARM BANNER — sticky, body.page-admin stays until orders are actioned */
  #alarmBanner{
    display:none; background:var(--coral); color:white; padding:14px 20px;
    position:sticky; top:64px; z-index:19; align-items:center; justify-content:space-between;
    gap:12px; flex-wrap:wrap;
  }
body.page-admin #alarmBanner.show{ display:flex; }
body.page-admin .alarm-text{ font-weight:800; font-size:0.95rem; display:flex; align-items:center; gap:10px; }
body.page-admin .alarm-dot{ width:10px; height:10px; background:white; border-radius:50%; animation:blink 1s infinite; }
@keyframes blink{0%, 100%{ opacity:1;}
50%{ opacity:0.3;}}
body.page-admin .alarm-actions{ display:flex; gap:8px; }
body.page-admin .alarm-btn{ background:white; color:var(--coral); border:none; padding:8px 16px; border-radius:50px; font-weight:800; font-size:0.82rem; cursor:pointer; }
body.page-admin .alarm-btn.sound{ background:white; color:var(--coral); animation:blink 1.2s infinite; }
body.page-admin .alarm-btn.mute{ background:rgba(255,255,255,0.25); color:white; }
body.page-admin .filters{ display:flex; gap:8px; padding:16px 24px 0; flex-wrap:wrap; max-width:900px; margin:0 auto; }
body.page-admin .filter-tab{ background:white; border:1.5px solid #eee0ff; padding:8px 16px; border-radius:50px; font-weight:700; font-size:0.85rem; cursor:pointer; color:var(--purple-deep); }
body.page-admin .filter-tab.active{ background:var(--purple-deep); color:white; border-color:var(--purple-deep); }
body.page-admin .search-bar{ max-width:900px; margin:16px auto 0; padding:0 24px; }
body.page-admin .search-bar input{
    width:100%; padding:12px 18px; border-radius:50px; border:1.5px solid #eee0ff;
    font-family:'Nunito Sans'; font-size:0.9rem; background:white;
  }
body.page-admin .search-bar input:focus{ outline:none; border-color:var(--purple); }
body.page-admin .orders-list{ max-width:900px; margin:0 auto; padding:16px 24px 60px; display:flex; flex-direction:column; gap:14px; }
body.page-admin .order-card{ background:white; border-radius:18px; padding:20px; box-shadow:0 4px 16px rgba(76,29,149,0.06); }
body.page-admin .order-card.unactioned{ border:2px solid var(--coral); }
body.page-admin .order-top{ display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
body.page-admin .order-id{ font-weight:800; font-size:1.1rem; color:var(--purple-deep); }
body.page-admin .order-date{ font-size:0.78rem; color:#aaa; }
body.page-admin .badge{ padding:4px 12px; border-radius:50px; font-weight:800; font-size:0.75rem; white-space:nowrap; }
body.page-admin .badge.paid{ background:#dcfce7; color:#166534; }
body.page-admin .badge.pending{ background:#fef3c7; color:#92400e; }
body.page-admin .badge.preparing{ background:#e0e7ff; color:#3730a3; }
body.page-admin .badge.out{ background:#fce7f3; color:#9d174d; }
body.page-admin .badge.delivered{ background:#dcfce7; color:#166534; }
body.page-admin .badge.cancelled{ background:#fee2e2; color:#991b1b; }
body.page-admin .order-detail{ font-size:0.9rem; color:#5a4b73; margin-bottom:4px; }
body.page-admin .pickup-tag{
  display:inline-block; background:var(--sun); color:var(--purple-deep);
  font-size:0.68rem; font-weight:800; padding:2px 8px; border-radius:50px;
  letter-spacing:0.03em; margin-right:4px;
}
body.page-admin .map-link{ color:var(--purple); font-weight:700; text-decoration:underline; }
body.page-admin .map-link:hover{ color:var(--purple-deep); }
body.page-admin .order-detail b{ color:var(--ink); }
body.page-admin .order-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
body.page-admin .action-btn{ border:none; padding:9px 16px; border-radius:50px; font-weight:800; font-size:0.82rem; cursor:pointer; font-family:'Nunito Sans'; }
body.page-admin .action-btn.prep{ background:#e0e7ff; color:#3730a3; }
body.page-admin .action-btn.out{ background:#fce7f3; color:#9d174d; }
body.page-admin .action-btn.delivered{ background:var(--green); color:white; }
body.page-admin .action-btn.cancel{ background:var(--coral); color:white; }
body.page-admin .action-btn:disabled{ opacity:0.4; cursor:default; }
body.page-admin .empty-state{ text-align:center; color:#aaa; padding:60px 20px; }
body.page-admin .refresh-note{ text-align:center; color:#aaa; font-size:0.78rem; padding:10px; }
body.page-admin /* ANALYTICS PANEL */
  .analytics{ max-width:900px; margin:0 auto; padding:0 24px 8px; }
body.page-admin .analytics-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); gap:12px; margin-bottom:14px; }
body.page-admin .stat-card{ background:white; border-radius:14px; padding:16px; text-align:center; box-shadow:0 4px 16px rgba(76,29,149,0.06); }
body.page-admin .stat-value{ font-family:'Baloo 2'; font-size:1.5rem; color:var(--purple-deep); font-weight:800; }
body.page-admin .stat-label{ font-size:0.75rem; color:#8a7ba3; margin-top:2px; }
body.page-admin .analytics-row{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
body.page-admin .analytics-box{ flex:1; min-width:220px; background:white; border-radius:14px; padding:16px; box-shadow:0 4px 16px rgba(76,29,149,0.06); }
body.page-admin .analytics-box h4{ font-size:0.85rem; color:var(--purple-deep); margin-bottom:10px; }
body.page-admin .analytics-item{ display:flex; justify-content:space-between; font-size:0.85rem; padding:5px 0; color:#5a4b73; }
body.page-admin .toggle-analytics{ background:none; border:none; color:var(--purple-deep); font-weight:700; font-size:0.82rem; cursor:pointer; text-decoration:underline; margin:12px 24px 0; display:block; max-width:900px; margin-left:auto; margin-right:auto; }
body.page-admin /* POPUP MODAL — full new-order alert, body.page-admin stays until dismissed/actioned */
  #popupOverlay{ display:none; position:fixed; inset:0; background:rgba(34,24,51,0.6); z-index:100; align-items:center; justify-content:center; padding:20px; }
body.page-admin #popupOverlay.show{ display:flex; }
body.page-admin .popup-card{ background:white; border-radius:24px; padding:32px; max-width:400px; width:100%; text-align:center; box-shadow:0 20px 50px rgba(0,0,0,0.25); }
body.page-admin .popup-icon{ font-size:3rem; margin-bottom:10px; }
body.page-admin .popup-card h2{ color:var(--purple-deep); font-size:1.4rem; margin-bottom:6px; }
body.page-admin .popup-card p{ color:#8a7ba3; font-size:0.9rem; margin-bottom:18px; }
body.page-admin .popup-order{ background:var(--lavender); border-radius:14px; padding:16px; text-align:left; margin-bottom:20px; font-size:0.9rem; }
body.page-admin .popup-order b{ color:var(--purple-deep); }
body.page-admin .popup-actions{ display:flex; gap:10px; }
body.page-admin .popup-actions button{ flex:1; border:none; padding:14px; border-radius:50px; font-weight:800; cursor:pointer; font-family:'Nunito Sans'; font-size:0.9rem; }
body.page-admin .popup-view{ background:var(--purple-deep); color:white; }
body.page-admin .popup-dismiss{ background:var(--lavender); color:var(--purple-deep); }