:root{
  --bg: #f8f6fa;
  --surface: #ffffff;
  --cream: #fdf8fc;
  --ink: #2c1e3d;
  --ink-light: #44335a;
  --muted: #725d88;
  --pink: #ec4899;
  --pink-deep: #db2777;
  --pink-light: #fdf2f8;
  --pink-soft: #fce7f3;
  --violet: #8b5cf6;
  --violet-deep: #6b21a8;
  --violet-dark: #3b0764;
  --violet-light: #f5f3ff;
  --violet-soft: #ede9fe;
  --gradient-accent: linear-gradient(135deg, #ec4899 0%, #c084fc 50%, #8b5cf6 100%);
  --gradient-accent-hover: linear-gradient(135deg, #db2777 0%, #a855f7 50%, #7c3aed 100%);
  --gradient-soft: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
  --border: rgba(216, 180, 254, 0.4);
  --border-focus: #c084fc;

  /* Neumorphic Dual-Light Physics */
  --neu-bg: #f8f6fa;
  --neu-surface: #ffffff;
  --neu-shadow-raised: -5px -5px 14px rgba(255, 255, 255, 0.95), 5px 5px 14px rgba(184, 165, 203, 0.22);
  --neu-shadow-card: -4px -4px 10px rgba(255, 255, 255, 0.95), 4px 4px 12px rgba(175, 150, 195, 0.18);
  --neu-shadow-inset: inset 3px 3px 6px rgba(175, 150, 195, 0.22), inset -3px -3px 6px rgba(255, 255, 255, 0.95);
  --neu-shadow-pressed: inset 2px 2px 5px rgba(175, 150, 195, 0.28), inset -2px -2px 5px rgba(255, 255, 255, 0.95);
  --shadow: var(--neu-shadow-card);
  --shadow-strong: -6px -6px 16px rgba(255, 255, 255, 0.95), 6px 6px 18px rgba(168, 85, 247, 0.22);

  --r: 16px;
  --r2: 20px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --top-shell-height-desktop: 128px;
  --top-shell-height-mobile: 142px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;max-width:100%;overflow-x:hidden}
body{
  font-family:var(--font-body);
  background:
    radial-gradient(circle at 10% 6%, rgba(244, 114, 182, 0.12), transparent 36rem),
    radial-gradient(circle at 90% 85%, rgba(192, 132, 252, 0.14), transparent 40rem),
    linear-gradient(150deg, #fbf9fc 0%, #f7f3f9 45%, #f4eff8 100%);
  background-attachment:fixed;
  color:var(--ink);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  max-width:100%;
  overflow-x:hidden;
}
button,input,textarea{font:inherit}
img{max-width:100%;display:block}
.icon{display:inline-block;vertical-align:middle;flex:0 0 auto;stroke-linecap:round;stroke-linejoin:round;fill:none}
.icon-sm{width:16px;height:16px;stroke-width:2}
.icon-md{width:20px;height:20px;stroke-width:1.9}
.icon-lg{width:24px;height:24px;stroke-width:1.8}
.icon-muted{color:#a494ba}
.icon-pink{color:#ec4899}
.icon-lavender{color:#8b5cf6}
.icon-solid{fill:currentColor;stroke:none}

header{
  position:relative;z-index:2;background:transparent;
  border-bottom:1px solid rgba(216, 180, 254, 0.25);box-shadow:none;padding:10px 0 8px;display:flex;align-items:center;gap:20px;justify-content:space-between;
}
.top-shell{
  position:fixed;top:0;left:0;right:0;z-index:60;background:rgba(255, 255, 255, 0.88);
  backdrop-filter:saturate(180%) blur(16px);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid rgba(216, 180, 254, 0.45);box-shadow:0 4px 20px rgba(168, 85, 247, 0.08);
  display:flex;flex-direction:column;align-items:center;
}
.top-shell > header,
.top-shell > .search-wrap,
.top-shell > .category-strip{
  width:min(1080px,100%);
}
.top-shell > header{padding:10px 24px 8px}
.top-shell > .search-wrap{padding:0 24px 8px}
.top-shell > .category-strip{padding:0 24px 10px;background:transparent;border-bottom:none}
.brand-wrap{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%}
.brand-mark{
  width:44px;height:44px;border-radius:50%;background:var(--gradient-accent);display:grid;place-items:center;color:#fff;
  box-shadow:0 4px 14px rgba(217, 70, 239, 0.3);flex:0 0 auto;
}
.brand-mark--logo{
  width:auto;height:auto;padding:0;background:transparent;border-radius:50%;box-shadow:none;display:block;line-height:0;
}
.brand-mark--logo img{
  display:block;width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid #ffffff;box-shadow:0 4px 14px rgba(168, 85, 247, 0.28);
}
.brand{
  font-family:var(--font-display);font-size:1.35rem;line-height:1.1;font-weight:700;
  background:linear-gradient(135deg, #db2777 0%, #8b5cf6 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.brand-sub{
  font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;color:#8b5cf6;font-weight:700;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.search-wrap{
  position:relative;width:100%;max-width:680px;min-width:0;overflow:hidden;border-radius:999px;
  border:1px solid rgba(216, 180, 254, 0.4);background:#ffffff;
  box-shadow:var(--neu-shadow-inset);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.search-input{
  width:100%;padding:11px 14px 11px 44px;border:none;border-radius:999px;background:transparent;box-shadow:none;color:var(--ink);outline:none;font-size:.88rem;
}
.search-input::placeholder{color:#9d8fb2}
.search-wrap:focus-within{
  border-color:#c084fc;box-shadow:var(--neu-shadow-inset), 0 0 0 3px rgba(192, 132, 252, 0.25);
}
.search-icon{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);pointer-events:none;color:#ec4899;display:flex;align-items:center;justify-content:center;z-index:2;width:18px;height:18px;line-height:0;
}
.search-icon .icon{display:block;width:18px;height:18px}
.header-summary{
  padding:8px 14px;border-radius:999px;border:1px solid rgba(216, 180, 254, 0.55);background:linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);color:#6b21a8;font-size:.82rem;font-weight:800;white-space:nowrap;box-shadow:var(--shadow);display:inline-flex;align-items:center;gap:8px;
  appearance:none;cursor:pointer;transition:transform .15s ease, box-shadow .15s ease;
}
.header-summary:hover{transform:translateY(-1px);box-shadow:var(--shadow-strong)}
.header-summary-icon{
  width:24px;height:24px;border-radius:999px;background:var(--gradient-accent);display:grid;place-items:center;color:#fff;flex:0 0 auto;
}
.header-summary-icon .icon{color:#fff}

.layout{
  display:grid;grid-template-columns:minmax(0,1fr) 382px;align-items:start;
  min-height:calc(100vh - 66px);width:100%;max-width:100%;overflow-x:hidden;
  padding-top:calc(var(--top-shell-height-desktop) + 28px);
}
.products-panel{
  padding:24px 24px 28px;background:transparent;width:100%;max-width:100%;min-width:0;overflow-x:hidden;
}

.category-strip{
  display:flex;flex-wrap:nowrap;gap:8px;margin:0;padding:0 28px 10px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;
  background:transparent;backdrop-filter:none;border-bottom:none;scrollbar-width:none;scroll-behavior:smooth;
  -webkit-mask-image:linear-gradient(to right, transparent 0, black 16px, black calc(100% - 24px), transparent 100%);
  mask-image:linear-gradient(to right, transparent 0, black 16px, black calc(100% - 24px), transparent 100%);
}
.category-strip::-webkit-scrollbar{display:none}
.category-pill{
  border:1px solid rgba(216, 180, 254, 0.45);background:#ffffff;color:#6b21a8;border-radius:999px;
  padding:7px 15px;font-size:.8rem;font-weight:700;
  box-shadow:-3px -3px 8px rgba(255, 255, 255, 0.95), 3px 3px 8px rgba(184, 165, 203, 0.2);
  white-space:nowrap;cursor:pointer;transition:all .18s ease;
}
.category-pill:hover{
  transform:translateY(-1px);
  box-shadow:-4px -4px 10px rgba(255, 255, 255, 0.95), 4px 4px 10px rgba(184, 165, 203, 0.25);
}
.category-pill:active{
  transform:scale(0.97);
  box-shadow:var(--neu-shadow-pressed);
}
.category-pill.active{
  background:var(--gradient-accent);color:#ffffff;border-color:transparent;
  box-shadow:inset 2px 2px 4px rgba(124, 58, 237, 0.35), inset -2px -2px 4px rgba(255, 255, 255, 0.25), 0 4px 12px rgba(217, 70, 239, 0.3);
}

.product-group{
  margin-bottom:28px;max-width:100%;min-width:0;overflow-x:hidden;
  scroll-margin-top:calc(var(--top-shell-height-desktop) + 36px);
}
.product-group:first-of-type{margin-top:4px}
.cat-header{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.cat-icon{font-size:1.1rem}
.cat-title{font-family:var(--font-display);font-size:1.35rem;line-height:1.1;color:#3b0764}
.cat-pill{
  display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;
  background:linear-gradient(135deg, #fdf2f8, #f5f3ff);color:#c026d3;
  border:1px solid rgba(244, 114, 182, 0.35);font-size:.63rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:100%;min-width:0;width:100%}
.product-card{
  position:relative;background:#ffffff;border:1px solid rgba(216, 180, 254, 0.4);border-radius:20px;
  box-shadow:var(--neu-shadow-card);
  padding:15px 12px 13px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;min-width:0;width:100%;
}
.product-card:hover{
  transform:translateY(-3px);border-color:rgba(217, 70, 239, 0.45);
  box-shadow:-5px -5px 14px rgba(255, 255, 255, 0.95), 6px 7px 16px rgba(175, 150, 195, 0.24);
}
.product-card:active{
  transform:scale(0.985);
}
.product-card.selected{
  border-color:#d946ef;box-shadow:0 0 0 3px rgba(217, 70, 239, 0.18), var(--neu-shadow-card);
  background:linear-gradient(180deg, #ffffff 0%, #fdf5f9 100%);
}
.product-card.selected::after{
  content:"";position:absolute;right:10px;top:10px;width:20px;height:20px;border-radius:50%;
  background:var(--gradient-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
  box-shadow:0 2px 6px rgba(168, 85, 247, 0.3);
}
.card-emoji{
  width:40px;height:40px;border-radius:14px;background:linear-gradient(135deg, #fdf2f8, #f5f3ff);
  border:1px solid rgba(216, 180, 254, 0.4);display:grid;place-items:center;font-size:1.25rem;flex:0 0 auto;
  box-shadow:-2px -2px 5px rgba(255, 255, 255, 0.9), 2px 2px 5px rgba(184, 165, 203, 0.15);
}
.card-name{font-size:.88rem;font-weight:700;color:var(--ink);line-height:1.25;margin-top:1px}
.card-fullname{
  font-size:.74rem;color:var(--muted);line-height:1.35;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0 2px;
}
.card-price{font-size:1.05rem;font-weight:800;color:#db2777}
.qty-control{display:none;align-items:center;gap:8px;margin-top:2px}
.product-card.selected .qty-control{display:flex}
.qty-btn{
  width:26px;height:26px;border:1px solid rgba(216, 180, 254, 0.4);border-radius:999px;background:#ffffff;color:#7c3aed;
  display:grid;place-items:center;font-weight:700;
  box-shadow:-2px -2px 5px rgba(255, 255, 255, 0.95), 2px 2px 5px rgba(184, 165, 203, 0.22);
  cursor:pointer;transition:all .12s ease;
}
.qty-btn:active{
  box-shadow:var(--neu-shadow-pressed);transform:scale(0.92);
}
.qty-btn:last-child{
  background:var(--gradient-accent);color:#fff;border-color:transparent;
  box-shadow:0 3px 8px rgba(217, 70, 239, 0.35);
}
.qty-num{min-width:18px;text-align:center;font-size:.9rem;font-weight:700}
.add-pill{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:999px;
  background:#ffffff;color:#7c3aed;font-size:.74rem;font-weight:800;
  border:1px solid rgba(216, 180, 254, 0.4);
  box-shadow:-2px -2px 5px rgba(255, 255, 255, 0.95), 2px 2px 6px rgba(184, 165, 203, 0.18);
  transition:all .15s ease;
}
.add-pill:hover{
  background:var(--gradient-accent);color:#ffffff;border-color:transparent;
  box-shadow:0 3px 8px rgba(217, 70, 239, 0.3);
}
.add-pill:active{
  box-shadow:var(--neu-shadow-pressed);transform:scale(0.96);
}
.product-card.selected .add-pill{display:none}
.product-card .qty-control{margin-top:0}
.cat-divider{display:none}

.order-panel{
  padding:18px 20px 24px;display:flex;flex-direction:column;gap:14px;
  position:sticky;top:calc(var(--top-shell-height-desktop) + 16px);
  max-height:calc(100vh - var(--top-shell-height-desktop) - 32px);overflow:auto;
  background:rgba(255, 255, 255, 0.75);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-left:1px solid rgba(216, 180, 254, 0.35);border-radius:24px;
  box-shadow:var(--neu-shadow-card);
  width:100%;max-width:100%;min-width:0;overflow-x:hidden;
}
.panel-card{
  background:#ffffff;border:1px solid rgba(216, 180, 254, 0.4);border-radius:20px;
  box-shadow:var(--neu-shadow-card);padding:14px 14px 16px;
}
.panel-card--order{padding:14px 14px 10px}
.panel-section-title--order{
  font-family:var(--font-display);font-size:1.25rem;line-height:1.1;text-transform:none;letter-spacing:0;color:#3b0764;align-items:center;
}
.order-count-badge{
  min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--gradient-accent);color:#fff;
  display:inline-grid;place-items:center;font-size:.74rem;font-weight:800;
  box-shadow:0 2px 6px rgba(217, 70, 239, 0.3);
}
.panel-help{font-size:.76rem;color:var(--muted);margin-top:6px}
.panel-section-title,.payment-header,.order-section-label{
  font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#7c3aed;display:flex;align-items:center;gap:6px;
}
.order-section-label{margin-bottom:8px}

.field-group{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;max-width:100%;min-width:0}
.field-label{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#7c3aed}
.field-input{
  width:100%;padding:11px 14px;border:1px solid rgba(216, 180, 254, 0.4);border-radius:14px;
  background:#ffffff;color:var(--ink);outline:none;
  box-shadow:var(--neu-shadow-inset);
  transition:border-color .15s ease,box-shadow .15s ease;
}
.field-input::placeholder{color:#9d8fb2}
.field-input:focus{
  border-color:#a855f7;box-shadow:var(--neu-shadow-inset), 0 0 0 3px rgba(168, 85, 247, 0.2);
}
.field-input.has-error{
  border-color:#f43f5e;
  box-shadow:inset 2px 2px 5px rgba(244, 63, 94, 0.15), 0 0 0 3px rgba(244, 63, 94, 0.2);
}
textarea.field-input{min-height:74px;resize:vertical}

#orderItems,#ordersList{margin-top:10px}
.empty-state{padding:24px 10px;text-align:center;color:var(--muted)}
.empty-state span{display:block;font-size:2rem;margin-bottom:6px}
.empty-state .empty-state-icon{
  width:40px;height:40px;margin:0 auto 8px;border-radius:14px;
  background:linear-gradient(135deg, #fdf2f8, #f5f3ff);border:1px solid rgba(216, 180, 254, 0.4);
  display:grid;place-items:center;color:#d946ef;font-size:1.2rem;
  box-shadow:var(--neu-shadow-card);
}
.empty-state small{display:block;margin-top:4px;font-size:.78rem;color:var(--muted)}
.order-item{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid rgba(216, 180, 254, 0.25)}
.order-item:last-child{border-bottom:none}
.item-info{flex:1;min-width:0}
.item-row-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.item-avatar{
  width:30px;height:30px;border-radius:12px;background:linear-gradient(135deg, #fdf2f8, #f5f3ff);
  border:1px solid rgba(216, 180, 254, 0.4);display:grid;place-items:center;color:#a855f7;font-size:.9rem;flex:0 0 auto;
}
.item-name{font-size:.82rem;font-weight:800}
.item-subtitle{font-size:.72rem;color:var(--muted);line-height:1.3}
.item-qty{font-size:.75rem;color:var(--muted)}
.item-price{font-size:.86rem;font-weight:800;color:#db2777;white-space:nowrap}
.item-actions{display:flex;align-items:center;gap:8px;margin-top:8px}
.item-remove{
  border:none;background:#fdf2f8;color:#db2777;border-radius:999px;padding:6px 9px;
  font-size:.72rem;font-weight:800;display:inline-grid;place-items:center;line-height:0;min-width:30px;min-height:30px;
  cursor:pointer;transition:background .15s ease;
}
.item-remove:hover{background:#fce7f3}
.item-remove .icon{color:#db2777}
.card-check{width:18px;height:18px;border-radius:999px;background:#fdf2f8;color:#db2777;display:grid;place-items:center}

.shipping-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;max-width:100%;min-width:0}
.shipping-option{
  position:relative;border:1px solid rgba(216, 180, 254, 0.4);background:#ffffff;border-radius:16px;padding:12px 12px 12px 13px;text-align:left;
  display:flex;flex-direction:column;gap:4px;box-shadow:var(--neu-shadow-card);color:var(--ink);cursor:pointer;transition:all .15s ease;
}
.shipping-option:hover{
  transform:translateY(-2px);
  box-shadow:-4px -4px 10px rgba(255, 255, 255, 0.95), 4px 5px 12px rgba(175, 150, 195, 0.22);
}
.shipping-option.active{
  border-color:#d946ef;
  box-shadow:inset 2px 2px 5px rgba(217, 70, 239, 0.18), inset -2px -2px 5px rgba(255, 255, 255, 0.85), 0 0 0 2px rgba(217, 70, 239, 0.2);
  background:linear-gradient(180deg, #ffffff 0%, #fdf5f9 100%);
}
.shipping-option::after{content:"";position:absolute;right:10px;top:10px;width:12px;height:12px;border-radius:50%;border:2px solid #c084fc}
.shipping-option.active::after{border-color:#9333ea;background:radial-gradient(circle,#9333ea 40%,transparent 41%)}
.shipping-option strong{font-size:.82rem;font-weight:700}
.shipping-option span{font-size:.8rem;color:#db2777;font-weight:800}
.shipping-option:last-child{grid-column:1 / -1}
.shipping-icon{line-height:1;color:#a855f7}
.shipping-sub{color:var(--muted)!important;font-size:.72rem!important;font-weight:600!important}

.delivery-methods{display:grid;gap:8px;margin-top:10px;max-width:100%;min-width:0}
.delivery-method-card{
  border:1px solid rgba(216, 180, 254, 0.4);background:#ffffff;border-radius:16px;padding:12px 14px;box-shadow:var(--neu-shadow-card);
}
.delivery-method-icon{margin-bottom:8px;color:#a855f7}
.delivery-method-title{font-size:.88rem;font-weight:800;color:var(--ink)}
.delivery-method-sub{font-size:.74rem;color:var(--muted);margin-top:3px}
.delivery-method-note{font-size:.72rem;color:#9333ea;margin-top:2px}
.shipping-row{display:none}

.total-box{display:flex;justify-content:space-between;align-items:center;gap:12px}
.total-label{font-size:.88rem;font-weight:700;color:#3b0764}
.total-sub{font-size:.72rem;color:var(--muted);font-weight:600;margin-top:2px}
.total-amount{
  font-size:1.35rem;font-weight:900;
  background:linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  white-space:nowrap;
}
.total-amount::before{content:"₱";font-size:.85em;margin-right:1px}

.submit-btn{
  width:100%;border:none;border-radius:18px;padding:14px 18px;font-weight:800;font-size:.95rem;
  background:var(--gradient-accent);color:#fff;
  box-shadow:0 6px 20px rgba(217, 70, 239, 0.32);
  cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.submit-btn:hover:not(:disabled){
  background:var(--gradient-accent-hover);transform:translateY(-2px);box-shadow:0 8px 24px rgba(217, 70, 239, 0.42);
}
.submit-btn:active:not(:disabled){
  transform:translateY(1px);box-shadow:inset 2px 2px 5px rgba(124, 58, 237, 0.35), 0 2px 8px rgba(217, 70, 239, 0.25);
}
.submit-btn:disabled{
  background:#e2d9eb;color:#9c8eab;cursor:not-allowed;box-shadow:none;opacity:.65;filter:grayscale(30%);
}

.submit-helper{
  margin-top:6px;font-size:.74rem;color:var(--muted);text-align:center;line-height:1.35;transition:color .2s ease;
}
.submit-helper--prompt{color:#9333ea;font-weight:600}
.submit-helper--ready{color:#059669;font-weight:700}

.batch-actions-wrap{display:flex;gap:8px;margin-top:2px;margin-bottom:2px}
.batch-btn{
  flex:1;padding:8px 10px;border:1px solid rgba(216, 180, 254, 0.4);border-radius:12px;
  background:#ffffff;color:#7c3aed;font-size:.73rem;font-weight:700;
  box-shadow:-2px -2px 6px rgba(255, 255, 255, 0.9), 2px 2px 6px rgba(184, 165, 203, 0.18);
  cursor:pointer;transition:all .15s ease;
}
.batch-btn:hover{background:#fdf5f9;color:#db2777}
.batch-btn:active{box-shadow:var(--neu-shadow-pressed);transform:scale(0.98)}
.batch-btn--clear{color:var(--muted)}

.image-preview{margin-top:8px;display:flex;align-items:center;gap:10px}
.image-preview img{width:74px;height:74px;object-fit:cover;border-radius:14px;border:1px solid rgba(216, 180, 254, 0.45);box-shadow:var(--neu-shadow-card)}
.small-btn{
  border:1px solid rgba(216, 180, 254, 0.5);background:#ffffff;border-radius:999px;padding:8px 14px;color:#db2777;font-size:.75rem;font-weight:800;cursor:pointer;
  box-shadow:-2px -2px 5px rgba(255, 255, 255, 0.95), 2px 2px 5px rgba(184, 165, 203, 0.2);
}
.small-btn:active{box-shadow:var(--neu-shadow-pressed);transform:scale(0.96)}

.file-input{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.upload-dropzone{
  border:2px dashed rgba(192, 132, 252, 0.55);background:#ffffff;
  border-radius:18px;padding:22px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:4px;color:#7c3aed;cursor:pointer;
  box-shadow:var(--neu-shadow-inset);transition:border-color .15s ease,background .15s ease;
}
.upload-dropzone:hover{border-color:#d946ef;background:#fdfafc}
.upload-dropzone.has-error{border-color:#f43f5e;box-shadow:inset 2px 2px 6px rgba(244, 63, 94, 0.18)}
.upload-icon{color:#d946ef}
.upload-title{font-size:.88rem;font-weight:800;color:var(--ink)}
.upload-sub{font-size:.72rem;color:var(--muted)}

.gcash-card{
  display:flex;align-items:flex-start;gap:12px;margin-top:10px;margin-bottom:12px;padding:14px;border-radius:20px;
  border:1px solid rgba(216, 180, 254, 0.4);background:linear-gradient(135deg, #fdf2f8 0%, #fae8ff 50%, #f3e8ff 100%);
  box-shadow:var(--neu-shadow-card);
}
.gcash-avatar{
  width:44px;height:44px;border-radius:14px;background:var(--gradient-accent);color:#fff;
  display:grid;place-items:center;font-size:1.1rem;font-weight:900;flex:0 0 auto;box-shadow:0 4px 14px rgba(168, 85, 247, 0.28);
}
.gcash-copy{flex:1;min-width:0}
.gcash-label{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#a855f7}
.gcash-number{font-size:1rem;font-weight:900;color:#3b0764;line-height:1.2;margin-top:1px}
.gcash-name{font-size:.86rem;font-weight:700;color:#6b21a8;margin-top:2px}
.gcash-note{font-size:.76rem;line-height:1.45;color:var(--muted);margin-top:8px}

.payment-section{margin-top:2px;border:1px solid rgba(216, 180, 254, 0.4);border-radius:20px;overflow:hidden;background:#ffffff;box-shadow:var(--neu-shadow-card)}
.payment-header{padding:12px 14px;border-bottom:1px solid rgba(216, 180, 254, 0.2)}
.payment-send{padding:12px 14px 0;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7c3aed}
.payment-send-sub{margin-top:4px;font-size:.72rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted)}
.payment-send-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 14px 0}
.payment-send-amount{
  font-size:1.15rem;font-weight:900;background:linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;white-space:nowrap;
}
.payment-tabs{display:flex;padding:10px 14px;gap:8px;background:#f7f3fa;border-radius:14px;margin:10px 14px 0}
.pay-tab{
  flex:1;border:none;background:transparent;padding:8px 12px;border-radius:10px;color:var(--muted);font-weight:800;font-size:.82rem;cursor:pointer;transition:all .18s ease;
}
.pay-tab:hover{color:var(--ink)}
.pay-tab.active{
  background:#ffffff;color:#db2777;
  box-shadow:-2px -2px 6px rgba(255, 255, 255, 0.95), 2px 2px 6px rgba(184, 165, 203, 0.2);
}
.pay-content{display:none;padding:12px 14px 14px}
.pay-content.active{display:block}
.pay-info{
  background:linear-gradient(180deg, #fdf4ff 0%, #ffffff 100%);border:1px solid rgba(216, 180, 254, 0.4);border-radius:14px;padding:12px 14px;margin-bottom:12px;
}
.pay-logo{font-size:.9rem;margin-bottom:2px}
.pay-name{font-size:.92rem;font-weight:800;color:#db2777;margin-bottom:2px}
.pay-detail{font-size:.76rem;color:var(--muted)}
.qr-wrap{
  display:flex;justify-content:center;padding:14px;background:#ffffff;border:1px solid rgba(216, 180, 254, 0.4);border-radius:16px;box-shadow:var(--neu-shadow-card);
}
.qr-img{max-width:220px;width:100%;border-radius:10px}
.qr-wrap--gcash{margin:0 0 12px;padding:14px}
.qr-wrap--gotyme{padding:14px}
.qr-gcash{max-width:240px}
.qr-gotyme{max-width:240px}

.note-box{
  background:linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);border:1px solid rgba(216, 180, 254, 0.4);border-radius:14px;padding:10px 12px;color:#6b21a8;font-size:.8rem;line-height:1.55;text-align:center;
}

.mobile-checkout-bar{
  position:fixed;left:14px;right:14px;bottom:14px;z-index:60;border:none;border-radius:18px;padding:12px 14px;
  background:var(--gradient-accent);color:#fff;display:none;align-items:center;gap:12px;
  box-shadow:0 10px 26px rgba(168, 85, 247, 0.35);cursor:pointer;
}
.mobile-checkout-count{
  width:30px;height:30px;border-radius:999px;background:rgba(255,255,255,.24);display:grid;place-items:center;font-weight:900;
}
.mobile-checkout-text{flex:1;text-align:left;font-weight:800}
.mobile-checkout-total{font-weight:900;white-space:nowrap}

.success-overlay{
  display:none;position:fixed;inset:0;background:rgba(253, 242, 248, 0.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:100;align-items:center;justify-content:center;padding:24px;
}
.success-overlay.show{display:flex}
.success-box{
  width:min(420px,100%);background:#ffffff;border:1px solid rgba(216, 180, 254, 0.5);border-radius:24px;
  box-shadow:0 16px 40px rgba(168, 85, 247, 0.2);padding:38px 30px;text-align:center;
}
.success-icon{display:block;font-size:3rem;margin-bottom:10px;color:#ec4899}
.success-box h2{font-family:var(--font-display);font-size:1.7rem;margin-bottom:10px;color:#3b0764}
.success-box p{color:var(--muted);margin-bottom:22px;line-height:1.65}
.success-close{
  width:100%;border:none;border-radius:16px;padding:14px 16px;background:var(--gradient-accent);color:#fff;font-weight:800;box-shadow:0 8px 24px rgba(168, 85, 247, 0.3);cursor:pointer;
}

/* Toast Notifications */
.toast-container{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:9999;
  display:flex;flex-direction:column;gap:8px;pointer-events:none;width:min(90vw, 420px);
}
.toast{
  display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;
  background:rgba(255, 255, 255, 0.96);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(216, 180, 254, 0.5);
  box-shadow:-4px -4px 12px rgba(255, 255, 255, 0.95), 4px 6px 16px rgba(168, 85, 247, 0.22);
  color:var(--ink);font-size:.82rem;font-weight:600;line-height:1.3;
  opacity:0;transform:translateY(16px) scale(0.96);
  transition:all .25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events:auto;
}
.toast.show{opacity:1;transform:translateY(0) scale(1)}
.toast-icon{font-size:1rem;flex:0 0 auto}
.toast--error{border-left:4px solid #f43f5e}
.toast--success{border-left:4px solid #10b981}

@media (max-width:1023px){
  .top-shell{align-items:stretch}
  .top-shell > header,
  .top-shell > .search-wrap,
  .top-shell > .category-strip{width:100%;max-width:100%}
  .top-shell > header{padding:8px 14px 6px}
  .top-shell > .search-wrap{padding:0 14px 6px}
  .search-wrap{max-width:none;width:100%}
  .top-shell > .category-strip{padding:0 14px 8px}
  header{flex-direction:row;align-items:center;padding:0;gap:12px}
  .search-wrap{width:100%;max-width:100%}
  .header-summary{width:max-content}
  .layout{grid-template-columns:1fr}
  .order-panel{position:static;max-height:none;border-left:none;border-top:1px solid rgba(216, 180, 254, 0.4);width:100%;max-width:100%}
  .layout{padding-top:calc(var(--top-shell-height-mobile) + 22px)}
}
@media (min-width:1024px){
  .order-panel{
    top:calc(var(--top-shell-height-desktop) + 16px);
    height:calc(100vh - var(--top-shell-height-desktop) - 32px);
    max-height:calc(100vh - var(--top-shell-height-desktop) - 32px);
    overflow-y:auto;
    overflow-x:hidden;
    align-self:start;
  }
  .payment-section{
    overflow:visible;
  }
  .pay-content{
    display:none;
  }
  .pay-content.active{
    display:block;
  }
}
@media (max-width:767px){
  .top-shell{align-items:stretch}
  .top-shell > header{padding:8px 12px 4px}
  .top-shell > .search-wrap{padding:0 12px 6px}
  .top-shell > .category-strip{padding:0 12px 8px}
  header{gap:10px}
  .products-panel{padding:18px 14px 18px;width:100%;max-width:100%}
  .category-strip{
    margin:0;gap:7px;overflow-x:auto;overflow-y:hidden;padding:0 12px 8px;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;width:100%;max-width:100%
  }
  .category-pill{padding:7px 12px;font-size:.74rem;flex:0 0 auto}
  .header-summary{align-self:flex-start}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-group,.product-grid,.product-card,.panel-card,.payment-section,.field-group,.shipping-options,.delivery-methods{max-width:100%;min-width:0}
  .product-card{padding:11px 8px 10px;gap:4px}
  .card-emoji{width:34px;height:34px;font-size:1rem}
  .card-name{font-size:.82rem;line-height:1.2}
  .card-fullname{font-size:.74rem;line-height:1.32;color:#58476d}
  .card-price{font-size:.95rem}
  .add-pill{padding:4px 10px;font-size:.68rem}
  .qty-btn{width:24px;height:24px}
  .shipping-options{grid-template-columns:1fr 1fr}
  .brand{font-size:1.15rem}
  .brand-sub{display:none}
  .brand-mark--logo img{width:38px;height:38px}
  .search-wrap{max-width:none;width:100%}
  .mobile-checkout-bar.show{display:flex}
  body.has-mobile-checkout{padding-bottom:84px}
  .layout{padding-top:calc(var(--top-shell-height-mobile) + 22px)}
  .gcash-card{padding:12px}
  .shipping-options{grid-template-columns:1fr 1fr}
  .upload-dropzone{padding:18px 14px}
  .qr-wrap--gcash{padding:12px}
  .qr-wrap--gotyme{padding:12px}
  .qr-gcash{max-width:200px}
  .qr-gotyme{max-width:200px}
}
@media (min-width:1024px){
  .layout{padding-top:calc(var(--top-shell-height-desktop) + 28px)}
}
@media (max-width:1023px){
  .product-group{
    scroll-margin-top:calc(var(--top-shell-height-mobile) + 24px);
  }
}
@media (min-width:1024px){
  .product-group{
    scroll-margin-top:calc(var(--top-shell-height-desktop) + 36px);
  }
}
@media (min-width:768px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:1200px){
  .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1400px){
  .product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
