/* ---------- Combo cards (listing + homepage strip) ---------- */
.cmb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; padding: .5rem 0 2rem; }
.cmb-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.cmb-strip::-webkit-scrollbar { display: none; }
.cmb-strip .cmb-card { scroll-snap-align: start; }

.cmb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eee7db; border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 1px 3px rgba(47,42,36,.05); transition: transform .16s ease, box-shadow .16s ease; }
.cmb-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(44,82,40,.10); }
.cmb-card.is-out { opacity: .62; }
.cmb-card-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(150deg,#fff6ef,#f2f8ee); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cmb-card-media img { width: 100%; height: 100%; object-fit: cover; }
.cmb-ph { color: #e8632a; font-size: 2.6rem; }
.cmb-card-off { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg,#e8632a,#f59e0b); color: #fff; font-size: .72rem; font-weight: 900; padding: .2rem .5rem; border-radius: 999px; box-shadow: 0 4px 10px rgba(232,99,42,.28); }
.cmb-card-out { position: absolute; bottom: 8px; left: 8px; background: rgba(190,18,60,.92); color: #fff; font-size: .7rem; font-weight: 800; padding: .15rem .45rem; border-radius: 999px; }
.cmb-card-body { padding: .75rem .8rem .9rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.cmb-card-media { text-decoration: none; }
.cmb-card-name { margin: 0; font-size: .95rem; font-weight: 800; color: var(--store-text); text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmb-card-name:hover { color: var(--store-accent); }
.cmb-card-items { font-size: .76rem; color: var(--store-muted); display: inline-flex; align-items: center; gap: .25rem; }
.cmb-card-price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.cmb-card-price b { font-size: 1.25rem; font-weight: 900; color: var(--store-green); }
.cmb-card-price s { color: #9a9382; font-size: .82rem; font-weight: 600; }
.cmb-card-savepct { font-size: .72rem; font-weight: 800; color: #e8632a; }
.cmb-card-stock { margin-top: .1rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cmb-card-stock .free-del { font-size: .68rem; padding: .1rem .4rem; }
.cmb-in-sm { display: inline-flex; align-items: center; gap: .25rem; color: #15803d; font-weight: 800; font-size: .78rem; }
.cmb-out-sm { display: inline-flex; align-items: center; gap: .25rem; color: #be123c; font-weight: 800; font-size: .78rem; }
.cmb-card-form { margin-top: auto; }
.cmb-card-add { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; width: 100%; margin-top: .5rem; border: 0; border-radius: 12px; background: var(--store-accent); color: #fff; font-weight: 800; font-size: .9rem; padding: .55rem; cursor: pointer; transition: background .15s ease; }
.cmb-card-add:hover:not(:disabled) { background: #285a2b; }
.cmb-card-add:disabled { background: #b9b3a7; cursor: not-allowed; }

/* ---------- Combo detail page ---------- */
.cmb-crumb { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--store-muted); padding: .9rem 0 .3rem; flex-wrap: wrap; }
.cmb-crumb a { color: var(--store-accent); text-decoration: none; font-weight: 700; }
.cmb-crumb b { color: var(--store-text); font-weight: 700; }

.cmb-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: .5rem 0 1.5rem; align-items: start; }
.cmb-media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: linear-gradient(150deg,#fff6ef,#f2f8ee); border: 1px solid #eee7db; display: flex; align-items: center; justify-content: center; }
.cmb-media img { width: 100%; height: 100%; object-fit: cover; }
.cmb-media .cmb-ph { font-size: 4.5rem; }
.cmb-off { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg,#e8632a,#f59e0b); color: #fff; font-size: .9rem; font-weight: 900; padding: .3rem .75rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(232,99,42,.3); }

.cmb-buy h1 { margin: 0 0 .35rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.cmb-desc { color: var(--store-muted); margin: 0 0 .75rem; line-height: 1.55; }
.cmb-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .9rem; }
.cmb-meta span { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--store-muted); font-weight: 600; }

.cmb-price-box { background: linear-gradient(135deg,#fff6ef,#fff); border: 1px solid #ffd8c2; border-radius: 16px; padding: 1rem; margin-bottom: .9rem; }
.cmb-price-row { display: flex; align-items: baseline; gap: .6rem; }
.cmb-price { font-size: 2.1rem; font-weight: 900; color: var(--store-green); line-height: 1; }
.cmb-mrp { color: #9a9382; font-size: 1.05rem; font-weight: 600; }
.cmb-save { color: #e8632a; font-weight: 900; font-size: .95rem; margin-top: .3rem; }
.cmb-note { font-size: .8rem; color: var(--store-muted); margin-top: .5rem; line-height: 1.5; }

.cmb-stock { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.cmb-in { display: inline-flex; align-items: center; gap: .3rem; color: #15803d; font-weight: 800; font-size: .9rem; }
.cmb-out { display: inline-flex; align-items: center; gap: .3rem; color: #be123c; font-weight: 800; font-size: .9rem; }
.cmb-low { background: #fff1e9; color: #d9531e; border-radius: 999px; padding: .1rem .5rem; font-size: .75rem; font-weight: 800; }

.btn-cmb-add { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; border: 0; border-radius: 14px; background: var(--store-accent); color: #fff; font-weight: 800; font-size: 1rem; padding: .8rem; cursor: pointer; transition: background .15s ease; }
.btn-cmb-add:hover:not(:disabled) { background: #285a2b; }
.btn-cmb-add:disabled { background: #b9b3a7; cursor: not-allowed; }

.cmb-h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .9rem; }
.cmb-items-sec { padding-bottom: 2.5rem; }
.cmb-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; }
.cmb-item { display: flex; align-items: center; gap: .75rem; padding: .7rem; background: #fff; border: 1px solid #eee7db; border-radius: 14px; }
.cmb-item.is-out { border-color: #ffd7de; background: #fffafb; }
.cmb-item-img { position: relative; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg,#fff,#faf7f2); border: 1px solid #ece5d8; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; text-decoration: none; }
.cmb-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cmb-item-ph { font-size: 1.5rem; font-weight: 900; color: #86b06f; }
.cmb-qty { position: absolute; bottom: 0; right: 0; background: var(--store-accent); color: #fff; font-size: .68rem; font-weight: 900; padding: .05rem .3rem; border-radius: 6px 0 0 0; }
.cmb-item-body { flex: 1; min-width: 0; }
.cmb-item-name { display: block; font-weight: 700; font-size: .9rem; color: var(--store-text); text-decoration: none; line-height: 1.3; }
.cmb-item-name:hover { color: var(--store-accent); }
.cmb-item-sub { font-size: .75rem; color: var(--store-muted); margin-top: .1rem; }
.cmb-item-out { font-size: .72rem; font-weight: 800; color: #be123c; margin-top: .15rem; }
.cmb-item-price { text-align: right; flex: 0 0 auto; }
.cmb-item-mrp { font-size: .7rem; color: var(--store-muted); }
.cmb-item-line { font-weight: 800; color: var(--store-text); font-size: .95rem; }

/* Full-width summary + bottom CTA bar */
.cmb-foot { display: grid; grid-template-columns: 1.3fr .9fr; gap: 1.25rem; align-items: center; margin-top: 1.25rem; background: linear-gradient(135deg,#fff6ef,#fff); border: 1px solid #ffd8c2; border-radius: 18px; padding: 1.2rem 1.4rem; }
.cmb-foot-nums { display: flex; flex-direction: column; gap: .1rem; }
.cmb-foot-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .28rem 0; font-size: .92rem; color: var(--store-muted); }
.cmb-foot-line s { color: #9a9382; }
.cmb-foot-main { border-top: 1px dashed #ffd0b3; margin-top: .3rem; padding-top: .55rem; color: var(--store-text); font-weight: 700; }
.cmb-foot-main b { font-size: 1.45rem; font-weight: 900; color: var(--store-green); }
.cmb-foot-save b { color: #e8632a; font-weight: 900; }
.cmb-foot-cta { display: flex; flex-direction: column; gap: .5rem; }
.cmb-foot-stock { text-align: center; }
@media (max-width: 700px) { .cmb-foot { grid-template-columns: 1fr; } }

.cmb-empty { text-align: center; padding: 3.5rem 1rem; color: var(--store-muted); }
.cmb-empty i { font-size: 3.5rem; color: #e8632a; }
.cmb-empty h2 { margin: .75rem 0 .35rem; color: var(--store-text); }

body.rm-dark .cmb-card, body.rm-dark .cmb-item, body.rm-dark .cmb-total { background: #221d14 !important; border-color: #3a3324 !important; }
body.rm-dark .cmb-price-box { background: #2a2418; border-color: #6b4128; }

@media (max-width: 860px) { .cmb-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .cmb-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .cmb-items { grid-template-columns: 1fr; }
    .cmb-total { max-width: none; }
    .cmb-price { font-size: 1.7rem; }
}
