/* ================================================================
   LUCENVA — CART, WISHLIST & MOBILE SYSTEM
   cart-wishlist.css
   ================================================================ */

/* ========================
   DRAWER OVERLAY
   ======================== */
.cart-overlay,
.wishlist-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cart-overlay.open,
.wishlist-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ========================
   CART DRAWER
   ======================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -105%;
    width: 420px;
    max-width: 100vw;
    height: 100dvh;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.14);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-drawer-header h3 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-drawer-close:hover {
    background: #f5f5f5;
}

/* Cart Items List */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    animation: slideInItem 0.25s ease;
}

@keyframes slideInItem {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.ci-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f6f8;
}

.ci-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ci-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ci-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.ci-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.ci-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 4px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1;
}

.ci-qty-btn:hover {
    border-color: var(--text);
    background: var(--text);
    color: #fff;
}

.ci-qty {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.ci-del {
    margin-left: auto;
    background: none;
    border: none;
    color: #d0d0d0;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.ci-del:hover {
    color: #e74c3c;
}

/* Cart Footer */
.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

#cart-freeship-msg {
    font-size: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    line-height: 1.4;
}

.cart-checkout-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 12px;
    letter-spacing: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-checkout-btn:hover {
    background: #333;
}

/* Cart Empty State */
.cart-empty {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 52px;
    color: var(--border);
}

.cart-empty p {
    font-size: 15px;
    font-weight: 500;
}

/* ========================
   WISHLIST DRAWER
   ======================== */
.wishlist-drawer {
    position: fixed;
    top: 0;
    right: -105%;
    width: 420px;
    max-width: 100vw;
    height: 100dvh;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.14);
}

.wishlist-drawer.open {
    right: 0;
}

.wishlist-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.wishlist-drawer-header h3 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
}

.wishlist-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.wishlist-drawer-close:hover {
    background: #f5f5f5;
}

/* Wishlist Items List */
.wishlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.wishlist-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    animation: slideInItem 0.25s ease;
}

.wishlist-item:last-child {
    border-bottom: none;
}

.wi-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f6f8;
}

.wi-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wi-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.wi-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wi-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.wi-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.wi-cart-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.wi-cart-btn:hover {
    background: #333;
}

.wi-del {
    background: none;
    border: none;
    color: #d0d0d0;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 6px;
}

.wi-del:hover {
    color: #e74c3c;
}

/* Wishlist Empty State */
.wishlist-empty {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
    color: var(--text-light);
}

.wishlist-empty i {
    font-size: 52px;
    color: #ffc4c4;
}

.wishlist-empty p {
    font-size: 15px;
    font-weight: 500;
}

/* ========================
   HEART BUTTON ON PRODUCT CARDS
   ======================== */
.gift-img,
.fp-img {
    position: relative;
}

.wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.wish-btn:hover {
    color: #e74c3c;
    transform: scale(1.12);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.wish-btn.wished {
    color: #e74c3c;
    background: #fff;
}

.wish-btn.wished i {
    font-weight: 900;
}

/* ========================
   WISHLIST BADGE ON HEADER
   ======================== */
.wish-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
}

/* ========================
   TOAST NOTIFICATION
   ======================== */
#lucenva-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 26, 26, 0.95);
    color: #fff;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-family: var(--font-body);
    max-width: 92vw;
    text-align: center;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    line-height: 1.4;
}

#lucenva-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#lucenva-toast i {
    margin-right: 6px;
}

/* ========================
   MOBILE BOTTOM NAV (kiểu md-care.vn)
   ======================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 990;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #aaa;
    font-size: 9px;
    letter-spacing: 0.5px;
    cursor: pointer;
    flex: 1;
    padding: 6px 0;
    transition: color 0.2s;
    position: relative;
    text-transform: uppercase;
    font-weight: 600;
    font-family: var(--font-body);
}

.mbn-item i {
    font-size: 20px;
    transition: transform 0.2s;
}

.mbn-item:active i {
    transform: scale(0.9);
}

.mbn-item.active,
.mbn-item:hover {
    color: var(--text);
}

.mbn-item.active {
    color: var(--gold);
}

.mbn-cart-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 20px);
    background: var(--gold);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
}

/* ========================
   MOBILE RESPONSIVE FIXES
   ======================== */
@media (max-width: 768px) {
    /* Show mobile bottom nav + give body space */
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0));
    }

    /* Toast above bottom nav */
    #lucenva-toast {
        bottom: 80px;
    }

    /* Cart/Wishlist drawer full width */
    .cart-drawer,
    .wishlist-drawer {
        width: 85%;
        max-width: 400px;
        border-radius: 0;
    }

    /* Header compact */
    .header-top {
        padding: 12px 0 !important;
    }

    .logo {
        font-size: 25px !important;
        letter-spacing: 5px !important;
    }

    .header-inner {
        padding: 0 16px !important;
    }

    .header-right-icons {
        gap: 14px !important;
    }

    .header-left-icons .icon-btn,
    .header-right-icons .icon-btn {
        font-size: 18px !important;
    }

    /* Heart button smaller on mobile */
    .wish-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
        top: 7px;
        right: 7px;
    }

    /* Product grid 2 col on mobile */
    .fp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .fp-info {
        padding: 10px 10px 12px !important;
    }

    .fp-info h4 {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }

    .fp-info p {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .fp-price {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .fp-btn {
        padding: 9px 4px !important;
        font-size: 9px !important;
        letter-spacing: 0.5px !important;
    }

    /* gift-grid 2 col */
    .gift-grid,
    .limited-grid,
    .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .gift-name {
        font-size: 12px !important;
        padding: 8px 8px 4px !important;
    }

    .gift-desc {
        font-size: 11px !important;
        padding: 0 8px !important;
    }

    .gift-price {
        font-size: 13px !important;
        padding: 4px 8px 8px !important;
    }

    .gift-act button {
        font-size: 9px !important;
        padding: 8px 4px !important;
    }

    /* Cart item mobile */
    .ci-img {
        width: 68px;
        height: 68px;
    }

    .ci-name {
        font-size: 11px;
    }

    /* Cart drawer header */
    .cart-drawer-header h3,
    .wishlist-drawer-header h3 {
        font-size: 13px;
    }

    /* Floating contact button adjust */
    .floating-contact {
        bottom: 72px !important;
        right: 12px;
    }

    /* Category grid 3 col on mid mobile, 2 col on small */
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cat-item p {
        font-size: 11px;
    }

    /* About home grid */
    .about-home-grid {
        grid-template-columns: 1fr !important;
    }

    .about-images-grid {
        grid-template-rows: 160px 160px !important;
    }

    /* Commit section */
    .commit-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .commit-stamp img {
        width: 60px;
    }

    .commit-item p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px !important;
        letter-spacing: 4px !important;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Smaller hero section */
    .main-hero-section {
        min-height: 400px !important;
        height: 60vh !important;
    }

    .serif-heading {
        font-size: 24px !important;
    }

    /* About images grid 1 col on very small */
    .about-images-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .about-images-grid img:first-child {
        grid-row: span 1 !important;
    }

    .about-images-grid img:nth-child(2),
    .about-images-grid img:nth-child(3) {
        display: none;
    }

    /* Product detail page */
    .sp-action-box {
        gap: 8px;
    }

    .sp-add-btn {
        padding: 12px !important;
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }

    /* Expert slider mobile */
    .expert-title {
        font-size: 20px !important;
    }
}

/* ========================
   PRODUCT DETAIL: WISHLIST BUTTON
   ======================== */
.sp-wish-btn {
    background: none;
    border: 1px solid var(--border);
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #ccc;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.sp-wish-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.sp-wish-btn.wished {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff5f5;
}

/* Fix sp-action-box to include wish button */
.sp-action-box {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.sp-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

/* ========================
   MINI CART COUNT SYNC ON BOTTOM NAV
   ======================== */
.mbn-cart-badge.hidden {
    display: none;
}

/* ========================
   SCROLL LOCK HELPER
   ======================== */
body.drawer-open {
    overflow: hidden;
}

/* ========================
   CHECKOUT MODAL (Glassmorphism)
   ======================== */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.chk-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.chk-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.chk-close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.chk-close-btn:hover {
    color: #ff4757;
}

.chk-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.chk-form-group {
    margin-bottom: 16px;
}

.chk-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.chk-form-group input,
.chk-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chk-form-group input:focus,
.chk-form-group textarea:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.chk-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.chk-summary h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}

.chk-items-scroll {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.chk-item-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 8px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.chk-item-name {
    flex: 1;
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chk-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    font-size: 1.05rem;
}

#chk-summary-total {
    color: #10b981;
    font-size: 1.2rem;
}

.chk-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.chk-btn-cancel {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.chk-btn-cancel:hover {
    background: #f1f1f1;
    color: #333;
}

.chk-btn-submit {
    padding: 10px 24px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.chk-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.chk-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
/* ================================================================
   10. CHECKOUT PAGE (MD-CARE STYLE)
   ================================================================ */
.checkout-container {
    max-width: 1140px;
    margin: 0 auto;
}
.checkout-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.checkout-col-left {
    flex: 1 1 55%;
    padding: 20px;
}
.checkout-col-right {
    flex: 1 1 40%;
    border: 2px solid #000;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.checkout-section-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}
.checkout-section-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin: 0;
}
.chk-form-group {
    margin-bottom: 20px;
}
.chk-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}
.chk-form-group input, .chk-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}
.chk-form-group input:focus, .chk-form-group textarea:focus {
    border-color: #111;
    outline: none;
}
.checkout-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
.checkout-table th, .checkout-table td {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}
.checkout-table th {
    text-align: left;
    color: #444;
    font-weight: 600;
}
.checkout-table td {
    text-align: right;
    color: #111;
}
.checkout-table thead th {
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 2px solid #eaeaea;
}
.checkout-table tbody td {
    text-align: left;
}
.checkout-table tbody td.product-total {
    text-align: right;
    font-weight: 600;
}
.checkout-table tfoot th {
    font-weight: 700;
    font-size: 15px;
}
.checkout-table tfoot .order-total th, .checkout-table tfoot .order-total td {
    font-size: 18px;
    border-bottom: none;
    padding-top: 20px;
}
.checkout-table tfoot .order-total td strong {
    color: #e74c3c;
    font-weight: 700;
}
.product-name-qty {
    display: flex;
    align-items: center;
    gap: 15px;
}
.product-name-qty img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.product-name-qty span {
    font-size: 14px;
    color: #333;
}

/* Payment Methods */
.checkout-payment-methods {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}
.payment-method {
    margin-bottom: 15px;
}
.payment-method:last-child {
    margin-bottom: 0;
}
.payment-method input[type="radio"] {
    margin-right: 10px;
    accent-color: #111;
}
.payment-method label {
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}
.payment-box {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    position: relative;
    line-height: 1.6;
}
.payment-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ddd;
}
.payment-box::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 21px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
}

.checkout-place-order-btn {
    width: 100%;
    padding: 18px;
    background-color: #111;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}
.checkout-place-order-btn:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .checkout-col-left, .checkout-col-right {
        flex: 1 1 100%;
    }
    .checkout-col-right {
        padding: 20px;
    }
}

/* ================================================================
   REDESIGN CART & CHECKOUT (MD CARE VIET NAM STYLE)
   ================================================================ */

/* --- SIDE CART DRAWER OVERRIDES --- */
#cart-drawer .cart-drawer-header h3 {
  font-family: 'Inter', sans-serif; /* or existing sans-serif */
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}
#cart-drawer .cart-total {
  border-top: 1px solid #eee;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}
.cart-drawer-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-black-outline {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}
.btn-black-outline:hover {
  background: #f5f5f5;
}
.btn-black-solid {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}
.btn-black-solid:hover {
  background: #333;
}

/* --- FULL CART PAGE --- */
.cart-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Inter', sans-serif;
}
.cart-page-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.cart-page-left {
  flex: 2;
  min-width: 300px;
}
.cart-page-right {
  flex: 1;
  min-width: 300px;
}
.cart-page-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-page-table th {
  border-bottom: 2px solid #eee;
  padding: 15px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}
.cart-page-table th.col-product {
  text-align: left;
}
.cart-page-table td {
  padding: 20px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  text-align: center;
}
.cart-page-table td.col-product {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
}
.cart-page-table td.col-product img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f9f9f9;
}
.cart-page-table .col-remove button {
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.qty-control button {
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 16px;
}
.qty-control input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 14px;
  padding: 5px 0;
}
.btn-continue-shopping {
  background: #fff;
  border: 1px solid #000;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  font-size: 13px;
}
.cart-totals-box {
  background: #fff;
  padding: 0;
}
.cart-totals-box h3 {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
.totals-row.shipment-row {
  align-items: flex-start;
}
.shipment-info {
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
}
.shipment-info a {
  color: #c4a46d;
  text-decoration: underline;
  font-size: 13px;
}
.totals-row.total-row {
  border-bottom: none;
  font-weight: 700;
  font-size: 18px;
}
.btn-checkout-brown {
  width: 100%;
  background: #B07C5F; /* MD Care accent color, or #c4a46d */
  color: #fff;
  border: none;
  padding: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 20px;
  font-size: 15px;
  border-radius: 4px;
  transition: 0.3s;
}
.btn-checkout-brown:hover {
  background: #9a6a50;
}
.coupon-box {
  margin-top: 30px;
  border-top: 1px dashed #ddd;
  padding-top: 20px;
}
.coupon-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}
.coupon-input-group {
  display: flex;
  gap: 0;
}
.coupon-input-group input {
  flex: 1;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.coupon-input-group button {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-left: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* --- CHECKOUT PAGE REDESIGN --- */
.checkout-header-msg {
  background: #fff;
  padding: 15px 20px;
  border-top: 3px solid #B07C5F;
  margin-bottom: 30px;
  font-size: 15px;
}
.checkout-header-msg a {
  color: #B07C5F;
}
.chk-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.chk-form-group.w-100 { width: 100%; }
.chk-form-group.w-50 { width: 50%; }
.chk-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}
.chk-form-group .req { color: red; }
.chk-form-group input, .chk-form-group select, .chk-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}
.chk-form-group input:focus, .chk-form-group select:focus, .chk-form-group textarea:focus {
  border-color: #B07C5F;
}
.checkbox-row {
  margin: 20px 0;
}
.custom-cb-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
}
.checkout-order-box {
  border: 2px solid #111;
  padding: 30px;
  background: #fff;
}
.order-box-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.checkout-table {
  width: 100%;
  border-collapse: collapse;
}
.checkout-table th {
  text-align: left;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
  font-size: 14px;
}
.checkout-table td {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.checkout-table td.product-total {
  text-align: right;
}
.checkout-table th.product-total {
  text-align: right;
}
.checkout-table tfoot th {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.checkout-table tfoot td {
  text-align: right;
  font-weight: 600;
}
.checkout-payment-methods {
  margin: 20px 0;
}
.payment-method {
  margin-bottom: 10px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
}
.payment-box {
  background: #f9f9f9;
  padding: 15px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 4px;
}
.checkout-terms {
  margin-bottom: 20px;
}
.privacy-notice {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .chk-form-row { flex-direction: column; gap: 15px; }
  .chk-form-group.w-50 { width: 100%; }
}
