/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;font-family:'Nunito','Segoe UI',sans-serif;background:#fff8f5;color:#2d1a0e;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:none;background:none;font-family:inherit}
textarea,input{font-family:inherit}

/* ── Typography ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');
.serif{font-family:'Cormorant Garamond',serif}

/* ── Header ──────────────────────────────────────────────── */
.hdr{position:sticky;top:0;z-index:100;display:flex;align-items:center;gap:10px;padding:10px 16px;background:rgba(255,248,245,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(194,110,80,.1);min-height:52px}
.hdr-back{display:none;width:34px;height:34px;border-radius:50%;background:rgba(194,110,80,.1);font-size:18px;align-items:center;justify-content:center;flex-shrink:0;color:#c26e50;transition:background .15s}
.hdr-back:active{background:rgba(194,110,80,.2)}
.hdr-back.show{display:flex}
.hdr-logo{display:flex;align-items:center;gap:8px;flex:1}
.hdr-logo-icon{font-size:22px;line-height:1}
.hdr-logo-name{font-size:15px;font-weight:800;color:#c26e50}
.hdr-cart{position:relative;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#c26e50,#e8956d);font-size:17px;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px rgba(194,110,80,.35);transition:transform .15s,box-shadow .15s}
.hdr-cart:active{transform:scale(.94);box-shadow:0 2px 6px rgba(194,110,80,.3)}
.cart-badge{position:absolute;top:-3px;right:-3px;background:#e53935;color:#fff;font-size:10px;font-weight:900;min-width:17px;height:17px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 3px;border:2px solid #fff8f5}

/* ── Views ───────────────────────────────────────────────── */
.view{padding-bottom:90px}

/* ── Home ────────────────────────────────────────────────── */
.home-hero{position:relative;overflow:hidden;padding:28px 20px 26px;text-align:center;background:linear-gradient(160deg,#fce4ec 0%,#fff8f5 55%,#fce9d0 100%)}
.home-hero::before{content:'';position:absolute;inset:-40px;background:radial-gradient(circle at 70% 30%,rgba(194,110,80,.12) 0%,transparent 60%),radial-gradient(circle at 20% 80%,rgba(233,149,109,.1) 0%,transparent 50%);pointer-events:none}
.home-hero-emoji{font-size:62px;line-height:1;margin-bottom:14px;display:block;filter:drop-shadow(0 8px 16px rgba(194,110,80,.25))}
.home-title{font-family:'Cormorant Garamond',serif;font-size:32px;font-weight:700;line-height:1.2;color:#1a0a00;letter-spacing:-.01em}
.home-title span{color:#c26e50}
.home-sub{margin-top:8px;font-size:13px;color:#a08070;font-weight:600;letter-spacing:.03em}
.home-divider{width:40px;height:2px;background:linear-gradient(90deg,#c26e50,#e8956d);border-radius:2px;margin:14px auto 0}

.home-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 16px 0}
.mode-card{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:20px 16px 18px;border-radius:20px;text-align:left;transition:transform .18s cubic-bezier(.16,1,.3,1),box-shadow .18s;position:relative;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.07)}
.mode-card::after{content:'→';position:absolute;bottom:14px;right:14px;font-size:18px;opacity:.35;transition:opacity .18s,transform .18s}
.mode-card:active{transform:scale(.96)}
.mode-card:hover::after{opacity:.6;transform:translateX(3px)}
.mode-avail{background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%)}
.mode-avail::before{content:'';position:absolute;top:-20px;right:-20px;width:80px;height:80px;border-radius:50%;background:rgba(76,175,80,.1);pointer-events:none}
.mode-order{background:linear-gradient(135deg,#fce4ec 0%,#f8bbd0 100%)}
.mode-order::before{content:'';position:absolute;top:-20px;right:-20px;width:80px;height:80px;border-radius:50%;background:rgba(233,30,99,.08);pointer-events:none}
.mode-card-icon{font-size:30px;margin-bottom:4px}
.mode-card-title{font-size:17px;font-weight:800;color:#1a0a00}
.mode-card-desc{font-size:12px;color:#6d4c41;font-weight:600}
.mode-card-count{font-size:11px;color:#a0887a;margin-top:3px;font-weight:600}

.home-promo{margin:16px 16px 0;padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,rgba(194,110,80,.08),rgba(232,149,109,.05));border:1px solid rgba(194,110,80,.15);display:flex;align-items:center;gap:12px}
.home-promo-icon{font-size:26px;flex-shrink:0}
.home-promo-text{font-size:13px;line-height:1.5;color:#6d4c41;font-weight:600}
.home-promo-text strong{color:#c26e50}

/* ── Catalog mode bar ────────────────────────────────────── */
.cat-mode-bar{display:flex;align-items:center;gap:8px;padding:14px 16px 0}
.cat-mode-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.02em}
.badge-avail{background:#e8f5e9;color:#2e7d32}
.badge-order{background:#fce4ec;color:#c2185b}

/* ── Tabs ────────────────────────────────────────────────── */
.tabs-wrap{display:flex;gap:8px;padding:10px 16px 0;overflow-x:auto;scrollbar-width:none}
.tabs-wrap::-webkit-scrollbar{display:none}
.tab{flex-shrink:0;padding:7px 15px;border-radius:999px;font-size:13px;font-weight:700;background:rgba(0,0,0,.05);color:#a08070;transition:background .15s,color .15s,transform .1s}
.tab:active{transform:scale(.95)}
.tab.active{background:linear-gradient(135deg,#c26e50,#e8956d);color:#fff;box-shadow:0 3px 10px rgba(194,110,80,.35)}

/* ── Products ────────────────────────────────────────────── */
.products{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 16px}
.product-card-wrap{position:relative}
.product-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 2px 16px rgba(0,0,0,.08);display:flex;flex-direction:column;transition:transform .18s cubic-bezier(.16,1,.3,1),box-shadow .18s}
.product-card:active{transform:scale(.97);box-shadow:0 1px 8px rgba(0,0,0,.08)}
.product-img{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:52px;position:relative;overflow:hidden}
.product-img.gradient-pink{background:linear-gradient(145deg,#fce4ec,#f8bbd0)}
.product-img.gradient-choc{background:linear-gradient(145deg,#efebe9,#d7ccc8)}
.product-img.gradient-honey{background:linear-gradient(145deg,#fff8e1,#ffecb3)}
.product-img.gradient-berry{background:linear-gradient(145deg,#ede7f6,#d1c4e9)}
.product-img img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.product-info{padding:10px 10px 12px;flex:1;display:flex;flex-direction:column;gap:3px}
.product-name{font-size:13px;font-weight:800;line-height:1.3;color:#1a0a00}
.product-desc{font-size:11px;color:#a08070;line-height:1.45;flex:1;margin-top:2px}
.product-footer{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.product-price{font-size:15px;font-weight:900;color:#c26e50}
.product-add{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#c26e50,#e8956d);color:#fff;font-size:20px;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 3px 10px rgba(194,110,80,.4);transition:transform .12s,box-shadow .12s}
.product-add:active{transform:scale(.9);box-shadow:0 1px 5px rgba(194,110,80,.3)}
.product-qty{display:flex;align-items:center;gap:6px}
.product-qty button{width:28px;height:28px;border-radius:50%;background:rgba(194,110,80,.12);color:#c26e50;font-size:17px;font-weight:800;display:flex;align-items:center;justify-content:center;transition:background .12s}
.product-qty button:active{background:rgba(194,110,80,.25)}
.product-qty span{font-size:15px;font-weight:800;min-width:18px;text-align:center;color:#1a0a00}
.product-badge-mode{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.9);backdrop-filter:blur(6px);font-size:10px;font-weight:800;padding:3px 8px;border-radius:999px;color:#c2185b}
.empty{grid-column:1/-1;text-align:center;padding:48px 20px;color:#a08070;font-size:14px}

/* ── Cart ────────────────────────────────────────────────── */
.cart-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:200;backdrop-filter:blur(3px)}
.cart-overlay.show{display:block}
.cart-drawer{position:fixed;left:0;right:0;bottom:0;max-height:72vh;background:#fff8f5;border-radius:24px 24px 0 0;z-index:201;transform:translateY(100%);transition:transform .32s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column;box-shadow:0 -8px 40px rgba(0,0,0,.15)}
.cart-drawer.show{transform:translateY(0)}
.cart-handle{width:36px;height:4px;background:rgba(0,0,0,.12);border-radius:2px;margin:10px auto 0}
.cart-head{display:flex;align-items:center;justify-content:space-between;padding:12px 20px 10px;border-bottom:1px solid rgba(0,0,0,.05)}
.cart-head-title{font-size:18px;font-weight:900}
.cart-head-close{width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.06);font-size:15px;display:flex;align-items:center;justify-content:center;color:#666}
.cart-items{flex:1;overflow-y:auto;padding:8px 20px}
.cart-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid rgba(0,0,0,.05)}
.cart-item:last-child{border-bottom:none}
.cart-item-emoji{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:26px;background:linear-gradient(135deg,#fce4ec,#f8bbd0);flex-shrink:0}
.cart-item-info{flex:1;min-width:0}
.cart-item-name{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-item-price{font-size:13px;font-weight:800;color:#c26e50;margin-top:2px}
.cart-item-qty{display:flex;align-items:center;gap:8px;flex-shrink:0}
.cart-item-qty button{width:30px;height:30px;border-radius:50%;background:rgba(194,110,80,.1);color:#c26e50;font-size:17px;font-weight:800;display:flex;align-items:center;justify-content:center}
.cart-item-qty span{font-size:15px;font-weight:800;min-width:20px;text-align:center}
.cart-empty-msg{text-align:center;padding:36px;color:#a08070;font-size:15px}
.cart-foot{padding:12px 20px 28px;border-top:1px solid rgba(0,0,0,.05)}
.cart-total{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.cart-total-label{font-size:15px;color:#6d4c41;font-weight:700}
.cart-total-value{font-size:20px;font-weight:900;color:#c26e50}
.cart-checkout-btn{width:100%;padding:15px;border-radius:16px;background:linear-gradient(135deg,#c26e50,#e8956d);color:#fff;font-size:16px;font-weight:800;letter-spacing:.02em;box-shadow:0 6px 20px rgba(194,110,80,.4);transition:transform .15s,box-shadow .15s}
.cart-checkout-btn:active{transform:scale(.98);box-shadow:0 3px 10px rgba(194,110,80,.3)}

/* ── Checkout ────────────────────────────────────────────── */
.co{position:fixed;inset:0;z-index:300;background:rgba(0,0,0,.5);display:flex;align-items:flex-end;backdrop-filter:blur(4px)}
.co-inner{width:100%;max-height:92vh;background:#fff8f5;border-radius:24px 24px 0 0;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 -8px 40px rgba(0,0,0,.2)}
.co-handle{width:36px;height:4px;background:rgba(0,0,0,.1);border-radius:2px;margin:10px auto 0;flex-shrink:0}
.co-hdr{display:flex;align-items:center;gap:10px;padding:12px 18px 10px;border-bottom:1px solid rgba(0,0,0,.06);flex-shrink:0}
.co-back{width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.05);font-size:18px;display:flex;align-items:center;justify-content:center;color:#666;transition:background .12s}
.co-back:active{background:rgba(0,0,0,.1)}
.co-title{flex:1;font-size:16px;font-weight:800;text-align:center;color:#1a0a00}
.co-close{width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.05);font-size:15px;display:flex;align-items:center;justify-content:center;color:#888}
.co-dots{display:flex;justify-content:center;gap:6px;padding:10px 0 0;flex-shrink:0}
.co-dot{height:6px;border-radius:3px;background:rgba(0,0,0,.12);transition:all .3s cubic-bezier(.16,1,.3,1);width:6px}
.co-dot.active{background:linear-gradient(90deg,#c26e50,#e8956d);width:22px}
.co-dot.done{background:#c26e50;opacity:.4}
.co-body{flex:1;overflow-y:auto;padding:22px 20px 36px}

/* Step content */
.co-label{font-family:'Cormorant Garamond',serif;font-size:24px;font-weight:700;margin-bottom:6px;color:#1a0a00;line-height:1.2}
.co-hint{font-size:13px;color:#a08070;margin-bottom:20px;line-height:1.5;font-weight:600}
.co-input{width:100%;padding:14px 16px;border-radius:14px;background:#fff;border:2px solid rgba(0,0,0,.08);font-size:16px;color:#1a0a00;outline:none;transition:border-color .2s,box-shadow .2s;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.co-input:focus{border-color:#c26e50;box-shadow:0 0 0 4px rgba(194,110,80,.1)}
.co-input.shake{animation:shake .3s}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.co-cta{width:100%;margin-top:16px;padding:15px;border-radius:16px;background:linear-gradient(135deg,#c26e50,#e8956d);color:#fff;font-size:16px;font-weight:800;box-shadow:0 6px 20px rgba(194,110,80,.38);transition:transform .15s,box-shadow .15s,opacity .15s}
.co-cta:active{transform:scale(.98)}
.co-cta:disabled{opacity:.4;box-shadow:none;cursor:default}
.co-skip{display:block;text-align:center;margin-top:14px;font-size:13px;color:#c26e50;font-weight:700;cursor:pointer;padding:4px}

/* Delivery choices */
.co-choices{display:flex;flex-direction:column;gap:10px}
.co-choice{display:flex;align-items:center;gap:14px;padding:16px;border-radius:16px;background:#fff;border:2px solid rgba(0,0,0,.07);transition:border-color .2s,background .2s,box-shadow .2s;text-align:left;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.co-choice.selected{border-color:#c26e50;background:linear-gradient(135deg,rgba(194,110,80,.04),rgba(232,149,109,.04));box-shadow:0 4px 16px rgba(194,110,80,.15)}
.co-choice-icon{font-size:28px;flex-shrink:0}
.co-choice-title{font-size:15px;font-weight:800;color:#1a0a00}
.co-choice-desc{font-size:12px;color:#a08070;margin-top:2px;font-weight:600}

/* Payment choices */
.co-pay-choices{display:flex;flex-direction:column;gap:10px;margin-bottom:4px}
.co-pay-choice{display:flex;align-items:center;gap:14px;padding:18px 16px;border-radius:16px;background:#fff;border:2px solid rgba(0,0,0,.07);text-align:left;box-shadow:0 2px 8px rgba(0,0,0,.04);transition:border-color .2s,background .2s,box-shadow .2s}
.co-pay-choice.selected{border-color:#c26e50;box-shadow:0 4px 16px rgba(194,110,80,.15)}
.co-pay-choice-icon{font-size:28px;flex-shrink:0}
.co-pay-choice-title{font-size:15px;font-weight:800;color:#1a0a00}
.co-pay-choice-desc{font-size:12px;color:#a08070;margin-top:2px;font-weight:600}
.co-pay-badge{display:inline-block;margin-top:4px;background:linear-gradient(135deg,#4caf50,#66bb6a);color:#fff;font-size:10px;font-weight:800;padding:2px 8px;border-radius:999px}

/* Summary */
.co-summary{background:#fff;border-radius:18px;padding:16px;margin-bottom:16px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.co-sum-section{margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid rgba(0,0,0,.06)}
.co-sum-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}
.co-sum-section-title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#c26e50;margin-bottom:8px}
.co-sum-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:3px 0}
.co-sum-label{font-size:13px;color:#a08070;font-weight:600}
.co-sum-value{font-size:13px;font-weight:700;text-align:right;max-width:62%;color:#1a0a00}
.co-sum-total{display:flex;justify-content:space-between;align-items:center;padding:12px 0 0;margin-top:4px;border-top:2px solid rgba(194,110,80,.15)}
.co-sum-total-label{font-size:16px;font-weight:900}
.co-sum-total-value{font-size:22px;font-weight:900;color:#c26e50}

/* Payment animation */
.co-card{width:100%;max-width:320px;margin:0 auto 24px;aspect-ratio:1.586;border-radius:18px;background:linear-gradient(135deg,#1a0a00 0%,#3d1c0a 40%,#c26e50 100%);padding:22px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 20px 60px rgba(194,110,80,.4);position:relative;overflow:hidden}
.co-card::before{content:'';position:absolute;top:-30px;right:-30px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.05)}
.co-card::after{content:'';position:absolute;bottom:-40px;left:-20px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.04)}
.co-card-chip{width:36px;height:28px;border-radius:6px;background:linear-gradient(135deg,#ffd54f,#ffca28);position:relative;z-index:1}
.co-card-chip::after{content:'';position:absolute;top:50%;left:4px;right:4px;height:1px;background:rgba(0,0,0,.2);transform:translateY(-50%)}
.co-card-bottom{position:relative;z-index:1}
.co-card-number{font-size:14px;font-weight:700;color:rgba(255,255,255,.6);letter-spacing:.18em;margin-bottom:8px;font-family:monospace}
.co-card-name{font-size:13px;font-weight:800;color:#fff;text-transform:uppercase;letter-spacing:.05em}
.co-card-valid{font-size:11px;color:rgba(255,255,255,.5);margin-top:2px;font-weight:600}

.co-prog-wrap{background:rgba(0,0,0,.07);border-radius:999px;height:6px;margin-bottom:12px;overflow:hidden}
.co-prog-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#c26e50,#e8956d);width:100%;transform:scaleX(0);transform-origin:left;transition:transform .15s linear}
.co-pay-status{text-align:center;font-size:14px;font-weight:700;color:#a08070;margin-bottom:24px}

/* Success */
.co-success{text-align:center;padding:8px 0 4px}
.co-success-anim{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,#4caf50,#66bb6a);display:flex;align-items:center;justify-content:center;font-size:38px;margin:0 auto 20px;box-shadow:0 12px 30px rgba(76,175,80,.35);animation:popIn .5s cubic-bezier(.16,1,.3,1)}
@keyframes popIn{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}
.co-success-title{font-family:'Cormorant Garamond',serif;font-size:28px;font-weight:700;margin-bottom:8px;color:#1a0a00}
.co-success-sub{font-size:14px;color:#a08070;line-height:1.6;font-weight:600}
.co-success-order{display:inline-block;margin-top:14px;padding:8px 18px;border-radius:999px;background:rgba(194,110,80,.1);color:#c26e50;font-size:14px;font-weight:800}
