/* ============================================================
   CART ICON IN NAVBAR
   ============================================================ */
.cart-nav-icon {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-light);
    color: var(--text-dark);
    font-size: 1rem;
    flex-shrink: 0;
    /* Default: show between nav-cta area and hamburger */
    margin-left: auto;
    margin-right: 8px;
    z-index: 100005;
    pointer-events: auto;
}

/* On desktop where menu-btn is hidden, cart sits nicely to right of nav-cta */
@media (min-width: 993px) {
    .cart-nav-icon {
        margin-left: 10px;
        margin-right: 0;
    }
}

/* On mobile: cart sits right to the left of the hamburger icon */
@media (max-width: 992px) {
    .cart-nav-icon {
        margin-left: auto;
        margin-right: 6px;
        width: 38px;
        height: 38px;
    }
    /* Prevent double margin-left:auto fighting */
    nav .nav-links {
        margin-left: 0 !important;
    }
}

.cart-nav-icon:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}
.cart-nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-nav-badge.bump {
    transform: scale(1.5);
}

/* ============================================================
   SHOPPING MODE MODAL (Glassmorphism)
   ============================================================ */
.mode-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 26, 61, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: modalFadeIn 0.5s ease forwards;
}
@keyframes modalFadeIn {
    to { opacity: 1; }
}
.mode-modal-box {
    background: rgba(255,255,255,0.95);
    border-radius: 28px;
    max-width: 820px;
    width: 100%;
    padding: 60px 50px;
    box-shadow: 0 40px 80px rgba(0,26,61,0.25);
    transform: translateY(30px);
    animation: modalSlideUp 0.5s 0.1s cubic-bezier(0.16,1,0.3,1) forwards;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.8);
}
@keyframes modalSlideUp {
    to { transform: translateY(0); }
}
.mode-modal-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}
.mode-modal-box h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.mode-modal-box > p {
    color: var(--text-mid);
    font-size: 1rem;
    margin-bottom: 40px;
}
.mode-modal-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 600px) {
    .mode-modal-cards { grid-template-columns: 1fr; }
    .mode-modal-box { padding: 40px 24px; }
    .mode-modal-box h2 { font-size: 1.6rem; }
}
.mode-modal-card {
    border: 2px solid var(--bg-secondary);
    border-radius: 20px;
    padding: 35px 25px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    text-align: left;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}
.mode-modal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #00B4D8);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}
.mode-modal-card:hover::before, .mode-modal-card.selected::before {
    transform: scaleX(1);
}
.mode-modal-card:hover, .mode-modal-card.selected {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,82,204,0.12);
}
.mode-modal-card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}
.mode-modal-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.mode-modal-card p {
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 20px;
    line-height: 1.5;
}
.mode-modal-benefits {
    margin-bottom: 28px;
}
.mode-modal-benefits li {
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mode-modal-benefits li i {
    color: var(--accent);
    font-size: 0.75rem;
    width: 16px;
}
.mode-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.mode-modal-btn:hover, .mode-modal-card:hover .mode-modal-btn, .mode-modal-card.selected .mode-modal-btn {
    background: var(--accent);
    color: white;
}
.mode-modal-note {
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,26,61,0.4);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.cart-drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    box-shadow: -20px 0 60px rgba(0,26,61,0.15);
}
.cart-drawer.open {
    transform: translateX(0);
}
.cart-drawer-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.cart-drawer-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-drawer-header h3 i { color: var(--accent); }
.cart-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--bg-secondary);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    transition: all 0.2s;
    font-size: 1rem;
}
.cart-drawer-close:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}
.cart-drawer-mode-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-light);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}
.cart-drawer-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 28px;
    scrollbar-width: auto;
    scrollbar-color: var(--accent) var(--bg-secondary);
    -webkit-overflow-scrolling: touch;
}
.cart-drawer-items::-webkit-scrollbar { width: 8px; }
.cart-drawer-items::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 8px; }
.cart-drawer-items::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 8px; border: 2px solid var(--bg-secondary); }
.cart-drawer-items::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }
.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 12px;
    color: var(--text-light);
}
.cart-drawer-empty i { font-size: 3rem; }
.cart-drawer-empty p { font-size: 0.95rem; }
.cart-drawer-empty a {
    margin-top: 10px;
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}
/* Cart Item Row */
.cart-row {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bg-secondary);
    animation: cartRowIn 0.3s ease;
}
@keyframes cartRowIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.cart-row-img {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-row-code {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}
.cart-row-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}
.cart-qty-box button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: background 0.2s;
}
.cart-qty-box button:hover { background: var(--accent-light); }
.cart-qty-box span {
    min-width: 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.cart-row-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}
.cart-row-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: color 0.2s;
    align-self: flex-start;
}
.cart-row-remove:hover { color: #ff4757; }
/* Cart Footer */
.cart-drawer-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid var(--bg-secondary);
    flex-shrink: 0;
    background: var(--bg-primary);
}
.cart-totals {
    margin-bottom: 16px;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-mid);
}
.cart-total-row.grand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    border-top: 1px solid var(--bg-secondary);
    margin-top: 8px;
    padding-top: 12px;
}
.cart-proceed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-proceed-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,82,204,0.3);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.nk-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.nk-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.nk-toast.success { background: #2ecc71; }
.nk-toast.error { background: #e74c3c; }
.nk-toast.info { background: var(--accent); }

/* ============================================================
   ORDER SUMMARY PAGE
   ============================================================ */
.order-summary-page { padding-top: 140px; min-height: 100vh; }
.order-summary-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}
.order-page-header {
    margin-bottom: 40px;
}
.order-page-header p {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.order-page-header h1 { font-size: 2.5rem; }
.order-mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 10px;
}
.order-mode-pill.wholesale { background: #FFF3CD; color: #856404; }
.order-mode-pill.retail { background: var(--accent-light); color: var(--accent); }
.order-table-wrap {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,26,61,0.06);
    border: 1px solid var(--bg-secondary);
    margin-bottom: 24px;
}
.order-table {
    width: 100%;
    border-collapse: collapse;
}
.order-table th {
    background: var(--bg-secondary);
    padding: 14px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-mid);
}
.order-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--bg-secondary);
    font-size: 0.9rem;
    vertical-align: middle;
}
.order-table tr:last-child td { border-bottom: none; }
.order-table-product {
    display: flex;
    align-items: center;
    gap: 14px;
}
.order-table-thumb {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.order-table-name { font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.order-table-code { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.order-totals-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,26,61,0.06);
    border: 1px solid var(--bg-secondary);
    margin-bottom: 30px;
}
.order-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-mid);
    border-bottom: 1px solid var(--bg-secondary);
}
.order-total-line:last-child { border: none; font-weight: 700; font-size: 1.2rem; color: var(--text-dark); padding-top: 16px; }
.order-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.order-actions .btn-back {
    flex: 0;
    padding: 16px 28px;
    border-radius: 12px;
    border: 1px solid var(--bg-secondary);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    transition: all 0.3s;
}
.order-actions .btn-back:hover { border-color: var(--accent); color: var(--accent); }
.order-actions .btn-proceed {
    flex: 1;
    padding: 16px 28px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
.order-actions .btn-proceed:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,82,204,0.3);
}
@media (max-width: 640px) {
    .order-table thead { display: none; }
    .order-table td { display: block; padding: 10px 16px; border: none; }
    .order-table tr { display: block; border-bottom: 1px solid var(--bg-secondary); padding: 6px 0; }
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-page { padding-top: 130px; min-height: 100vh; background: var(--bg-secondary); }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 80px;
    align-items: start;
}
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
}
/* Form Side */
.checkout-form-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,26,61,0.06);
    border: 1px solid rgba(0,82,204,0.08);
}
.checkout-section-title {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.checkout-section-sub {
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 28px;
}
.checkout-field {
    margin-bottom: 20px;
}
.checkout-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.checkout-field label .req { color: var(--accent); }
.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--bg-secondary);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,82,204,0.08);
}
.checkout-field input.error,
.checkout-field select.error { border-color: #e74c3c; }
.checkout-field .err-msg {
    font-size: 0.75rem;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}
.checkout-field.has-error .err-msg { display: block; }
.checkout-field textarea { resize: vertical; min-height: 90px; }
.checkout-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .checkout-row-2 { grid-template-columns: 1fr; } }
.checkout-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.checkout-submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,82,204,0.35);
}
/* Invoice Preview Side */
.invoice-preview {
    position: sticky;
    top: 110px;
}
.invoice-preview-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,26,61,0.06);
    border: 1px solid rgba(0,82,204,0.08);
}
.invoice-header {
    background: var(--bg-tertiary);
    color: white;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.invoice-logo { font-size: 1.8rem; font-family: var(--font-heading); font-weight: 800; letter-spacing: -1px; }
.invoice-logo span { color: #4FC3F7; }
.invoice-meta { text-align: right; }
.invoice-meta p { font-size: 0.75rem; opacity: 0.7; margin-bottom: 3px; }
.invoice-meta strong { font-size: 0.95rem; }
.invoice-body { padding: 28px 32px; }
.invoice-customer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-secondary);
}
.invoice-info-block p { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 4px; }
.invoice-info-block strong { font-size: 0.9rem; color: var(--text-dark); }
.invoice-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.8rem;
}
.invoice-products-table th {
    background: var(--bg-secondary);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-mid);
}
.invoice-products-table td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--bg-secondary);
    vertical-align: middle;
}
.invoice-products-table tr:last-child td { border: none; }
.inv-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.invoice-totals {
    border-top: 2px solid var(--bg-secondary);
    padding-top: 16px;
}
.invoice-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 8px;
}
.invoice-total-row.grand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 1px solid var(--bg-secondary);
    margin-top: 4px;
}
.invoice-footer-note {
    background: var(--accent-light);
    padding: 14px 32px;
    font-size: 0.75rem;
    color: var(--accent);
    text-align: center;
    font-weight: 600;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: var(--bg-secondary);
}
.thankyou-card {
    background: white;
    border-radius: 28px;
    padding: 60px 50px;
    max-width: 580px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,26,61,0.08);
}
.thankyou-icon-wrap {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2ecc71, #00b894);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 12px 30px rgba(46,204,113,0.3);
    animation: successPop 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes successPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
.thankyou-icon-wrap i { font-size: 2.5rem; color: white; }
.thankyou-card h1 { font-size: 2rem; margin-bottom: 12px; }
.thankyou-card > p { color: var(--text-mid); font-size: 1rem; margin-bottom: 36px; line-height: 1.6; }
.thankyou-actions { display: flex; flex-direction: column; gap: 12px; }
.thankyou-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: var(--font-body);
    border: none;
}
.thankyou-btn.primary {
    background: var(--accent);
    color: white;
}
.thankyou-btn.primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.thankyou-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border: 1px solid var(--bg-secondary);
}
.thankyou-btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.thankyou-btn.whatsapp { background: #25D366; color: white; }
.thankyou-btn.whatsapp:hover { background: #1da851; }
.thankyou-order-ref {
    margin-top: 28px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-mid);
}
.thankyou-order-ref strong { color: var(--text-dark); }

/* ============================================================
   PRODUCT CARD — New badges & code styles
   ============================================================ */
.product-code-badge {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

/* ============================================================
   PRODUCT DETAILS — Qty Selector
   ============================================================ */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}
.qty-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
}
.qty-selector button:hover { background: var(--accent-light); }
.qty-selector input {
    width: 52px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: white;
    outline: none;
}
.add-to-cart-main-btn {
    flex: 1;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.add-to-cart-main-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,82,204,0.3);
}
.add-to-cart-main-btn.added {
    background: #2ecc71;
}

/* Ripple on buttons */
.ripple-effect {
    position: relative;
    overflow: hidden;
}
.ripple-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s, opacity 0.5s;
    opacity: 1;
}
.ripple-effect.rippling::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}
