/* ================================================
   HENDOSHI - CHECKOUT & CART STYLES
   ================================================
   
   Purpose: Complete checkout experience styling including cart display,
            order summary, payment forms, shipping rates, and mobile
            responsive layouts. Handles Stripe payment integration UI.
   
   Contains:
   - Cart item cards and layout
   - Quantity controls
   - Order summary sidebar
   - Stripe payment element styling  
   - Checkout progress indicators
   - Mobile cart optimization
   - Light mode theme overrides
   
   Dependencies: Requires Stripe.js for payment processing
   Load Order: After components, within features section
   ================================================ */

.placeholder-image-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

/* Cart Item Details */
.cart-item-details {
    display: flex;
    grid-area: details;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    margin: 0;
    color: var(--off-white) !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-name a {
    color: var(--neon-pink) !important;
    text-decoration: none;
    transition: all 0.3s;
}

.cart-item-name a:hover {
    color: var(--electric-yellow);
}

.cart-item-specs {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.spec-label {
    color: var(--gray);
    font-weight: 600;
}

.spec-value {
    color: var(--off-white);
    font-weight: 700;
    text-transform: uppercase;
}

.cart-item-price {
    display: flex;
    margin-top: 0.5rem;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.price-label {
    color: var(--gray);
    font-weight: 600;
}

.price-value {
    color: var(--neon-pink);
    font-weight: 700;
}

/* Quantity Control */
.cart-item-quantity {
    display: flex;
    grid-area: quantity;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.qty-label {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quantity-control {
    gap: 0;
    border: 1px solid var(--neon-pink);
    border-radius: 4px;
    background-color: rgba(255, 20, 147, 0.1);
}

.quantity-control,
.qty-btn-sm {
    display: flex;
    align-items: center;
}

.qty-btn-sm {
    justify-content: center;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--neon-pink);
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn-sm:hover {
    transform: scale(1.1);
    background-color: rgba(255, 20, 147, 0.2);
    color: var(--electric-yellow);
}

.qty-input-sm {
    width: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input-sm::-webkit-outer-spin-button,
.qty-input-sm::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.qty-input-sm:focus {
    outline: none;
}

/* Subtotal */
.cart-item-subtotal {
    display: flex;
    grid-area: subtotal;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.subtotal-label {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.subtotal-value {
    color: var(--neon-pink);
    font-weight: 900;
    font-size: 1.3rem;
}

/* Remove Button */
.cart-item-actions {
    display: flex;
    grid-area: actions;
    justify-content: center;
}

.btn-remove {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    transform: scale(1.2);
    color: #ff0044;
}

/* Continue Shopping */
.continue-shopping {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 20, 147, 0.2);
    text-align: center;
}

/* Cart Summary Sidebar */
.cart-summary {
    position: sticky;
    top: 140px;
    padding: 2rem;
    border: 2px solid var(--neon-pink);
    border-radius: 12px;
    background-color: #1f1f1f;
}

.summary-title {
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.summary-divider {
    height: 2px;
    margin: 1.5rem 0;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
}

.checkout-btn {
    position: relative;
    padding: 1rem;
    overflow: hidden;
    border: 2px solid var(--neon-pink);
    background: linear-gradient(135deg, var(--neon-pink), #ff006e);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    animation: checkoutPulse 2s ease-in-out infinite;
    transition: all 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 20, 147, 0.7);
    animation: none;
}

@keyframes checkoutPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 20, 147, 0.8);
    }
}

.checkout-cta {
    margin-top: 1.5rem;
}

.checkout-guarantee {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.checkout-guarantee i {
    margin-right: 0.5rem;
    color: var(--electric-yellow);
}

.cart-info {
    margin: 0;
    color: var(--gray);
    font-size: 0.85rem;
    text-align: center;
}

.cart-info i {
    margin-right: 0.5rem;
    color: var(--neon-pink);
}

/* Empty Cart */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-cart-icon {
    margin-bottom: 2rem;
    color: var(--gray);
    opacity: 0.5;
}

.empty-cart-title {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 2rem;
}

.empty-cart-text {
    margin-bottom: 2rem;
    color: var(--gray);
    font-size: 1.1rem;
}

/* Responsive Cart */
@media (max-width: 1200px) {
    .cart-item {
        grid-template-columns: 80px 1fr 100px 80px;
        gap: 1.5rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Removed cart-page mobile rules - now uses products-page */

    /* Ultra Compact Mobile Cart Layout */
    .cart-item {
        display: flex;
        position: relative;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-bottom: 0.4rem;
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .cart-item-image {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }

    .cart-item-details {
        flex: 1;
        min-width: 0;
        padding-right: 20px;
        gap: 0;
    }

    .cart-item-name {
        margin-bottom: 0.15rem;
        font-size: 0.75rem;
        line-height: 1.15;
    }

    .cart-item-specs {
        display: inline;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.65rem;
    }

    .cart-item-specs .spec-label {
        display: none;
    }

    .cart-item-specs .spec-value::after {
        content: " · ";
        color: rgba(255, 255, 255, 0.35);
    }

    .cart-item-price {
        display: inline;
        margin: 0;
        font-size: 0.65rem;
    }

    .cart-item-price .price-label {
        display: none;
    }

    .cart-item-price .price-value {
        color: var(--neon-pink);
        font-weight: 600;
    }

    /* Delete button - top right */
    .cart-item-actions {
        position: absolute;
        top: 0.4rem;
        right: 0.4rem;
        margin: 0;
        padding: 0;
    }

    .btn-remove {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        padding: 0;
        font-size: 0.6rem;
        opacity: 0.5;
    }

    .btn-remove:hover {
        opacity: 1;
    }

    /* Bottom row - quantity and subtotal inline */
    .cart-item-quantity {
        display: flex;
        align-items: center;
        order: 10;
        width: auto;
        margin-top: 0.2rem;
        padding: 0;
        border: none;
    }

    .qty-label {
        display: none;
    }

    .quantity-control {
        margin: 0;
        margin-left: -5px;
        transform: scale(0.65);
        transform-origin: left center;
    }

    .cart-item-subtotal {
        display: flex;
        align-items: center;
        order: 11;
        margin-top: 0.2rem;
        margin-left: auto;
        gap: 0;
    }

    .subtotal-label {
        display: none;
    }

    .subtotal-value {
        color: var(--neon-pink);
        font-weight: 700;
        font-size: 0.8rem;
    }

    .cart-summary {
        padding: 0;
    }

    .cart-summary-inner {
        padding: 1rem;
        border-radius: 10px;
    }

    .summary-title {
        margin-bottom: 1rem;
    }

    .continue-shopping {
        padding-top: 1rem;
    }

    /* Ensure Continue Shopping button sits above fixed footer on mobile (reduced) */
    body .cart-summary .text-center {
        margin-bottom: 1.5rem;
    }
}

/* LIGHT MODE THEME STYLES */
:root.light-mode {
    --brand-shadow: rgba(0, 0, 0, 0.1);
}

/* Light Mode - Hero Section */
:root.light-mode .hero-subtitle {
    color: #ffffff;
}

/* Light Mode - Buttons & Components */
:root.light-mode .btn-outline-pink {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

:root.light-mode .btn-outline-pink:hover {
    border-color: var(--electric-yellow);
    background-color: var(--electric-yellow);
    color: var(--black);
}

:root.light-mode .btn-pink {
    padding: 0.5rem 0.5rem;
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
    color: white;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

:root.light-mode .btn-pink:hover {
    transform: translateY(-3px);
    border-color: #ff69b4;
    background-color: #ff69b4;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
    color: white;
}

/* Light Mode - Cards & Containers */
:root.light-mode .product-card {
    border: 2px solid rgba(255, 20, 147, 0.2);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

:root.light-mode .product-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

:root.light-mode .product-image {
    background: #f8f9fa;
}

:root.light-mode .product-info h3 {
    color: #212529;
}

:root.light-mode .product-card:hover .product-info h3 {
    color: var(--neon-pink);
}

:root.light-mode .product-type {
    background: linear-gradient(90deg, #b8d400, #e71f7f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root.light-mode .product-price {
    color: var(--neon-pink);
}

:root.light-mode .btn-quick-add {
    border: none;
    background: linear-gradient(135deg, var(--neon-pink), #ff6b6b);
    color: #fff;
}

:root.light-mode .btn-quick-add:hover {
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
    color: #fff;
}

:root.light-mode .product-vest-btn {
    border: 2px solid rgba(255, 20, 147, 0.5);
    background: rgba(255, 255, 255, 0.9);
    color: var(--neon-pink);
}

:root.light-mode .product-vest-btn:hover {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.1);
}

:root.light-mode .product-vest-btn.in-vest {
    border-color: var(--neon-pink);
    background: rgba(255, 255, 255, 0.9);
}

:root.light-mode .product-vest-btn.in-vest i {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:root.light-mode .cart-item {
    border-color: #e71f7f;
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Light Mode - Forms & Inputs */
:root.light-mode .search-input {
    border-color: #e71f7f;
    background-color: white;
    color: #1a1a1a;
}

:root.light-mode .search-input::placeholder {
    color: #999;
}

:root.light-mode .search-input:focus {
    border-color: #e71f7f;
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(231, 31, 127, 0.25);
}

:root.light-mode .quantity-selector-wrapper {
    border-color: #e71f7f;
    background-color: rgba(231, 31, 127, 0.05);
}

:root.light-mode .quantity-input,
:root.light-mode .qty-input-sm {
    background-color: transparent;
    color: #1a1a1a;
}

/* Light Mode - Borders & Dividers */
:root.light-mode .breadcrumb {
    background-color: transparent;
}

:root.light-mode .breadcrumb-item.active,
:root.light-mode .breadcrumb-item a {
    color: #e71f7f;
}

/* Light Mode - Product Page */
:root.light-mode .product-detail-page {
    background-color: #ffffff;
}

:root.light-mode .design-story {
    border-left-color: #e71f7f;
    background-color: rgba(231, 31, 127, 0.05);
}

:root.light-mode .story-title {
    color: #e71f7f;
}

:root.light-mode .story-text,
:root.light-mode .story-author {
    color: #1a1a1a;
}

/* Removed cart-page light mode rule - now uses products-page light mode */

:root.light-mode .cart-items-section {
    border-color: #e71f7f;
    background-color: rgba(231, 31, 127, 0.05);
}

:root.light-mode .cart-header {
    border-bottom-color: #e71f7f;
}

:root.light-mode .cart-item {
    border-color: rgba(231, 31, 127, 0.3);
    background-color: white;
}

:root.light-mode .cart-item:hover {
    border-color: #e71f7f;
}

:root.light-mode .item-name {
    color: #1a1a1a !important;
}

:root.light-mode .item-specs .spec strong {
    color: #1a1a1a !important;
}

:root.light-mode .cart-summary {
    border-color: #e71f7f;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

:root.light-mode .summary-title {
    color: #e71f7f;
}

:root.light-mode .summary-divider {
    background: linear-gradient(90deg, transparent, #e71f7f, transparent);
}

:root.light-mode .summary-item {
    border-color: #e4e4e4;
    background-color: #fafafa;
}

:root.light-mode .summary-totals {
    border-color: #e2e2e2;
    background-color: #fbfbfb;
}

:root.light-mode .order-summary .summary-item,
:root.light-mode .order-summary .summary-totals {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

:root.light-mode .checkout-form label {
    color: #1f1f1f;
}

:root.light-mode .checkout-form .form-control {
    border-color: #dcdcdc;
    background: white;
    color: #111111;
}

:root.light-mode .checkout-form .form-control::placeholder {
    color: #8a8a8a;
}

/* Light Mode - Shipping Rates Section */
:root.light-mode .checkout-page .shipping-rates-section h5 {
    color: #1f1f1f;
}

:root.light-mode .checkout-page .shipping-rates-section .list-group-item {
    border-color: #e0e0e0;
    background: #ffffff;
    color: #1f1f1f;
}

:root.light-mode .checkout-page .shipping-rates-section .list-group-item:hover {
    border-color: rgba(255, 20, 147, 0.3);
    background: rgba(255, 20, 147, 0.05);
}

:root.light-mode .checkout-page .shipping-rates-section .list-group-item:has(input:checked) {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.08);
}

:root.light-mode .checkout-page .shipping-rates-section .list-group-item .text-end span {
    color: #333333;
}

:root.light-mode .checkout-page .shipping-rates-section .form-check-input {
    border-color: #cccccc;
    background-color: #ffffff;
}

/* Light Mode - Shipping Totals Summary */
:root.light-mode .checkout-page .shipping-totals-summary {
    border-color: #e0e0e0;
    background: #ffffff;
    color: #1f1f1f;
}

:root.light-mode .checkout-page .shipping-totals-summary hr {
    border-color: #e0e0e0;
}

:root.light-mode .checkout-page .shipping-totals-summary .fw-bold {
    color: var(--neon-pink);
}

/* Stripe Payment Elements */
.payment-section {
    position: relative;
}

.payment-section h2 {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    background-clip: text;
}

.stripe-card-element {
    z-index: 10000; /* high z-index to avoid other overlays covering it */
    position: relative; /* ensure it can sit above overlays */
    min-height: 48px; /* ensure visible click area */
    padding: 0.9rem 1rem;
    border: 1px solid var(--neon-pink);
    border-radius: var(--border-radius-glass);
    background: rgba(0, 0, 0, 0.35);
    cursor: text;
}

/* Visible inline mount error shown when Stripe fails to initialize/mount */
.card-mount-error {
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 20, 147, 0.06);
    color: #ff2da1;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-errors {
    min-height: 1.25rem;
    margin-top: 0.5rem;
    color: #ff6b6b;
}

.payment-loading-overlay {
    display: flex;
    z-index: 10;
    position: absolute;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    inset: 0;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.75);
}

:root.light-mode .order-summary {
    color: #111111;
}

:root.light-mode body .summary-details .text-muted {
    color: #666666;
}

:root.light-mode .summary-totals span,
:root.light-mode .summary-totals strong {
    color: #111111;
}

/* Enhanced Payment Page Styles - improved glassmorphism and layout */
.order-summary-card {
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 105, 180, 0.07);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 8px 30px rgba(16, 16, 16, 0.45);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.order-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(16, 16, 16, 0.6);
}

/* Order Items Details Toggle */
.order-summary-card .order-items-details {
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 105, 180, 0.1);
    border-radius: 8px;
}

.order-summary-card .order-items-details summary {
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    list-style: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.order-summary-card .order-items-details summary::-webkit-details-marker {
    display: none;
}

.order-summary-card .order-items-details summary:hover {
    background: rgba(255, 105, 180, 0.05);
}

.order-summary-card .order-items-details .toggle-icon {
    color: var(--neon-pink);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.order-summary-card .order-items-details[open] .toggle-icon {
    transform: rotate(90deg);
}

.order-summary-card .order-items-details .items-list {
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

html.light-mode .order-summary-card .order-items-details .items-list {
    background: rgba(255, 255, 255, 0.2);
    color: #000;
}

html.light-mode .order-summary-card .order-items-details .items-list strong {
    color: var(--neon-pink) !important;
}

html.light-mode .order-summary-card .order-items-details .items-list .text-muted {
    color: rgba(0, 0, 0, 0.6) !important;
}

.order-summary-card .summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 1rem;
    color: #fff;
}

.order-summary-card .summary-header h3 {
    margin: 0;
    color: var(--neon-pink);
    font-weight: 800;
    font-size: 1.05rem;
}

.order-summary-card .summary-sub {
    color: var(--off-white);
    font-size: 0.95rem;
    opacity: 0.9;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    gap: 0.75rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.02);
}

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

.order-item img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.order-item .meta {
    flex: 1;
    min-width: 0;
}

.order-item .meta .title {
    overflow: hidden;
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 0.98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-item .meta .meta-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.order-item .price {
    min-width: 85px;
    color: var(--electric-yellow);
    font-weight: 800;
    text-align: right;
}

.summary-totals {
    display: block;
    margin-top: 1rem;
}

.summary-totals .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    gap: 1rem;
}

.summary-totals .row .label {
    color: var(--off-white);
    font-weight: 600;
    opacity: 0.9;
}

.summary-totals .row .value {
    color: var(--electric-yellow);
    font-weight: 800;
}

.summary-totals .savings {
    color: rgba(204, 255, 0, 0.95);
    font-weight: 800;
}

.summary-totals .subtotal {
    color: rgba(255, 255, 255, 0.92);
}

.summary-total-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 20, 147, 0.06);
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.03), rgba(204, 255, 0, 0.02));
}

.summary-total-amount .label {
    color: var(--neon-pink);
    font-weight: 900;
    letter-spacing: 0.5px;
}

.summary-total-amount .amount {
    color: var(--electric-yellow);
    font-weight: 900;
    font-size: 1.45rem;
}

.payment-form-card {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
}

.payment-form-card .form-row {
    margin-bottom: 1rem;
}

.stripe-card-element {
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.btn-pay {
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--neon-pink), var(--electric-yellow));
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.18);
    color: var(--black);
    font-weight: 900;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.btn-pay:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(255, 20, 147, 0.22);
}

/* Responsive adjustments for compact screens */
@media (max-width: 991px) {
    .order-summary-card {
        padding: 1rem;
    }
    .order-item img {
        width: 48px;
        height: 48px;
    }
    .summary-total-amount .amount {
        font-size: 1.15rem;
    }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .order-summary-card {
        box-sizing: border-box;
        max-width: 100%;
        margin: 0;
        padding: 1rem 0.75rem;
        overflow-x: hidden;
        border-radius: 10px 10px 0 0;
    }

    /* Disable hover transform on mobile for seamless layout */
    .order-summary-card:hover {
        transform: none;
    }
}

/* Accessibility: focus states */
.order-summary-card:focus-within,
.payment-form-card:focus-within {
    outline: 3px solid rgba(255, 105, 180, 0.12);
}

/* Two-column layout for checkout on desktop */
.checkout-main {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .checkout-main {
        grid-template-columns: 380px 1fr;
        align-items: start;
    }

    .order-summary-card {
        position: sticky;
        top: 140px;
        height: auto;
        margin: 0; /* remove stacked spacing when side-by-side */
    }

    .order-summary-card,
    .payment-section {
        align-self: start;
    }
}

/* Edit discount button spacing */
.edit-discount-btn {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0.6rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    vertical-align: middle;
}

/* Helper: align amount with inline edit button */
.amount-with-edit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Glassmorphic Card for Card Information (override pink border) */
.payment-section .form-section {
    margin-bottom: 0.5rem; /* reduce spacing below the card so security notice sits closer */
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 8px 30px rgba(16, 16, 16, 0.45);
}

.payment-section .form-section legend {
    padding: 0 0.5rem;
    color: var(--neon-pink);
    font-weight: 700;
}

/* Light-mode tweak: keep it subtle, avoid vibrant pink border */
:root.light-mode .payment-section .form-section {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

:root.light-mode .cart-summary .checkout-btn {
    border: none;
    background: linear-gradient(135deg, #ff2da1, #ff007a);
    box-shadow: 0 12px 30px rgba(255, 45, 161, 0.35);
    color: white;
}

:root.light-mode .cart-summary .checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(255, 45, 161, 0.45);
}

/* Light Mode - Cart Card Variant & Price Text */
:root.light-mode .cart-card-variant {
    color: rgba(0, 0, 0, 0.6);
}

:root.light-mode .variant-dot {
    color: rgba(0, 0, 0, 0.3);
}

:root.light-mode .cart-card-price {
    color: #222;
}

:root.light-mode .total-label {
    color: rgba(0, 0, 0, 0.5);
}

:root.light-mode .subtotal-label {
    color: rgba(0, 0, 0, 0.6);
}

:root.light-mode .trust-item {
    color: rgba(0, 0, 0, 0.5);
}

:root.light-mode .summary-trust {
    border-top-color: rgba(0, 0, 0, 0.08);
}

:root.light-mode .cart-summary {
    border-color: var(--neon-pink);
    background-color: #fafafa;
}

:root.light-mode .summary-totals .subtotal {
    color: #222;
}

:root.light-mode .summary-label {
    color: #333;
}

:root.light-mode .shipping-cost,
:root.light-mode .tax-cost {
    color: rgba(0, 0, 0, 0.6);
}

/* Payment Page - Back to Shipping Button */
:root.light-mode .payment-btn.btn-pink {
    padding: 0.5rem 2rem;
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
    color: #fff;
    font-weight: 800;
}

:root.light-mode .payment-btn.btn-pink:hover {
    border-color: #ff69b4;
    background-color: #ff69b4;
    color: #fff;
}

@media (max-width: 768px) {
    :root.light-mode .payment-btn.btn-pink {
        padding: 0.95rem 1.25rem;
        font-size: 1rem;
    }
}

/* Light Mode - Links */
:root.light-mode a:hover {
    color: #b8d400;
}

:root.light-mode .breadcrumb-item a,
:root.light-mode .cart-item-name a {
    color: #e71f7f;
}

:root.light-mode .breadcrumb-item a:hover,
:root.light-mode .cart-item-name a:hover {
    color: #b8d400;
}

/* Light Mode - Footer */
:root.light-mode .footer {
    background: linear-gradient(
        180deg,
        rgba(245, 245, 245, 0.98) 0%,
        rgba(250, 250, 250, 0.98) 100%
    );
}

:root.light-mode .footer p {
    color: #555;
}

:root.light-mode .footer a {
    color: #333;
}

:root.light-mode .footer a:hover {
    color: #e71f7f;
}

:root.light-mode .footer hr {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(231, 31, 127, 0.3) 20%,
        rgba(231, 31, 127, 0.3) 80%,
        transparent 100%
    );
}

:root.light-mode .social-icons a {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    color: #555;
}

:root.light-mode .social-icons a:hover {
    border-color: rgba(231, 31, 127, 0.3);
    background: rgba(231, 31, 127, 0.1);
    color: #e71f7f;
}

/* Light Mode - Payment Icons */
:root.light-mode .payment-icon {
    color: rgba(0, 0, 0, 0.6);
}

:root.light-mode .payment-icon:hover {
    color: var(--neon-pink);
}

:root.light-mode .footer-payment-methods .payment-label {
    color: rgba(0, 0, 0, 0.5);
}

/* Light Mode - Order Totals Table */
:root.light-mode .order-totals td {
    color: #222;
}

:root.light-mode .order-totals .text-muted,
:root.light-mode .order-totals tbody tr td.text-muted {
    color: rgba(0, 0, 0, 0.6);
}

:root.light-mode .order-totals .total-row td {
    color: #222;
}

:root.light-mode .order-totals .total-amount {
    color: var(--neon-pink);
}

:root.light-mode .order-totals tbody tr {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

:root.light-mode .order-totals tbody tr:last-child {
    border-bottom-color: var(--neon-pink);
}

/* Light Mode - Order Summary Card Text */
:root.light-mode .order-summary-card .summary-sub {
    color: #333;
}

:root.light-mode .order-item .meta .title {
    color: var(--neon-pink);
}

:root.light-mode .order-item .meta .meta-sub {
    color: rgba(0, 0, 0, 0.6);
}

:root.light-mode .order-item .price {
    color: #222;
}

:root.light-mode .summary-totals .row .label {
    color: #333;
}

:root.light-mode .summary-totals .row .value {
    color: #222;
}

:root.light-mode .summary-total-amount {
    border-color: rgba(255, 20, 147, 0.15);
    background: rgba(255, 20, 147, 0.05);
}

:root.light-mode .summary-total-amount .amount {
    color: var(--neon-pink);
}

/* Light Mode - Order Items Details Toggle */
:root.light-mode .order-summary-card .order-items-details {
    border-color: rgba(255, 105, 180, 0.15);
}

:root.light-mode .order-summary-card .order-items-details summary {
    background: rgba(0, 0, 0, 0.02);
}

:root.light-mode .order-summary-card .order-items-details summary:hover {
    background: rgba(255, 105, 180, 0.08);
}

:root.light-mode .order-summary-card .order-items-details .items-list {
    background: rgba(0, 0, 0, 0.03);
}

/* Light Mode - Profile Page */
:root.light-mode .profile-card {
    border: 1px solid #e2e2e2;
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

:root.light-mode .profile-card:hover {
    border-color: #d4d4d4;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

:root.light-mode .profile-card h2 {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: #e71f7f;
}

:root.light-mode .info-group label {
    color: #666666;
}

:root.light-mode .info-group p {
    color: #222222;
}

:root.light-mode .profile-form-input {
    border-color: #dcdcdc;
    background: white;
    color: #222222;
}

:root.light-mode .profile-form-input:focus {
    border-color: #e71f7f;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(231, 31, 127, 0.1);
}

:root.light-mode .profile-form-input::placeholder {
    color: #999999;
}

:root.light-mode .profile-form-input.has-value {
    border-color: #88cc00;
    background: rgba(136, 204, 0, 0.05);
    box-shadow: 0 0 0 0.1rem rgba(136, 204, 0, 0.15);
}

:root.light-mode .table-responsive .order-table th {
    background-color: #f5f5f5;
    color: #e71f7f;
}

:root.light-mode .table-responsive .order-table thead {
    border-bottom-color: rgba(231, 31, 127, 0.2);
    background-color: #f9f9f9;
}

:root.light-mode .table-responsive .order-table tbody tr {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

:root.light-mode .table-responsive .order-table tbody tr:hover {
    background-color: #fff5f8;
}

:root.light-mode .table-responsive .order-table td {
    color: #222222;
}

:root.light-mode .table-responsive .order-link {
    color: #e71f7f;
}

:root.light-mode .table-responsive .order-link:hover {
    color: #b8d400;
}

/* Light Mode - Address Book */
:root.light-mode .address-card-item {
    border-color: #e5e5e5;
    background: #fafafa;
}

:root.light-mode .address-card-item:hover {
    border-color: #d4d4d4;
    background: #f5f5f5;
}

:root.light-mode .address-card-item.default-address {
    border-color: rgba(231, 31, 127, 0.3);
    background: rgba(231, 31, 127, 0.05);
}

:root.light-mode .address-header {
    border-bottom-color: #e5e5e5;
}

:root.light-mode .address-title {
    color: #222222;
}

:root.light-mode .btn-icon {
    color: #e71f7f;
}

:root.light-mode .btn-icon:hover {
    color: #b8d400;
}

:root.light-mode .address-content {
    color: #444444;
}

:root.light-mode .address-content i {
    color: #e71f7f;
}

:root.light-mode .address-footer {
    border-top-color: #e5e5e5;
}

/* Light Mode - Saved Address Cards */
:root.light-mode .saved-addresses-section h5,
:root.light-mode .saved-addresses-section h4 {
    color: #e71f7f;
}

:root.light-mode .saved-address-card {
    border-color: #e5e5e5;
    background: #fafafa;
}

:root.light-mode .saved-address-card:hover {
    border-color: rgba(231, 31, 127, 0.5);
    background: #f5f5f5;
}

:root.light-mode .saved-address-card.selected {
    border-color: #e71f7f;
    background: rgba(231, 31, 127, 0.08);
}

:root.light-mode .address-card-header,
:root.light-mode .address-card-body {
    color: #222222;
}

/* Confirmation Modal - Styled like navbar dropdown */
.confirmation-modal-overlay {
    display: flex;
    z-index: 10000;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.7);
}

.confirmation-modal {
    min-width: 320px;
    max-width: 400px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1b3d 50%, #1a0a1e 100%);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 20, 147, 0.2);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirmation-message {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.confirmation-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.confirmation-buttons .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* OK Button - Pink like menu hover */
.confirmation-btn-ok {
    background: var(--neon-pink);
    color: white;
}

.confirmation-btn-ok:hover {
    transform: translateY(-1px);
    background: rgba(255, 20, 147, 0.85);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
    color: white;
}

/* Cancel Button - Subtle like dropdown item */
.confirmation-btn-cancel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

.confirmation-btn-cancel:hover {
    border-color: rgba(255, 20, 147, 0.3);
    background: rgba(255, 20, 147, 0.15);
    color: var(--neon-pink);
}

/* Light mode styles */
:root.light-mode .confirmation-modal {
    border: 1px solid rgba(255, 20, 147, 0.2);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

:root.light-mode .confirmation-message {
    color: #333333;
}

:root.light-mode .confirmation-btn-ok {
    background: var(--neon-pink);
    color: white;
}

:root.light-mode .confirmation-btn-ok:hover {
    background: #ff1493;
}

:root.light-mode .confirmation-btn-cancel {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    color: #333333;
}

:root.light-mode .confirmation-btn-cancel:hover {
    border-color: var(--neon-pink);
    background: var(--neon-pink);
    color: white;
}

.checkout-btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   STANDARDIZED CHECKOUT STYLING
   ============================================ */

/* Primary checkout buttons - consistent across all checkout pages */
.btn-checkout-primary {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius-glass);
    background: linear-gradient(135deg, var(--neon-pink) 0%, #ff6b9d 100%);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.btn-checkout-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
    color: white;
}

.btn-checkout-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.btn-checkout-primary.disabled,
.btn-checkout-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* Secondary checkout buttons */
.btn-checkout-secondary {
    padding: 0.875rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-glass);
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-checkout-secondary:hover {
    border-color: var(--neon-pink);
    background: rgba(255, 255, 255, 0.1);
    color: var(--neon-pink);
}

/* Standardized checkout form error styling */
.checkout-form .form-error-text,
.checkout-page .form-error-text,
.payment-form .form-error-text {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    border-left: 3px solid #ff6b6b;
    border-radius: 6px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    font-size: 0.85rem;
}

.checkout-form .form-error-text i,
.checkout-page .form-error-text i,
.payment-form .form-error-text i {
    flex-shrink: 0;
}

/* Checkout alert styling */
.checkout-page .alert-danger {
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.15);
    color: #ff8a8a;
}

.checkout-page .alert-success {
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-left: 4px solid #28a745;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.15);
    color: #7ee89a;
}

.checkout-page .alert-warning {
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.15);
    color: #ffe066;
}

/* Checkout Payment Page - Form Actions */
.form-actions a,
.payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 1rem 2rem;
    gap: 0.5rem;
    border: 2px solid #555;
    border-radius: 12px;
    background-color: var(--bg-glass-light);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    color: var(--off-white);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.form-actions a:hover,
.payment-btn:hover {
    transform: translateY(-1px);
    border-color: var(--neon-pink);
    background-color: var(--border-glass-color);
    box-shadow: 0 10px 24px rgba(255, 20, 147, 0.25);
    color: var(--neon-pink);
}

.form-actions a:active,
.payment-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(255, 20, 147, 0.2);
}

:root.light-mode .form-actions a,
:root.light-mode .payment-btn {
    border-color: #ddd;
    background-color: rgba(0, 0, 0, 0.02);
    color: #222;
}

:root.light-mode .form-actions a:hover,
:root.light-mode .payment-btn:hover {
    border-color: var(--neon-pink);
    background-color: #f5f5f5;
    box-shadow: 0 10px 22px rgba(255, 20, 147, 0.22);
    color: var(--neon-pink);
}

:root.light-mode .form-actions a:active,
:root.light-mode .payment-btn:active {
    box-shadow: 0 6px 16px rgba(255, 20, 147, 0.15);
}

/* Hide Stripe Autofill Link */
.StripeElement__iframe[title*="Autofill"],
.autofill-button {
    display: none;
}

.checkout-cta .checkout-helper {
    margin-top: 8px;
}

.primary-checkout {
    min-width: 220px;
    text-align: center;
}

/* Checkout spacing centralized in components.css */

.checkout-progress {
    margin-bottom: 24px;
    padding: 12px 16px;
    gap: 10px;
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.checkout-progress,
.progress-step {
    display: flex;
    align-items: center;
}

.progress-step {
    flex-direction: column;
    min-width: 90px;
    gap: 6px;
}

.progress-circle {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--off-white);
    font-weight: 600;
}

.progress-label {
    color: var(--off-white);
    font-size: 0.85rem;
}

.progress-step-done .progress-circle {
    border-color: var(--electric-yellow);
    background: rgba(204, 255, 0, 0.12);
    color: var(--electric-yellow);
}

.progress-step-current .progress-circle {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.12);
    color: var(--neon-pink);
}

.progress-step-upcoming .progress-circle {
    opacity: 0.6;
}

.progress-divider {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-glass-color), rgba(255, 255, 255, 0.02));
}

.checkout-header .eyebrow {
    margin-bottom: 12px;
    color: #aaaaaa;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-header .page-title {
    margin-bottom: 1rem;
}

.panel {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.panel-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass-color);
}

.panel-title {
    font-size: 1.2rem;
}

.checkout-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--off-white);
}

.checkout-form label {
    color: #f5f5f5;
    font-weight: 700;
}

.checkout-form .form-control::placeholder {
    color: #b8b8b8;
    opacity: 0.95;
}

.checkout-form .form-control:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.15);
}

.order-summary .summary-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    gap: 12px;
}

.summary-item {
    display: flex;
    padding: 10px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--border-radius-glass);
    background: var(--bg-glass-light);
}

.summary-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.summary-details .summary-name {
    margin-bottom: 4px;
    font-size: 1rem;
}

.summary-price {
    font-weight: 600;
}

.summary-totals {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--border-radius-glass);
    background: rgba(255, 255, 255, 0.04);
}

.summary-totals span,
.summary-totals strong {
    color: #f5f5f5;
}

.summary-divider {
    height: 1px;
    margin: 12px 0;
    background: var(--border-glass-color);
}

/* Form Styling & Validation */
.checkout-form label {
    display: block;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    padding: 10px 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
    transition: all 0.2s ease;
}

.form-control.has-value,
.form-select.has-value {
    border-color: rgba(204, 255, 0, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--neon-pink);
    outline: none;
    background: var(--border-glass-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.15);
    color: #ffffff;
}

.form-control::placeholder {
    color: #b8b8b8;
    opacity: 0.95;
}

.form-error-text {
    margin-top: 6px;
    gap: 6px;
    color: var(--neon-pink);
    font-size: 0.875rem;
}

.form-error-text,
.form-error-text i {
    display: flex;
    align-items: center;
}

.form-error-text i {
    flex-shrink: 0;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--neon-pink);
    color: white;
    font-size: 0.65rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
}

.form-check-input:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.15);
}

.form-check-label {
    margin-bottom: 0;
    color: #f0f0f0;
    cursor: pointer;
}

.alert {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff8080;
}

.alert-heading {
    margin-bottom: 8px;
    color: #ff6b6b;
    font-weight: 700;
    font-size: 1rem;
}

.checkout-helper {
    margin-top: 12px;
    color: #ffffff;
    text-align: center;
}

/* Light Mode Form Styles */
:root.light-mode .form-control,
:root.light-mode .form-select {
    border-color: #dcdcdc;
    background: white;
    color: #111111;
}

:root.light-mode .form-control:focus,
:root.light-mode .form-select:focus {
    border-color: var(--neon-pink);
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.15);
}

:root.light-mode .form-control::placeholder {
    color: #8a8a8a;
}

:root.light-mode .form-error-text {
    color: var(--neon-pink);
}

:root.light-mode .form-check-input {
    border-color: #ccc;
    background: white;
}

:root.light-mode .form-check-input:checked {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
}

/* form-check-label color consolidated into central light-mode rule */

:root.light-mode .alert {
    border-color: rgba(211, 47, 47, 0.25);
    background: rgba(211, 47, 47, 0.08);
    color: #d32f2f;
}

:root.light-mode .alert-heading {
    color: #c62828;
}

:root.light-mode .checkout-helper {
    color: #222222;
    text-align: center;
}

@media (max-width: 768px) {
    .cart-top-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-progress {
        flex-wrap: wrap;
        margin-top: 100px;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }
}

/* Order Confirmation Page */
.order-success-header {
    margin-bottom: 40px;
    padding: 40px 20px;
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 12px;
    background: rgba(204, 255, 0, 0.08);
    text-align: center;
}

.success-icon {
    margin-bottom: 16px;
    color: var(--electric-yellow);
    font-size: 60px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.order-number-display {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-glass);
    background: rgba(255, 255, 255, 0.05);
}

.order-number-display .label {
    color: #d0d0d0 !important;
    font-size: 0.9rem;
}

.order-number-display .number {
    color: var(--neon-pink) !important;
    font-weight: 800;
    font-size: 24px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    padding: 12px;
    gap: 16px;
    border: 1px solid var(--border-glass-color);
    border-radius: var(--border-radius-glass);
    background: rgba(255, 255, 255, 0.02);
}

.item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-name {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 1rem;
}

.item-specs {
    margin: 0;
    color: #d0d0d0;
    font-size: 0.85rem;
}

.item-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.unit-price {
    color: #d0d0d0;
    font-size: 0.85rem;
}

.total-price {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.shipping-address-display {
    padding: 16px;
    border: 1px solid var(--border-glass-color);
    border-radius: var(--border-radius-glass);
    background: rgba(255, 255, 255, 0.04);
    line-height: 1.7;
}

.shipping-address-display p {
    margin: 0 0 8px 0;
    color: #f5f5f5;
}

.shipping-address-display p:last-child {
    margin-bottom: 0;
}

.shipping-address-display strong {
    color: #ffffff;
}

.order-status-badge {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 10px;
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 8px;
    background: rgba(204, 255, 0, 0.1);
    color: var(--electric-yellow);
    font-size: 0.9rem;
}

.order-status-badge i {
    font-size: 1.2rem;
}

.total-amount {
    color: var(--neon-pink);
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    gap: 12px;
}

.step-number {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    background: rgba(255, 20, 147, 0.15);
    color: var(--neon-pink);
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    margin-bottom: 4px;
    color: #f5f5f5;
}

.step-content p {
    margin: 0;
    color: #d0d0d0;
    font-size: 0.9rem;
}

/* Light Mode Confirmation */
:root.light-mode .order-success-header {
    border-color: rgba(231, 31, 127, 0.2);
    background: rgba(231, 31, 127, 0.08);
}

:root.light-mode .success-icon {
    color: var(--electric-yellow);
}

:root.light-mode .order-number-display {
    border-color: #e2e2e2;
    background: white;
}

:root.light-mode .order-number-display .label {
    color: #666;
}

:root.light-mode .order-number-display .number {
    color: var(--neon-pink);
}

:root.light-mode .order-item {
    border-color: #e4e4e4;
    background: #fafafa;
}

:root.light-mode .item-specs {
    color: #666;
}

:root.light-mode .total-price {
    color: #111111;
}

:root.light-mode .shipping-address-display {
    border-color: #e2e2e2;
    background: #fbfbfb;
}

:root.light-mode .shipping-address-display p,
:root.light-mode .shipping-address-display strong {
    color: #111111;
}

/* Horizontal Progress Bar */
.progress-bar-wrapper.horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 0;
}

.progress-bar-wrapper.horizontal .progress-step {
    display: flex;
    position: relative;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
}

.progress-bar-wrapper.horizontal .step-circle {
    display: flex;
    z-index: 2;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 20, 147, 0.3);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.progress-bar-wrapper.horizontal .progress-step.completed .step-circle {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
    color: white;
}

.progress-bar-wrapper.horizontal .progress-step.active .step-circle {
    transform: scale(1.1);
    border-color: var(--electric-yellow);
    background-color: var(--electric-yellow);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.6);
    color: var(--black);
}

.progress-bar-wrapper.horizontal .step-label {
    margin-top: 0.75rem;
    color: var(--off-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

.progress-bar-wrapper.horizontal .progress-step.completed .step-label {
    color: var(--neon-pink);
}

.progress-bar-wrapper.horizontal .progress-step.active .step-label {
    color: var(--electric-yellow);
    font-weight: 700;
}

.progress-bar-wrapper.horizontal .progress-line {
    z-index: 1;
    flex: 1;
    min-width: 60px;
    height: 3px;
    margin: 0 -10px;
    margin-bottom: 35px;
    background-color: rgba(255, 20, 147, 0.2);
    transition: all 0.3s ease;
}

.progress-bar-wrapper.horizontal .progress-line.completed {
    background-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .progress-bar-wrapper.horizontal {
        max-width: 100%;
        padding: 0 1rem;
    }

    .progress-bar-wrapper.horizontal .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .progress-bar-wrapper.horizontal .step-label {
        font-size: 0.75rem;
    }

    .progress-bar-wrapper.horizontal .progress-line {
        min-width: 30px;
        margin-bottom: 30px;
    }
}

/* Progress Container */
.progress-container {
    padding-bottom: 1.5rem;
}

.progress-container.with-top-padding {
    padding-top: 6rem;
}

:root.light-mode .order-status-badge {
    border-color: rgba(200, 255, 0, 0.25);
    background: rgba(200, 255, 0, 0.1);
    color: #998800;
}

:root.light-mode .step-content strong {
    color: #111111;
}

:root.light-mode .step-content p {
    color: #555;
}

/* SAVED PAYMENT METHODS STYLES */
.saved-payment-methods-section {
    margin-bottom: 3rem;
    padding: 2rem;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    background-color: rgba(255, 20, 147, 0.05);
}

.saved-payment-methods-section h4 {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.75rem;
    color: var(--neon-pink);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.saved-payment-methods-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    gap: 1.25rem;
}

.saved-payment-method-item {
    position: relative;
    padding: 1.5rem;
    border: 2px solid rgba(255, 20, 147, 0.2);
    border-radius: 6px;
    background-color: var(--charcoal);
    transition: all 0.3s ease;
}

.saved-payment-method-item:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.2);
}

.saved-payment-method-item input[type="radio"] {
    margin-right: 1rem;
}

.saved-payment-method-item input[type="radio"]:checked ~ .payment-method-details {
    color: var(--neon-pink);
}

.saved-payment-method-item input[type="radio"]:checked + label {
    color: var(--neon-pink);
    font-weight: 700;
}

.payment-method-label {
    display: flex;
    flex: 1;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.payment-method-label input[type="radio"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--neon-pink);
    cursor: pointer;
}

.payment-method-details {
    margin-left: 2.5rem;
    color: var(--off-white);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.card-display-name {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    font-weight: 700;
}

.card-expiry {
    margin-left: 1.5rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.default-badge {
    display: inline-block;
    margin-left: auto;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    background-color: var(--neon-pink);
    color: var(--black);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.use-new-card-option {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 20, 147, 0.2);
}

.use-new-card-label {
    color: var(--off-white);
    font-weight: 600;
}

/* Save Payment Method Section */
.save-payment-method-section {
    margin-bottom: 3rem;
    padding: 2rem;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    background-color: rgba(255, 20, 147, 0.05);
}

.save-payment-method-section legend {
    margin-bottom: 2rem;
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.save-payment-method-section .form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1.25rem;
}

.save-payment-method-section .form-check-input {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 0.25rem;
    border: 2px solid var(--neon-pink);
    background-color: var(--black);
    accent-color: var(--neon-pink);
    cursor: pointer;
}

.save-payment-method-section .form-check-input:checked {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
}

.save-payment-method-section .form-check-label {
    margin-bottom: 0;
    padding-top: 0.2rem;
    color: var(--off-white);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
}

.save-card-info {
    display: flex;
    align-items: flex-start;
    margin-top: 1.75rem;
    margin-left: 3.5rem;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.save-card-info i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--neon-pink);
}

/* Saved Payment Cards Styling */
.saved-cards-heading {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.saved-payment-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-card-item {
    display: flex;
    position: relative;
    align-items: center;
    margin-bottom: 0;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    border: 2px solid var(--border-glass-color);
    border-radius: 12px;
    background-color: var(--bg-glass-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-card-item:hover {
    transform: translateX(4px);
    border-color: rgba(231, 31, 127, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
}

.payment-card-item:has(.payment-radio:checked) {
    border-color: var(--neon-pink);
    background-color: rgba(231, 31, 127, 0.1);
    box-shadow: 0 0 0 3px rgba(231, 31, 127, 0.2);
}

.payment-card-item.default-card {
    border-color: rgba(231, 31, 127, 0.3);
}

.payment-radio {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--neon-pink);
    cursor: pointer;
}

.payment-card-content {
    flex: 1;
}

.card-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    color: var(--neon-pink);
    font-size: 2.5rem;
}

.card-number {
    margin-bottom: 0.25rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.card-expiry {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 0.85rem;
}

.payment-card-item .badge {
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

#useNewCardBtn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#useNewCardBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 31, 127, 0.3);
}

#newCardFormSection .alert {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Light Mode - Saved Payment Cards */
:root.light-mode .payment-card-item {
    border-color: rgba(231, 31, 127, 0.2);
    background-color: #ffffff;
}

:root.light-mode .payment-card-item:hover {
    border-color: rgba(231, 31, 127, 0.5);
    background-color: rgba(231, 31, 127, 0.03);
}

:root.light-mode .payment-card-item:has(.payment-radio:checked) {
    border-color: #e71f7f;
    background-color: rgba(231, 31, 127, 0.08);
    box-shadow: 0 0 0 3px rgba(231, 31, 127, 0.15);
}

:root.light-mode .payment-card-item.default-card {
    border-color: rgba(231, 31, 127, 0.4);
}

:root.light-mode .card-number {
    color: #1a1a1a;
}

:root.light-mode .card-expiry {
    color: #666666;
}

:root.light-mode #newCardFormSection .alert {
    border-color: rgba(231, 31, 127, 0.3);
    background-color: rgba(231, 31, 127, 0.08);
    color: #1a1a1a;
}

/* Pagination Styling */
.pagination {
    padding-top: 2rem;
    gap: 0.25rem;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-item .page-link {
    min-width: 45px;
    padding: 0.6rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    transform: scale(1.05);
    border-color: var(--neon-pink);
    background-color: rgba(231, 31, 127, 0.15);
    color: var(--neon-pink);
}

.pagination .page-item.active .page-link {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(231, 31, 127, 0.4);
    color: #000;
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
    opacity: 0.4;
}

/* Light Mode Pagination */
:root.light-mode .pagination .page-item .page-link {
    border-color: rgba(231, 31, 127, 0.25);
    background-color: #ffffff;
    color: #333;
}

:root.light-mode .pagination .page-item .page-link:hover {
    border-color: #e71f7f;
    background-color: rgba(231, 31, 127, 0.1);
    color: #e71f7f;
}

:root.light-mode .pagination .page-item.active .page-link {
    border-color: #e71f7f;
    background-color: #e71f7f;
    box-shadow: 0 0 15px rgba(231, 31, 127, 0.3);
    color: #fff;
}

:root.light-mode .pagination .page-item.disabled .page-link {
    background-color: #f5f5f5;
    color: #999;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    border-radius: var(--border-radius-glass);
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-glass);
    background: var(--neon-pink);
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1493;
}

/* Light Mode Scrollbar */
:root.light-mode ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

:root.light-mode ::-webkit-scrollbar-thumb {
    border: 2px solid #ffffff;
    background: #e71f7f;
}

:root.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #c91a6a;
}

/* Table responsive container scrollbar */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    border-radius: 4px;
    background: var(--bg-glass-light);
}

.table-responsive::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(231, 31, 127, 0.6);
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

:root.light-mode .save-payment-method-section .form-check-input:checked {
    border-color: #e71f7f;
    background-color: #e71f7f;
}

/* ORDER DETAIL PAGE STYLES */
.order-detail-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 5rem;
}

@media (min-width: 768px) and (max-width: 991px) {
    .order-detail-page {
        padding-top: 105px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .order-detail-page {
        padding-top: 95px;
    }
}

@media (max-width: 767px) {
    .order-detail-page {
        padding-top: 95px;
    }
}

.order-detail-header {
    margin-bottom: 2rem;
}

.order-detail-subtitle {
    margin: 0;
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 0.95rem;
}

.order-detail-info {
    margin: 0;
    color: var(--gray);
    font-size: 0.85rem;
}

.order-detail-info i {
    margin-right: 0.3rem;
    color: var(--neon-pink);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.header-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.order-status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 3rem;
    gap: 0.5rem;
}

.status-card {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 1rem;
    border: 0.2px solid rgba(255, 20, 147, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 20, 145, 0.234);
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    border-color: var(--neon-pink);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.2);
}

.status-icon {
    flex-shrink: 0;
    color: var(--neon-pink);
    font-size: 2rem;
}

.status-info {
    flex: 1;
}

.status-label {
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-value {
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.status-value.status-delivered {
    color: #00d26a;
}

.status-value.status-shipped {
    color: #0dcaf0;
}

.status-value.status-processing {
    color: #ffb800;
}

.status-value.status-cancelled {
    color: #ff4444;
}

.status-value.payment-completed {
    color: #00d26a;
}

.status-value.payment-failed {
    color: #ff4444;
}

.tracking-number {
    font-size: 0.95rem;
    font-family: "Courier New", monospace;
}

.order-section {
    margin-bottom: 2rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.order-item-card {
    display: grid;
    /* image | details | right-column (price / totals) */
    grid-template-columns: 100px 1fr 220px;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.order-item-card:hover {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.05);
}

.item-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray);
}

.placeholder-image i {
    margin-bottom: 0.25rem;
}

.placeholder-image p {
    margin: 0;
    font-size: 0.7rem;
}

.item-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 0.15rem;
}

.item-name {
    display: -webkit-box;
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-name:hover {
    color: var(--electric-yellow);
}

.item-name,
.item-specs {
    margin-bottom: 0.25rem;
}

.item-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.item-specs .spec {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.item-specs .spec strong {
    margin-right: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
}

.item-price {
    color: var(--off-white);
    font-weight: 600;
    font-size: 1rem;
    text-align: right;
    justify-self: end;
}

.item-quantity {
    color: var(--off-white);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    text-align: right;
}

.item-quantity {
    color: var(--off-white);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.total-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.total-price {
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 1.1rem;
}

.address-card {
    padding: 0.5rem;
}

.address-name {
    margin-bottom: 0.75rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.address-line {
    margin-bottom: 0.25rem;
    color: var(--gray);
}

.address-phone {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: var(--gray);
}

.address-phone i {
    margin-right: 0.5rem;
    color: var(--neon-pink);
}

.summary-breakdown {
    padding: 0.5rem;
}

.summary-divider {
    margin: 1rem 0;
    border-color: rgba(255, 20, 147, 0.3);
}

.support-card {
    padding: 2rem;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    background-color: rgba(255, 20, 147, 0.05);
    text-align: center;
}

.support-card i {
    color: var(--neon-pink);
}

.support-card h4 {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-weight: 700;
}

.support-card p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

/* Responsive Order Detail */
@media (max-width: 768px) {
    .order-status-bar {
        grid-template-columns: 1fr;
    }

    /* Mobile Card - Compact horizontal layout matching cart */
    .order-item-card {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "img info"
            "img controls";
        padding: 0.75rem;
        gap: 0.5rem 0.75rem;
    }

    .item-image {
        grid-area: img;
        width: 60px;
        height: 60px;
        border-radius: 6px;
    }

    .item-details {
        grid-area: info;
        gap: 0.1rem;
    }

    .item-name {
        font-size: 0.8rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .item-name,
    .item-specs {
        margin-bottom: 0;
    }

    .item-specs {
        gap: 0.35rem;
        font-size: 0.72rem;
    }

    .item-specs .spec {
        font-size: 0.72rem;
    }

    .item-price {
        display: block;
        margin-top: 0.25rem;
        margin-bottom: 0;
        color: var(--neon-pink);
        font-weight: 600;
        font-size: 0.9rem;
        text-align: left;
    }

    .item-quantity {
        display: none;
    }

    .item-total {
        grid-area: controls;
        flex-direction: row;
        align-items: center;
        margin-top: 0;
        margin-left: auto;
        padding-top: 0;
        border-top: none;
        gap: 0.35rem;
    }

    .item-total .total-label {
        display: none;
    }

    .total-label {
        font-size: 0.65rem;
    }

    .total-price {
        font-size: 0.95rem;
    }

    .header-actions {
        width: 100%;
        margin-top: 1rem;
    }

    .header-actions .btn {
        flex: 1;
    }

    /* Style buttons like the filter button from products management */
    /* More specific selectors first to override .status-update-btn rules in cart.css */
    .status-update-form .status-update-btn,
    .tracking-update-form .tracking-update-btn,
    .reorder-section .reorder-btn,
    .status-update-btn,
    .tracking-update-btn,
    .reorder-btn {
        display: block;
        width: auto;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        font-size: 0.9rem;
    }
}

/* Light Mode - Order Detail */
:root.light-mode .status-card,
:root.light-mode .order-section,
:root.light-mode .address-card,
:root.light-mode .summary-breakdown,
:root.light-mode .order-item-card {
    border-color: rgba(231, 31, 127, 0.2);
    background-color: white;
}

:root.light-mode .status-card:hover,
:root.light-mode .order-item-card:hover {
    border-color: #e71f7f;
}

:root.light-mode .status-icon {
    color: #e71f7f;
}

:root.light-mode .status-label,
:root.light-mode .item-specs .spec,
:root.light-mode .item-price,
:root.light-mode .address-line,
:root.light-mode .address-phone,
:root.light-mode .support-card p {
    color: #666666;
}

:root.light-mode .status-value,
:root.light-mode .item-name,
:root.light-mode .address-name,
:root.light-mode .summary-label,
:root.light-mode .summary-value,
:root.light-mode .support-card h4 {
    color: #1a1a1a;
}

/* Light Mode - Page Titles */
:root.light-mode .page-title,
:root.light-mode .products-header h1,
:root.light-mode .search-title,
:root.light-mode .product-title,
:root.light-mode .auth-title,
:root.light-mode .error-title,
:root.light-mode .hero-title {
    background: linear-gradient(135deg, var(--neon-pink), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:root.light-mode .total-price {
    color: #e71f7f;
}

:root.light-mode .support-card {
    border-color: #e71f7f;
    background-color: rgba(231, 31, 127, 0.05);
}

/* Light Mode - Order Detail Text */
:root.light-mode .support-card i,
:root.light-mode .address-phone i,
:root.light-mode .order-detail-subtitle {
    color: #e71f7f;
}

:root.light-mode .order-detail-info {
    color: #666666;
}

/* Back to Top Button */
.back-to-top-btn {
    display: none;
    z-index: 1050;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius-glass);
    background: transparent;
    color: var(--neon-pink);
    font-size: 0.8rem;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top-btn.show {
    display: flex;
    animation: slideUp 0.3s ease;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.8));
}

.back-to-top-pug {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    filter: drop-shadow(0 0 2px white) drop-shadow(0 0 8px rgba(255, 20, 147, 0.6));
    transition: all 0.3s ease;
}

.back-to-top-btn:hover .back-to-top-pug {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 1));
}

.back-to-top-arrow {
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, var(--neon-pink) 50%, var(--electric-yellow) 100%);
    font-size: 1rem;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.5));
    transition: all 0.3s ease;
}

.back-to-top-btn:hover .back-to-top-arrow {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8));
}

.back-to-top-text {
    background: linear-gradient(135deg, #fff 0%, var(--neon-pink) 50%, var(--electric-yellow) 100%);
    font-weight: bold;
    font-size: 0.7rem;
    letter-spacing: 1px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.5));
    transition: all 0.3s ease;
}

.back-to-top-btn:hover .back-to-top-text {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8));
}

.back-to-top-btn:active {
    transform: translateY(-1px);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Light Mode - Back to Top Button */
/* no-op: gradient text handled elsewhere - keep selector intentionally empty to preserve specificity */

:root.light-mode .back-to-top-btn:hover {
    filter: drop-shadow(0 0 15px rgba(231, 31, 127, 0.8));
}

:root.light-mode .back-to-top-pug {
    filter: drop-shadow(0 0 8px rgba(255, 45, 161, 0.6));
}

:root.light-mode .back-to-top-btn:hover .back-to-top-pug {
    filter: drop-shadow(0 0 15px rgba(255, 45, 161, 1));
}

:root.light-mode .back-to-top-arrow {
    filter: drop-shadow(0 0 10px rgba(231, 31, 127, 0.5));
}

:root.light-mode .back-to-top-btn:hover .back-to-top-arrow {
    filter: drop-shadow(0 0 20px rgba(231, 31, 127, 0.8));
}

:root.light-mode .back-to-top-text {
    filter: drop-shadow(0 0 10px rgba(231, 31, 127, 0.5));
}

:root.light-mode .back-to-top-btn:hover .back-to-top-text {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px rgba(231, 31, 127, 0.8));
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top-btn {
        z-index: 900;
        padding: 8px;
        font-size: 0.7rem;
    }

    .back-to-top-pug {
        width: 42px;
        height: 42px;
    }

    .back-to-top-arrow {
        font-size: 0.9rem;
    }

    .back-to-top-text {
        font-size: 0.6rem;
    }
}

:root.light-mode .order-detail-info i {
    color: #e71f7f;
}

/* PRODUCT FORM PAGE STYLES */
.product-form-container {
    padding-top: 6rem;
}

.relative-container {
    position: relative;
}

.hidden-error {
    display: none;
}

.image-preview-current {
    max-width: 200px;
    border: 1px solid var(--neon-pink);
    border-radius: 4px;
}

/* Utilities for product edit template (moved from inline styles) */
.svg-center {
    display: block;
    margin: auto;
}

.btn-ai {
    display: inline-block;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    box-shadow:
        0 6px 18px rgba(255, 20, 147, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
    color: #000;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        opacity 0.12s ease;
}

.btn.btn-ai:hover,
.btn-ai:hover {
    transform: translateY(-1px);
    box-shadow:
        0 10px 22px rgba(255, 20, 147, 0.16),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.btn.btn-ai:active,
.btn-ai:active {
    transform: translateY(0);
    box-shadow:
        0 6px 12px rgba(255, 20, 147, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.btn-ai:focus {
    outline: 3px solid rgba(255, 20, 147, 0.12);
    outline-offset: 2px;
}

.meta-char-count,
.story-char-count {
    color: var(--neon-pink);
    font-weight: 500;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
}

.clear-file-x {
    margin-left: 8px;
    color: #e74c3c;
    font-size: 1.3em;
    cursor: pointer;
    user-select: none;
}

.clear-file-x,
.formset-hidden {
    display: none;
}

.quill-editor-fixed-height {
    height: 200px;
}

.story-preview-box {
    min-height: 60px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #181818;
    color: #fff;
}

.loading-spinner-center {
    padding: 40px;
    text-align: center;
}

.spinner-border-pink {
    color: var(--neon-pink);
}

.modal-loading-text {
    margin-top: 15px;
    color: #fff;
}

.modal-helper-text {
    margin-bottom: 20px;
    color: #aaa;
    font-size: 14px;
}

.error-container {
    display: none;
    padding: 20px;
    color: #ff6b6b;
    text-align: center;
}

/* Description input styling (moved from inline) */
.desc-input {
    padding: 15px;
    border: 2px solid var(--electric-yellow);
    border-radius: 8px;
    background: #0a0a0a;
    color: #fff;
    font-size: 15px;
}

.ai-modal-content--wide {
    max-width: 800px;
}

/* Header / nav utility classes to replace inline styles */
.badge-hidden {
    display: none;
}

.admin-panel-dropdown-wrapper {
    position: relative;
}

.admin-panel-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-panel-submenu {
    display: none;
    z-index: 1051;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
}

.inline-form {
    display: inline;
}

.restore-icon {
    color: var(--electric-yellow);
}

.btn-delete-product:disabled,
.btn-delete-product[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.delete-label {
    color: var(--neon-pink);
}

.btn-delete-product {
    margin-top: 1rem;
    background-color: rgba(220, 53, 69, 0.7);
    color: white;
}

/* Delete Confirmation Page Styles */
.delete-icon {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
    font-size: 4rem;
}

.delete-name {
    color: var(--off-white);
}

.btn-delete {
    margin-right: 1rem;
    padding: 0.75rem 2rem;
    background-color: #dc3545;
    color: white;
    font-weight: 700;
}

.btn-delete:hover {
    background-color: #bb2d3b;
    color: white;
}

.btn-cancel-delete {
    padding: 0.75rem 2rem;
    border-color: var(--neon-pink);
    background-color: transparent;
    color: var(--neon-pink);
    font-weight: 700;
}

.btn-cancel-delete:hover {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
    color: var(--black);
}

.section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-heading,
.section-heading i {
    color: var(--neon-pink);
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--off-white);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-label .required-star {
    margin-left: 0.25rem;
    color: var(--neon-pink);
}

body .form-control,
body .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 6px;
    background-color: var(--black);
    color: var(--gray);
    font-size: 1rem;
    transition: all 0.3s ease;
}

body .form-control::placeholder,
body .form-select::placeholder {
    color: var(--gray);
}

body .form-control:focus,
body .form-select:focus {
    border-color: var(--neon-pink);
    outline: none;
    background-color: var(--black);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.25);
    color: var(--off-white);
}

body .form-control.has-value,
body .form-select.has-value {
    border-color: rgba(204, 255, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 0.15rem rgba(204, 255, 0, 0.1);
}

.helper-text {
    display: block;
    margin-top: 0.5rem;
    color: #ffffff;
    font-size: 0.85rem;
    opacity: 0.9;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-radius: 4px;
    background-color: var(--black);
    accent-color: var(--neon-pink);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
}

.form-check-input:focus {
    border-color: var(--neon-pink);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.25);
}

.form-check-label {
    margin: 0;
    padding-top: 0.25rem;
    color: var(--off-white);
    font-weight: 600;
    cursor: pointer;
}

/* File Input Styling */
.form-control[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: var(--neon-pink);
    color: var(--black);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control[type="file"]::file-selector-button:hover {
    transform: scale(1.05);
    background-color: var(--electric-yellow);
    color: var(--black);
}

/* Variant Form Row Styling */
.variant-form-row,
.image-form-row {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.variant-form-row:hover,
.image-form-row:hover {
    border-color: var(--electric-yellow);
    background-color: rgba(26, 26, 26, 0.85);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.2);
}

.variant-form-row .form-row,
.image-form-row .form-row {
    margin-bottom: 1rem;
}

.variant-form-row .form-row:last-child,
.image-form-row .form-row:last-child {
    margin-bottom: 0;
}

.variant-form-row .form-label,
.image-form-row .form-label {
    color: var(--off-white);
    font-size: 0.9rem;
}

.variant-form-row .form-control,
.image-form-row .form-control {
    border-color: var(--gray);
    background-color: var(--black);
}

.variant-form-row .form-control:focus,
.image-form-row .form-control:focus {
    border-color: var(--neon-pink);
}

/* Stock Quantity Input Styling */
.stock-quantity-input {
    width: 100%;
    max-width: 150px;
    padding: 0.5rem;
    border: 2px solid var(--neon-pink);
    border-radius: 4px;
    background-color: var(--charcoal);
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

/* Remove number spinner arrows */
.stock-quantity-input::-webkit-outer-spin-button,
.stock-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stock-quantity-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.stock-quantity-input:focus {
    border-color: var(--neon-pink);
    outline: none;
    background-color: var(--charcoal);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.25);
    color: var(--off-white);
}

/* Formset Management Buttons */
.add-form-btn,
.delete-form-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-form-btn {
    background-color: var(--neon-pink);
    color: var(--black);
}

.add-form-btn:hover {
    transform: translateY(-2px);
    background-color: var(--electric-yellow);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
    color: var(--black);
}

.delete-form-btn {
    border: 2px solid #ff4444;
    background-color: transparent;
    color: #ff4444;
}

.delete-form-btn:hover {
    transform: translateY(-2px);
    background-color: #ff4444;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    color: white;
}

/* Form Actions Section */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 3rem;
    padding-top: 2rem;
    gap: 1rem;
    border-top: 2px solid rgba(255, 20, 147, 0.2);
}

.form-actions .btn {
    min-width: 150px;
    padding: 0.5rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .btn-submit {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
    color: var(--black);
}

.form-actions .btn-submit:hover {
    transform: translateY(-3px);
    border-color: var(--electric-yellow);
    background-color: var(--electric-yellow);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
    color: var(--black);
}

.form-actions .btn-cancel {
    border-color: var(--neon-pink);
    background-color: transparent;
    color: var(--neon-pink);
}

.form-actions .btn-cancel:hover {
    transform: translateY(-3px);
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.3);
    color: var(--black);
}

/* Quantity Input Spinner Styling */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    background-color: var(--neon-pink);
    color: var(--black);
    font-weight: 700;
    cursor: pointer;
}

input[type="number"]::-webkit-outer-spin-button {
    margin-right: -2px;
}

/* Number input styling */
input[type="number"] {
    position: relative;
}

/* Image Preview Styling */
.image-preview {
    max-width: 200px;
    height: 200px;
    overflow: hidden;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    background-color: var(--black);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray);
}

.image-preview-placeholder i {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    opacity: 0.5;
}

/* Form Errors */
.invalid-feedback,
.error-message {
    display: block;
    margin-top: 0.5rem;
    color: #ff4444;
    font-weight: 500;
    font-size: 0.85rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ff4444;
    box-shadow: 0 0 0 0.2rem rgba(255, 68, 68, 0.25);
}

/* Success States */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--electric-yellow);
    box-shadow: 0 0 0 0.2rem rgba(204, 255, 0, 0.25);
}

/* Light Mode - Product Form */
:root.light-mode .section-heading,
:root.light-mode .section-heading i {
    color: #e71f7f;
}

:root.light-mode .form-label {
    color: #222;
}

:root.light-mode .form-control,
:root.light-mode .form-select {
    border-color: #ddd;
    background-color: white;
    color: #111;
}

:root.light-mode .form-control::placeholder,
:root.light-mode .form-select::placeholder {
    color: #999;
}

:root.light-mode .form-control:focus,
:root.light-mode .form-select:focus {
    border-color: #e71f7f;
    box-shadow: 0 0 0 0.2rem rgba(231, 31, 127, 0.25);
}

:root.light-mode .helper-text {
    color: #333;
}

:root.light-mode .form-check-input {
    border-color: #ddd;
    background-color: white;
}

:root.light-mode .form-check-input:checked {
    border-color: #e71f7f;
    background-color: #e71f7f;
}

/* form-check-label color consolidated into central light-mode rule */

:root.light-mode .form-control[type="file"]::file-selector-button {
    background-color: #e71f7f;
    color: white;
}

:root.light-mode .form-control[type="file"]::file-selector-button:hover {
    background-color: #b8d400;
}

:root.light-mode .variant-form-row,
:root.light-mode .image-form-row {
    border-color: rgba(231, 31, 127, 0.2);
    background-color: rgba(231, 31, 127, 0.05);
}

:root.light-mode .variant-form-row:hover,
:root.light-mode .image-form-row:hover {
    border-color: #e71f7f;
    background-color: rgba(231, 31, 127, 0.08);
}

:root.light-mode .stock-quantity-input {
    border-color: #e71f7f;
    background-color: white;
    color: #111;
}

:root.light-mode .stock-quantity-input:focus {
    border-color: #e71f7f;
    box-shadow: 0 0 0 0.2rem rgba(231, 31, 127, 0.25);
}

:root.light-mode .form-actions {
    border-color: rgba(231, 31, 127, 0.2);
}

:root.light-mode .form-actions .btn-submit {
    border-color: #e71f7f;
    background-color: #e71f7f;
    color: white;
}

:root.light-mode .form-actions .btn-submit:hover {
    border-color: #b8d400;
    background-color: #b8d400;
    color: #000;
}

:root.light-mode .form-actions .btn-cancel {
    border-color: #e71f7f;
    color: #e71f7f;
}

:root.light-mode .form-actions .btn-cancel:hover {
    background-color: #e71f7f;
    color: white;
}

:root.light-mode .image-preview {
    border-color: #e71f7f;
}

:root.light-mode .image-preview-placeholder {
    background-color: #f5f5f5;
    color: #999;
}

:root.light-mode .form-control.is-invalid,
:root.light-mode .form-select.is-invalid {
    border-color: #ff4444;
}

:root.light-mode .form-control.is-valid,
:root.light-mode .form-select.is-valid {
    border-color: #88cc00;
}

/* Light Mode - Delete Confirmation Page */
:root.light-mode .delete-icon {
    color: #e71f7f;
}

:root.light-mode .delete-name {
    color: #222;
}

:root.light-mode .btn-delete {
    background-color: #dc3545;
    color: white;
}

:root.light-mode .btn-delete:hover {
    background-color: #bb2d3b;
}

:root.light-mode .btn-cancel-delete {
    border-color: #e71f7f;
    background-color: white;
    color: #e71f7f;
}

:root.light-mode .btn-cancel-delete:hover {
    background-color: #e71f7f;
    color: white;
}

:root.light-mode .image-preview-current {
    border-color: #e71f7f;
}

:root.light-mode .delete-label {
    color: #e71f7f;
}

:root.light-mode .btn-delete-product {
    background-color: #dc3545;
}

/* Shared UI Classes */
.auth-icon-large {
    display: block;
    margin-bottom: 1rem;
    color: var(--neon-pink);
    font-size: 3rem;
}

.alert-success-styled {
    border: 2px solid var(--electric-yellow);
    background-color: rgba(204, 255, 0, 0.1);
}

.panel-pink {
    border: 2px solid var(--neon-pink);
}

.verify-email-footer {
    color: #cccccc;
    font-size: 0.95rem;
}

.back-icon {
    margin-right: 0.5rem;
}

.profile-card-centered {
    max-width: 500px;
    margin: 0 auto;
}

.activate-account-container {
    margin-top: 100px;
}

.order-number-highlight {
    color: #ff2da1;
}
/* Nested Dropdown (Dropend) Styling for Admin Panel */

.dropdown-menu .dropend .dropdown-toggle::after {
    margin-left: auto;
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

/* Keep icon + label left-aligned for nested toggles, push the chevron to the far right */
.dropdown-menu .dropdown-item.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* make icon and label stick to left */
    gap: 0.75rem; /* consistent spacing between icon and text */
}

/* Ensure the pseudo chevron sits at the far right */

/* Mobile Menu Submenu Arrow */
.dropdown-menu .dropdown-item.dropdown-toggle::after,
.dropdown-submenu .dropdown-toggle::after,
.submenu-arrow {
    margin-left: auto;
}
.submenu-arrow {
    color: var(--neon-pink);
    font-size: 1.2rem;
}

.submenu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
}

/* Admin Panel dropdown toggle - normal state (white text in dark mode, charcoal in light mode) */
.dropdown-menu .admin-panel-dropdown > a.dropdown-item,
.dropdown-menu .admin-panel-dropdown > a.dropdown-toggle {
    color: white;
}

/* Light mode Admin Panel text color */
:root.light-mode body .dropdown-menu .admin-panel-dropdown > a.dropdown-item,
:root.light-mode body .dropdown-menu .admin-panel-dropdown > a.dropdown-toggle {
    color: var(--charcoal);
}

/* Admin Panel dropdown toggle hover effect */
body .dropdown-menu .admin-panel-dropdown > a.dropdown-item:hover,
body .dropdown-menu .admin-panel-dropdown > a.dropdown-toggle:hover {
    background-color: var(--neon-pink);
    color: var(--black);
}

/* Prevent Admin Panel submenu from opening on hover - click only */
@media (min-width: 992px) {
    /* Position the parent li to be relative for absolute positioning of submenu */
    .dropdown-menu .admin-panel-dropdown {
        position: relative;
    }

    /* Hide submenu by default - only show when .show class is added via JavaScript */
    body .dropdown-menu .admin-panel-submenu {
        display: none;
        z-index: 1050;
        position: absolute;
        top: 0;
        right: 100%;
        left: auto;
        min-width: 200px;
        margin-top: 0;
        margin-left: 0;
    }

    /* Show submenu when .show class is added */
    body .dropdown-menu .admin-panel-submenu.show {
        display: block;
    }
}

/* Light mode Admin Panel submenu */
:root.light-mode .dropdown-menu .admin-panel-submenu {
    border: 2px solid var(--neon-pink);
    background-color: white;
}

/* Content Moderation submenu - click only, positioned to the left */
.admin-panel-submenu .dropdown-submenu {
    position: relative;
}

.admin-panel-submenu .content-moderation-submenu {
    display: none;
    z-index: 1051;
    position: absolute;
    top: 0;
    right: 100%;
    left: auto;
    min-width: 200px;
    margin-top: 0;
    margin-left: 0;
}

.admin-panel-submenu .content-moderation-submenu.show {
    display: block;
}

/* Light mode Content Moderation submenu */
:root.light-mode .content-moderation-submenu {
    border: 2px solid var(--neon-pink);
    background-color: white;
}

/* Profile submenu styles */
.profile-submenu {
    display: none;
    z-index: 1051;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
}

/* ================================
   BATTLE VEST (WISHLIST) STYLES
   ================================ */

/* Battle Vest Icon in Navigation */
.battle-vest-icon {
    display: inline-block;
    position: relative;
}

.vest-count-badge,
.cart-count-badge {
    display: flex;
    position: absolute;
    top: -8px;
    right: -8px;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.5);
    color: #000;
    font-weight: 700;
    font-size: 0.65rem;
    line-height: 1;
    text-align: center;
    animation: pulse 2s infinite;
}

.cart-icon {
    display: inline-block;
    position: relative;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 20, 147, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 20, 147, 0.8);
    }
}

/* Battle Vest Page */
.battle-vest-page {
    min-height: 100vh;
    padding: 112px 0 0rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
}

/* Mobile: Reduce battle vest page padding to match other pages */
@media (max-width: 768px) {
    .battle-vest-page {
        padding: 100px 0 2rem;
    }
}

.battle-vest-header {
    margin-bottom: 3rem;
}

.vest-title {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    font-weight: 900;
    font-size: 3rem;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vest-title i {
    -webkit-text-fill-color: var(--neon-pink);
    margin-right: 1rem;
}

.vest-subtitle {
    margin-bottom: 1.5rem;
    color: var(--off-white);
    font-size: 1.2rem;
    opacity: 0.7;
}

.vest-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.vest-stat-item {
    color: var(--electric-yellow);
    font-weight: 600;
    font-size: 1.1rem;
}

.vest-stat-item i {
    margin-right: 0.5rem;
    color: var(--neon-pink);
}

/* Battle Vest Grid - match product grid: 6 -> 5 -> 4 -> 2 */
.battle-vest-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 3rem;
    gap: 2rem;
}

@media (max-width: 1700px) {
    .battle-vest-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .battle-vest-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .battle-vest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Vest Item Card */
.vest-item-card {
    display: flex;
    position: relative;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 2px solid rgba(255, 20, 147, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

/* Make vest cards layout stable regardless of title length */

.vest-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-pink);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
}

.vest-item-image-wrapper {
    position: relative;
    /* Use portrait 4:5 ratio to match product cards for consistent display */
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.vest-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vest-item-card:hover .vest-item-image {
    transform: scale(1.05);
}

/* Remove Button */
.vest-remove-btn {
    display: flex;
    z-index: 2;
    position: absolute;
    top: 10px;
    right: 10px;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-pink);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vest-remove-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--neon-pink);
    color: #000;
}

/* Quick View Button */
.vest-quick-view-btn {
    z-index: 2;
    position: absolute;
    bottom: 15px;
    left: 50%;
    padding: 0.5rem 1.5rem;
    transform: translateX(-50%);
    border: 2px solid var(--electric-yellow);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--electric-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.vest-item-card:hover .vest-quick-view-btn {
    bottom: 20px;
    opacity: 1;
}

.vest-quick-view-btn:hover {
    transform: translateX(-50%) scale(1.05);
    background: var(--electric-yellow);
    color: #000;
}

/* Vest Item Info */
.vest-item-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
}

/* Ensure info column stretches and content below title aligns */

.vest-item-title {
    display: block;
    display: -webkit-box;
    margin-bottom: 0.5rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.2rem;
    font-size: 1.1rem; /* match product card titles */
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-line-clamp: 2; /* support up to 2 lines */
    -webkit-box-orient: vertical;
    max-height: calc(1.3em * 2);
    overflow: hidden;
}

/* Clamp product titles to 3 lines and reserve space so cards remain uniform */

.vest-item-title:hover {
    color: var(--neon-pink);
}

.vest-item-collection {
    margin-bottom: 0.125rem;
    color: var(--electric-yellow);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vest-item-price {
    margin-bottom: 0.125rem;
    color: var(--neon-pink);
    font-weight: 800;
    font-size: 1.4rem;
}

.vest-item-date {
    margin-bottom: 0.125rem;
    color: var(--off-white);
    font-size: 0.8rem;
    opacity: 0.5;
}

.vest-add-cart-btn {
    padding: 0.75rem;
    border: none;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    color: #000;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Push add-to-cart to the bottom of the info column for consistent card heights */
.vest-item-bottom {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    gap: 0.125rem;
}

.vest-add-cart-btn {
    margin-top: 0; /* controlled by .vest-item-bottom spacing */
}

.vest-add-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
}

/* Carousel Add to Cart Button */
.carousel-add-cart-btn {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border: none;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.carousel-add-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.5);
}

.carousel-add-cart-btn-positioned {
    z-index: 5;
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 140px; /* Set explicit width to fit text */
    margin-top: 0;
    margin-left: -70px; /* Half of button width approx */
    padding: 0.75rem;
    pointer-events: auto;
}

/* Empty Vest State */
.empty-vest {
    padding: 5rem 2rem;
}

.empty-vest-icon {
    margin-bottom: 2rem;
    color: var(--neon-pink);
    font-size: 8rem;
    opacity: 0.3;
}

.empty-vest-title {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 2.5rem;
}

.empty-vest-text {
    margin-bottom: 2rem;
    color: var(--off-white);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Vest Actions */
.vest-actions {
    padding: 2rem 0;
    padding-top: 0;
}

/* Battle Vest Button on Product Detail */
.battle-vest-btn {
    transition: all 0.3s ease;
}

.battle-vest-btn.in-vest {
    border-color: transparent;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    color: #000;
}

.battle-vest-btn.in-vest:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
}

.battle-vest-btn .heart-icon {
    transition: all 0.3s ease;
}

.battle-vest-btn:hover .heart-icon {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vest-title {
        font-size: 2rem;
    }

    .vest-stat-item {
        font-size: 1rem;
    }

    .battle-vest-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .empty-vest-icon {
        font-size: 5rem;
    }

    .empty-vest-title {
        font-size: 1.8rem;
    }

    .empty-vest-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .battle-vest-grid {
        grid-template-columns: 1fr;
    }

    .vest-title {
        font-size: 1.5rem;
    }
}

/* Ensure Battle Vest shows 2 items per row on small mobile screens */
@media (max-width: 576px) {
    .battle-vest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Battle Vest Light Mode */
:root.light-mode .battle-vest-page {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

:root.light-mode .vest-title {
    background: linear-gradient(135deg, var(--neon-pink), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:root.light-mode .vest-subtitle {
    color: #495057;
}

:root.light-mode .vest-stat-item {
    background: rgba(255, 20, 147, 0.1);
    color: #333;
}

:root.light-mode .vest-item-card {
    border: 2px solid rgba(255, 20, 147, 0.2);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

:root.light-mode .vest-item-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

:root.light-mode .vest-item-image-wrapper {
    background: #f8f9fa;
}

:root.light-mode .vest-item-title {
    color: #212529;
}

:root.light-mode .vest-item-title:hover {
    color: var(--neon-pink);
}

:root.light-mode .vest-item-collection {
    color: #6c757d;
}

:root.light-mode .vest-item-price {
    color: var(--neon-pink);
}

:root.light-mode .vest-item-date {
    color: #6c757d;
}

:root.light-mode .vest-remove-btn {
    border: 2px solid var(--neon-pink);
    background: rgba(255, 255, 255, 0.95);
    color: var(--neon-pink);
}

:root.light-mode .vest-remove-btn:hover {
    background: var(--neon-pink);
    color: #fff;
}

:root.light-mode .vest-quick-view-btn {
    border: 2px solid var(--electric-yellow);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

:root.light-mode .vest-quick-view-btn:hover {
    background: var(--electric-yellow);
    color: #000;
}

:root.light-mode .empty-vest-icon {
    color: rgba(255, 20, 147, 0.3);
}

:root.light-mode .empty-vest-title {
    color: #212529;
}

:root.light-mode .empty-vest-text {
    color: #6c757d;
}

/* ========================================
   CHECKOUT & PAYMENT FLOW IMPROVEMENTS
   ======================================== */

/* Checkout Page - Sticky Sidebar Summary */
.checkout-content .row {
    display: flex;
    flex-wrap: wrap;
}

.checkout-sidebar-summary {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

@media (max-width: 991px) {
    .checkout-sidebar-summary {
        position: static;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    /* Order summary appears first on mobile, so add separator */
    .checkout-totals-summary {
        border-bottom: 3px solid var(--neon-pink);
    }

    /* Add subtle animation for better UX */
    .checkout-totals-summary h5,
    .checkout-totals-summary h3 {
        font-size: 1.1rem;
    }
}

/* Checkout Page - Order Summary */
.checkout-totals-summary {
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
}

.checkout-totals-summary h5,
.checkout-totals-summary h3 {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-weight: 700;
}

.checkout-totals-summary h5 i,
.checkout-totals-summary h3 i {
    margin-right: 0.5rem;
    color: var(--neon-pink);
}

/* Payment Page - Order Summary Totals Table */

.order-totals,
.order-totals table {
    background: transparent;
}

.order-totals table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.order-totals tbody,
.order-totals tbody tr {
    background: transparent;
}

.order-totals tbody tr {
    border-bottom: 1px solid rgba(255, 105, 180, 0.15);
}

.order-totals tbody tr:last-child {
    border-bottom: 2px solid var(--neon-pink);
}

.order-totals td {
    padding: 1rem 0;
    background: transparent;
    font-size: 1rem;
}

body .order-totals .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.order-totals .total-row td {
    padding-top: 1.5rem;
    color: var(--off-white);
    font-size: 1.3rem;
}

.order-totals .total-amount {
    color: var(--electric-yellow);
    font-size: 1.5rem;
}

body .order-totals .text-success {
    color: #00ff88 !important;
    font-weight: 600;
}

/* Payment Page - Prominent Shipping Selector */
.shipping-selector-prominent {
    padding: 2rem;
    border: 2px solid var(--neon-pink);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.shipping-selector-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 105, 180, 0.3);
}

.shipping-selector-header h3,
.shipping-selector-header h2 {
    margin-bottom: 0.5rem;
    color: var(--off-white);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shipping-selector-header h3 i,
.shipping-selector-header h2 i {
    margin-right: 0.75rem;
    color: var(--neon-pink);
}

.shipping-rates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shipping-rate-option {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-rate-option:hover {
    transform: translateX(5px);
    border-color: var(--electric-yellow);
    background: rgba(255, 255, 255, 0.05);
}

.shipping-rate-option.selected {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.1);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
}

.shipping-rate-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1.5rem;
    accent-color: var(--neon-pink);
    cursor: pointer;
}

.rate-details {
    flex-grow: 1;
}

.rate-name {
    margin-bottom: 0.25rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.rate-delivery {
    color: var(--gray);
    font-size: 0.9rem;
}

.rate-delivery i {
    margin-right: 0.5rem;
    color: var(--electric-yellow);
}

.rate-price {
    min-width: 80px;
    color: var(--neon-pink);
    font-weight: 800;
    font-size: 1.3rem;
    text-align: right;
}

/* Return to Cart Button - Improved Visibility */
.return-to-cart-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.return-to-cart-btn:hover {
    transform: translateY(-2px);
    background: var(--neon-pink);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
    color: var(--black);
}

.return-to-cart-btn i {
    margin-right: 0.5rem;
}

/* Old return-to-cart-link kept for backwards compatibility but enhanced */
.return-to-cart-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.return-to-cart-link:hover {
    transform: translateY(-2px);
    background: var(--neon-pink);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
    color: var(--black);
}

/* Order Summary Card Enhancements */
.order-summary-card {
    box-sizing: border-box;
    max-width: 100%;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
}

.order-summary-card .order-totals table {
    width: 100%;
    table-layout: fixed;
}

.order-summary-card .summary-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

/* Payment Section - Match Shipping Selector Styling */
.payment-section {
    box-sizing: border-box;
    z-index: 1;
    position: relative;
    width: 100%;
    margin-bottom: 0;
    padding: 2rem;
    border: 2px solid var(--neon-pink);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.payment-section h2 {
    margin-bottom: 1.5rem;
    color: var(--off-white);
    font-weight: 800;
}

.payment-section h2 i {
    margin-right: 0.75rem;
    color: var(--neon-pink);
}

/* Payment Page Grid Layout */
.checkout-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .checkout-main {
        grid-template-columns: 2fr 1fr;
    }

    /* Order summary sticks to top on desktop */
    .order-summary-card {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    /* Ensure shipping + payment stay in left column */
    .shipping-selector-prominent,
    .payment-section {
        grid-column: 1;
    }

    /* Order summary goes to right column */
    .order-summary-card {
        grid-row: 1 / span 10;
        grid-column: 2;
    }
}

.payment-form {
    padding: 2rem;
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
}

.payment-form fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

.payment-form legend {
    margin-bottom: 1.5rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.2rem;
}

.payment-form .form-label {
    color: var(--off-white);
    font-weight: 600;
}

.payment-form .form-control {
    border: 1px solid rgba(255, 105, 180, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
}

.payment-form .form-control:focus {
    border-color: var(--neon-pink);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.25);
}

.payment-form .input-group-text {
    color: var(--neon-pink);
}

/* Stripe Card Element Styling */
.payment-form .input-group-text,
.stripe-card-element {
    border: 1px solid rgba(255, 105, 180, 0.3);
    background: rgba(255, 255, 255, 0.05);
}
.stripe-card-element {
    z-index: 1;
    position: relative;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stripe-card-element:focus-within {
    border-color: var(--neon-pink);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.25);
}

/* Ensure payment section stays below navbar when scrolling */
.payment-section,
.payment-section * {
    z-index: auto;
}

.payment-section .form-section {
    z-index: 1;
    position: relative;
}

/* Stripe Link Autofill - ensure it stays below navbar */
body .stripe-card-element iframe,
body .stripe-card-element iframe[name*="__privateStripeFrame"],
body .__PrivateStripeElement iframe {
    z-index: 1;
}

/* Stripe Link popup/dropdown - keep below navbar */
body > div[class*="__PrivateStripeElement"],
body > iframe[name*="__privateStripeFrame"] {
    z-index: 1000;
}

/* Security Notice */
.security-notice {
    padding: 1rem;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    background: rgba(0, 255, 0, 0.05);
    color: var(--off-white);
}

.security-notice i {
    margin-right: 0.5rem;
    color: #00ff00;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.payment-method-icon {
    color: var(--gray);
    font-size: 2rem;
    transition: all 0.3s;
}

.payment-method-icon:hover {
    transform: scale(1.1);
    color: var(--neon-pink);
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-actions .btn {
    flex: 1;
    font-weight: 700;
}

/* Payment Button Sizes - Equal (override global btn sizing) */
.payment-btn {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    max-width: 50%;
    padding: 1.1rem 2rem;
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .payment-btn {
        max-width: 100%;
        padding: 0.95rem 1.25rem;
        font-size: 1rem;
    }
}

/* CTA Button - Make Pay button stand out */
.btn-cta {
    border: 2px solid var(--electric-yellow);
    background: linear-gradient(135deg, var(--electric-yellow) 0%, #ffd700 100%);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
    color: var(--black);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    border-color: #ffd700;
    background: linear-gradient(135deg, #ffd700 0%, var(--electric-yellow) 100%);
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.8);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Checkout page layout - full width on mobile */
    .checkout-page-layout {
        margin: 0;
        padding: 0.5rem;
    }

    .checkout-main-content {
        padding: 0;
    }

    .checkout-main-content > .row {
        margin: 0 -0.25rem;
    }

    .checkout-main-content .col-lg-4,
    .checkout-main-content .col-lg-8 {
        padding: 0.25rem;
    }

    /* Mobile layout - spaced containers */
    .shipping-selector-prominent {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
        border-radius: 12px;
    }

    .shipping-selector-prominent,
    .shipping-selector-header {
        margin-bottom: 0.75rem;
    }

    .shipping-selector-header h3,
    .shipping-selector-header h2 {
        margin-bottom: 0.25rem;
        font-size: 1rem;
    }

    .shipping-selector-header p {
        font-size: 0.75rem;
    }

    .order-summary-card {
        padding: 1rem 0.75rem;
    }

    .order-summary-card,
    .payment-section {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }

    .payment-section {
        padding: 0.5rem;
    }

    .payment-section h2 {
        margin-bottom: 0.5rem;
        padding: 0 0.25rem;
        font-size: 1.1rem;
    }

    .payment-section > .mb-3 {
        padding: 0 0.25rem;
        font-size: 0.8rem;
    }

    body .payment-section .form-section {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0.75rem 0.5rem;
        border-radius: 8px;
    }

    /* Force fieldset to stretch full width on mobile */
    body .payment-section fieldset.form-section {
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
    }

    /* Override payment-form padding for mobile */
    body .payment-form {
        padding: 0.5rem;
        border-radius: 10px;
    }

    body .payment-form,
    .payment-form fieldset {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .payment-section .form-section legend {
        padding: 0 0.25rem;
        font-size: 0.95rem;
    }

    body .payment-section .mb-3 {
        margin-bottom: 0.75rem;
    }

    .payment-section .row {
        margin: 0 -0.25rem;
    }

    .payment-section .col-md-6 {
        padding: 0 0.25rem;
    }

    .payment-section .form-label {
        margin-bottom: 0.25rem;
        font-size: 0.8rem;
    }

    .payment-section .input-group {
        width: 100%;
    }

    .payment-section .input-group-text,
    .payment-section .form-control {
        padding: 0.5rem 0.75rem;
    }

    .payment-section .form-control {
        font-size: 0.9rem;
    }

    .security-notice {
        display: flex;
        align-items: flex-start;
        margin: 0.5rem 0;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .security-notice i {
        flex-shrink: 0;
        margin-right: 0;
        font-size: 0.9rem;
    }

    .payment-methods {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
        padding-top: 0.75rem;
        gap: 0.75rem;
        border-top: 1px solid rgba(255, 105, 180, 0.2);
    }

    .payment-method-icon {
        font-size: 1.5rem;
    }

    .test-card-hint {
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    /* Compact shipping rate options for mobile */
    .shipping-rate-option {
        flex-direction: row;
        align-items: center;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        border-radius: 10px;
    }

    .shipping-rate-option input[type="radio"] {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin-right: 0;
    }

    .rate-details {
        flex: 1;
        min-width: 0;
    }

    .rate-name {
        margin-bottom: 0.15rem;
        font-size: 0.95rem;
    }

    .rate-delivery {
        font-size: 0.75rem;
    }

    .rate-price {
        flex-shrink: 0;
        font-size: 1rem;
        text-align: right;
    }

    .shipping-rates-list,
    .form-actions {
        gap: 0.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Checkout sidebar summary */
    .checkout-sidebar-summary,
    .checkout-totals-summary {
        margin-bottom: 1rem;
    }

    /* Panel styling */
    .checkout-sidebar-summary,
    .checkout-totals-summary,
    .checkout-main-content .panel {
        padding: 1rem 0.75rem;
        border-radius: 10px;
    }

    .panel-header {
        flex-wrap: wrap;
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .panel-title {
        font-size: 1.1rem;
    }

    /* Cart Mobile Ultra Compact Layout */
    .cart-item {
        display: flex;
        position: relative;
        flex-wrap: wrap;
        align-items: flex-start;
        min-height: auto;
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .cart-item-image {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }

    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .cart-item-details {
        flex: 1;
        min-width: 0;
        padding: 0;
        padding-right: 20px;
        gap: 0;
        text-align: left;
    }

    .cart-item-name {
        margin-bottom: 0.15rem;
        font-size: 0.75rem;
        line-height: 1.15;
    }

    /* Inline specs and price */
    .cart-item-specs {
        display: inline;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.65rem;
    }

    .cart-item-specs .spec-label {
        display: none;
    }

    .cart-item-specs .spec-value::after {
        content: " · ";
        color: rgba(255, 255, 255, 0.35);
    }

    .cart-item-price {
        display: inline;
        margin: 0;
        font-size: 0.65rem;
    }

    .cart-item-price .price-label {
        display: none;
    }

    .cart-item-price .price-value {
        color: var(--neon-pink);
        font-weight: 600;
    }

    /* Delete button - top right corner */
    .cart-item-actions {
        position: absolute;
        top: 0.4rem;
        right: 0.4rem;
        order: 0;
        margin: 0;
        padding: 0;
    }

    .btn-remove {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        padding: 0;
        font-size: 0.6rem;
        opacity: 0.5;
    }

    .btn-remove:hover {
        opacity: 1;
    }

    /* Bottom row - quantity and subtotal inline */
    .cart-item-quantity {
        display: flex;
        align-items: center;
        order: 10;
        width: auto;
        margin-top: 0.2rem;
        padding: 0;
        border: none;
    }

    .qty-label {
        display: none;
    }

    .quantity-control {
        margin: 0;
        margin-left: -5px;
        transform: scale(0.65);
        transform-origin: left center;
    }

    .cart-item-subtotal {
        display: flex;
        align-items: center;
        order: 11;
        margin-top: 0.2rem;
        margin-left: auto;
        gap: 0;
    }

    .subtotal-label {
        display: none;
    }

    .subtotal-value {
        color: var(--neon-pink);
        font-weight: 700;
        font-size: 0.8rem;
    }

    .cart-summary-wrapper {
        margin-top: 1rem;
    }

    .cart-summary {
        position: static;
        top: auto;
    }
}

/* ========================================
   REDUCED FOOTER SPACING
   ======================================== */

/* Reduce spacing before footer on checkout/cart/payment pages */
.checkout-page,
.cart-page,
.vault-page.cart-page {
    padding-bottom: 0.5rem;
}

.checkout-page .checkout-page-layout,
.cart-page .cart-page-layout {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Removed vault-page.cart-page rules - cart page now uses products-page */

.cart-summary-section,
.cart-summary-section .cart-summary {
    margin-bottom: 0;
}

/* ========================================
   CONFIRMATION PAGE - COMPACT STYLING
   ======================================== */

/* Reduce panel padding on confirmation page */
.checkout-page .panel.glassmorphic-panel {
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.checkout-page .panel-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.checkout-page .panel-title {
    font-size: 1.1rem;
}

/* Compact order number display */
.checkout-page .order-number-display {
    margin-bottom: 0.75rem;
    padding: 1rem;
}

.checkout-page .order-number-display .number {
    font-size: 1.25rem;
}

/* Compact order items */
.checkout-page .order-items-list {
    gap: 0.75rem;
}

.checkout-page .order-item {
    padding: 0.75rem;
}

.checkout-page .item-image {
    width: 60px;
    height: 60px;
}

.checkout-page .item-name {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.checkout-page .item-specs {
    font-size: 0.8rem;
}

/* Compact shipping address */
.checkout-page .shipping-address-display p {
    margin-bottom: 0.25rem;
}

/* Compact next steps */
.checkout-page .next-steps {
    margin: 1rem 0;
    padding: 1rem;
    gap: 0.75rem;
}

.checkout-page .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.checkout-page .step-content p {
    font-size: 0.85rem;
}

/* Compact confirmation buttons */
.checkout-page .confirmation-buttons {
    gap: 0.5rem;
}

.checkout-page .confirmation-buttons .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* Compact summary totals */
.checkout-page .summary-totals {
    padding: 0.75rem 1rem;
}

.checkout-page .summary-divider {
    margin: 0.75rem 0;
}

/* Mobile confirmation page - even more compact */
@media (max-width: 768px) {
    .checkout-page .panel.glassmorphic-panel {
        margin-bottom: 0.5rem;
        padding: 0.75rem;
    }

    .checkout-page .panel-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }

    .checkout-page .panel-title {
        font-size: 0.95rem;
    }

    .checkout-page .order-number-display {
        margin-bottom: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .checkout-page .order-number-display .label {
        font-size: 0.8rem;
    }

    .checkout-page .order-number-display .number {
        font-size: 1rem;
    }

    /* Compact order items list */
    .checkout-page .order-items-list {
        gap: 0.4rem;
    }

    .checkout-page .order-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .checkout-page .item-image {
        width: 45px;
        height: 45px;
    }

    .checkout-page .item-name {
        margin-bottom: 0.15rem;
        font-size: 0.85rem;
    }

    .checkout-page .item-specs,
    .checkout-page .item-price .unit-price {
        font-size: 0.75rem;
    }

    .checkout-page .item-price .total-price {
        font-size: 0.95rem;
    }

    /* Compact shipping address */
    .checkout-page .shipping-address-display {
        padding: 0.5rem;
    }

    .checkout-page .shipping-address-display p {
        margin-bottom: 0.15rem;
        font-size: 0.85rem;
    }

    /* Compact next steps */
    .checkout-page .next-steps {
        margin: 0.5rem 0;
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .checkout-page .step {
        gap: 0.5rem;
    }

    .checkout-page .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .checkout-page .step-content strong {
        margin-bottom: 0.1rem;
        font-size: 0.85rem;
    }

    .checkout-page .step-content p {
        margin: 0;
        font-size: 0.75rem;
    }

    /* Compact summary */
    .checkout-page .summary-totals {
        padding: 0.5rem 0.75rem;
    }

    body .checkout-page .summary-totals .d-flex {
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

    .checkout-page .summary-divider {
        margin: 0.5rem 0;
    }

    .checkout-page .order-status-badge {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Compact buttons */
    body .checkout-page .confirmation-buttons {
        margin-top: 0.75rem;
    }
}

/* Fix muted text colors in checkout */
.checkout-totals-summary .text-muted {
    color: #fff !important;
}

.checkout-totals-summary .d-flex.justify-content-between.fw-bold div:first-child {
    color: #fff;
}

.checkout-totals-summary .d-flex.justify-content-between.fw-bold div:last-child {
    color: var(--neon-pink);
}

/* Fix text-muted in checkout main content (payment section) */
.checkout-main-content .text-muted {
    color: #fff !important;
}

/* Style order summary amounts */
.checkout-totals-summary #summary-subtotal,
.checkout-totals-summary #summary-discount,
.checkout-totals-summary #summary-shipping,
.checkout-totals-summary #summary-tax,
.checkout-totals-summary #summary-total {
    color: var(--neon-pink);
    font-weight: 700;
}

/* Fix all text-muted in checkout page */
.checkout-page .text-muted {
    color: #fff !important;
}

/* Make add new address button smaller */
#useNewAddressBtn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Mobile: remove extra vest actions vertical padding */
@media (max-width: 768px) {
    .vest-actions {
        margin-top: -1.5rem !important;
        padding-bottom: -0rem;
    }
}
