/* Cart & Checkout – modern two-column layout */
.cc-page {
    min-height: 70vh;
    padding: 32px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.cc-page__title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.cc-page__sub {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0 0 24px;
}

.cc-empty {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}
.cc-empty i { font-size: 3rem; color: #cbd5e1; margin-bottom: 16px; }

.cc-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 991px) {
    .cc-layout { grid-template-columns: 1fr; }
}

/* Cart item card */
.cc-cart-list { display: flex; flex-direction: column; gap: 14px; }
.cc-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 16px;
    align-items: center;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    position: relative;
    transition: box-shadow 0.2s ease;
}
.cc-item:hover { box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08); }
@media (max-width: 575px) {
    .cc-item { grid-template-columns: 72px 1fr; }
    .cc-item__right { grid-column: 1 / -1; justify-self: end; }
}
.cc-item__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f8fafc;
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.cc-item__remove:hover { background: #fef2f2; color: #dc2626; }
.cc-item__img {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #f1f5f9;
}
.cc-item__badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0d9488;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.cc-item__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    line-height: 1.35;
    padding-right: 28px;
}
.cc-item__name a { color: inherit; text-decoration: none; }
.cc-item__name a:hover { color: #0d9488; }
.cc-item__store {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 4px;
}
.cc-item__store i { color: #0d9488; margin-right: 4px; }
.cc-item__variant { font-size: 0.75rem; color: #94a3b8; margin-bottom: 2px; }
.cc-item__unit { font-size: 0.78rem; color: #94a3b8; }

.cc-qty {
    display: inline-flex;
    align-items: center;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 30px;
    overflow: hidden;
    margin-top: 8px;
}
.cc-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #0d9488;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.cc-qty button:hover { background: rgba(13, 148, 136, 0.1); }
.cc-qty span {
    min-width: 52px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f766e;
    padding: 0 4px;
}
.cc-item__right { text-align: right; }
.cc-item__calc { font-size: 0.78rem; color: #94a3b8; margin-bottom: 4px; }
.cc-item__total { font-size: 1.2rem; font-weight: 800; color: #0d9488; letter-spacing: -0.02em; }

.cc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid #0d9488;
    color: #0d9488;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}
.cc-back:hover { background: #f0fdfa; color: #0f766e; }

/* Order summary sidebar */
.cc-summary {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.07);
    padding: 22px;
    position: sticky;
    top: 100px;
}
.cc-summary h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 18px;
}
.cc-coupon label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.cc-coupon__row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.cc-coupon__row input {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
    background: #fafbfc;
}
.cc-coupon__row input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.cc-coupon__row button {
    border: none;
    background: #0d9488;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}
.cc-coupon__row button:hover { background: #0f766e; }
.cc-coupon__msg { font-size: 0.78rem; margin: -10px 0 14px; display: none; }
.cc-coupon__msg.show { display: block; }
.cc-coupon__msg.error { color: #dc2626; }
.cc-coupon__msg.ok { color: #16a34a; }

.cc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #475569;
}
.cc-line strong { color: #1e293b; font-weight: 600; }
.cc-line .free { color: #16a34a; font-weight: 700; }
.cc-line .fee { color: #16a34a; font-weight: 700; }
.cc-divider { height: 1px; background: #f1f5f9; margin: 10px 0; }
.cc-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0 16px;
}
.cc-total span:first-child { font-size: 1rem; font-weight: 700; color: #1e293b; }
.cc-total span:last-child { font-size: 1.65rem; font-weight: 800; color: #0d9488; letter-spacing: -0.03em; }

.cc-promo {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.78rem;
    color: #166534;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cc-promo i { color: #16a34a; }

.cc-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
    transition: all 0.2s;
}
.cc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.35);
    color: #fff;
}
.cc-pay-badges {
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.cc-pay-badges small { display: block; color: #94a3b8; font-size: 0.72rem; margin-bottom: 8px; }
.cc-pay-badges span {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 2px;
}

/* Checkout page */
.cc-panel {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    padding: 24px;
    margin-bottom: 20px;
}
.cc-panel h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 18px;
}
.cc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 575px) {
    .cc-form-row { grid-template-columns: 1fr; }
}
.cc-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}
.cc-field input,
.cc-field select,
.cc-field textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cc-field input:focus,
.cc-field select:focus,
.cc-field textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #fff;
}
.cc-field .hint {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 5px;
}
.cc-field .hint i { margin-right: 4px; }

.cc-pay-opt {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.cc-pay-opt:hover { border-color: #99f6e4; background: #fafafa; }
.cc-pay-opt.active {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}
.cc-pay-opt input { margin-top: 4px; accent-color: #0d9488; }
.cc-pay-opt__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cc-pay-opt__icon--cod { background: #f0fdf4; color: #16a34a; }
.cc-pay-opt__icon--upi { background: #eff6ff; color: #2563eb; }
.cc-pay-opt__title { font-weight: 700; color: #1e293b; font-size: 0.92rem; margin-bottom: 2px; }
.cc-pay-opt__sub { font-size: 0.78rem; color: #64748b; }

.cc-summary-mini .cc-sum-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: #475569;
    padding: 6px 0;
    border-bottom: 1px dashed #f1f5f9;
}
.cc-summary-mini .cc-sum-item:last-child { border-bottom: none; }
.cc-summary-mini .cc-sum-item span:last-child { font-weight: 600; color: #1e293b; white-space: nowrap; }

.cc-alert-addr {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.cc-alert-addr i { color: #dc2626; margin-top: 2px; }
.cc-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: #64748b;
}
.cc-secure i { color: #16a34a; }

.cc-sticky-mob {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    z-index: 1500;
}
@media (max-width: 991px) {
    .cc-sticky-mob { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    body.page-cart .cc-page, body.page-checkout .cc-page { padding-bottom: 90px; }
    body.page-cart footer, body.page-checkout footer { display: none; }
}
.cc-msg {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 12px;
    display: none;
}
.cc-msg.show { display: block; }
.cc-msg.error { background: #fef2f2; color: #dc2626; }
.cc-msg.ok { background: #f0fdf4; color: #16a34a; }

.cc-success-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
