:root{
  /* Label.lk brand palette, sampled directly from the logo's blue */
  --primary-dark:#13235E;
  --primary:#21409A;
  --primary-light:#EEF2FC;
  --text:#1A2233;
  --text-muted:#5A6478;
  --border:#D9E0F2;
  --white:#FFFFFF;
  --radius:10px;
  --shadow:0 2px 10px rgba(19,35,94,0.10);
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  /* Warm accent (School Labels, highlights): orange, so it stands out
     against the main logo blue */
  --accent:#C2410C;
  --accent-dark:#9A3412;
  --accent-light:#FFF4EB;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--white);
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{
  background:var(--white);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:50;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;max-width:1120px;margin:0 auto}
.logo{display:flex;align-items:center;gap:10px}
.logo img{height:42px;width:auto}
@media (max-width:760px){
  .logo img{height:34px}
}
nav.main-nav{display:flex;align-items:center;gap:18px}
nav.main-nav a{color:var(--text);font-weight:600;font-size:.94rem;white-space:nowrap}
nav.main-nav a.active,nav.main-nav a:hover{color:var(--primary)}
.nav-toggle{display:none;background:none;border:none;font-size:1.6rem;color:var(--primary-dark);cursor:pointer}

/* Drop-down menus (Shop, Label, Photo Printing) */
.nav-item{position:relative;display:flex;align-items:center;gap:2px}
.sub-toggle{display:flex;align-items:center;justify-content:center;background:none;border:0;padding:4px;color:var(--text);cursor:pointer;border-radius:6px}
.nav-item.active .sub-toggle,.nav-item:hover .sub-toggle{color:var(--primary)}
.sub-toggle svg{transition:transform .15s ease}
.sub-menu{
  display:none;flex-direction:column;position:absolute;top:100%;left:-14px;z-index:60;
  min-width:230px;padding:8px 0;margin-top:10px;
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:0 12px 32px rgba(19,35,94,.14);
}
/* invisible bridge so the menu stays open while the mouse moves down to it */
.sub-menu::before{content:'';position:absolute;left:0;right:0;top:-12px;height:12px}
nav.main-nav .sub-menu a{padding:9px 18px;font-weight:500;font-size:.92rem;white-space:nowrap;color:var(--text)}
nav.main-nav .sub-menu a:hover{background:var(--primary-light);color:var(--primary);text-decoration:none}
.sub-sep{display:block;margin:8px 18px 2px;padding-top:10px;border-top:1px solid var(--border);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}
.nav-item.open .sub-menu{display:flex}
.nav-item.open .sub-toggle svg{transform:rotate(180deg)}
@media (hover:hover) and (min-width:1101px){
  .nav-item:hover .sub-menu,.nav-item:focus-within .sub-menu{display:flex}
}

@media (max-width:1100px){
  nav.main-nav{
    display:none;
    position:absolute;top:100%;left:0;right:0;
    background:var(--white);border-bottom:1px solid var(--border);
    flex-direction:column;align-items:stretch;gap:0;padding:8px 0;box-shadow:var(--shadow);
    max-height:calc(100vh - 70px);overflow-y:auto;
  }
  nav.main-nav.open{display:flex}
  nav.main-nav a{padding:12px 20px;border-bottom:1px solid var(--primary-light)}
  .nav-toggle{display:block}
  .nav-item{flex-wrap:wrap;gap:0;border-bottom:1px solid var(--primary-light)}
  .nav-item .nav-top{flex:1;border-bottom:0}
  .sub-toggle{width:52px;align-self:stretch;border-left:1px solid var(--primary-light);border-radius:0}
  .sub-menu{position:static;flex-basis:100%;min-width:0;margin:0;padding:0 0 6px;border:0;border-radius:0;box-shadow:none;background:var(--primary-light)}
  .sub-menu::before{display:none}
  nav.main-nav .sub-menu a{padding:11px 20px 11px 36px;border-bottom:1px solid var(--white)}
  .sub-sep{margin:8px 20px 2px 36px;border-top:0;padding-top:0}
}

/* Visually hides content while keeping it for screen readers / SEO crawlers. */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Hero used by the School Labels page banner (the homepage hero is a
   separate, self-contained "hero scene" defined inline in build.js's
   heroScene() function, scoped under .hs-hero) */
.hero{
  background:linear-gradient(135deg,var(--primary-light) 0%, var(--white) 70%);
  padding:56px 20px;
  text-align:center;
}
.hero h1{font-size:2.2rem;margin:0 0 12px;color:var(--primary-dark)}
.hero p{color:var(--text-muted);font-size:1.05rem;max-width:600px;margin:0 auto 22px}

.btn{
  display:inline-flex;align-items:center;gap:8px;background:var(--primary);color:var(--white);
  padding:12px 24px;border-radius:999px;font-weight:700;font-size:.95rem;border:none;cursor:pointer;
  transition:background-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.btn svg{flex-shrink:0}
.btn:hover{background:var(--primary-dark);text-decoration:none}
.btn:active{transform:scale(.97)}
.btn-outline{background:transparent;border:2px solid var(--primary);color:var(--primary)}
.btn-outline:hover{background:var(--primary);color:var(--white)}
.btn-whatsapp{background:#15803D}
.btn-whatsapp:hover{background:#166534}
.btn-sm{padding:8px 16px;font-size:.85rem}

/* Keyboard-navigation focus states (accessibility) */
a:focus-visible,button:focus-visible,input:focus-visible,.card a:focus-visible{
  outline:3px solid var(--accent);outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}

/* Sections */
section{padding:44px 20px}
.section-title{text-align:center;margin-bottom:6px;color:var(--primary-dark);font-size:1.6rem}
.section-sub{text-align:center;color:var(--text-muted);margin-bottom:30px}

/* Product grid */
.grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;max-width:1120px;margin:0 auto;
}
.card{
  border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  background:var(--white);box-shadow:var(--shadow);display:flex;flex-direction:column;
  transition:box-shadow .15s ease, transform .15s ease;
}
.card:hover{box-shadow:0 8px 24px rgba(19,35,94,0.14);transform:translateY(-2px)}
.card-img{aspect-ratio:1/1;background:var(--primary-light);overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.card:hover .card-img img{transform:scale(1.04)}
.card-body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1}
.card-cat{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--primary)}
.card-name{font-weight:700;font-size:1rem;color:var(--text)}
.card-price{font-weight:800;color:var(--primary-dark);margin-top:auto}
.card-actions{display:flex;gap:8px;margin-top:8px}
.badge-out{display:inline-block;background:#FCEAEA;color:#B3261E;font-size:.72rem;padding:2px 8px;border-radius:999px;font-weight:700}

/* News / Articles */
.news-meta{font-size:.78rem;color:var(--text-muted)}
.news-date{color:var(--text-muted)}
.news-excerpt{color:var(--text-muted);font-size:.9rem;margin:0}
.article-hero-img{border-radius:var(--radius);overflow:hidden;margin-bottom:18px}
.article-hero-img img{width:100%;max-height:420px;object-fit:cover}
.article-meta{font-size:.85rem;color:var(--text-muted);margin-bottom:6px}
.article-body p{margin:0 0 16px;line-height:1.7}
.article-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:20px}
.article-gallery img{border-radius:var(--radius);width:100%;aspect-ratio:4/3;object-fit:cover}

/* News article popup (used on news.html — clicking a card opens the full
   article here instead of navigating away; the same article is also always
   reachable at its own news/<slug>.html URL for sharing & search engines) */
.article-modal-overlay{
  display:none;position:fixed;inset:0;background:rgba(10,20,18,.6);
  z-index:100;padding:24px 16px;overflow-y:auto;
}
.article-modal-overlay.open{display:block}
.article-modal{
  background:var(--white);max-width:760px;margin:0 auto;border-radius:var(--radius);
  padding:32px;position:relative;box-shadow:0 10px 40px rgba(0,0,0,.25);
}
.article-modal-close{
  position:sticky;top:0;float:right;background:var(--primary-light);border:none;color:var(--primary-dark);
  width:36px;height:36px;border-radius:50%;font-size:1.4rem;line-height:1;cursor:pointer;margin-bottom:10px;
}
.article-modal-close:hover{background:var(--primary);color:var(--white)}

/* Categories */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;max-width:900px;margin:0 auto}
.cat-pill{
  display:block;text-align:center;padding:16px 10px;border-radius:var(--radius);
  background:var(--primary-light);color:var(--primary-dark);font-weight:700;border:1px solid var(--border);
}
.cat-pill:hover{background:var(--primary);color:var(--white);text-decoration:none}

/* Filters bar (shop page) */
.filters{max-width:1120px;margin:0 auto 24px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.filters input[type=search]{
  flex:1;min-width:200px;padding:10px 14px;border:1px solid var(--border);border-radius:8px;font-size:.95rem;
}
.filter-pill{
  padding:8px 14px;border-radius:999px;border:1px solid var(--border);background:var(--white);
  cursor:pointer;font-size:.85rem;font-weight:600;color:var(--text)
}
.filter-pill.active{background:var(--primary);color:var(--white);border-color:var(--primary)}
.empty-state{text-align:center;color:var(--text-muted);padding:40px 0}
.load-more{display:flex;justify-content:center;margin-top:28px}

/* Product page */
.product-layout{display:grid;grid-template-columns:1fr 1fr;gap:36px;max-width:1000px;margin:0 auto}
.product-img{border-radius:var(--radius);overflow:hidden;background:var(--primary-light);aspect-ratio:1/1}
.product-img img{width:100%;height:100%;object-fit:cover}
.product-img.contain img{object-fit:contain;background:var(--white)}
.product-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.product-thumb{width:68px;height:68px;padding:0;border:2px solid var(--border);border-radius:8px;overflow:hidden;background:var(--white);cursor:pointer}
.product-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.product-thumb:hover{border-color:var(--primary)}
.product-thumb.active{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.product-info h1{color:var(--primary-dark);margin:6px 0 10px;font-size:1.6rem}
.product-price{font-size:1.5rem;font-weight:800;color:var(--primary-dark);margin:10px 0}
.product-desc{color:var(--text)}
.breadcrumb{max-width:1000px;margin:16px auto 0;padding:0 20px;font-size:.85rem;color:var(--text-muted)}
@media (max-width:700px){.product-layout{grid-template-columns:1fr}}

/* Static content pages */
.content-page{max-width:800px;margin:0 auto}
.content-page h1{color:var(--primary-dark)}
.content-page h2{color:var(--primary-dark);font-size:1.15rem;margin-top:28px}

/* Why us */
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;max-width:1000px;margin:0 auto;text-align:center}
.why-item .icon{font-size:2rem}
.why-item h3{margin:8px 0 4px;color:var(--primary-dark);font-size:1.05rem}
.why-item p{color:var(--text-muted);font-size:.9rem;margin:0}

/* FAQ (homepage) */
.faq-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.faq-item{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:4px 18px}
.faq-item summary{cursor:pointer;padding:14px 0;font-weight:600;color:var(--primary-dark);list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';font-size:1.3rem;color:var(--primary);flex-shrink:0;transition:transform .15s ease}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{margin:0 0 16px;color:var(--text-muted);font-size:.92rem;line-height:1.6}

/* Footer */
footer{background:var(--primary-dark);color:#D5DDF5;padding:40px 20px 20px;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:24px;max-width:1120px;margin:0 auto 24px}
footer .footer-title{color:var(--white);margin:0 0 12px;font-size:.95rem;font-weight:700}
footer a{color:#D5DDF5}
footer a:hover{color:var(--white)}
.footer-bottom{text-align:center;font-size:.8rem;color:#9FB0E0;border-top:1px solid rgba(255,255,255,.12);padding-top:16px;max-width:1120px;margin:0 auto}

/* Homepage "What We Print" service cards */
.service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;max-width:1120px;margin:0 auto}
.service-card{display:flex;flex-direction:column;gap:8px;padding:24px 20px;background:var(--white);border:2px solid var(--border);border-radius:14px;color:var(--text);transition:border-color .15s,transform .15s,box-shadow .15s}
.service-card:hover{border-color:var(--primary);transform:translateY(-3px);box-shadow:0 10px 26px rgba(19,35,94,.12);text-decoration:none}
.service-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:14px;background:var(--primary-light);color:var(--primary)}
.service-card h3{margin:6px 0 0;color:var(--primary-dark);font-size:1.08rem}
.service-card p{margin:0;color:var(--text-muted);font-size:.9rem;flex:1}
.service-more{font-weight:700;color:var(--primary);font-size:.9rem}

/* Labels page: link to School Labels */
.label-school-banner{display:flex;align-items:center;gap:16px;flex-wrap:wrap;max-width:1120px;margin:0 auto 22px;padding:16px 20px;border-radius:var(--radius);background:linear-gradient(135deg,var(--accent-light) 0%,var(--white) 80%);border:1px solid #FBD9BF;color:var(--text)}
.label-school-banner:hover{text-decoration:none;border-color:var(--accent)}
.label-school-emoji{font-size:2rem;line-height:1}
.label-school-banner > span:nth-child(2){flex:1;min-width:200px;display:flex;flex-direction:column}
.label-school-banner strong{color:var(--accent-dark);font-size:1.05rem}
.label-school-banner small{color:var(--text-muted);font-size:.88rem}
.pdp-artwork-note{background:var(--primary-light);border-left:4px solid var(--primary);padding:10px 14px;border-radius:6px;font-size:.9rem}

/* Homepage promo banner (School Labels) */
.promo-banner{
  background:linear-gradient(135deg,var(--accent-light) 0%, var(--white) 70%);
  border:1px solid #FBD9BF;border-radius:var(--radius);
  max-width:1120px;margin:0 auto;padding:32px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
}
.promo-banner-text h2{margin:0 0 6px;color:var(--accent-dark);font-size:1.4rem}
.promo-banner-text p{margin:0;color:var(--text-muted)}
.btn-accent{background:var(--accent)}
.btn-accent:hover{background:var(--accent-dark)}

/* School Labels listing */
.label-card{border-top:4px solid var(--label-color,var(--accent))}
.label-card .card-name{min-height:2.6em}

/* Label design detail page */
.font-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin:10px 0 18px}
.font-option{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;
  border:2px solid var(--border);border-radius:var(--radius);padding:12px 8px;cursor:pointer;
  background:var(--white);
}
.font-option input{position:absolute;opacity:0;width:0;height:0}
.font-option:has(input:checked){border-color:var(--accent);background:var(--accent-light)}
.font-option-preview{font-size:1.4rem;color:var(--text)}
.font-option-name{font-size:.75rem;color:var(--text-muted);font-weight:600}

.label-preview{
  border:2px dashed var(--label-color,var(--accent));border-radius:var(--radius);
  background:var(--white);padding:28px 20px;text-align:center;margin:14px 0 20px;
}
.label-preview-name{font-size:1.8rem;color:var(--text);word-break:break-word}
.label-preview-subject{font-size:1.1rem;color:var(--text-muted);margin-top:4px;word-break:break-word}

/* ---- School label SHEET designer (e.g. 20 Bluey labels) ---- */
.card-price-unit{font-size:.78rem;font-weight:500;color:var(--text-muted)}
.sheet-page{max-width:1180px;margin:0 auto}
.sheet-head{display:flex;gap:20px;align-items:flex-start;margin-bottom:22px}
.sheet-head-img{width:120px;height:120px;border-radius:12px;object-fit:cover;border:1px solid var(--border);flex-shrink:0}
.sheet-head h1{margin:0 0 6px;color:var(--primary-dark);font-size:1.6rem}
.sheet-head .product-desc{margin:6px 0 0}
.sheet-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px;align-items:start}
/* the preview column must be as tall as the form so the sheet can stay in view while scrolling */
.sheet-preview-col{align-self:stretch}
.sheet-preview-sticky{position:sticky;top:84px}
.sheet-hint{font-size:.85rem;color:var(--text-muted);margin:0 0 10px}
.sheet-canvas{
  position:relative;margin:0 auto;border-radius:6px;box-shadow:0 6px 24px rgba(19,35,94,.14);background:#fff;
  /* whole sheet visible on screen: its height is ~1.95x its width */
  width:min(100%, calc((100vh - 150px) / 1.95));
  --sheet-font:'Poppins',sans-serif;
}
.sheet-canvas img{width:100%;height:auto;display:block}
.sheet-slot{
  position:absolute;display:flex;flex-direction:column;justify-content:center;gap:0;
  padding:0 calc(var(--u,4px) * .4);margin:0;border:0;background:transparent;cursor:pointer;text-align:left;
  font-family:var(--sheet-font);color:#1F2A5A;line-height:1.22;border-radius:4px;
}
.sheet-slot span{display:block;white-space:nowrap;overflow:hidden}
.sheet-slot .ss-name{font-weight:700;font-size:calc(var(--u,4px) * 3.6)}
.sheet-slot .ss-subject,.sheet-slot .ss-grade{font-size:calc(var(--u,4px) * 2.4);color:#34457A}
.sheet-slot .ss-school{font-size:calc(var(--u,4px) * 2.1);color:#34457A}
.sheet-slot.is-empty .ss-name{color:#B9C3DE;font-weight:600}
.sheet-slot:hover,.sheet-slot.is-active{outline:2px dashed var(--accent);outline-offset:1px;background:rgba(255,244,235,.55)}
.sheet-step{font-size:1.05rem;color:var(--primary-dark);margin:22px 0 8px;padding-top:14px;border-top:1px solid var(--border)}
.sheet-step:first-of-type{border-top:0;padding-top:0;margin-top:0}
.sheet-step small{font-weight:500;color:var(--text-muted)}
.sheet-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.sheet-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sheet-sets{display:flex;flex-direction:column;gap:10px}
.sheet-set{border:1px solid var(--border);border-radius:10px;padding:10px 12px 12px;margin:0;transition:border-color .15s,box-shadow .15s}
.sheet-set-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
/* small live preview of this one label, right above its boxes */
.sheet-mini{
  position:relative;width:100%;max-width:440px;margin:2px 0 10px;
  background-color:#fff;background-repeat:no-repeat;border-radius:8px;box-shadow:0 2px 10px rgba(19,35,94,.12);
  font-family:var(--sheet-font,'Poppins',sans-serif);
}
.sheet-mini .sheet-mini-text{pointer-events:none;cursor:default}
.sheet-mini .sheet-mini-text:hover{outline:none;background:transparent}
.sheet-error{margin:10px 0 0;padding:10px 12px;border-radius:8px;background:#FEF2F2;color:#991B1B;font-size:.9rem;font-weight:600}
.sheet-set legend{font-weight:700;font-size:.85rem;color:var(--primary);padding:0 6px}
.sheet-set.is-active{border-color:var(--accent);box-shadow:0 0 0 3px rgba(194,65,12,.12)}
.sheet-field{display:flex;flex-direction:column;gap:3px;font-size:.78rem;font-weight:600;color:var(--text-muted)}
.customize-form .sheet-field input{padding:8px 10px;font-size:.92rem}
@media (max-width:900px){
  .sheet-layout{grid-template-columns:1fr}
  .sheet-preview-sticky{position:static}
  .sheet-canvas{width:100%;max-width:560px}
  .sheet-head-img{width:84px;height:84px}
}
@media (max-width:520px){
  .sheet-set-fields,.sheet-quick{grid-template-columns:1fr}
}

.customize-form label.field-label{display:block;font-weight:700;font-size:.85rem;margin:14px 0 6px;color:var(--text)}
.customize-form input[type=text],
.customize-form input[type=tel],
.customize-form input[type=email],
.customize-form input[type=number]{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:.95rem;font-family:var(--font);
}
.customize-form .qty-row{display:flex;align-items:center;gap:10px}
.customize-form .qty-row input{width:90px}
.customize-form .honey-field{position:absolute;left:-9999px;top:-9999px}
.form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}

/* Header cart icon */
.header-right{display:flex;align-items:center;gap:18px}
.cart-link{position:relative;display:flex;align-items:center;color:var(--primary-dark)}
.cart-badge{
  position:absolute;top:-8px;right:-10px;background:var(--primary);color:var(--white);
  font-size:.68rem;font-weight:800;min-width:17px;height:17px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;padding:0 4px;
}
.cart-badge[hidden]{display:none}
@media (max-width:760px){
  .header-right{gap:12px}
}

/* Add-to-cart button + quantity stepper */
.add-to-cart-btn{background:var(--white);color:var(--primary-dark);border:2px solid var(--primary)}
.add-to-cart-btn:hover{background:var(--primary);color:var(--white)}
.qty-row{display:flex;align-items:center;gap:0;border:1px solid var(--border);border-radius:8px;overflow:hidden;width:fit-content}
.qty-row input[type=number]{
  width:52px;text-align:center;border:none;padding:8px 4px;font-size:.95rem;font-family:var(--font);
  -moz-appearance:textfield;
}
.qty-row input[type=number]::-webkit-outer-spin-button,
.qty-row input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-btn{
  background:var(--primary-light);border:none;width:34px;height:38px;font-size:1.1rem;font-weight:700;
  color:var(--primary-dark);cursor:pointer;
}
.qty-btn:hover{background:var(--primary);color:var(--white)}
.pdp-cart-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:16px 0}

/* Cart page */
.cart-loading{text-align:center;color:var(--text-muted)}
.cart-rows{max-width:760px;margin:0 auto 24px}
.cart-row{
  display:grid;grid-template-columns:64px 1fr auto auto auto;align-items:center;gap:14px;
  padding:14px 0;border-bottom:1px solid var(--border);
}
.cart-row-img{width:64px;height:64px;border-radius:8px;overflow:hidden;background:var(--primary-light);flex-shrink:0}
.cart-row-img img{width:100%;height:100%;object-fit:cover}
.cart-row-name{font-weight:700;color:var(--text);display:block}
.cart-row-price{color:var(--text-muted);font-size:.85rem}
.cart-row-size{color:var(--primary-dark);font-size:.85rem;font-weight:600}

/* Photo Printing page */
.sp-wrap{max-width:900px;margin:0 auto}
.sp-title{color:var(--primary-dark);margin:0 0 6px}
.sp-lead{color:var(--text-muted);margin:0 0 22px}
.sp-step{margin:0 0 26px;padding:22px;background:var(--white);border:1px solid var(--border);border-radius:var(--radius)}
.sp-step[hidden],.pdp-cart-row[hidden]{display:none}
.sp-step h2{margin:0 0 14px;font-size:1.1rem;color:var(--primary-dark);display:flex;align-items:center;gap:10px}
.sp-num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--primary);color:#fff;font-size:.9rem;flex-shrink:0}
.sp-sizes{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
@media (max-width:760px){.sp-sizes{grid-template-columns:repeat(3,1fr)}}
@media (max-width:480px){.sp-sizes{grid-template-columns:repeat(2,1fr)}}
.sp-size span{align-items:center;text-align:center;min-width:0;padding:12px 8px 14px;gap:3px}
.sp-size-visual{display:flex;align-items:flex-end;justify-content:center;width:100%;height:162px;margin-bottom:6px;border-bottom:1px solid var(--border)}
.sp-size-img{display:block;object-fit:cover;object-position:50% 30%;border-radius:2px;background:#EEF2FC;box-shadow:0 2px 8px rgba(0,0,0,.28);margin-bottom:6px}
.sp-size small{color:var(--text-muted);font-size:.78rem;line-height:1.3}
.sp-size em{margin-top:2px;font-weight:700}
.sp-drop{position:relative;display:flex;align-items:center;justify-content:center;min-height:150px;border:2px dashed var(--border);border-radius:var(--radius);background:var(--primary-light);cursor:pointer;transition:border-color .15s,background .15s}
.sp-drop:hover,.sp-drop.drag,.sp-drop:focus-within{border-color:var(--primary);background:#FFE9D6}
.sp-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.sp-drop-text{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px;text-align:center;color:var(--primary-dark)}
.sp-drop-text small{color:var(--text-muted)}
.sp-status{margin:14px 0 0;padding:10px 14px;border-radius:8px;font-size:.92rem;background:var(--primary-light);color:var(--primary-dark)}
.sp-status[hidden],.sp-quality[hidden],.sp-added[hidden]{display:none}
.sp-status-ok{background:#E7F6EC;color:#1E7A3E;font-weight:600}
.sp-status-error{background:#FDECEC;color:#B42318;font-weight:600}
.sp-status-busy{background:#EEF2FC;color:#1E3A8A;display:flex;align-items:center;gap:10px}
.sp-status-busy::before,.sp-spinner{content:'';flex-shrink:0;width:18px;height:18px;border:3px solid rgba(33,64,154,.28);border-top-color:var(--primary);border-radius:50%;animation:sp-spin .8s linear infinite}
@keyframes sp-spin{to{transform:rotate(360deg)}}
.sp-spinner{display:inline-block;width:22px;height:22px}
.sp-progress{margin-top:16px;padding:16px 18px;background:#F4F7FD;border:1px solid #C9D4F0;border-radius:var(--radius)}
.sp-progress[hidden]{display:none}
.sp-progress-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.sp-progress-text{flex:1;font-weight:600;color:var(--primary-dark);font-size:.95rem}
.sp-progress-pct{color:var(--primary-dark);font-size:1.05rem;min-width:44px;text-align:right}
.sp-bar{height:12px;background:#F5E1CD;border-radius:999px;overflow:hidden}
.sp-bar-fill{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,var(--primary),#FFB36B);background-size:200% 100%;transition:width .35s ease;animation:sp-shimmer 1.4s linear infinite}
@keyframes sp-shimmer{to{background-position:-200% 0}}
.sp-progress-note{margin:10px 0 0;font-size:.85rem;color:var(--text-muted)}
.sp-locked{pointer-events:none;opacity:.6}
@media (prefers-reduced-motion:reduce){.sp-spinner,.sp-status-busy::before,.sp-bar-fill{animation:none}}
.sp-hint{margin:0 0 12px;color:var(--text-muted);font-size:.92rem}
.sp-stage{display:flex;justify-content:center;background:#eef0f2;border-radius:var(--radius);overflow:hidden}
#sp-canvas{display:block;max-width:100%;touch-action:none;cursor:grab;user-select:none}
#sp-canvas.grabbing{cursor:grabbing}
.sp-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px}
.sp-zoom{display:flex;align-items:center;gap:10px;flex:1;min-width:200px;font-weight:600;color:var(--primary-dark);font-size:.92rem}
.sp-zoom input{flex:1;accent-color:var(--primary)}
.sp-quality{margin:12px 0 0;padding:10px 14px;border-radius:8px;font-size:.88rem}
.sp-quality-warn{background:#FFF6DB;color:#7A5B00}
.sp-quality-bad{background:#FDECEC;color:#B42318;font-weight:600}
.sp-summary{margin:0 0 14px;font-weight:700;color:var(--primary-dark);font-size:1.02rem}
.sp-added{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px;padding:12px 14px;background:#E7F6EC;border-radius:8px;color:#1E7A3E}
.sp-note{color:var(--text-muted);font-size:.85rem;line-height:1.5}
.add-to-cart-btn:disabled{opacity:.5;cursor:not-allowed}
@media (max-width:560px){.sp-step{padding:16px}}
/* Product page size picker */
.size-picker{margin:0 0 18px}
.size-picker-label{font-weight:700;color:var(--primary-dark);margin-bottom:8px;font-size:.95rem}
.size-options{display:flex;flex-wrap:wrap;gap:10px}
label.size-picker-label{display:block}
/* Long size lists (labels): a drop-down instead of buttons */
.size-select{
  width:100%;max-width:420px;padding:12px 40px 12px 14px;font:inherit;font-size:1rem;font-weight:600;color:var(--text);
  background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2321409A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border:2px solid var(--border);border-radius:10px;cursor:pointer;-webkit-appearance:none;appearance:none;
}
.size-select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(33,64,154,.15)}
.price-unit{font-size:.95rem;font-weight:500;color:var(--text-muted)}
.price-rule{margin:-4px 0 10px;font-size:.85rem;color:var(--text-muted)}
.qty-row input.qty-wide[type=number]{width:76px}
.size-option{cursor:pointer}
.size-option input{position:absolute;opacity:0;pointer-events:none}
.size-option span{position:relative;display:flex;flex-direction:column;gap:2px;padding:10px 16px;border:2px solid var(--border);border-radius:var(--radius);background:var(--white);min-width:110px;transition:border-color .15s,background .15s}
.size-option input:checked + span::after{content:'';position:absolute;top:-9px;right:-9px;width:20px;height:20px;border-radius:50%;background:var(--primary-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;box-shadow:0 0 0 2px var(--white)}
.size-option strong{font-size:.92rem;color:var(--text)}
.size-option em{font-style:normal;font-size:.85rem;color:var(--text-muted)}
.size-option:hover span{border-color:var(--primary)}
.size-option input:checked + span{border-color:var(--primary);background:var(--primary-light)}
.size-option input:checked + span em{color:var(--primary-dark);font-weight:600}
.size-option input:focus-visible + span{outline:2px solid var(--primary-dark);outline-offset:2px}
.cart-row-total{font-weight:800;color:var(--primary-dark);white-space:nowrap}
.cart-remove-btn{background:none;border:none;color:var(--text-muted);font-size:1.3rem;cursor:pointer;line-height:1;padding:4px}
.cart-remove-btn:hover{color:#B3261E}
.cart-summary{max-width:760px;margin:0 auto;border-top:2px solid var(--primary-dark);padding-top:18px}
.cart-summary-total{display:flex;justify-content:space-between;font-size:1.2rem;font-weight:800;color:var(--primary-dark)}
.cart-summary-note{color:var(--text-muted);font-size:.85rem;margin:6px 0 16px}

@media (max-width:600px){
  .cart-row{
    grid-template-columns:56px 1fr auto;
    grid-template-areas:"img name remove" "img qty qty" "img total total";
    row-gap:8px;
  }
  .cart-row-img{grid-area:img}
  .cart-row-info{grid-area:name}
  .qty-row{grid-area:qty}
  .cart-row-total{grid-area:total}
  .cart-remove-btn{grid-area:remove}
}

/* Checkout page */
.checkout-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:36px;max-width:1000px;margin:0 auto;align-items:start}
.checkout-summary{background:var(--primary-light);border-radius:var(--radius);padding:20px}
.checkout-summary-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:.9rem}
.checkout-summary-total{border-bottom:none;border-top:2px solid var(--primary-dark);margin-top:8px;padding-top:12px;font-weight:800;font-size:1.05rem;color:var(--primary-dark)}
.payment-options{display:flex;flex-direction:column;gap:10px}
.payment-option{
  display:flex;flex-direction:column;border:2px solid var(--border);border-radius:10px;padding:10px 14px;cursor:pointer;
}
.payment-option:has(input:checked){border-color:var(--primary);background:var(--primary-light)}
.payment-option-name{font-weight:700;font-size:.92rem;color:var(--text)}
.delivery-fee{display:inline-block;margin-left:6px;color:var(--primary);font-weight:800;white-space:nowrap}
.checkout-summary-sub{font-weight:600}
.payment-option-note{font-size:.78rem;color:var(--text-muted)}
.payment-option--soon .payment-option-note{font-style:italic}
@media (max-width:760px){
  .checkout-layout{grid-template-columns:1fr}
}

.checkout-error{
  background:#FCEAEA;color:#B3261E;padding:12px 16px;border-radius:8px;
  font-size:.9rem;font-weight:600;margin-bottom:16px;
}

/* Bank transfer page */
.bt-greeting{font-size:1.05rem;color:var(--text);text-align:center;margin-bottom:24px}
.bt-details-card{
  background:var(--primary-light);border-radius:var(--radius);padding:22px 24px;
  max-width:520px;margin:0 auto 20px;
}
.bt-order-line,.bt-bank-row{
  display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--border);font-size:.92rem;
}
.bt-order-line:last-child,.bt-bank-row:last-child{border-bottom:none}
.bt-order-line strong{color:var(--primary-dark);font-size:1rem}
.bt-bank-row strong{color:var(--text);text-align:right}
.bt-note{max-width:520px;margin:0 auto 24px;color:var(--text-muted);font-size:.9rem;text-align:center}
.bt-slip-note{max-width:520px;margin:0 auto 24px;padding:14px 18px;background:var(--primary-light);border-left:4px solid var(--primary);border-radius:8px;font-size:.92rem}
.bt-slip-note ul{margin:6px 0 0;padding-left:20px}
.bt-slip-note li{margin:3px 0}
#bank-transfer-root .form-actions{justify-content:center}

.mail-status-note{
  max-width:520px;margin:0 auto 20px;padding:12px 16px;border-radius:var(--radius);
  font-size:.9rem;text-align:center;font-weight:600;
}
.mail-status-ok{background:#E7F6EC;color:#1E7A3E}
.mail-status-fail{background:#FDECEC;color:#B42318}

/* "Added to cart" toast */
.cart-toast{
  position:fixed;bottom:90px;right:20px;background:var(--primary-dark);color:var(--white);
  padding:12px 18px;border-radius:8px;font-size:.9rem;font-weight:600;box-shadow:var(--shadow);
  z-index:70;opacity:0;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease;
}
.cart-toast.show{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion: reduce){
  .cart-toast{transition:none}
}

/* WhatsApp floating button */
.whatsapp-float{
  position:fixed;bottom:20px;right:20px;background:#25D366;color:#fff;
  width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.2);font-size:1.6rem;z-index:60;
}
.whatsapp-float:hover{text-decoration:none;filter:brightness(1.05)}

/* "Placing your order" screen (checkout) */
.order-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(10,40,35,.72);backdrop-filter:blur(3px)}
.order-overlay-box{width:100%;max-width:440px;padding:30px 28px;background:var(--white);border-radius:16px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.order-overlay-spinner{width:46px;height:46px;border-width:5px;margin-bottom:14px}
.order-overlay-box h2{margin:0 0 8px;color:var(--primary-dark);font-size:1.3rem}
.order-overlay-msg{margin:0 0 16px;min-height:2.6em;color:var(--text);font-size:.95rem;line-height:1.4}
.order-overlay-pct{margin:8px 0 14px;font-weight:800;color:var(--primary-dark);font-size:1.1rem}
.order-overlay-warn{margin:0;padding:9px 12px;background:#EEF2FC;border-radius:8px;color:#1E3A8A;font-size:.85rem;font-weight:600}
/* Photo guide pop-up (Photo Printing) */
.sp-guide-row{margin:0 0 22px}
.sp-link{background:none;border:0;padding:0;color:var(--primary);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.sp-modal{position:fixed;inset:0;z-index:9998;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(10,40,35,.7)}
.sp-modal[hidden]{display:none}
.sp-modal-open{overflow:hidden}
.sp-modal-box{display:flex;flex-direction:column;width:100%;max-width:760px;max-height:90vh;background:var(--white);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.35);overflow:hidden}
.sp-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}
.sp-modal-head h2{margin:0;font-size:1.2rem;color:var(--primary-dark)}
.sp-modal-close{flex-shrink:0;width:38px;height:38px;border:0;border-radius:50%;background:var(--primary-light);color:var(--primary-dark);font-size:1.7rem;line-height:1;cursor:pointer}
.sp-modal-close:hover{background:#FFE0C2}
.sp-modal-body{padding:18px 22px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.sp-modal-body h3{margin:20px 0 8px;font-size:1.02rem;color:var(--primary-dark)}
.sp-modal-body ul{margin:0;padding-left:20px;line-height:1.55;color:var(--text)}
.sp-modal-body li{margin-bottom:5px}
.sp-modal-foot{padding:14px 20px;border-top:1px solid var(--border);text-align:right;background:#fff}
.sp-guide-intro{margin:0 0 16px;color:var(--text-muted)}
.sp-guide-top{display:grid;grid-template-columns:180px 1fr;gap:20px;align-items:start;margin-bottom:6px}
.sp-guide-figure{margin:0;text-align:center}
.sp-guide-figure svg{width:100%;max-width:170px;height:auto}
.sp-guide-figure figcaption{margin-top:8px;font-size:.8rem;color:var(--text-muted);line-height:1.4}
.sp-guide-dd{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sp-guide-do,.sp-guide-dont{padding:12px 14px;border-radius:10px;font-size:.88rem}
.sp-guide-do{background:#E7F6EC}.sp-guide-dont{background:#FDECEC}
.sp-guide-do h3,.sp-guide-dont h3{margin:0 0 6px}
.sp-guide-do h3{color:#1E7A3E}.sp-guide-dont h3{color:#B42318}
.sp-guide-do ul,.sp-guide-dont ul{padding-left:18px;line-height:1.45}
.sp-guide-warn{margin:20px 0 4px;padding:12px 14px;background:#FFF6DB;border-radius:10px;color:#7A5B00;font-size:.88rem}
@media (max-width:640px){.sp-guide-top{grid-template-columns:1fr}.sp-guide-figure{max-width:200px;margin:0 auto}.sp-guide-dd{grid-template-columns:1fr}.sp-modal-body{padding:16px}}
/* Printing pages (Custom Printing, Business Cards) */
.pr-papers{grid-template-columns:repeat(2,1fr)}
.pr-papers .size-option span{align-items:flex-start;text-align:left;padding:14px 16px}
.pr-note-small{margin-top:4px;font-size:.74rem}
.pr-size-options .size-option span{min-width:140px}
.pr-fileinfo{display:grid;grid-template-columns:170px 1fr;gap:18px;margin-top:16px;padding:16px;background:#FFFBF7;border:1px solid #F3DEC8;border-radius:var(--radius)}
.pr-fileinfo[hidden]{display:none}
.pr-thumb{display:flex;align-items:flex-start;justify-content:center}
.pr-thumb-img{display:block;max-width:100%;height:auto;border:1px solid var(--border);border-radius:4px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.pr-facts{margin:0}
.pr-facts div{display:flex;gap:10px;padding:5px 0;border-bottom:1px solid #F3E6D8;font-size:.92rem}
.pr-facts dt{flex:0 0 130px;color:var(--text-muted)}
.pr-facts dd{margin:0;font-weight:700;color:var(--primary-dark);word-break:break-word}
.pr-notes{grid-column:1 / -1}
.pr-notes p{margin:6px 0 0;padding:9px 12px;background:#FFF6DB;border-radius:8px;color:#7A5B00;font-size:.88rem}
.pr-manual{grid-column:1 / -1;display:flex;align-items:center;gap:12px;font-weight:700;color:var(--primary-dark)}
.pr-manual[hidden]{display:none}
.pr-manual input,.pr-qty-input{width:110px;padding:10px 12px;border:2px solid var(--border);border-radius:var(--radius);font:inherit;font-weight:700}
.pr-copies{display:flex;align-items:center;gap:14px;margin-top:16px}
.pr-copies-label{font-weight:700;color:var(--primary-dark)}
.pr-summary{margin:0 0 14px;padding:12px 14px;background:var(--primary-light);border-radius:var(--radius);color:var(--text);line-height:1.6}
.pr-summary:empty{display:none}
.pr-total{margin-top:4px;font-size:1.08rem;color:var(--primary-dark)}
.pr-warn{color:#B42318;font-weight:600}
.pr-cardinfo{display:grid;grid-template-columns:230px 1fr;gap:20px;align-items:center}
.pr-cardsvg{width:100%;max-width:230px;height:auto}
.pr-cardfacts{margin:0;padding-left:18px;line-height:1.7;font-size:.93rem}
.pr-chips{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:640px){.pr-fileinfo,.pr-cardinfo{grid-template-columns:1fr}.pr-thumb{justify-content:flex-start}.pr-papers{grid-template-columns:1fr}.pr-facts dt{flex-basis:105px}}
/* Hub pages with two big cards (Printing) */
.pp-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;max-width:860px;margin:0 auto}
.pp-hub-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:28px;background:var(--white);border:2px solid var(--border);border-radius:var(--radius);color:var(--text);transition:border-color .15s,transform .15s,box-shadow .15s}
.pp-hub-card:hover{border-color:var(--primary);transform:translateY(-3px);box-shadow:0 10px 26px rgba(19,35,94,.12)}
.pp-hub-card h2{margin:4px 0 0;color:var(--primary-dark);font-size:1.35rem}
.pp-hub-card p{margin:0;color:var(--text-muted);font-size:.95rem;flex:1}
.pp-hub-icon{display:inline-flex;align-items:center;justify-content:center;width:62px;height:62px;border-radius:16px;background:var(--primary-light);color:var(--primary)}
.pp-hub-price{font-weight:800;color:var(--primary-dark);font-size:1.05rem}
/* Camera buttons (Photo Printing, phones only) */
.sp-camera{margin-top:16px;padding:14px 16px;background:#F3FAF7;border:1px solid #CFE8DF;border-radius:var(--radius)}
.sp-camera[hidden]{display:none}
.sp-camera-title{margin:0 0 10px;font-weight:700;color:var(--primary-dark)}
.sp-camera-btns{display:flex;flex-wrap:wrap;gap:10px}
.sp-camera-btn{position:relative;display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:48px}
.sp-camera .sp-hint{margin:10px 0 0}
/* ---- Phone comfort (final pass): bigger tap targets, no iPhone zoom-on-tap, readable small text ---- */
@media (max-width:760px){
  .cart-link{min-width:44px;min-height:44px;justify-content:center}
  .cart-badge{top:3px;right:0}
  .nav-toggle{min-width:44px;min-height:44px;font-size:1.9rem;line-height:1}
  nav.main-nav a{padding:15px 20px}
  nav.main-nav .sub-menu a{padding:13px 20px 13px 36px}
  input,select,textarea{font-size:16px}
  .btn{min-height:46px}
  .btn-sm{min-height:42px;padding:10px 18px;font-size:.9rem}
  .qty-btn{width:44px;height:44px}
  .qty-row input[type=number]{width:56px;padding:12px 4px;font-size:16px}
  .filter-pill{min-height:42px;padding:9px 16px}
  .card-cat{font-size:.78rem}
  .sp-link{display:inline-block;padding:9px 2px}
  .cart-remove-btn{min-width:44px;min-height:44px}
}
@media (max-width:760px){
  input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=hidden]),select,textarea{font-size:16px!important}
  input[type=search],input[type=text],input[type=tel],input[type=email],input[type=number],select{min-height:44px}
}
@media (max-width:760px){
  /* keep the floating WhatsApp bubble from covering main buttons */
  .whatsapp-float{width:50px;height:50px;bottom:14px;right:12px}
  .whatsapp-float svg{width:26px;height:26px}
  .pdp-cart-row .btn{flex:1 1 100%;justify-content:center}
  body{padding-bottom:0}
  footer{padding-bottom:84px}
}

/* Photo Booth */
.pb-frames{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
.pb-frame{cursor:pointer;display:block}
.pb-frame input{position:absolute;opacity:0;pointer-events:none}
.pb-frame-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;height:100%;padding:12px 10px 14px;border:2px solid var(--border);border-radius:var(--radius);background:var(--white);transition:border-color .15s,background .15s}
.pb-frame-visual{display:block;width:100%;max-width:130px;margin:0 auto 8px;background:#EEF2FC url("../images/site/sample-photo.svg") center/cover no-repeat;box-shadow:0 2px 8px rgba(0,0,0,.25);border-radius:2px;overflow:hidden}
.pb-frame-visual img{display:block;width:100%;height:100%;object-fit:contain}
.pb-frame-card strong{font-size:.92rem;color:var(--text)}
.pb-frame-card small{color:var(--text-muted);font-size:.78rem;line-height:1.3}
.pb-frame-card em{font-style:normal;margin-top:2px;font-weight:700;color:var(--primary-dark)}
.pb-frame:hover .pb-frame-card{border-color:var(--primary)}
.pb-frame input:checked + .pb-frame-card{border-color:var(--primary);background:var(--primary-light)}
.pb-frame input:checked + .pb-frame-card::after{content:'';position:absolute;top:-9px;right:-9px;width:20px;height:20px;border-radius:50%;background:var(--primary-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;box-shadow:0 0 0 2px var(--white)}
.pb-frame input:focus-visible + .pb-frame-card{outline:2px solid var(--primary-dark);outline-offset:2px}
.pb-stage{background:#e6e8ea}
.pb-stage canvas{display:block;max-width:100%;touch-action:none;cursor:grab}
@media (max-width:480px){.pb-frames{grid-template-columns:repeat(2,1fr);gap:12px}}
.pb-frame[hidden]{display:none}
.pb-cats{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 18px}
.pb-cat{display:flex;align-items:center;gap:12px;flex:1 1 230px;max-width:340px;min-height:44px;padding:10px 14px;text-align:left;font:inherit;color:var(--text);background:var(--white);border:2px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.pb-cat:hover{border-color:var(--primary)}
.pb-cat.on{border-color:var(--primary);background:var(--primary-light);box-shadow:0 0 0 2px rgba(33,64,154,.18)}
.pb-cat:focus-visible{outline:2px solid var(--primary-dark);outline-offset:2px}
.pb-cat-icon{flex:0 0 56px;width:56px;height:56px;display:flex;align-items:center;justify-content:center}
.pb-cat-icon img,.pb-cat-icon svg{display:block;width:56px;height:56px}
.pb-cat strong{display:block;font-size:.98rem;color:var(--primary-dark);line-height:1.25}
.pb-cat small{display:block;color:var(--text-muted);font-size:.8rem;margin-top:2px}
@media (max-width:480px){.pb-cat{flex-basis:100%;max-width:none}}