:root{
  --pink:#E40173;
  --yellow:#ffe820;
  --text:#000000;
  --muted:#5e5e5e;
  --bg:#fffdf8;
  --surface:#ffffff;
  --surface-alt:#fff4d8;
  --border:rgba(17,17,17,.10);
  --shadow:0 20px 50px rgba(17,17,17,.10);
  --radius:28px;
  --radius-sm:18px;
  --max:1120px;
}

*,*::before,*::after{box-sizing:border-box}
*{font-family:inherit}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Alan Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

h1,h2,h3,.eyebrow{font-family:"Alfa Slab One",serif;font-weight:400}
h1,h2,h3{line-height:1.02;margin:0}
p{margin-top:0}
code{background:var(--surface-alt);border-radius:7px;padding:3px 6px;font-size:.9em}

.wrap{width:min(var(--max),calc(100% - 36px));margin-inline:auto}

/* Header */
.site-header{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:16px max(18px,calc((100vw - 1120px)/2));background:rgba(255,232,32,.95);backdrop-filter:saturate(160%) blur(14px);border-bottom:1px solid rgba(17,17,17,.06)}
.brand{display:inline-flex;align-items:center;gap:.5rem;font-family:"Alfa Slab One",serif;font-size:1.2rem;letter-spacing:-.03em;color:var(--text)}
.brand span{color:var(--pink)}
.brand-logo{height:44px;display:block}
button{font:inherit}
.cart-button,.text-button,.icon-button{border:0;background:transparent;cursor:pointer;color:var(--text)}
.cart-button{font-weight:700;display:inline-flex;align-items:center}
.badge{display:inline-grid;place-items:center;min-width:27px;height:27px;padding:0 6px;background:var(--text);color:var(--yellow);font-weight:700;border-radius:999px;margin-left:8px}

/* Eyebrow tag, shared with brightlight-theatre.co.uk */
.eyebrow{display:inline-flex;width:fit-content;padding:.42rem .85rem;border-radius:999px;background:var(--yellow);color:var(--text);font-size:.78rem;line-height:1;letter-spacing:.08em;text-transform:uppercase;margin:0 0 12px}

/* Hero */
.hero{display:grid;grid-template-columns:1fr 240px;align-items:center;gap:40px;padding-block:72px 52px}
.hero h1{font-size:clamp(3rem,7vw,6rem);line-height:.98;letter-spacing:-.045em}
.hero h1 em{font-style:normal;color:var(--pink);background:linear-gradient(to bottom,transparent 62%,var(--yellow) 63%,var(--yellow) 94%,transparent 95%) center center/100% 75% no-repeat}
.hero-copy{font-size:1.15rem;max-width:640px;color:var(--muted);margin-top:22px}
.hero-mark{aspect-ratio:1;background:var(--pink);color:#fff;border-radius:var(--radius);display:grid;place-items:center;font-family:"Alfa Slab One",serif;font-size:5rem;transform:rotate(4deg);box-shadow:var(--shadow)}

/* Shop section */
.shop-section{padding-block:16px 80px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}
.section-heading h2{font-size:clamp(2rem,4vw,3.2rem);margin:0;line-height:1.05}
.offline-note{max-width:320px;color:var(--muted);font-size:.9rem;text-align:right}

.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.product-card{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.product-card:hover{transform:translateY(-4px);box-shadow:0 22px 60px rgba(17,17,17,.14)}
.product-photo{aspect-ratio:1/1;background:var(--surface-alt);display:grid;place-items:center;overflow:hidden}
.product-photo img{width:100%;height:100%;object-fit:cover;display:block}
.product-photo.placeholder{background:linear-gradient(135deg,var(--yellow),#fff2a8);font-family:"Alfa Slab One",serif;font-size:5rem;color:var(--text)}
.product-photo.small{width:180px;flex:0 0 180px;border-radius:var(--radius-sm)}
.product-body{padding:22px;display:flex;flex-direction:column;flex:1}
.product-meta{display:flex;justify-content:space-between;gap:10px;font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.product-meta span{color:var(--pink)}
.product-body h3{font-size:1.7rem;line-height:1.08;margin:9px 0}
.product-body p{color:var(--muted);flex:1;margin:0 0 20px}
.modal-product p { white-space: pre-line; }
.product-body p { display: none; }
/* Buttons — match brand .btn system */
.primary-button,.secondary-button{border:0;border-radius:999px;min-height:3rem;padding:.9rem 1.2rem;font-weight:700;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.08);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.primary-button{background:var(--pink);color:#fff}
.primary-button:hover{background:#c9005f;transform:translateY(-3px)}
.secondary-button{background:var(--yellow);color:var(--text)}
.secondary-button:hover{background:#fff;transform:translateY(-3px)}
.primary-button:active,.secondary-button:active{transform:scale(.97);transition:transform .08s ease}
.full{width:100%}
.small-muted{font-size:.78rem;color:var(--muted);text-align:center}

/* Footer — matches brightlight-theatre.co.uk dark footer */
.site-footer{margin-top:2rem;background:var(--text);color:#fff;padding:30px 0 60px;display:flex;justify-content:space-between;gap:20px;font-size:.85rem}
.site-footer strong{font-family:"Alfa Slab One",serif;color:var(--yellow);font-size:1.3rem;display:block;margin-bottom:6px}
.site-footer div{color:rgba(255,255,255,.82)}

.hidden{display:none!important}

/* Cart drawer */
.drawer{position:fixed;inset:0;pointer-events:none;z-index:50}
.drawer.open{pointer-events:auto}
.drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;transition:.2s}
.drawer.open .drawer-backdrop{opacity:1}
.drawer-panel{position:absolute;right:0;top:0;width:min(500px,100%);height:100%;background:var(--bg);padding:28px;transform:translateX(100%);transition:.25s;overflow:auto;box-shadow:-20px 0 60px rgba(0,0,0,.14)}
.drawer.open .drawer-panel{transform:translateX(0)}
.drawer-head{display:flex;justify-content:space-between;align-items:start}
.drawer-head h2,.modal-card h2{font-size:2.1rem;line-height:1;margin:.1em 0 .5em}
.icon-button,.modal-close{font-size:2rem;line-height:1;color:var(--text)}
.cart-lines{display:grid;gap:14px;margin:20px 0}
.cart-line{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}
.cart-line small{display:block;color:var(--muted)}
.cart-qty{display:flex;align-items:center;gap:8px}
.cart-qty button{width:30px;height:30px;border:1px solid var(--border);border-radius:50%;background:var(--surface);cursor:pointer}
.cart-total{display:flex;justify-content:space-between;padding:22px 0;font-size:1.1rem}
.cart-total strong{font-size:1.4rem}

/* Modals */
.modal{border:0;border-radius:var(--radius);padding:0;background:transparent;max-width:min(780px,calc(100% - 24px));width:100%}
.modal::backdrop{background:rgba(17,17,17,.6)}
.modal-card{position:relative;background:var(--bg);border-radius:var(--radius);padding:30px;box-shadow:var(--shadow)}
.modal-close{position:absolute;right:20px;top:17px;border:0;background:transparent;cursor:pointer}
.modal-product{display:flex;gap:20px;padding-right:35px}
.modal-product h2{margin-top:0}
.modal-price{font-size:1.25rem;color:var(--pink)}
.variant-controls,.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:24px}
.form-grid{grid-template-columns:repeat(2,1fr)}
label{display:grid;gap:6px;font-size:.82rem;font-weight:700}
input,select,textarea{width:100%;font:inherit;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;color:var(--text)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--pink);outline-offset:1px}
textarea{resize:vertical}
.checkout-summary{margin:22px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.checkout-summary>div{display:flex;justify-content:space-between;padding:10px 0;gap:15px}
.summary-total{font-size:1.1rem;font-weight:700}
.consent{display:flex;gap:10px;align-items:flex-start;margin:18px 0;font-size:.8rem;color:var(--muted)}
.consent input{width:auto;margin-top:5px}
.form-message{min-height:1.4em;margin-top:12px;color:var(--pink);font-weight:700}
.empty-state,.error-card{padding:1.25rem;border:1px dashed rgba(17,17,17,.14);border-radius:var(--radius);color:var(--muted);text-align:center;background:rgba(255,255,255,.7)}

/* Admin */
.admin-main{padding-block:58px}
.admin-main h1{font-size:clamp(3rem,7vw,6rem)}
.admin-main h1 em{font-style:normal;color:var(--pink)}
.admin-login{max-width:650px;margin:40px auto 80px}
.admin-login>p:not(.eyebrow){color:var(--muted)}
.login-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;display:grid;gap:16px;margin-top:25px}
.admin-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);margin-bottom:24px}
.tab{background:transparent;border:0;padding:12px 16px;font-weight:700;border-bottom:3px solid transparent;cursor:pointer;color:var(--text)}
.tab.active{border-color:var(--pink);color:var(--pink)}
.table-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}
.table-toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:10px}
.table-toolbar h2{margin:0}
.admin-title-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}

.tally-bar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.tally-item{display:flex;align-items:baseline;gap:8px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:999px;padding:.6rem 1.1rem}
.tally-item strong{font-family:"Alfa Slab One",serif;font-size:1.4rem;color:var(--pink)}
.tally-item span{font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.tally-item--empty{background:transparent;border:1px dashed rgba(17,17,17,.14);box-shadow:none}
.tally-item--empty span{text-transform:none;letter-spacing:normal;font-weight:400}
.orders-list{display:grid;gap:14px}
.order-card{border:1px solid var(--border);border-radius:var(--radius-sm);padding:18px}
.order-top,.order-bottom{display:flex;justify-content:space-between;gap:15px;align-items:center}
.order-top time{font-size:.75rem;color:var(--muted)}
.order-ref{font-weight:800;letter-spacing:.08em;margin-right:10px}
.status{text-transform:capitalize;font-size:.72rem;font-weight:700;padding:5px 9px;border-radius:999px;background:var(--surface-alt)}
.status.pending{background:var(--yellow)}
.status.fulfilled,.status.active{background:#d7f4df}
.status.cancelled,.status.inactive{background:#f8d6e4}
.order-customer{display:flex;flex-wrap:wrap;gap:8px 14px;margin:13px 0;font-size:.82rem}
.order-customer strong{width:100%;font-size:1rem}
.order-customer span{color:var(--muted)}
.order-items{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px 0}
.order-items div{display:flex;justify-content:space-between;gap:15px;padding:5px 0;font-size:.82rem}
.order-bottom{padding-top:13px}
.order-bottom small{display:block;color:var(--muted);max-width:520px}
.order-actions{display:flex;gap:8px}
.product-admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.admin-product-card{display:grid;grid-template-columns:160px 1fr;gap:18px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.admin-product-photo{background:var(--surface-alt);min-height:160px;display:grid;place-items:center}
.admin-product-photo img{width:100%;height:100%;object-fit:cover}
.admin-product-photo span{font-size:.8rem;color:var(--muted)}
.admin-product-content{padding:18px 18px 18px 0;display:flex;flex-direction:column}
.chips{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 8px}
.chips span{font-size:.68rem;font-weight:700;border:1px solid var(--border);border-radius:999px;padding:3px 8px;background:var(--surface)}
.admin-actions{display:flex;gap:10px;margin-top:15px}
.danger{color:#b51b39}
.switch-row{display:flex;align-items:center;gap:8px;margin:14px 0}
.switch-row input{width:auto}
.admin-user{font-size:.85rem;color:var(--muted);margin-right:10px}
.admin-header-actions{display:flex;align-items:center}

.wide{max-width:780px;margin-inline:auto}
.modal-intro{color:var(--muted)}

@media(max-width:900px){
  .hero{grid-template-columns:1fr}
  .hero-mark{display:none}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .product-admin-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .site-header{padding:14px 12px}
  .hero{padding-block:44px 34px}
  .admin-main h1{font-size:3.2rem}
  .section-heading,.admin-title-row,.table-toolbar,.site-footer{align-items:flex-start;flex-direction:column}
  .offline-note{text-align:left}
  .product-grid{grid-template-columns:1fr}
  .variant-controls,.form-grid{grid-template-columns:1fr}
  .modal-product{flex-direction:column}
  .product-photo.small{width:100%;flex-basis:auto}
  .admin-product-card{grid-template-columns:1fr}
  .admin-product-photo{min-height:220px}
  .admin-product-content{padding:18px}
  .order-bottom{align-items:flex-start;flex-direction:column}
  .order-actions{width:100%}
  .order-actions button{flex:1}
}
