@import url("base.css");
@import url("layout.css");
@import url("components.css");

/* =========================================================================
   Skeleton Loading State
   ========================================================================= */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: var(--radius-lg);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.skeleton-banner {
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 0;
}

.skeleton-card {
    height: 380px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
}

.skeleton-text {
    width: 80%;
    height: 20px;
    border-radius: var(--radius-sm);
}

.skeleton-price {
    width: 40%;
    height: 24px;
    border-radius: var(--radius-sm);
}

.spinning {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* =========================================================================
   3. Hero Section
   ========================================================================= */
.hero {
    background-color: var(--bg-light);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-banner-wrapper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.hero-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-banner-wrapper {
        height: auto;
    }
}

/* =========================================================================
   Breadcrumb & Layout
   ========================================================================= */
/* ===============================
   BREADCRUMB (GLOBAL — USE EVERYWHERE)
================================ */
.breadcrumb-container {
    max-width: 1200px;
    margin: 24px auto 24px;
    /* perfect spacing */
    padding: 0 24px;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb .separator {
    font-size: 12px;
}

.products-page {
    background-color: var(--secondary-color);
}

.products-main-section,
.checkout-main-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 24px;
    width: 100%;
    /* prevent overflow on small screens */
    box-sizing: border-box;
}

.products-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.mobile-filter-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}


.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
}

/* =========================================================================
   Filters Sidebar
   ========================================================================= */
.filters-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.filter-header-mobile {
    display: none;
}

.filter-title {
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin: 0;
}

.filter-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

.filter-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.filter-title-row h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.category-list a:hover {
    color: var(--primary-color);
    font-weight: 500;
}

/* Price Range */
.price-slider-container {
    position: relative;
    padding: 1rem 0;
}

.slider-track {
    height: 4px;
    background: var(--text-light);
    border-radius: 4px;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.price-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Colors */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.color-swatch.active {
    box-shadow: 0 0 0 2px var(--secondary-color), 0 0 0 4px var(--primary-color);
}

.bg-green {
    background-color: #00C12B;
}

.bg-red {
    background-color: #F50606;
}

.bg-yellow {
    background-color: #F5DD06;
}

.bg-orange {
    background-color: #F57906;
}

.bg-cyan {
    background-color: #06CAF5;
}

.bg-blue {
    background-color: #063AF5;
}

.bg-purple {
    background-color: #7D06F5;
}

.bg-pink {
    background-color: #F506A4;
}

.bg-white {
    background-color: #FFFFFF;
    border-color: var(--border-color);
}

.bg-black {
    background-color: #000000;
}

/* Size Options */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-pill {
    padding: 0.5rem 10px;
    border-radius: var(--radius-full);
    background-color: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.size-pill:hover,
.size-pill.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.full-width {
    width: 100%;
}

/* Availability / Checkbox Options */
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* =========================================================================
   Products View
   ========================================================================= */
.products-view {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.products-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.desktop-only {
    display: block;
}

.products-header {
    align-items: center;
}

.sort-dropdown-container {
    position: relative;
    cursor: pointer;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-by strong {
    color: var(--text-main);
}

.sort-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    z-index: 20;
    display: none;
    margin-top: 0.5rem;
}

.sort-options.show {
    display: block;
}

.sort-option {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.sort-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ==============================================
   PRODUCTS GRID — Responsive column layout
   Desktop  (≥1200px): 4 columns
   Tablet   (769–1199): 3 columns
   Mobile   (≤768px):  2 columns
   ============================================== */
.products-grid-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Tablet: 3 columns */
@media (max-width: 1199px) {
    .products-grid-view {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    .products-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* =========================================================================
   4. Products Sections (New Arrivals, Top Selling)
   ========================================================================= */
.products-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-image-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    position: relative;
    padding: 2rem;
    margin-bottom: 1rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    /* Base gray color for heart */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* slight drop shadow to pop from background */
    opacity: 1;
    /* always visible */
}

.product-card:hover .wishlist-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* emphasize on hover */
}

.wishlist-btn:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: #ff3b3b !important;
    color: #fff !important;
    border-color: #ff3b3b !important;
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
}

.wishlist-btn.active i {
    color: #fff !important;
}

@keyframes wishlist-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.wishlist-bounce {
    animation: wishlist-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: capitalize;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--accent-yellow);
    font-size: 1rem;
}

.rating-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.original-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background-color: var(--bg-badge);
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.view-all-container {
    text-align: center;
}

.section-divider {
    max-width: 100%;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

/* =========================================================================
   Product Hover States & Pagination
   ========================================================================= */
.product-card {
    transition: transform 0.3s ease;
    border-radius: var(--radius-lg);
}

.product-card:hover {
    transform: translateY(-4px);
}

.card-hover-actions {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    z-index: 5;
}

.product-card:hover .card-hover-actions {
    bottom: 0;
    opacity: 1;
}

.card-hover-actions .btn {
    padding: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.card-hover-actions .btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.card-hover-actions .btn-outline {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.card-hover-actions .btn-outline:hover {
    background-color: var(--bg-card);
}

.pagination-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.pagination-btn:hover {
    background-color: var(--bg-card);
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-num {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-muted);
}

.page-num.active {
    background-color: var(--bg-card);
    color: var(--primary-color);
}

.page-num:hover:not(.active) {
    background-color: var(--bg-light);
}

.dots {
    color: var(--text-muted);
    font-weight: 700;
}

/* =========================================================================
   6. Browse by Category
   ========================================================================= */
.category-section {
    background-color: var(--secondary-color);
    padding: 0;
    margin: 4rem auto;
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.category-container {
    background-color: var(--bg-card);
    border-radius: 32px;
    padding: 4rem 3rem;
}

.category-section .section-title {
    text-align: center;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    background-color: var(--secondary-color);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    height: 100%;
    overflow: hidden;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    position: absolute;
    top: 32px;
    left: 32px;
    margin: 0;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: -0.5px;
}

.category-image {
    position: absolute;
    top: 50%;
    right: 32px;
    width: 60%;
    height: 85%;
    transform: translateY(-50%);
    object-fit: contain;
    object-position: right center;
    max-width: none;
    z-index: 1;
    transition: transform 0.3s ease;
    transform-origin: center right;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    /* Sophisticated shadow */
}

.category-card:hover .category-image {
    transform: translateY(-50%) scale(1.05);
    /* Scale image on hover smoothly */
}

/* =========================================================================
   Responsive Design
   ========================================================================= */

/* Tablet */
@media (max-width: 1024px) {

    /* --------  OLD products-grid-view overrides removed — now handled above -------- */

    /* Hero Tablet Adjustments */
    .hero-container {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-image-wrapper {
        width: 60%;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .nav-links,
    .desktop-search {
        display: none !important;
    }

    .mobile-menu-btn,
    .mobile-search-icon {
        display: block !important;
    }

    .nav-container {
        position: relative;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        z-index: 100;
    }

    /* Products Page Mobile Rules */
    .products-layout {
        flex-direction: column;
    }

    /* products-view must fill full width once sidebar slides off-screen */
    .products-view {
        width: 100%;
        min-width: 0;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-filter-header {
        display: flex;
        width: 100%;
    }

    .products-header {
        margin-bottom: 1rem;
    }

    .products-meta {
        justify-content: space-between;
    }

    /* Mobile Sidebar Slide-in */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1005;
        border-radius: 0;
        transition: transform 0.3s ease;
        overflow-y: auto;
        border: none;
        padding: 2rem;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        background-color: #fff;
    }

    .filters-sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-overlay.active-filters {
        z-index: 1000;
        opacity: 1;
        visibility: visible;
    }

    .filter-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .filter-header-mobile h2 {
        font-size: 1.5rem;
        margin: 0;
    }

    .close-filter-btn {
        font-size: 1.5rem;
    }

    .header-desktop {
        display: none;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile product grid — already set above under .products-grid-view — no override needed */
    .product-grid {
        /* Home-page grid on mobile: 2 columns */
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Mobile Product Card Optimization */
    .product-image-container {
        height: 160px;
        padding: 0.5rem;
    }

    .wishlist-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: 8px;
        right: 8px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price .current-price {
        font-size: 1rem;
    }

    /* Center align product card content on mobile */
    .product-info {
        align-items: center;
        text-align: center;
    }

    .product-rating {
        justify-content: center;
    }

    .product-price {
        justify-content: center;
    }

    .category-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .pagination {
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.5rem;
    }

    /* Modals */
    .modal {
        padding: 1.5rem;
    }

    .modal-actions-row {
        flex-direction: column;
    }

    .footer-links-group {
        gap: 2rem;
        flex-direction: column;
    }

    .cart-page {
        padding-bottom: 6rem;
        /* Space for sticky bar */
    }
}


/* =========================================================================
   Cart Page Styles
   ========================================================================= */

.cart-page {
    background-color: var(--secondary-color);
    /* Light gray background */
    padding-bottom: 3rem;
    /* reduced from 5rem */
    min-height: calc(100vh - 400px);
    /* reduced from 80vh to prevent massive empty space on short carts */
}

.cart-page .promo-code-container {
    display: none;
}

/* Hide Cart Page Heading */
.cart-page .section-title,
.cart-page .breadcrumb-container {
    display: none !important;
}




/* Shipping Progress */
.shipping-progress-container {
    background: #FFFFFF;
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.shipping-message {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.shipping-message .free-success {
    color: #10B981;
}

.progress-bar-bg {
    background: #E5E7EB;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: var(--primary-color, #000);
    height: 100%;
    width: 0%;
    transition: width 0.6s ease;
    border-radius: 4px;
}

/* Cart Layout */
.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.cart-layout {
    margin-top: 3rem;
}

/* Cart Items */
.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* Increased gap between product cards */
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* 👈 THIS fixes spacing */
}

.cart-item {
    background: #FFFFFF;
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    /* Soft subtle shadow */
    position: relative;
    transition: var(--transition, all 0.3s ease);
}

.cart-item.removing {
    opacity: 0;
    transform: scale(0.95);
}

.cart-item-img {
    width: 120px;
    height: 140px;
    background: var(--bg-card, #F9F9F9);
    border-radius: var(--radius-md, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-shrink: 0;
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-item-meta {
    font-size: 0.9rem;
    color: var(--text-muted, #6B7280);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0;
    height: 32px;
    box-shadow: none;
}

.qty-change {
    width: 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    color: #4b5563;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.qty-change:hover {
    background: #f9fafb;
    color: #111;
}

.qty-input {
    width: 36px;
    height: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-left: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    background: transparent;
    appearance: none;
    -moz-appearance: textfield;
    padding: 0;
    margin: 0;
}

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

.remove-btn {
    background: transparent;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition, all 0.3s ease);
    border-radius: 50%;
}

.remove-btn:hover {
    background: #FEE2E2;
}

/* Order Summary */
.order-summary-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 120px;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.summary-label {
    color: var(--text-muted, #6B7280);
}

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

.summary-divider {
    border: 0;
    height: 1px;
    background: var(--border-color, #E5E7EB);
    margin: 1.5rem 0;
}

.total-row {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.total-row .summary-label {
    color: var(--text-main, #111827);
    font-weight: 800;
}

.total-row .summary-value {
    color: var(--text-main, #111827);
}

.text-red {
    color: #EF4444 !important;
}

/* Promo Code Section (Polished) */
.promo-code-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.promo-input-group {
    flex: 1;
    position: relative;
}

.promo-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #6B7280);
    font-size: 1.2rem;
    z-index: 1;
}

#promo-input,
#checkout-promo-input {
    width: 100%;
    height: 50px;
    padding: 0 1rem 0 2.8rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-card, #F9F9F9);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.apply-promo-btn {
    height: 50px;
    padding: 0 1.5rem;
    border-radius: var(--radius-full, 50px);
    font-weight: 600;
    white-space: nowrap;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-promo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.apply-promo-btn.loading {
    color: transparent;
    position: relative;
}

.apply-promo-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    border: 2px solid #FFFFFF;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.promo-message {
    font-size: 0.85rem;
    margin-bottom: 2rem;
    min-height: 1.2rem;
}

.promo-message.success {
    color: #10B981;
}

.promo-message.error {
    color: #EF4444;
}

/* Applied Promo Card (New & Professional) */
.applied-promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ecfdf5; /* emerald-50 */
    border: 1px dashed #10b981; /* emerald-500 */
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDownIn 0.4s ease-out;
}

@keyframes slideDownIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.applied-promo-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.applied-promo-icon {
    font-size: 1.5rem;
    color: #059669; /* emerald-600 */
}

.applied-promo-details {
    display: flex;
    flex-direction: column;
}

.applied-promo-code {
    font-weight: 800;
    font-size: 1rem;
    color: #064e3b; /* emerald-900 */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.applied-promo-desc {
    font-size: 0.75rem;
    color: #047857; /* emerald-700 */
    font-weight: 600;
}

.remove-promo-btn {
    background: #fff;
    border: 1px solid #d1fae5;
    color: #065f46;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.remove-promo-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.text-green {
    color: #388e3c !important;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.summary-label {
    color: #212121;
    font-weight: 400;
}

.summary-value {
    color: #212121;
    font-weight: 400;
}

.summary-divider {
    border: 0;
    border-top: 1px dashed #e0e0e0;
    margin: 1.2rem 0;
}

.total-row {
    padding: 1rem 0;
}

.savings-badge-flipkart {
    padding: 12px 0;
    margin-top: 0.5rem;
    color: #388e3c;
    font-weight: 500;
    font-size: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.coupon-eligibility-msg {
    color: #f44336;
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
}

.coupon-card--locked {
    opacity: 0.7;
    background: #fdfdfd;
}

.coupon-card--locked .coupon-discount-badge {
    background: #f0f0f0;
    color: #999;
}

.coupon-card--locked .coupon-apply-btn {
    background: #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed;
}
    border-top: 1px dashed #e0e0e0;
}

/* =========================================================================
   Available Coupons Panel
   ========================================================================= */
.available-coupons-section {
    margin-bottom: 1.5rem;
    border-top: 1px dashed var(--border-color, #e5e7eb);
    padding-top: 1.25rem;
}

.available-coupons-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.available-coupons-header i {
    font-size: 1.1rem;
    color: #6C63FF;
}

.available-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 2px;
}

.available-coupons-list::-webkit-scrollbar {
    width: 4px;
}

.available-coupons-list::-webkit-scrollbar-track {
    background: transparent;
}

.available-coupons-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

/* Single coupon card */
.coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1.5px dashed #e5e7eb;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #fafafa;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6C63FF, #FF4D4D);
    border-radius: 4px 0 0 4px;
}

.coupon-card:hover {
    border-color: #6C63FF;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.12);
    transform: translateY(-1px);
}

.coupon-card--applied {
    border-color: #10B981 !important;
    background: #f0fdf4;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1) !important;
}

.coupon-card--applied::before {
    background: linear-gradient(180deg, #10B981, #059669);
}

.coupon-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.coupon-code-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Glowing tag badge */
.coupon-tag-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 20px;
    color: #fff;
    text-transform: uppercase;
    animation: couponTagPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes couponTagPulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.85; transform: scale(1.05); }
}

.coupon-code-text {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-family: "Courier New", Courier, monospace;
    color: var(--text-main);
}

.coupon-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
}

.coupon-copy-btn:hover {
    color: #6C63FF;
    background: #ede9fe;
}

.coupon-desc {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.4;
    margin: 0;
}

.coupon-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.coupon-discount-badge {
    font-size: 0.8rem;
    font-weight: 800;
    color: #EF4444;
    background: #fef2f2;
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
}

.coupon-apply-btn {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    height: auto !important;
    border-radius: 20px !important;
    min-width: 60px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.coupon-applied-btn {
    background: #10B981 !important;
    border-color: #10B981 !important;
    cursor: default;
    pointer-events: none;
}

.go-checkout-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.go-checkout-btn i {
    transition: transform 0.3s ease;
}

.go-checkout-btn:hover i {
    transform: translateX(4px);
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #FFFFFF;
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-top: 2rem;
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--text-light, #9CA3AF);
    margin-bottom: 1.5rem;
}

.empty-cart-state h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.empty-cart-state p {
    color: var(--text-muted, #6B7280);
    margin-bottom: 2rem;
}

.start-shopping-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-message {
    background: #fff;
    color: #111;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid #111;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-message.success {
    border-left-color: #00C12B;
}

.toast-message.error {
    border-left-color: #ff3b3b;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.toast-content i {
    font-size: 1.4rem;
}

.toast-message.success i {
    color: #00C12B;
}

.toast-message.error i {
    color: #ff3b3b;
}

@media (max-width: 640px) {
    .toast-container {
        right: 1rem;
        left: 1rem;
        bottom: 1.5rem;
    }

    .toast-message {
        min-width: 0;
        width: 100%;
        transform: translateY(200%);
    }

    .toast-message.show {
        transform: translateY(0);
    }
}

/* =========================================================================
   Order Success Modal (Elite Styling)
   ========================================================================= */

.order-success-content {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.success-icon-large {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: scaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.success-subtitle {
    color: var(--text-muted, #6B7280);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.order-summary-box-modal {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.modal-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.modal-info-row:first-child {
    border-bottom: 1px dashed #CBD5E1;
}

.modal-info-label {
    font-weight: 600;
    color: #64748B;
}

.modal-info-value {
    font-weight: 700;
    color: var(--text-main, #111827);
    font-family: 'JetBrains Mono', monospace;
}

.modal-actions-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-footer-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #94A3B8;
}

/* Mobile Responsive Modal Adjustment */
@media (max-width: 480px) {
    .modal-body.order-success-content {
        padding: 2rem 1rem;
    }
    .modal-title {
        font-size: 1.5rem;
    }
    .success-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* Header badge customization */
.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: var(--primary-color, #E53935);
    /* Bright red for popup */
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 10;
}

.header-cart-badge {
    background-color: #E53935;
    /* specifically setting it to red */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-cart-badge.bump {
    transform: scale(1.3);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-card {
        position: static;
        margin-top: 1rem;
    }

    .checkout-right {
        position: static;
        width: 100%;
    }
}

/* =============================================
   MOBILE STICKY CHECKOUT BAR
   Default: hidden. Only visible on mobile (≤576px).
   ============================================= */
.mobile-sticky-checkout {
    display: none !important;
    pointer-events: none;
}

/* Hidden on all screens wider than 576px */
@media (min-width: 577px) {
    .mobile-sticky-checkout {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .cart-item-img {
        width: 100%;
        height: 180px;
    }

    .cart-item-header {
        flex-direction: column;
        align-items: center;
    }

    .cart-item-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .remove-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    /* Sticky Mobile Checkout Bar */
    .mobile-sticky-checkout {
        display: flex !important;
        pointer-events: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        padding: 1rem 1.5rem;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .mobile-sticky-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0 auto;
        width: 100%;
    }

    .mobile-sticky-total {
        display: flex;
        flex-direction: column;
    }

    .mobile-sticky-total span {
        font-size: 0.85rem;
        color: var(--text-muted, #6B7280);
    }

    .mobile-sticky-total strong {
        font-size: 1.25rem;
    }

    .go-checkout-btn-mobile {
        padding: 0.85rem 1.5rem;
    }

    .cart-page {
        padding-bottom: 6rem;
        /* Space for sticky bar */
    }

    /* Hide desktop checkout button when mobile sticky is active */
    .go-checkout-btn {
        display: none;
    }
}

/* =========================================================================
   Wishlist Styles
   ========================================================================= */
.wishlist-page {
    background-color: var(--secondary-color, #f9fafb);
    min-height: calc(100vh - 400px);
    padding-bottom: 3rem;
}



.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
}

.wishlist-card {
    background: var(--bg-card, #ffffff);
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.wishlist-card .remove-wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--primary-color, #E53935);
    z-index: 10;
    transition: all 0.3s ease;
}

.wishlist-card .remove-wishlist-btn:hover {
    background: var(--primary-color, #E53935);
    color: white;
}

.wishlist-img-wrapper {
    height: 250px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    background-color: var(--secondary-color, #F4F5F7);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

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

.wishlist-card .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wishlist-card .product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #FBBF24;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wishlist-card .product-rating .rating-text {
    color: var(--text-muted, #6B7280);
    margin-left: 0.25rem;
}

.wishlist-card .product-price {
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: auto;
}

.wishlist-actions {
    display: flex;
    justify-content: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wishlist-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wishlist-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: var(--primary-color, #E53935);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 10;
}

.header-wishlist-badge {
    background-color: #E53935;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-wishlist-badge.bump {
    transform: scale(1.3);
}

/* ==============================================================
   CHECKOUT PAGE
   ============================================================== */
.checkout-page {
    background-color: var(--secondary-color);
    padding-bottom: 4rem;
    min-height: calc(100vh - 400px);
}

.cart-container .breadcrumb,
.wishlist-container .breadcrumb,
.account-container .breadcrumb,
.checkout-container .breadcrumb,
.contact-container .breadcrumb {
    margin-top: 24px;
    margin-bottom: 24px;
    justify-content: flex-start;
}

.checkout-left {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.checkout-right {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: none;
    position: sticky;
    top: 100px;
}

.checkout-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.form-divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    margin: 2rem 0;
}

.form-divider-with-text::before,
.form-divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.form-divider-with-text span {
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-address-selection {
    margin-bottom: 0;
}

.checkout-address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.checkout-address-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.checkout-address-card:hover {
    border-color: var(--text-light);
}

.checkout-address-card.active {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.checkout-address-card .address-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.checkout-address-card .address-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.checkout-address-card .radio-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: #fff;
}

.checkout-address-card.active .radio-indicator {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.checkout-address-card.active .radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    transform: translate(-50%, -50%);
}

/* Form Styles */
.checkout-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input {
    height: 48px;
    padding: 0 1.5rem;
    border: none;
    background-color: var(--bg-card);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ---- Password Input with Eye Toggle ---- */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 3rem !important; /* room for the eye button */
    width: 100%;
}

.toggle-password-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #9ca3af);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease;
    line-height: 1;
}

.toggle-password-btn:hover {
    color: var(--text-main, #111827);
}

.toggle-password-btn:focus {
    outline: none;
}

/* Hint text below "Change Password" heading */
.password-hint-text {
    font-size: 0.82rem;
    color: var(--text-muted, #9ca3af);
    margin-top: -0.5rem;
    margin-bottom: 0.25rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Payment Methods */
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
}

.payment-option-modern:hover {
    border-color: #ccc;
}

.payment-option-modern.active {
    border-color: var(--primary-color);
    background-color: #F9FAFB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.payment-option-modern input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.payment-label-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.payment-text-group {
    display: flex;
    flex-direction: column;
}

.payment-label-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.payment-balance-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.payment-icon-modern {
    color: var(--text-muted);
    font-size: 1.4rem;
}

.payment-icons-group {
    display: flex;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-left,
    .checkout-right {
        padding: 1.5rem;
    }
}

/* =========================================================================
   Account Page
   ========================================================================= */
.account-page {
    background-color: var(--secondary-color);
    padding-bottom: 4rem;
    min-height: calc(100vh - 400px);
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    background: transparent;
}

.account-nav-section {
    margin-bottom: 2rem;
}

.account-nav-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.account-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-nav-list a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    padding-left: 1rem;
}

.account-nav-list a:hover {
    color: var(--primary-color);
}

.account-nav-list a.active {
    color: var(--primary-color);
    font-weight: 600;
    border-left: 2px solid var(--primary-color);
    padding-left: calc(1rem - 2px);
}

/* Content */
.account-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-sm);
}

.account-header {
    margin-bottom: 2rem;
}

.account-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.password-change-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        display: none;
        /* Hidden on mobile for now as per standard simple implementation */
    }

    .account-content {
        padding: 1.5rem;
    }
}

/* =========================================================================
   Auth Pages (Login / Sign Up)
   ========================================================================= */
.auth-page {
    background-color: var(--secondary-color);
    min-height: calc(100vh - 400px);
    padding-bottom: 4rem;
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.auth-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================================================================
   Auth Split Layout (New Design)
   ========================================================================= */
.auth-split-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.auth-image-side {
    flex: 1.3;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.auth-image-side img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    pointer-events: none;
}

.auth-side-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-main);
}

.auth-side-heading {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.auth-side-subtext {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.6;
}

.auth-side-highlights li {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-side-highlights li::before {
    content: "•";
    font-size: 1.5rem;
    line-height: 0;
}

.auth-form-side {
    flex: 1;
    padding-right: 2rem;
}

.auth-heading {
    font-size: 2.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.auth-subheading {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group-underlined {
    position: relative;
}

.input-group-underlined input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #7D8184;
    padding: 0.5rem 2.5rem 0.5rem 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
    border-radius: 0;
}

.input-group-underlined input:focus {
    border-bottom-color: var(--primary-color);
}

/* Eye toggle inside underlined inputs (login / signup / forgot-password) */
.input-group-underlined .toggle-password-btn {
    position: absolute;
    right: 0;
    bottom: 0.4rem;
    top: auto;
    transform: none;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    font-weight: 500;
    margin-top: 1rem;
}

.google-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--text-main);
}

.auth-footer-text {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-left: 0.5rem;
}

@media (max-width: 992px) {
    .auth-split-layout {
        flex-direction: column;
        gap: 3rem;
        padding-top: 1rem;
    }

    .auth-image-side {
        width: 100%;
        max-width: 600px;
        min-height: auto;
    }

    .auth-form-side {
        padding-right: 0;
        width: 100%;
        max-width: 450px;
    }

    .auth-side-content {
        padding: 2.5rem;
    }

    .auth-side-heading {
        font-size: 2.5rem;
    }
}

.form-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.forgot-password-link {
    color: #063AF5;
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================================================
   Address Book Page
   ========================================================================= */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.address-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    background-color: #fff;
}

.address-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.address-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.badge-default {
    font-size: 0.75rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.address-details {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.address-actions {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-link {
    color: var(--primary-color);
    padding: 0;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

/* =========================================================================
   Payment Page
   ========================================================================= */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.payment-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    aspect-ratio: 1.58/1;
    /* Standard Credit Card Ratio */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
}

.payment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: rotate(45deg);
    pointer-events: none;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.remove-card-btn {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.remove-card-btn:hover {
    color: #ff3b3b;
}

.card-number {
    font-size: 1.3rem;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    z-index: 1;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1;
}

.card-holder-label,
.card-expiry-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
    display: block;
}

.card-holder-name,
.card-expiry-date {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-brand {
    font-size: 2rem;
}

/* =========================================================================
   Wallet Section (Payment Page)
   ========================================================================= */
.wallet-section {
    margin-bottom: 1rem;
}

.wallet-card-display {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.wallet-card-display::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.wallet-icon-bg {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.wallet-details {
    flex: 1;
}

.wallet-label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.wallet-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

@media (max-width: 576px) {
    .wallet-card-display {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .wallet-details {
        margin-bottom: 1rem;
    }
}

/* =========================================================================
   Orders Page
   ========================================================================= */
.order-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--text-light);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.order-id {
    font-weight: 700;
    font-size: 1.05rem;
}

.order-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

.order-status {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-delivered {
    background: #ECFDF5;
    color: #059669;
}

.status-processing {
    background: #EFF6FF;
    color: #1D4ED8;
}

.status-cancelled {
    background: #FEF2F2;
    color: #DC2626;
}

.status-refunded {
    background: #ECFDF5;
    color: #059669;
}

.status-return-pending {
    background: #FFFBEB;
    color: #D97706;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.order-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: block;
}

.order-item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.order-total-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Mobile Orders Page */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .order-header>div {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .order-date {
        margin-left: 0;
    }

    .order-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .order-footer>div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .order-actions-group {
        flex-direction: column;
        width: 100%;
    }
}

/* =========================================================================
   About Page
   ========================================================================= */
.about-page {
    padding: 2rem 0 5rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.about-content .about-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--primary-color);
    color: #fff;
}

.stat-item:hover .stat-icon,
.stat-item:hover .stat-label {
    color: #fff;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        order: -1;
        /* Image on top on mobile */
    }

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

@media (max-width: 576px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-content .about-title {
        font-size: 2.5rem;
    }
}

/* =========================================================================
   Order Details / Invoice Page
   ========================================================================= */
.order-details-page {
    padding: 3rem 0 5rem;
    background-color: var(--bg-light);
    min-height: 80vh;
}

.invoice-container {
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 2rem;
}

.invoice-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.invoice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.invoice-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.invoice-table th {
    text-align: left;
    padding: 1rem 0;
    border-bottom: 2px solid var(--text-main);
    font-weight: 700;
}

.invoice-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.invoice-summary {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
}

.text-right {
    text-align: right;
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .breadcrumb-container,
    .invoice-actions,
    .announcement-bar {
        display: none !important;
    }

    .order-details-page {
        padding: 0;
        background: #fff;
    }

    .invoice-container {
        box-shadow: none;
        padding: 0;
    }
}

/* =========================================================================
   Mobile Order Details / Invoice
   ========================================================================= */

/* Table wrapper — enables horizontal scroll on mobile */
.invoice-items-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .order-details-page {
        padding: 1rem 0 3rem;
    }

    .invoice-container {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    /* Header: stack title above button */
    .invoice-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }

    .invoice-title {
        font-size: 1.4rem;
    }

    .invoice-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Shipping & Payment: full width single column */
    .invoice-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    /* Table: allow horizontal scroll instead of squishing */
    .invoice-table {
        font-size: 0.82rem;
        min-width: 520px; /* prevents squish — scroll kicks in instead */
    }

    .invoice-table th,
    .invoice-table td {
        padding: 0.65rem 0.5rem;
        white-space: nowrap;
    }

    /* Product name cell: allow it to wrap */
    .invoice-table td:first-child {
        white-space: normal;
        min-width: 160px;
    }

    /* Product image smaller on mobile */
    .invoice-table td:first-child img {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0;
    }

    /* Summary section: full width */
    .invoice-summary {
        max-width: none;
        margin-left: 0;
        margin-top: 1.5rem;
    }

    /* Cancel / Return buttons: full width on mobile */
    .invoice-table .btn-sm {
        width: 100%;
        text-align: center;
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
    }

    /* Status tags — no overflow */
    .status-tag {
        white-space: nowrap;
        font-size: 0.72rem;
        padding: 3px 8px;
    }
}

/* Extra small screens (< 400px) */
@media (max-width: 400px) {
    .invoice-container {
        padding: 1rem 0.75rem;
    }

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

    .invoice-table {
        min-width: 480px;
        font-size: 0.78rem;
    }
}


/* =========================================================================
   Contact Page
   ========================================================================= */
.contact-page {
    padding-bottom: 5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info-panel {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.contact-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-section p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
}

.contact-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
}

.contact-form-panel {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-input,
.contact-textarea {
    width: 100%;
    background-color: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
}

.contact-textarea {
    resize: none;
    margin-bottom: 1.5rem;
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   ACCOUNT PAGE FIX (FULL RESPONSIVE FIX)
========================================= */

/* REMOVE unwanted buttons */
.menu-toggle,
.close-sidebar {
  display: none !important;
}

/* FIX CONTAINER OVERFLOW */
.account-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  width: 100%;
}

/* CONTENT FIX */
.account-content {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 24px;
}

/* FORM FIX (IMPORTANT) */
.account-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group input {
  width: 100%;
  box-sizing: border-box;
}

/* TABS */
.account-tabs {
  display: none;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar {
  display: none;
}

.account-tabs .tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 13px;
  white-space: nowrap;
}

.account-tabs .tab.active {
  background: black;
  color: white;
}

/* =========================
   MOBILE FIX (MAIN PART)
========================= */
@media (max-width: 768px) {

  /* REMOVE SIDEBAR */
  .account-sidebar {
    display: none !important;
  }

  /* SHOW TABS */
  .account-tabs {
    display: flex;
  }

  /* FULL WIDTH LAYOUT */
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-content {
    padding: 16px;
  }

  /* FIX OVERFLOW ISSUE */
  .account-container {
    padding: 0 12px;
  }

  /* STACK FORM */
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group input {
    height: 44px;
    font-size: 14px;
    padding: 0 12px;
  }

  /* BUTTON FIX */
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .form-actions button {
    width: 100%;
    height: 44px;
  }

  /* PREVENT RIGHT OVERFLOW */
  body {
    overflow-x: hidden;
  }
}
/* ===============================
   GOOGLE AUTH STYLES
================================ */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before {
    margin-right: 1rem;
}

.auth-divider:not(:empty)::after {
    margin-left: 1rem;
}

.auth-divider span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-google {
    background-color: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #c1c1c1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-google i {
    font-size: 1.25rem;
    color: #4285F4; /* Google Blue */
}

/* Validation Styles */
.input-group-underlined input.is-valid {
    border-bottom-color: #28a745 !important;
}

.input-group-underlined input.is-invalid {
    border-bottom-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.input-group-underlined input.is-invalid + .error-message {
    display: block;
}
