/* ═══════════════════════════════════════════
   Bloomify Cart – /html/flow03/css/main.css
   테마: #e07c24 오렌지, #fef6ee 연한배경
   폰트: system UI stack
   ═══════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{min-height:100%}
body{font-family:"FlowerFoxSans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;background:#f5f3f0;color:#2d2926;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
body>footer{margin-top:auto}
a{text-decoration:none;color:inherit}
button{cursor:pointer;font-family:inherit;border:none;background:none}
input,select,textarea{font-family:inherit;outline:none}
img{max-width:100%;display:block}
.cart-page-main{width:100%;flex:0 0 auto}

:root {
  --primary: #e07c24;
  --primary-rgb: 224,124,36;
  --primary-dark: #c96a1a;
  --primary-light: #fef6ee;
  --primary-lighter: #fff8f0;
  --primary-accent: #f59e0b;
  --primary-glow: rgba(224,124,36,.5);
  --text-dark: #2d2926;
  --text-mid: #555;
  --text-light: #8a7e76;
  --text-muted: #b0a8a0;
  --border: #e5e0db;
  --bg-light: #fafaf8;
  --bg-section: #f9f8f6;
  --gradient-primary: linear-gradient(135deg, #e07c24, #f59e0b);
  --gradient-light: linear-gradient(to bottom, #fef6ee, #fff8f0);
  --bg-warm2: #f8f4f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 12px 48px rgba(0,0,0,.16);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --max-w: 1280px;
}

/* Header */
.hd{background:#fff;border-bottom:1px solid #e5e2de;position:sticky;top:0;z-index:50}
.hd-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 16px;height:64px}
.hd-logo{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:800;color:#e07c24}
.hd-logo span{font-size:24px}
.hd-nav{display:flex;align-items:center;gap:20px}
.hd-nav a{font-size:14px;color:#8a7e76;transition:color .2s}
.hd-nav a:hover{color:#e07c24}
.hd-nav a.active{color:#e07c24;font-weight:600}
.hd-icons{display:flex;align-items:center;gap:12px}
.hd-icon-btn{position:relative;padding:6px;border-radius:8px;color:#8a7e76;transition:all .2s}
.hd-icon-btn:hover{background:#fef6ee;color:#e07c24}
.hd-icon-btn .badge{position:absolute;top:0;right:0;width:18px;height:18px;background:#e07c24;color:#fff;border-radius:50%;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff}

/* Breadcrumb */
.bc{display:flex;align-items:center;gap:6px;margin-bottom:16px;font-size:12px;color:#8a7e76}
.bc a:hover{color:#e07c24}
.bc .sep{color:#ccc}
.bc .cur{color:#2d2926;font-weight:500}

/* Steps */
.steps{display:flex;align-items:center;justify-content:center;gap:0;margin-bottom:32px}
.step-dot{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;background:#e5e5e5;color:#8a7e76;transition:all .3s}
.step-dot.active{background:#e07c24;color:#fff}
.step-dot.done{background:#22c55e;color:#fff}
.step-lbl{font-size:11px;color:#8a7e76;margin-top:4px}.step-lbl.active{color:#e07c24;font-weight:700}.step-lbl.done{color:#22c55e}
.step-line{width:60px;height:1px;background:#e5e5e5;margin:0 8px;margin-bottom:20px}.step-line.done{background:#22c55e}

/* Grid */
.ct-grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}

/* Select bar */
.sel-bar{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#fff;border-radius:12px;border:1px solid #e5e2de;margin-bottom:16px}
.chk{width:20px;height:20px;border-radius:6px;border:2px solid #d1d5db;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;vertical-align:middle}
.chk.on{border-color:#e07c24;background:#e07c24}
.sel-bar label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:500}
.sel-bar .del-btn{display:flex;align-items:center;gap:4px;padding:6px 12px;border:1px solid #e5e2de;border-radius:8px;font-size:12px;color:#8a7e76;transition:all .2s}
.sel-bar .del-btn:hover{color:#ef4444;border-color:#fca5a5;background:#fef2f2}

/* Card */
.ct-card{background:#fff;border-radius:16px;border:1px solid #e5e2de;overflow:hidden;margin-bottom:16px}
.ct-card-head{padding:12px 20px;background:#fef6ee;border-bottom:1px solid rgba(224,124,36,.1);display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#e07c24}

/* Item row */
.ct-item{display:flex;gap:12px;padding:16px 20px;border-bottom:1px solid #f0eeeb;transition:background .2s}
.ct-item:last-child{border-bottom:none}
.ct-item.dim{background:#fafafa}
.ct-thumb{width:96px;height:96px;border-radius:12px;overflow:hidden;flex-shrink:0;position:relative}
.ct-thumb img{width:100%;height:100%;object-fit:cover}
.ct-thumb .dlv-badge{position:absolute;bottom:4px;left:4px;padding:2px 6px;border-radius:4px;font-size:9px;font-weight:700;color:#fff}
.ct-info{flex:1;min-width:0;position:relative}
.ct-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:30px}
.ct-sub{font-size:12px;color:#8a7e76;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-tags{display:flex;gap:4px;margin-top:6px;flex-wrap:wrap}
.ct-tags span{padding:2px 6px;border-radius:4px;font-size:10px;background:#f5efe8;color:#8a7e76}
.ct-tags .disc{background:rgba(239,68,68,.1);color:#ef4444;font-weight:600}
.ct-option-summary{margin-top:6px;padding:8px 10px;background:#fef6ee;border-radius:8px;border:1px solid rgba(224,124,36,.1)}
.ct-option-summary .opt-line{display:flex;align-items:center;gap:6px;font-size:11px;color:#7a6e66;margin-bottom:2px}
.ct-option-summary .opt-line:last-child{margin-bottom:0}
.ct-option-summary .opt-val{font-weight:600;color:#e07c24}
.ct-bottom{display:flex;align-items:flex-end;justify-content:space-between;margin-top:10px}
.ct-qty{display:flex;align-items:center;border:1px solid #e5e2de;border-radius:8px;overflow:hidden;background:#fff}
.ct-qty button{padding:8px 10px;transition:background .2s}
.ct-qty button:hover{background:#f5f5f5}
.ct-qty button:disabled{opacity:.3}
.ct-qty .val{min-width:32px;text-align:center;font-size:13px;font-weight:600}
.opt-btn{display:flex;align-items:center;gap:4px;padding:6px 12px;border:1px solid #e5e2de;border-radius:8px;font-size:12px;font-weight:500;color:#555;transition:all .2s;margin-left:8px}
.opt-btn:hover{border-color:rgba(224,124,36,.4);background:#fef6ee}
.ct-price{text-align:right}
.ct-price .org{font-size:11px;color:#b0a8a0;text-decoration:line-through}
.ct-price .cur{font-size:16px;font-weight:700;color:#e07c24}
.ct-price .cur span{font-size:12px;font-weight:500}
.ct-remove{position:absolute;right:0;top:0;padding:6px;border-radius:8px;color:#8a7e76;transition:all .2s}
.ct-remove:hover{color:#ef4444;background:rgba(239,68,68,.06)}

/* Later saved section */
.ct-later{background:#fff;border-radius:16px;border:1px solid #e5e2de;margin-bottom:16px;overflow:hidden}
.ct-later .head{padding:12px 20px;background:#f8f4f0;border-bottom:1px solid #e5e2de;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600}
.ct-later-item{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid #f0eeeb}
.ct-later-item:last-child{border-bottom:none}
.ct-later-item img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex-shrink:0}
.ct-later-item .info{flex:1;min-width:0}
.ct-later-item .name{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-later-item .price{font-size:12px;color:#8a7e76;margin-top:2px}
.ct-later-item .acts{display:flex;gap:6px;flex-shrink:0}
.ct-later-item .act-btn{padding:6px 10px;border-radius:8px;font-size:11px;font-weight:600;border:1px solid #e5e2de;transition:all .2s}
.ct-later-item .act-btn.primary{background:#e07c24;color:#fff;border-color:#e07c24}
.ct-later-item .act-btn:hover{filter:brightness(1.05)}

/* Threshold */
.threshold{padding:12px 20px;border-top:1px solid rgba(224,124,36,.1);display:flex;align-items:center;gap:8px;font-size:12px}
.threshold-bar{flex:1;height:8px;background:#e5e5e5;border-radius:999px;overflow:hidden}
.threshold-bar .fill{height:100%;border-radius:999px;background:#e07c24;transition:width .3s}
.threshold.done{background:#f0fdf4;border-top-color:rgba(34,197,94,.2)}

/* Delivery memo */
.memo-card{padding:16px;background:#fff;border-radius:12px;border:1px solid #e5e2de;margin-bottom:16px}
.memo-card select{width:100%;padding:12px;border:1px solid #e5e2de;border-radius:8px;font-size:13px;background:#fff;margin-top:8px;font-family:inherit}

/* Sidebar */
.sidebar{position:sticky;top:80px}
.side-sec{background:#fff;border-radius:16px;border:1px solid #e5e2de;padding:20px;margin-bottom:16px}
.side-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;margin-bottom:12px}
.cpn-row{display:flex;gap:8px}
.cpn-input{flex:1;padding:10px 12px;background:#f8f4f0;border-radius:8px;border:1px solid transparent;font-size:13px;transition:all .2s}
.cpn-input:focus{border-color:#e07c24;background:#fff}
.cpn-btn{padding:10px 16px;background:#2d2926;color:#fff;border-radius:8px;font-size:13px;font-weight:600;transition:opacity .2s}
.cpn-btn:hover{opacity:.9}
.cpn-btn:disabled{opacity:.4}
.cpn-applied{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:#16a34a;font-weight:500}
.sum-row{display:flex;justify-content:space-between;margin-bottom:8px;font-size:13px}
.sum-row .lbl{color:#8a7e76}
.sum-row.disc .val{color:#ef4444}
.sum-row.cpn .val{color:#e07c24}
.sum-row.total{padding-top:12px;border-top:1px solid #e5e2de;font-weight:700}
.sum-row.total .price{color:#e07c24;font-size:24px;font-weight:800}
.sum-row.total .price span{font-size:14px;font-weight:500}
.earn-row{display:flex;align-items:center;gap:6px;font-size:11px;color:#8a7e76;margin-top:4px;justify-content:flex-end}
.earn-row span{font-weight:600;color:#e07c24}
.btn-checkout{width:100%;padding:16px;background:#e07c24;color:#fff;border-radius:12px;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .2s;margin-top:16px}
.btn-checkout:hover{filter:brightness(1.1);transform:translateY(-1px)}
.btn-continue{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;border:1px solid #e5e2de;border-radius:12px;font-size:13px;font-weight:500;margin-top:8px;color:#8a7e76;transition:all .2s}
.btn-continue:hover{background:#f8f4f0}
.benefit-item{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:12px}
.benefit-item:last-child{margin-bottom:0}
.benefit-item .ico{font-size:14px;flex-shrink:0}
.benefit-item .txt{font-weight:600}
.benefit-item .desc{color:#8a7e76;margin-left:6px}
.cs-box{padding:16px;background:#f5efe8;border-radius:12px;text-align:center}
.cs-box p:first-child{font-size:12px;color:#8a7e76}
.cs-box p:nth-child(2){font-size:15px;font-weight:700;margin-top:2px}
.cs-box p:last-child{font-size:11px;color:#b0a8a0;margin-top:2px}

/* Recommend */
.rec-section{margin-top:40px;margin-bottom:32px}
.rec-section h3{font-size:18px;font-weight:700;margin-bottom:16px}
.rec-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.rec-card{background:#fff;border-radius:16px;border:1px solid #e5e2de;overflow:hidden;transition:all .25s;cursor:pointer}
.rec-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.08);transform:translateY(-3px)}
.rec-card .img-wrap{aspect-ratio:1;overflow:hidden;position:relative}
.rec-card .img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.rec-card:hover .img-wrap img{transform:scale(1.05)}
.rec-card .badges{position:absolute;top:8px;left:8px;display:flex;flex-direction:column;gap:4px}
.rec-card .badges span{padding:3px 8px;border-radius:6px;font-size:10px;font-weight:700;color:#fff}
.rec-card .body{padding:12px}
.rec-card .name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-card .subtitle{font-size:11px;color:#8a7e76;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-card .price-row{display:flex;align-items:baseline;gap:6px;margin-top:8px}
.rec-card .price-row .price{font-size:15px;font-weight:700}
.rec-card .price-row .org{font-size:11px;color:#b0a8a0;text-decoration:line-through}
.rec-card .price-row .disc{font-size:12px;font-weight:700;color:#ef4444}
.rec-card .rating{display:flex;align-items:center;gap:4px;font-size:11px;margin-top:6px;color:#8a7e76}
.rec-card .rating .star{color:#eab308}
.rec-card .add-btn{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;padding:8px;background:#e07c24;color:#fff;border-radius:8px;font-size:12px;font-weight:600;margin-top:8px;transition:filter .2s}
.rec-card .add-btn:hover{filter:brightness(1.1)}

/* Cart Helper */
.helper-float{position:fixed;bottom:90px;right:20px;z-index:40}
.helper-toggle{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#e07c24,#f5a623);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(224,124,36,.4);transition:transform .2s}
.helper-toggle:hover{transform:scale(1.1)}
.helper-panel{position:fixed;bottom:90px;right:20px;width:380px;max-height:500px;background:#fff;border-radius:16px;box-shadow:0 12px 48px rgba(0,0,0,.15);z-index:41;display:none;flex-direction:column;overflow:hidden}
.helper-panel.open{display:flex}
.helper-panel .hp-header{padding:16px 20px;border-bottom:1px solid #e5e2de;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#fef6ee,#fff)}
.helper-panel .hp-body{flex:1;overflow-y:auto;padding:16px}
.hp-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.hp-cat{padding:8px 14px;border-radius:999px;border:1px solid #e5e2de;font-size:12px;font-weight:500;transition:all .2s}
.hp-cat:hover,.hp-cat.active{border-color:#e07c24;background:#fef6ee;color:#e07c24;font-weight:600}
.hp-q-list{margin-bottom:12px}
.hp-q{padding:10px 14px;background:#f8f4f0;border-radius:10px;margin-bottom:6px;font-size:13px;cursor:pointer;transition:all .2s}
.hp-q:hover{background:#fef6ee;color:#e07c24}
.hp-answer{padding:12px 14px;background:#fef6ee;border-radius:10px;margin-bottom:12px;font-size:13px;line-height:1.7;color:#555;border-left:3px solid #e07c24}
.hp-footer{padding:12px 16px;border-top:1px solid #e5e2de;display:flex;gap:8px}
.hp-footer input{flex:1;padding:10px 14px;background:#f8f4f0;border-radius:10px;border:1px solid transparent;font-size:13px}
.hp-footer input:focus{border-color:#e07c24;background:#fff}
.hp-footer button{padding:10px;background:#e07c24;color:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center}

/* Empty */
.cart-empty-sec{min-height:520px;display:flex;align-items:center;justify-content:center}
.ct-empty{text-align:center;padding:80px 20px}
.ct-empty .icon{width:96px;height:96px;background:#f5efe8;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 24px;opacity:.5}
.ct-empty h2{font-size:22px;font-weight:700;margin-bottom:8px}
.ct-empty p{font-size:14px;color:#8a7e76;margin-bottom:8px;line-height:1.6}
.ct-empty .go-btn{display:inline-flex;align-items:center;gap:8px;padding:14px 32px;background:#e07c24;color:#fff;border-radius:999px;font-size:15px;font-weight:600;transition:all .2s;margin-top:16px}
.ct-empty .go-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}

/* Mobile Bar */
.mobile-bar{display:none;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e5e2de;z-index:40;padding:10px 16px}
.mobile-bar .inner{display:flex;align-items:center;justify-content:space-between}
.mobile-bar .price-col p:first-child{font-size:11px;color:#8a7e76}
.mobile-bar .price-col p:last-child{font-size:20px;font-weight:800;color:#e07c24}
.mobile-bar .btn-order{padding:12px 32px;background:#e07c24;color:#fff;border-radius:12px;font-size:15px;font-weight:700}

/* Modal Overlay */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(2px);z-index:100;align-items:center;justify-content:center;padding:16px}
.modal-overlay.open{display:flex}
.modal-box{background:#fff;border-radius:16px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;animation:modalUp .25s ease-out}
@keyframes modalUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.modal-head{position:sticky;top:0;background:#fff;border-bottom:1px solid #e5e2de;padding:5px 14px;display:flex;align-items:center;justify-content:space-between;z-index:10;border-radius:16px 16px 0 0}
.modal-head h3{font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px}
.modal-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s;color:#8a7e76}
.modal-close:hover{background:#f5f5f5}
.modal-product{padding:16px 24px;background:#fef6ee50;border-bottom:1px solid #e5e2de;display:flex;gap:12px}
.modal-product img{width:72px;height:72px;border-radius:12px;object-fit:cover;border:1px solid #e5e2de}
.modal-product .info{min-width:0;flex:1}
.modal-product .name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal-product .sub{font-size:12px;color:#8a7e76;margin-top:2px}
.modal-product .price-area{display:flex;align-items:center;gap:8px;margin-top:6px}
.modal-product .price-area .org{font-size:12px;color:#b0a8a0;text-decoration:line-through}
.modal-product .price-area .cur{font-size:15px;font-weight:700;color:#e07c24}
.modal-body{padding:24px}
.opt-section{margin-bottom:24px}
.opt-section:last-child{margin-bottom:0}
.opt-label{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:14px;font-weight:700}
.opt-label .ico{color:#e07c24}
.opt-label .free-badge{padding:2px 8px;border-radius:999px;background:#f0fdf4;color:#22c55e;font-size:10px;font-weight:600}
.qty-wrap{display:flex;align-items:center;gap:2px;border:1px solid #e5e2de;border-radius:12px;background:#f8f4f0;width:fit-content}
.qty-wrap button{padding:12px;transition:background .2s;border-radius:12px}
.qty-wrap button:hover{background:#fff}
.qty-wrap button:disabled{opacity:.3}
.qty-wrap input{width:48px;text-align:center;background:transparent;border:none;font-size:15px;font-weight:700}
.wrap-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.wrap-opt{padding:12px;border:2px solid #e5e1dc;border-radius:12px;text-align:left;transition:all .2s}
.wrap-opt:hover{border-color:#d1cdc8}
.wrap-opt.on{border-color:#e07c24;background:#fef6ee}
.wrap-opt .name{font-size:13px;font-weight:600}.wrap-opt.on .name{color:#e07c24}
.wrap-opt .extra{font-size:11px;color:#8a7e76;margin-top:2px}
.ribbon-list{display:flex;flex-direction:column;gap:6px}
.ribbon-opt{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border:2px solid #e5e1dc;border-radius:12px;transition:all .2s}
.ribbon-opt:hover{border-color:#d1cdc8}
.ribbon-opt.on{border-color:#e07c24;background:#fef6ee}
.ribbon-opt .name{font-size:13px;font-weight:500}.ribbon-opt.on .name{font-weight:600;color:#e07c24}
.ribbon-opt .extra{font-size:12px;color:#8a7e76}
.msg-area{width:100%;padding:12px;border:1px solid #e5e2de;border-radius:12px;background:#f8f4f0;font-size:13px;resize:none;line-height:1.7;transition:all .2s}
.msg-area:focus{border-color:#e07c24;background:#fff;box-shadow:0 0 0 3px rgba(224,124,36,.1)}
.msg-count{text-align:right;font-size:11px;color:#8a7e76;margin-top:4px}
.modal-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e5e2de;padding:16px 24px;border-radius:0 0 16px 16px}
.mf-sum{margin-bottom:12px}
.mf-row{display:flex;justify-content:space-between;font-size:12px;color:#8a7e76;margin-bottom:4px}
.mf-total{display:flex;justify-content:space-between;align-items:baseline;padding-top:8px;border-top:1px dashed #e5e2de}
.mf-total .lbl{font-size:14px;font-weight:700}
.mf-total .val{font-size:20px;font-weight:800;color:#e07c24}
.mf-total .val span{font-size:13px;font-weight:500}
.mf-btns{display:flex;gap:8px}
.mf-btns button{flex:1;padding:14px;border-radius:12px;font-size:14px;font-weight:600;transition:all .2s}
.mf-btns .cancel{border:1px solid #e5e2de;color:#8a7e76}
.mf-btns .cancel:hover{background:#f5f5f5}
.mf-btns .apply{background:#e07c24;color:#fff;flex:2}
.mf-btns .apply:hover{filter:brightness(1.1)}

/* Toast */
.toast{position:fixed;top:80px;right:20px;z-index:200;padding:14px 24px;background:#fff;border-radius:12px;box-shadow:0 4px 24px rgba(0,0,0,.15);font-size:14px;font-weight:500;transform:translateX(140%);transition:transform .3s cubic-bezier(.4,0,.2,1);border-left:4px solid #22c55e;max-width:360px}
.toast.show{transform:translateX(0)}
.toast.error{border-left-color:#ef4444}
.toast.info{border-left-color:#3b82f6}

/* Cart Timer */
.ct-timer{padding:12px 16px;background:linear-gradient(135deg,#fef6ee,#fff8f0);border-radius:12px;border:1px solid rgba(224,124,36,.15);margin-bottom:16px;display:flex;align-items:center;gap:10px;font-size:13px}
.ct-timer .timer-icon{font-size:18px}
.ct-timer strong{color:#e07c24}

/* Footer */
.ft{background:#2d2926;color:#fff;padding:40px 16px;margin-top:48px}
.ft-inner{max-width:1280px;margin:0 auto}
.ft-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;margin-bottom:32px}
.ft h4{font-size:14px;font-weight:600;margin-bottom:12px;color:#f5f5f5}
.ft p,.ft a{font-size:12px;color:#9ca3af;line-height:2}
.ft a:hover{color:#e07c24}
.ft-bottom{border-top:1px solid #444;padding-top:20px;font-size:11px;color:#6b7280;text-align:center}

/* Responsive */
@media(max-width:1024px){
  .ct-grid{grid-template-columns:1fr}
  .sidebar{position:static}
  .rec-grid{grid-template-columns:repeat(2,1fr)}
  .ft-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .ct-thumb{width:80px;height:80px}
  .mobile-bar{display:block}
  .hd-nav{display:none}
  .helper-panel{width:calc(100vw - 32px);right:16px}
  .wrap-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .rec-grid{grid-template-columns:1fr}
  .ft-grid{grid-template-columns:1fr}
  .steps{gap:0}
  .step-line{width:32px}
}

/* ═══════════════════════════════════════
   PRODUCT OPTIONS STYLING
   ═══════════════════════════════════════ */

/* Options Container */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Option Group */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-group.required .option-label::after {
  content: " *";
  color: #ef4444;
  font-weight: 700;
}

/* Option Label */
.option-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-label .emoji {
  font-size: 16px;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
  display: flex;
}

/* Styled Select */
.option-select {
  width: 100%;
  padding: 12px 16px;
  padding-right: 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background-color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.option-select:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.option-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.option-select:disabled {
  background-color: var(--bg-section);
  color: var(--text-muted);
  cursor: not-allowed;
}
/* ═══════════════════════════════════════
   QUANTITY SELECTOR STYLING
   ═══════════════════════════════════════ */

/* Quantity Total Container */
.qty-total {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Quantity Control */
.qty-ctrl {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: all var(--transition);
}

.qty-ctrl:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.qty-ctrl:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Quantity Buttons */
.qty-ctrl button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qty-ctrl button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.qty-ctrl button:active {
  transform: scale(0.95);
}

.qty-ctrl button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--text-muted);
}

/* Quantity Input */
.qty-ctrl input {
  width: 60px;
  height: 44px;
  border: none;
  outline: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  transition: all var(--transition);
}

.qty-ctrl input:hover,
.qty-ctrl input:focus {
  background: var(--bg-light);
}

.qty-ctrl input:focus {
  color: var(--primary);
}

/* Quantity Label */
.qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-label .emoji {
  font-size: 16px;
}

/* Quantity Info */
.qty-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--primary-lighter);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.qty-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qty-info-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

.qty-info-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Price Summary */
.qty-price-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0.02));
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.qty-price-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.qty-price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.qty-price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.qty-price-unit {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .qty-total {
    padding: 16px;
    gap: 16px;
  }

  .qty-row {
    gap: 12px;
  }

  .qty-ctrl {
    flex: 1;
  }

  .qty-ctrl button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .qty-ctrl input {
    height: 40px;
    font-size: 15px;
  }

  .qty-info {
    flex-direction: column;
    gap: 8px;
  }

  .qty-price-summary {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* MOBILE PUBLIC REDESIGN */
@media(max-width:640px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;background:#f5f3f0}
  .hd-inner{height:58px;padding:0 12px}
  .hd-logo{font-size:18px;min-width:0}
  .hd-logo span{font-size:20px}
  .hd-nav{display:none}
  .hd-icons{gap:6px}
  .hd-icon-btn{min-width:42px;min-height:42px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:12px;background:#fff}
  .bc{margin:12px 0;font-size:12px;white-space:nowrap;overflow-x:auto;flex-wrap:nowrap}
  .steps{margin-bottom:18px}
  .step-line{width:28px}
  .ct-grid{grid-template-columns:1fr;gap:16px}
  .sel-bar{padding:12px;border-radius:14px}
  .ct-card,.ct-later,.memo-card,.side-sec{border-radius:16px}
  .ct-card-head,.ct-later .head{padding:12px 14px}
  .ct-item{padding:14px 12px;gap:10px}
  .ct-thumb{width:76px;height:76px;border-radius:12px}
  .ct-name{font-size:14px;white-space:normal;line-height:1.35;padding-right:28px}
  .ct-sub{white-space:normal;line-height:1.4}
  .ct-bottom{align-items:flex-start;gap:10px;flex-direction:column}
  .ct-price{text-align:left}
  .opt-btn{margin-left:0}
  .threshold{padding:12px;align-items:flex-start;flex-direction:column}
  .threshold-bar{width:100%}
  .sidebar{position:static}
  .cpn-row{flex-direction:column}
  .btn-checkout{min-height:50px}
  .rec-grid{grid-template-columns:1fr}
  .helper-float{display:none}
  .helper-panel{left:12px;right:12px;width:auto;bottom:16px;max-height:70vh}
  .toast{left:12px;right:12px;max-width:none;transform:translateY(-140%)}
  .toast.show{transform:translateY(0)}
}
