/* ================================================
   HENDOSHI - CART - CART
   ================================================
   
   Purpose: Shopping cart page styling and add to cart functionality
   
   Contains:
   - Cart page layout (two-column design)
   - Cart item cards
   - Add to cart buttons and modals
   - Cart summary components
   - Quantity controls
   
   Dependencies: variables.css, ui-components.css
   Load Order: Load after foundation and components
   ================================================ */

/* Cart Page Layout - Two columns with summary outside container */
.cart-page-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 2rem;
}

.cart-page-layout .cart-container {
    flex: 1;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.cart-summary-section {
    position: sticky;
    top: 100px;
    flex: 0 0 380px;
    align-self: flex-start;
}

/* Mobile: Stack layout */
@media (max-width: 991px) {
    .cart-page-layout {
        flex-direction: column;
        padding: 0;
        gap: 0.1rem;
    }

    .cart-page-layout .cart-container {
        padding: 0 0.5rem;
    }

    .cart-summary-section {
        position: static;
        flex: none;
        width: 100%;
    }

    .cart-summary-section .cart-summary {
        padding: 0;
    }

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

/* Cart Main Container */
.cart-main {
    padding: 2rem 0 1rem;
}

/* Override for cart page layout - reduced bottom spacing */
.cart-page-layout .cart-main {
    padding-bottom: 1rem;
}

/* Cart Layout - Desktop 2 columns (legacy - kept for backward compatibility) */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: start;
    gap: 2rem;
}

/* Cart Items Container */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

/* Cart Card - Individual Item */
.cart-card {
    display: grid;
    grid-template-columns: 100px 1fr 100px 140px 100px 40px;
    align-items: center;
    padding: 1.25rem;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.cart-card:hover {
    border-color: rgba(255, 20, 147, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

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

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

.cart-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
}

.cart-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.25rem;
}

.cart-card-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;
}

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

.cart-card-variant {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.variant-dot {
    color: rgba(255, 255, 255, 0.3);
}

.cart-card-price-mobile {
    display: none;
    margin-top: 0.25rem;
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* Quantity Control */
.cart-card-qty {
    display: flex;
    justify-content: center;
}

.qty-control {
    overflow: hidden;
    border: 1px solid rgba(255, 20, 147, 0.5);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

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

.qty-btn {
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--neon-pink);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--neon-pink);
    color: #fff;
}

.qty-input {
    width: 45px;
    height: 36px;
    border: none;
    border-right: 1px solid rgba(255, 20, 147, 0.3);
    border-left: 1px solid rgba(255, 20, 147, 0.3);
    background: transparent;
    color: var(--off-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

/* Cart Card Total */
.cart-card-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

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

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

/* Remove Button */
.cart-card-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-card-remove:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Order Summary */
.cart-summary {
    position: sticky;
    top: 100px;
}

.cart-summary-inner {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
}

.summary-title {
    margin: 0 0 1.25rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.summary-lines {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

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

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.summary-calc {
    font-size: 0.85rem;
}

/* Promo Code Section */
.summary-promo {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-form {
    display: flex;
    gap: 0.5rem;
}

.promo-form input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--off-white);
    font-size: 0.85rem;
}

.promo-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.promo-form input:focus {
    border-color: var(--neon-pink);
    outline: none;
}

.promo-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background: #ff1493;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-btn:hover {
    background: #e0127d;
}

.promo-message {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.promo-applied {
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.15);
}

.promo-applied,
.promo-info {
    display: flex;
    align-items: center;
}

.promo-info {
    gap: 0.5rem;
    color: #28a745;
    font-size: 0.85rem;
}

.promo-info i {
    font-size: 0.9rem;
}

.promo-savings {
    font-weight: 700;
}

.promo-remove {
    padding: 0.25rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    cursor: pointer;
}

.promo-remove:hover {
    color: #dc3545;
}

/* Summary Total */
.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.summary-total span:last-child {
    color: var(--neon-pink);
}

/* Checkout Button */
.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    gap: 0.75rem;
    border: none;
    border-radius: 10px;
    background: var(--neon-pink);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

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

/* Trust Badges */
.summary-trust {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Checkout progress spacing helper - tighten vertical gap to hero */
.checkout-progress--tight {
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding-top: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.trust-item i {
    color: var(--neon-pink);
    font-size: 0.75rem;
}

/* Empty Cart */
.cart-empty {
    padding: 4rem 2rem;
    text-align: center;
}

.cart-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(255, 20, 147, 0.1);
    color: var(--neon-pink);
    font-size: 2.5rem;
}

.cart-empty h2 {
    margin: 0 0 0.5rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.5rem;
}

.cart-empty p {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Checkout Bar - Single row layout */
.cart-mobile-bar {
    display: none;
    z-index: 1000;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 20, 147, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(20, 10, 25, 0.98);
}

.mobile-bar-total {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-bar-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.mobile-bar-value {
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-bar-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding: 0.6rem 1.25rem;
    gap: 0.5rem;
    border-radius: 8px;
    background: var(--neon-pink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* ============================================
   CART PAGE - MOBILE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .cart-layout {
        grid-template-columns: 1fr 320px;
    }

    .cart-card {
        grid-template-columns: 80px 1fr 80px 120px 80px 36px;
        padding: 1rem;
        gap: 0.75rem;
    }

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

    .cart-card-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-summary {
        position: static;
    }

    .cart-mobile-bar {
        display: flex;
    }

    .cart-main {
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
    /* Mobile Card - Compact horizontal layout */
    .cart-card {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: 60px 1fr auto;
        grid-template-areas:
            "img info remove"
            "img controls controls";
        padding: 0.75rem;
        gap: 0.5rem 0.75rem;
    }

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

    .cart-card-info {
        grid-area: info;
        gap: 0.1rem;
    }

    .cart-card-name {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .cart-card-variant {
        font-size: 0.72rem;
    }

    .cart-card-price-mobile {
        display: block;
    }

    .cart-card-price {
        display: none;
    }

    .cart-card-remove {
        grid-area: remove;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .cart-card-qty {
        grid-area: controls;
        justify-content: flex-start;
    }

    .qty-control {
        transform: scale(0.85);
        transform-origin: left center;
    }

    .cart-card-total {
        grid-area: controls;
        flex-direction: row;
        align-items: center;
        margin-left: auto;
        gap: 0.35rem;
    }

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

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

    /* Summary on mobile */
    .cart-summary-inner {
        padding: 1.25rem;
    }

    .summary-title {
        font-size: 1rem;
    }

    .summary-trust {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cart-card {
        padding: 0.6rem;
        gap: 0.4rem 0.6rem;
    }

    .cart-card-image {
        width: 55px;
        height: 55px;
    }

    .cart-card-name {
        font-size: 0.75rem;
    }

    .cart-card-variant {
        font-size: 0.68rem;
    }

    .cart-card-price-mobile {
        font-size: 0.8rem;
    }

    .qty-control {
        transform: scale(0.75);
    }

    .total-value {
        font-size: 0.85rem;
    }
}

/* ============================================
   END CART PAGE REDESIGN
   ============================================ */

/* Product Labels & Form Elements */
.product-label {
    margin-bottom: 0.75rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.required-star {
    color: var(--neon-pink);
    font-size: 1.2rem;
}

.form-help-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Quantity Selector */
.quantity-selector-wrapper {
    display: flex;
    align-items: center;
    max-width: 140px;
    overflow: hidden;
    gap: 0;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    background-color: var(--charcoal);
    box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.15);
}

.quantity-input {
    width: 50px;
    height: 40px;
    padding: 0;
    border: none;
    border-right: 1px solid rgba(255, 20, 147, 0.3);
    border-left: 1px solid rgba(255, 20, 147, 0.3);
    background-color: var(--charcoal);
    color: var(--off-white);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

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

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

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    border: none;
    background-color: var(--charcoal);
    color: var(--neon-pink);
    cursor: pointer;
    transition: all 0.3s;
}

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

.qty-btn i {
    font-size: 0.8rem;
}

/* Product Dropdown Styling */
.product-dropdown {
    appearance: none;
    width: 100%;
    max-width: 300px;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ff1493' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.1);
    color: var(--off-white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-dropdown:focus {
    border-color: var(--neon-pink);
    outline: none;
    box-shadow:
        0 0 0 0.2rem rgba(255, 20, 147, 0.25),
        0 8px 25px rgba(255, 20, 147, 0.15);
}

.product-dropdown:focus,
.product-dropdown:hover {
    transform: translateY(-1px);
    background-color: var(--border-glass-color);
}

.product-dropdown:hover {
    border-color: var(--electric-yellow);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.12);
}

.product-dropdown:not([value=""]) {
    border-color: var(--neon-pink);
    background-color: var(--border-glass-color);
}

.product-dropdown:valid {
    border-color: var(--neon-pink);
}

.product-dropdown.has-selection {
    border-color: var(--neon-pink);
    background-color: var(--border-glass-color);
}

.product-dropdown option {
    padding: 0.5rem;
    background-color: var(--charcoal);
    color: var(--off-white);
}

/* Hide all validation UI elements */
input::-webkit-validation-bubble,
input::-webkit-validation-bubble-arrow,
input:invalid {
    box-shadow: none;
}

/* Add to Cart Button */
.add-to-cart-btn {
    padding: 1rem;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
}

/* Design Story Styling */
.design-story {
    padding: 1.5rem;
    border-left: 4px solid var(--neon-pink);
    border-radius: 4px;
    background-color: rgba(255, 20, 147, 0.05);
}

.story-title {
    margin-bottom: 1rem;
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 1.2rem;
}

.story-text {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-size: 1rem;
    line-height: 1.6;
}

.story-author {
    color: var(--gray);
    font-style: italic;
    font-size: 0.95rem;
}

/* ========================================
   UNIFIED TOAST NOTIFICATION SYSTEM
   ======================================== */

/* Toast Container - Fixed position top-right */
.toast-container-custom {
    display: flex;
    z-index: 999999;
    position: fixed;
    top: 100px;
    right: 20px;
    flex-direction: column;
    width: calc(100% - 40px);
    max-width: 380px;
    gap: 12px;
    pointer-events: none;
}

/* Mobile: place toasts at the very top, centered with safe side padding */
@media (max-width: 768px) {
    .toast-container-custom {
        /* sit well below the navbar */
        top: 96px;
        right: 12px;
        bottom: auto;
        left: 12px;
        align-items: center;
        width: calc(100% - 24px);
        max-width: none;
    }

    .toast-container-custom .toast {
        width: 100%;
        max-width: none;
    }
}

/* Base Toast Styles */
.toast-container-custom .toast {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transform: translateX(0);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    background: rgba(26, 26, 26, 0.95);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    pointer-events: auto;
}

/* Toast Icon Strip - Left side color indicator */
.toast-container-custom .toast::before {
    flex-shrink: 0;
    width: 5px;
    background: var(--neon-pink);
    content: "";
}

/* Toast Content Wrapper */
.toast-container-custom .toast-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
}

/* Toast Header */
.toast-container-custom .toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 0;
    border: none;
    background: transparent;
}

.toast-container-custom .toast-header strong {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--off-white);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.toast-container-custom .toast-header i {
    font-size: 1.1rem;
}

/* Toast Body */
.toast-container-custom .toast-body {
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Close Button */
.toast-container-custom .toast-close {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toast-container-custom .toast-close:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Progress Bar */
.toast-container-custom .toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 5px;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.toast-container-custom .toast-progress-bar {
    height: 100%;
    background: var(--neon-pink);
    animation: toastProgress 2s linear forwards;
}

/* Success Toast - Using electric-yellow (#CCFF00) */
.toast-container-custom .toast-success::before {
    background: linear-gradient(180deg, #b8d400, var(--electric-yellow));
}

.toast-container-custom .toast-success .toast-header i {
    color: var(--electric-yellow);
}

.toast-container-custom .toast-success .toast-progress-bar {
    background: linear-gradient(90deg, #b8d400, var(--electric-yellow));
}

/* Error Toast */
.toast-container-custom .toast-error::before,
.toast-container-custom .toast-danger::before {
    background: linear-gradient(180deg, #ef4444, #f87171);
}

.toast-container-custom .toast-error .toast-header i,
.toast-container-custom .toast-danger .toast-header i {
    color: #f87171;
}

.toast-container-custom .toast-error .toast-progress-bar,
.toast-container-custom .toast-danger .toast-progress-bar {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Warning Toast */
.toast-container-custom .toast-warning::before {
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

.toast-container-custom .toast-warning .toast-header i {
    color: #fbbf24;
}

.toast-container-custom .toast-warning .toast-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Info Toast */
.toast-container-custom .toast-info::before {
    background: linear-gradient(180deg, var(--neon-pink), #ff6eb8);
}

.toast-container-custom .toast-info .toast-header i {
    color: var(--neon-pink);
}

.toast-container-custom .toast-info .toast-progress-bar {
    background: linear-gradient(90deg, var(--neon-pink), #ff6eb8);
}

/* Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Toast hiding state */
.toast-container-custom .toast.toast-hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover pause - stop progress animation */
.toast-container-custom .toast:hover .toast-progress-bar {
    animation-play-state: paused;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-container-custom {
        top: auto;
        right: 12px;
        bottom: 20px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .toast-container-custom .toast {
        border-radius: 12px;
    }

    .toast-container-custom .toast-content {
        padding: 14px 16px;
    }

    .toast-container-custom .toast-header strong {
        font-size: 0.8rem;
    }

    .toast-container-custom .toast-body {
        font-size: 0.9rem;
    }
}

/* Light Mode */
:root.light-mode .toast-container-custom .toast {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

:root.light-mode .toast-container-custom .toast-header strong {
    color: #1a1a1a;
}

:root.light-mode .toast-container-custom .toast-body {
    color: #4a4a4a;
}

:root.light-mode .toast-container-custom .toast-close {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.5);
}

:root.light-mode .toast-container-custom .toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

:root.light-mode .toast-container-custom .toast-progress {
    background: rgba(0, 0, 0, 0.05);
}

/* Legacy btn-close support */
.btn-close {
    filter: invert(1) brightness(1.2);
    opacity: 0.7;
    transition: all 0.3s;
}

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

/* Cart Badge - No Animation (styles removed) */

/* Main Content */
main {
    margin-top: 0;
    padding-top: 0;
}

/* Buttons: .btn-pink moved to components.css for canonical styling; any size-specific
   variants should use utility classes like .btn-lg or .btn-sm */

.btn-lg {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Philosophy Strip */
.philosophy-strip {
    position: relative;
    padding: 1.5rem 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--neon-pink) 0%,
        #ff6b9d 50%,
        var(--electric-yellow) 100%
    );
    box-shadow:
        0 0 30px rgba(255, 20, 147, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Gradient border accents */
.philosophy-strip::before,
.philosophy-strip::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
}

.philosophy-strip::before {
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.philosophy-strip::after {
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.philosophy-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: philosophyScroll 25s linear infinite;
}

/* Pause on hover */
.philosophy-strip:hover .philosophy-content {
    animation-play-state: paused;
}

.philosophy-text {
    margin: 0 1rem;
    color: var(--black);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-shadow:
        0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

/* Skull separator */
.philosophy-text::after {
    display: inline-block;
    margin-left: 1.5rem;
    content: "\f54c";
    font-weight: 900;
    font-size: 1.4rem;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    animation: skullPulse 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes skullPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes philosophyScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Collection Cards */
.collection-card {
    height: 100%;
    padding: 2rem;
    border: 2px solid transparent;
    background-color: var(--charcoal);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.collection-image {
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
}

.collection-info h3 {
    margin-bottom: 0.5rem;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.collection-info p {
    color: var(--gray);
}

/* Features Section */
.bg-charcoal {
    background-color: var(--charcoal);
}

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

.features h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.features p {
    color: var(--gray);
}

/* New Glassmorphism Features Section */
.features-section {
    position: relative;
    padding-bottom: 0;
    overflow: hidden;
    backdrop-filter: blur(20px);
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 20, 147, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
}

/* Light mode override for features section */
:root.light-mode .features-section {
    backdrop-filter: none;
    background: white;
}

.features-section::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 20, 147, 0.03) 20px,
            rgba(255, 20, 147, 0.03) 21px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(0, 255, 0, 0.02) 20px,
            rgba(0, 255, 0, 0.02) 21px
        );
    content: "";
    pointer-events: none;
}

.features-hero {
    z-index: 2;
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.features-hero .section-title {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.features-hero .section-subtitle {
    display: block;
    width: 100%;
    color: var(--off-white);
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.8;
    margin-top: 1rem !important;
}

.features-grid {
    display: grid;
    z-index: 2;
    position: relative;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

.feature-card {
    position: relative;
    padding: 2.5rem 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.4s ease;
}

.feature-card::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.1), transparent);
    content: "";
    transition: left 0.6s ease;
}

/* Light mode: feature cards have shimmer effect like hover */
.feature-card:hover::before,
:root.light-mode .feature-card::before {
    left: 100%;
}

/* Light mode: feature cards styled like hover state */
.feature-card:hover,
:root.light-mode .feature-card {
    transform: translateY(-8px);
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 20, 147, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
    transition: all 0.3s ease;
}

/* Light mode: feature icons styled like hover state */
.feature-card:hover .feature-icon,
:root.light-mode .feature-card .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.5));
}

.feature-card h4,
.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-card p {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Enhanced Collections Section */
.collections-preview {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    background:
        radial-gradient(circle at 30% 70%, rgba(0, 255, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 20, 147, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%);
}

/* Light mode override for collections preview */
:root.light-mode .collections-preview {
    backdrop-filter: none;
    background: white;
}

.collections-preview::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 25px,
            rgba(0, 255, 0, 0.02) 25px,
            rgba(0, 255, 0, 0.02) 26px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 25px,
            rgba(255, 20, 147, 0.03) 25px,
            rgba(255, 20, 147, 0.03) 26px
        );
    content: "";
    pointer-events: none;
}

.collections-hero {
    z-index: 2;
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.collections-hero .section-title {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.collections-hero .section-subtitle {
    display: block;
    width: 100%;
    color: var(--off-white);
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.8;
    margin-top: 1rem !important;
}

.collections-carousel-container {
    z-index: 2;
    position: relative;
}

/* Enhanced collection cards - 4:5 aspect ratio for images */
.collections-carousel .collection-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    margin-bottom: 2rem;
}

.collections-carousel .collection-card::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    content: "";
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collections-carousel .collection-card:hover::before {
    opacity: 1;
}

.collections-carousel .collection-image {
    transition: all 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .features-hero .section-title,
    .collections-hero .section-title {
        font-size: 2rem;
    }

    .features-hero .section-subtitle,
    .collections-hero .section-subtitle {
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    position: relative;
    margin-top: 0;
    padding: 2rem 2rem 2rem;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
}

/* Gradient top border similar to navbar */
.footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 20, 147, 0.5) 20%,
        var(--neon-pink) 50%,
        rgba(255, 20, 147, 0.5) 80%,
        transparent 100%
    );
    content: "";
}

.footer h5,
.footer h3 {
    display: inline-block;
    position: relative;
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Subtle underline accent for footer headings */
.footer h5::after,
.footer h3::after {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), transparent);
    content: "";
}

.tagline {
    margin-bottom: 1rem;
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer a {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    padding-left: 5px;
    color: var(--neon-pink);
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 1rem;
}

.footer ul li a {
    display: inline-block;
}

.footer .col-md-2 {
    padding: 0 1.5rem;
}

.footer .col-md-3:last-child {
    margin-left: auto;
    padding: 0 1.5rem 0 0;
}

/* Footer divider */
.footer hr {
    height: 1px;
    margin: 3rem 0;
    border: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 105, 180, 0.3) 20%,
        rgba(255, 105, 180, 0.3) 80%,
        transparent 100%
    );
}

/* Footer copyright text */
.footer .text-center p,
.footer p.mb-0 {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Footer Payment Methods */
.footer-payment-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-payment-methods .payment-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.payment-icons-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.payment-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    transform: translateY(-3px);
    color: var(--neon-pink);
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem; /* Reduced from 3rem/1.5rem to 2rem/1rem */
        text-align: center;
    }

    .footer h5,
    .footer h3 {
        margin-bottom: 1rem; /* Reduced from 1.5rem */
        font-size: 0.85rem; /* Slightly smaller headings */
    }

    .footer h5::after,
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .col-md-2 {
        margin-bottom: 1.5rem; /* Reduced from 2.5rem */
        padding: 0;
    }

    .footer .col-md-3:last-child {
        margin-bottom: 0;
        margin-left: 0; /* Remove auto margin on mobile */
        padding: 0; /* Remove asymmetric padding on mobile */
    }

    /* Center the Join the Cult section content on mobile */
    .footer .col-md-3:last-child h5,
    .footer .col-md-3:last-child p,
    .footer .col-md-3:last-child .newsletter-form {
        text-align: center;
    }

    .footer .col-md-3:last-child .social-icons {
        justify-content: center;
    }

    .footer p {
        margin-bottom: 0.5rem; /* Tighter spacing */
        font-size: 0.85rem; /* Smaller text */
    }

    .footer ul li {
        margin-bottom: 0.4rem; /* Reduced spacing between links */
    }

    .footer a {
        font-size: 0.9rem; /* Slightly smaller links */
    }

    .social-icons {
        justify-content: center;
        margin-top: 1.5rem; /* Reduced from 3rem in desktop */
        gap: 0.75rem; /* Tighter spacing between icons */
    }

    .social-icons a {
        font-size: 1.25rem; /* Smaller social icons */
    }

    .footer-payment-methods {
        margin-top: 1.5rem; /* Reduced spacing */
    }

    .payment-icons-wrapper {
        gap: 0.75rem; /* Reduced from 1rem */
    }

    .payment-icon {
        font-size: 1.5rem; /* Reduced from 1.75rem */
    }

    .footer a:hover {
        padding-left: 0;
    }

    .newsletter-form .form-control {
        padding: 0.5rem; /* Tighter padding */
        font-size: 0.9rem; /* Smaller form inputs */
    }

    .newsletter-form .btn {
        padding: 0.5rem 1rem; /* Smaller button */
        font-size: 0.9rem;
    }

    .footer hr {
        margin: 1.5rem 0 1rem; /* Reduced spacing around divider */
    }
}

.newsletter-form .form-control {
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background-color: var(--charcoal);
    color: var(--off-white);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    border-color: var(--neon-pink);
    background-color: var(--charcoal);
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.15);
    color: var(--off-white);
}

/* Newsletter consent text - ensure readability in dark footer */
.footer .newsletter-form .form-check-label {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.footer .newsletter-form .form-check-input {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.1);
}

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

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 20, 147, 0.4);
    background: rgba(255, 20, 147, 0.15);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.3);
    color: var(--neon-pink);
}

/* Newsletter Form Responsive Fix */
@media (min-width: 768px) and (max-width: 1199px) {
    .newsletter-form {
        min-width: 200px;
    }

    .newsletter-form .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Messages */
.message-container {
    z-index: 9999;
    position: fixed;
    top: 90px;
    right: 20px;
    width: 350px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        position: relative;
        flex-direction: column;
    }

    .hero-carousel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .hero-content {
        z-index: 10;
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        min-height: 50vh;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-slogan-static {
        max-width: 250px;
    }

    .hero-pug-skull {
        max-width: 90px;
    }

    .hero-slogan {
        font-size: 1.8rem;
    }

    .philosophy-text {
        margin: 0 0.75rem;
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .philosophy-text::after {
        margin-left: 1rem;
        font-size: 1.1rem;
    }

    .philosophy-strip {
        padding: 1rem 0;
    }
}

/* Cart Page Hero Styles */
/* Cart page now uses products-page class - removed duplicate styling */

/* Cart container spacing now handled by products-page layout */

.cart-container .row {
    align-items: flex-start;
}

.cart-summary {
    padding: 2rem;
    border: 1px solid var(--border-glass-color);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
}

@media (min-width: 992px) {
    .cart-summary-wrapper {
        position: sticky;
        top: 140px;
        align-self: flex-start;
    }
}

.summary-title {
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
    font-weight: bold;
    font-size: 1.3rem;
}

.cart-items-section {
    background: rgba(255, 255, 255, 0.02);
}

.cart-items-section,
.cart-item {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.cart-item {
    margin-bottom: 1rem;
    background: var(--bg-glass-light);
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 105, 180, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(255, 20, 147, 0.4);
}

.empty-cart {
    padding: 4rem 2rem;
    border: 1px solid var(--border-glass-color);
    border-radius: 15px;
    background: var(--bg-glass-light);
    text-align: center;
}

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

/* Checkout spacing centralized in components.css */
/* original moved from templates/checkout/checkout.html */

.checkout-hero-stat {
    color: #ccc;
    font-size: 1rem;
}

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

/* Simplified Checkout Page Layout */
.checkout-page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.checkout-main-content {
    width: 100%;
}

/* Two Column Layout for Payment Page */
.checkout-two-column {
    display: grid;
    grid-template-columns: 1fr 350px;
    align-items: start;
    gap: 2rem;
}

.checkout-left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-right-column {
    position: sticky;
    top: 120px;
    align-self: start;
}

/* Mobile: Stack columns */
@media (max-width: 991px) {
    .checkout-page-layout {
        max-width: 100%;
        padding: 0.25rem;
    }

    .checkout-two-column {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Mobile UX: Order summary appears FIRST (above payment) */
    .checkout-left-column {
        order: 2;
        padding: 0;
        gap: 0;
    }

    .checkout-right-column {
        position: static;
        order: 1;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    /* Remove margin between sections for seamless layout */
    .checkout-left-column > *,
    .checkout-right-column > * {
        margin-bottom: 0;
        border-radius: 0;
    }

    /* First and last elements get rounded corners */
    .checkout-right-column .order-summary-card {
        border-radius: 10px 10px 0 0;
    }

    .checkout-left-column .payment-section {
        border-radius: 0 0 10px 10px;
    }

    body .checkout-left-column .shipping-selector-prominent {
        margin-bottom: 0;
        border-radius: 8px;
    }

    .checkout-main-content {
        padding: 0;
    }

    .checkout-main-content .row {
        margin: 0;
    }

    .checkout-main-content .col-lg-4,
    .checkout-main-content .col-lg-8 {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .checkout-main-content .panel,
    .checkout-main-content .glassmorphic-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .checkout-header {
        padding: 0 0.5rem;
    }

    .checkout-header .page-title {
        font-size: 1.25rem;
    }

    .checkout-header p {
        font-size: 0.85rem;
    }

    /* Mobile Return to Cart button */
    .mobile-return-cart {
        margin-top: 0.5rem;
        padding: 1rem 0.5rem;
    }

    .mobile-return-cart .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .checkout-page-layout {
        padding: 0.25rem;
    }

    .checkout-main-content .col-lg-4,
    .checkout-main-content .col-lg-8 {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }

    .checkout-main-content .panel,
    .checkout-main-content .glassmorphic-card {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .checkout-left-column .shipping-selector-prominent,
    .checkout-right-column .order-summary-card {
        padding: 0.5rem;
        border-radius: 8px;
    }

    .checkout-left-column .payment-section {
        width: 100%;
        max-width: 100%;
        padding: 0.35rem;
        border-radius: 8px;
    }

    body .checkout-left-column .payment-section .form-section {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.5rem 0.35rem;
    }

    .checkout-left-column .payment-section .payment-form {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* Checkout page mobile padding moved to vault-modals.css for consistency */
/* Mobile responsive adjustments for checkout containers */
@media (max-width: 768px) {
    .checkout-page {
        max-width: 100vw;
        padding-right: 0rem;
        padding-left: 0rem;
        overflow-x: hidden;
    }

    .checkout-page * {
        box-sizing: border-box;
    }

    .checkout-container {
        width: 100%;
        padding-top: 0rem;
        padding-bottom: 2rem;
        overflow-x: hidden;
    }

    /* Override nested container constraint for payment/checkout pages */
    .checkout-container,
    .checkout-page .container.checkout-container {
        max-width: 100%;
        padding-right: 8px;
        padding-left: 8px;
    }

    /* container adjustments for page-container consolidated in components.css; keep checkout-specific layout below */

    .checkout-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .progress-container {
        margin-bottom: 1rem;
        padding: 1rem 5px;
        overflow-x: hidden;
    }

    .checkout-content,
    .checkout-main {
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow-x: hidden;
    }

    /* Ensure the page-hero remains in-flow on checkout pages (mobile)
       so it aligns visually with the rest of the checkout content. */
    .checkout-page .page-hero {
        margin-top: 0;
    }
}

.checkout-page .panel {
    padding: 2rem;
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
}

.checkout-page .panel-header {
    margin-bottom: 1.5rem;
}

.checkout-page .panel-title {
    color: var(--neon-pink);
    font-weight: 700;
}

.checkout-page .order-summary {
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
}

.saved-address-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-glass-light);
    transition: all 0.3s ease;
}

.saved-address-card:hover {
    border-color: rgba(255, 105, 180, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.saved-address-card.selected {
    border-color: var(--neon-pink);
    background: rgba(255, 105, 180, 0.1);
}

/* Shipping Rates Section - Dark Theme Styling */
.checkout-page .shipping-rates-section {
    margin-bottom: 1.5rem;
}

.checkout-page .shipping-rates-section h5 {
    color: var(--off-white);
    font-weight: 600;
}

.checkout-page .shipping-rates-section h5 i {
    color: var(--neon-pink);
}

.checkout-page .shipping-rates-section .list-group {
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
}

.checkout-page .shipping-rates-section .list-group-item {
    margin-bottom: 0.5rem;
    padding: var(--padding-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-glass-light);
    color: var(--off-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-page .shipping-rates-section .list-group-item:hover {
    border-color: rgba(255, 20, 147, 0.25);
    background: rgba(255, 20, 147, 0.08);
}

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

.checkout-page .shipping-rates-section .list-group-item strong {
    color: var(--neon-pink);
    font-weight: 600;
}

.checkout-page .shipping-rates-section .list-group-item .text-end span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

body .checkout-page .shipping-rates-section .list-group-item .text-success {
    color: #4ade80;
    font-weight: 600;
}

.checkout-page .shipping-rates-section .form-check-input {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.checkout-page .shipping-rates-section .form-check-input:checked {
    border-color: var(--neon-pink);
    background-color: var(--neon-pink);
}

.checkout-page .shipping-rates-section .badge.bg-pink {
    background-color: var(--neon-pink);
    color: var(--black);
    font-weight: 600;
}

/* Shipping Totals Summary - Dark Theme Styling */
.checkout-page .shipping-totals-summary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--bg-glass-light);
    color: var(--off-white);
}

.checkout-page .shipping-totals-summary hr {
    margin: 0.75rem 0;
    border-color: rgba(255, 255, 255, 0.15);
}

.checkout-page .shipping-totals-summary .fw-bold {
    color: var(--electric-yellow);
}

/* Moved from templates/checkout/payment.html */
.payment-section {
    padding: 2rem;
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
}

/* Mobile adjustments for payment section */
@media (max-width: 768px) {
    .payment-section {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.25rem 12px;
        overflow-x: hidden;
        border-radius: 8px;
    }

    .payment-section .form-section {
        margin: 0;
        padding: 1rem 10px;
    }

    .payment-section * {
        box-sizing: border-box;
        max-width: 100%;
    }

    .payment-section .row {
        margin-right: 0;
        margin-left: 0;
    }

    .payment-section .col-md-6 {
        padding-right: 4px;
        padding-left: 4px;
    }

    .payment-section .input-group {
        width: 100%;
    }
}

.payment-section h2 {
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
    font-weight: 700;
}

.payment-section h2 i {
    margin-right: 0.5rem;
}

.checkout-sidebar-summary {
    padding: 1.5rem;
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
}

@media (min-width: 992px) {
    .checkout-sidebar-summary {
        position: sticky;
        top: 140px;
        align-self: flex-start;
    }
}

.checkout-sidebar.payment-sidebar {
    padding: 1.5rem;
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
}

@media (min-width: 992px) {
    .checkout-sidebar.payment-sidebar {
        position: sticky;
        top: 140px;
        align-self: flex-start;
    }
    .checkout-content {
        align-items: flex-start;
    }
}

.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-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);
}

/* Mobile progress bar adjustments */
@media (max-width: 576px) {
    .progress-bar-wrapper.horizontal {
        max-width: 100%;
        padding: 0;
    }

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

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

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

/* Moved from templates/checkout/order_confirmation.html */
.glassmorphic-panel {
    margin-bottom: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: var(--bg-glass-light);
}
.glassmorphic-item {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}
.glassmorphic-item:hover {
    border-color: rgba(255, 105, 180, 0.2);
    background: rgba(255, 255, 255, 0.05);
}
/* .confirmation-buttons .btn-pink moved to components.css for canonical styling */

/* Moved from templates/checkout/payment_result.html */
.payment-result-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}
.payment-result-wrapper {
    width: 100%;
    max-width: 700px;
}
.result-card {
    padding: 3rem 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}
:root.light-mode .result-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
}
:root.dark-mode .result-card {
    border: 1px solid var(--neon-pink);
    background: var(--charcoal);
}
.result-icon {
    margin-bottom: 1.5rem;
    font-size: 4rem;
    animation: scaleIn 0.6s ease-out;
}
.result-icon.success {
    color: var(--electric-yellow);
}
.result-icon.failure {
    color: #ff4757;
}
.result-title {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.result-subtitle {
    margin-bottom: 2rem;
    color: var(--off-white);
    font-size: 1.1rem;
}
.confirmation-details {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--neon-pink);
    border-radius: 12px;
    background: rgba(255, 20, 147, 0.05);
    text-align: left;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-row .label {
    color: var(--off-white);
    font-weight: 600;
}
.detail-row .value {
    color: var(--neon-pink);
    font-weight: 700;
}
.next-steps {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--electric-yellow);
    border-radius: 12px;
    background: rgba(204, 255, 0, 0.05);
    text-align: left;
}

/* Moved from templates/checkout/order_detail.html */
.status-update-field-full {
    flex: 1 1 100%;
    min-width: 220px;
}
.status-update-form select,
.status-update-form textarea {
    width: 100%;
    min-width: 180px;
    max-width: 100%;
}

.status-update-btn {
    max-width: 25%;
}

.status-update-form {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}
.status-update-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.status-update-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.status-update-form label {
    margin-bottom: 0.25rem;
    color: var(--neon-pink);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.status-update-form textarea,
.status-update-form select {
    margin-bottom: 0.25rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--neon-pink);
    border-radius: 6px;
    background: var(--charcoal);
    color: var(--off-white);
    font-size: 1rem;
}
.status-update-form textarea:focus,
.status-update-form select:focus {
    outline: 2px solid var(--neon-pink);
}
.status-log-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    gap: 1.25rem;
    list-style: none;
}
.status-log-item {
    padding: 1.1rem 1.5rem 0.9rem 1.5rem;
    border: 1.5px solid rgba(255, 20, 147, 0.15);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 2px 8px 0 rgba(255, 20, 147, 0.04);
    color: var(--off-white);
    font-size: 1.05rem;
}
.status-log-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.08rem;
}
.status-log-date {
    margin-right: 0.5rem;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.98rem;
}
.status-badge {
    display: inline-block;
    margin: 0 0.1em;
    padding: 0.25em 0.85em;
    border: 1.5px solid var(--neon-pink);
    border-radius: 1em;
    background: var(--charcoal);
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 0.98em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.status-badge.status-pending {
    border-color: #ffb347;
    background: #222;
    color: #ffb347;
}
.status-badge.status-confirmed {
    border-color: #00e6e6;
    background: #222;
    color: #00e6e6;
}
.status-badge.status-processing {
    border-color: #ff69b4;
    background: #222;
    color: #ff69b4;
}
.status-badge.status-shipped {
    border-color: #00ff99;
    background: #222;
    color: #00ff99;
}
.status-badge.status-delivered {
    border-color: #00ff00;
    background: #222;
    color: #00ff00;
}
.status-badge.status-cancelled {
    border-color: #ff4d4d;
    background: #222;
    color: #ff4d4d;
}
.status-arrow {
    margin: 0 0.2em;
    color: var(--gray);
    font-size: 1.1em;
}
.status-log-admin {
    margin-left: 0.5em;
    font-weight: 600;
}
.status-log-by {
    color: var(--gray);
    font-weight: 600;
}
.status-log-admin-name {
    color: var(--neon-pink);
    font-weight: 700;
}
.status-log-note {
    margin-top: 0.5em;
    margin-left: 0.2em;
    padding-left: 0.8em;
    border-left: 3px solid var(--neon-pink);
    color: #b3b3b3;
    font-style: italic;
    font-size: 0.97em;
}
@media (max-width: 600px) {
    .status-update-fields {
        flex-direction: column;
        gap: 1rem;
    } /* .status-update-form .btn-pink width handled by layout utilities */
    .status-log-item {
        padding: 1rem 0.7rem;
    }
}

/* page-container helpers consolidated into components.css */

.info-group {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-group label {
    display: inline-block;
    margin-bottom: 0;
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.info-group p {
    margin: 0;
    color: var(--off-white);
    font-weight: 300;
    font-size: 1rem;
}

.profile-divider {
    margin: 1.5rem 0;
    border-color: rgba(255, 20, 147, 0.15);
}

.profile-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--off-white);
    transition: all 0.3s;
}

.profile-form-input: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: var(--off-white);
}

.profile-form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.profile-form-input.has-value {
    border-color: rgba(204, 255, 0, 0.5);
    background-color: rgba(204, 255, 0, 0.05);
    box-shadow: 0 0 0 0.1rem rgba(204, 255, 0, 0.1);
}

.table-responsive .order-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    background-color: transparent;
    color: var(--off-white);
}

.table-responsive .order-table thead {
    border-bottom: 2px solid rgba(204, 255, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.4);
}

.table-responsive .order-table th {
    padding: 1rem 1.2rem;
    border: none;
    color: var(--electric-yellow);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
}

.table-responsive .order-table th,
.table-responsive .order-table tbody {
    background-color: transparent;
}

.table-responsive .order-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: transparent;
    transition: all 0.3s ease;
}

.table-responsive .order-table tbody tr:hover {
    background-color: rgba(204, 255, 0, 0.05);
}

.table-responsive .order-table tbody tr:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-responsive .order-table td {
    padding: 1rem 1.2rem;
    border: none;
    background-color: transparent;
    color: var(--off-white);
    font-size: 0.95rem;
    vertical-align: middle;
}

.table-responsive .order-table td:first-child {
    font-weight: 600;
}

/* Order table link styling */
.table-responsive .order-link {
    color: var(--electric-yellow);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.table-responsive .order-link:hover {
    color: var(--neon-pink);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.4);
}

.table-responsive .badge.bg-pink {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--neon-pink);
    color: var(--black);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mobile Order History Cards */
.clickable-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 8px 25px rgba(204, 255, 0, 0.1);
}

.clickable-card .card-body {
    padding: 1rem;
}

.clickable-card .card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.clickable-card .card-label {
    color: var(--off-white);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.clickable-card .text-green {
    color: #00ff88;
}

.clickable-card .order-link {
    color: var(--electric-yellow);
    font-weight: 600;
}

.clickable-card .badge.bg-pink {
    padding: 0.3rem 0.6rem;
    background-color: var(--neon-pink);
    color: var(--black);
    font-weight: 700;
    font-size: 0.7rem;
}

/* ========================================
   ORDER STATUS BADGES - Color Coded
   ======================================== */

/* Base status badge styling */
.badge.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Pending - Amber/Orange */
.badge.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

/* Processing - Blue */
.badge.status-processing {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

/* Shipped - Purple */
.badge.status-shipped {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

/* Out for Delivery - Cyan */
.badge.status-out_for_delivery {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #000;
}

/* Delivered - Green */
.badge.status-delivered {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #000;
}

/* Cancelled - Red */
.badge.status-cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

/* Refunded - Gray */
.badge.status-refunded {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #fff;
}

/* Payment Failed - Dark Red */
.badge.status-payment_failed {
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
    color: #fff;
}

/* Status Value Text Colors (for order detail page) */
.status-value.status-pending {
    color: #f59e0b;
}

.status-value.status-processing {
    color: #3b82f6;
}

.status-value.status-shipped {
    color: #8b5cf6;
}

.status-value.status-out_for_delivery {
    color: #06b6d4;
}

.status-value.status-delivered {
    color: #22c55e;
}

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

.status-value.status-refunded {
    color: #6b7280;
}

.status-value.status-payment_failed {
    color: #dc2626;
}

/* ========================================
   INVOICE DOWNLOAD BUTTON
   ======================================== */
.btn-invoice-download {
    padding: 0.35rem 0.65rem;
    border: 1.5px solid #6b7280;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-invoice-download:hover {
    border-color: #9ca3af;
    background: rgba(107, 114, 128, 0.15);
    color: #d1d5db;
}

.btn-invoice-download i {
    font-size: 0.9rem;
}

:root.light-mode .btn-invoice-download {
    border-color: #9ca3af;
    color: #6b7280;
}

:root.light-mode .btn-invoice-download:hover {
    border-color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

/* Light mode for mobile order cards */
:root.light-mode .clickable-card {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

:root.light-mode .clickable-card:hover {
    border-color: rgba(184, 212, 0, 0.5);
    box-shadow: 0 8px 25px rgba(184, 212, 0, 0.15);
}

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

:root.light-mode .clickable-card .text-green {
    color: #00994d;
}

:root.light-mode .clickable-card .order-link {
    color: #9ca300;
}

.empty-state {
    padding: 3rem 0;
    text-align: center;
}

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

.empty-state-text {
    color: var(--gray);
    font-size: 1.2rem;
}

/* Address Book Styling */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-card-item {
    position: relative;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-glass-color);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.address-card-item::before {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 20, 147, 0.03) 0%, transparent 60%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.address-card-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.15);
}

.address-card-item:hover::before {
    opacity: 1;
}

.address-card-item > * {
    z-index: 2;
    position: relative;
}

.address-card-item.default-address {
    border-color: rgba(255, 20, 147, 0.3);
    background: rgba(255, 20, 147, 0.05);
}

.address-header {
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass-color);
}

.address-header,
.address-title {
    display: flex;
    align-items: center;
}

.address-title {
    color: var(--off-white);
    font-size: 1rem;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.25rem 0.5rem;
    border: none;
    background: none;
    color: var(--neon-pink);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    transform: scale(1.1);
    color: var(--electric-yellow);
}

.address-content {
    color: var(--off-white);
    font-size: 0.9rem;
    line-height: 1.6;
}

.address-content p {
    margin: 0;
    padding: 0.1rem 0;
}

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

.address-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-glass-color);
}

/* Saved Address Cards in Checkout */
.saved-addresses-section h5,
.saved-addresses-section h4 {
    color: var(--neon-pink);
    font-weight: 700;
}

.saved-address-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-bottom: 1rem;
    gap: 1rem;
}

.saved-address-card {
    position: relative;
    padding: 1rem;
    overflow: hidden;
    border: 2px solid var(--border-glass-color);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
}

.saved-address-card::before {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 25% 35%, rgba(255, 20, 147, 0.04) 0%, transparent 55%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.saved-address-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 20, 147, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.15);
}

.saved-address-card:hover::before {
    opacity: 1;
}

.saved-address-card.selected {
    border-color: var(--neon-pink);
    background: rgba(255, 20, 147, 0.08);
}

.saved-address-card > * {
    z-index: 2;
    position: relative;
}

.address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--off-white);
}

.address-card-body {
    color: var(--off-white);
    font-size: 0.85rem;
    line-height: 1.5;
}

.address-card-body p {
    margin: 0;
}

/* Email Address Item */
.email-address-item {
    margin-bottom: 0.5rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    background-color: var(--black);
    color: var(--off-white);
}

.badge.bg-pink {
    padding: 0.3rem 0.8rem;
    background-color: var(--neon-pink);
    color: var(--black);
    font-weight: 700;
}

/* Text Center Utility */
.text-center {
    text-align: center;
}

/* Auth Message Text */
.auth-message {
    font-size: 1.1rem;
}

/* Profile Divider */
.profile-divider {
    margin: 1.5rem 0;
    border-color: var(--gray);
    opacity: 0.3;
}

/* Text Danger (for error icons) */
.text-danger {
    color: #dc3545;
}

/* Django Messages / Notifications */
.message-container {
    z-index: 9999;
    position: fixed;
    top: 90px;
    right: 20px;
    max-width: 400px;
}

.alert {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
    color: var(--off-white);
    animation: slideIn 0.3s ease-out;
}

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

.alert-error,
.alert-danger {
    border-color: #dc3545;
}

.alert-warning {
    border-color: var(--electric-yellow);
}

.alert-info {
    border-color: #17a2b8;
}

.alert strong {
    margin-right: 0.5rem;
    color: var(--neon-pink);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-close {
    background-color: transparent;
    filter: invert(1);
    opacity: 0.8;
}

/* .btn-close:hover { opacity: 1 } - defined earlier in this file */

/* @keyframes slideIn - defined in animations.css */

/* 404 Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: var(--off-white);
}

.error-icon {
    animation: float 3s ease-in-out infinite;
}

.pug-skull-404 {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 30px rgba(255, 20, 147, 0.6));
}

/* @keyframes float - defined in animations.css */

.error-title {
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 8rem;
    line-height: 1;
    letter-spacing: 5px;
}

.error-subtitle {
    margin-bottom: 2rem;
    color: var(--off-white);
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.error-message {
    max-width: 600px;
    margin-right: auto;
    margin-bottom: 3rem;
    margin-left: auto;
    color: var(--gray);
    font-size: 1.3rem;
}

.error-actions {
    margin-bottom: 2rem;
}

.search-input {
    max-width: 400px;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--gray);
}

.search-input,
.search-input:focus {
    background-color: var(--charcoal);
    color: var(--off-white);
}

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

.search-input::placeholder {
    color: var(--gray);
}

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

    .error-subtitle {
        font-size: 1.8rem;
    }

    .pug-skull-404 {
        width: 150px;
        height: 150px;
    }

    .error-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .error-actions .btn.me-3 {
        margin-right: 0;
    }
}

/* CART PAGE STYLES - removed duplicate cart-page rules */

/* Removed cart-page media query rules - now uses products-page */

.page-title {
    background: linear-gradient(135deg, var(--neon-pink), var(--electric-yellow));
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Cart Items Section */
.cart-items-section {
    padding: 2rem;
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    background-color: rgba(255, 20, 147, 0.05);
}

/* Removed .cart-page .row rule - cart page now uses products-page */

.cart-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--neon-pink);
}

.cart-item-count {
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Cart Item - Desktop Grid Layout */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 120px 80px;
    grid-template-areas: "image details quantity subtotal actions";
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 2rem;
    gap: 2rem;
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 6px;
    background-color: var(--charcoal);
    transition:
        all 0.3s,
        opacity 0.3s ease,
        transform 0.3s ease;
}

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

.cart-item-image {
    grid-area: image;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
}

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