/* ============================================
   Shein Order Syria — Custom Styles
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
    --primary: #CBAACB;
    --primary-dark: #B794B7;
    --primary-light: #E8D5E8;
    --primary-50: #F5EDF5;
    --bg: #FFFFFF;
    --text: #1a1a1a;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    min-height: 100vh;
    padding-bottom: 20px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* ── Sticky Header ── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(203, 170, 203, 0.3);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.header-logo {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.header-search {
    flex: 1 1 100%;
    order: 3;
    position: relative;
    max-width: 100%;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .header-top {
        flex-wrap: nowrap;
    }
    .header-search {
        flex: 1;
        order: unset;
        max-width: 480px;
        margin-top: 0;
    }
}

.header-search input {
    width: 100%;
    padding: 8px 40px 8px 16px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    direction: rtl;
}

.header-search input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.header-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
}

.header-icons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.header-icon {
    position: relative;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 4px;
}

.header-icon:active {
    transform: scale(0.9);
}

.header-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
}

.header-badge.show {
    display: flex;
}

/* ── Categories Scroller ── */
.categories-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    overflow: hidden;
}

.categories-scroll {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 6px 18px;
    border-radius: 25px;
    background: var(--primary-50);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-chip:hover,
.category-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
}

/* ── Banner Slider ── */
.banner-section {
    padding: 16px;
}

.banner-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--radius);
}

.banner-slider::-webkit-scrollbar {
    display: none;
}

.banner-slide {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* ── Section Title ── */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
}

.section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.section-title a {
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 600;
}

/* ── Flash Sale Bar ── */
.flash-sale-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a2d 100%);
    margin: 0 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.flash-sale-bar h3 {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-sale-bar .flash-icon {
    color: #F59E0B;
    font-size: 20px;
}

.countdown {
    display: flex;
    gap: 4px;
    direction: ltr;
}

.countdown-unit {
    background: var(--primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.countdown-sep {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 28px;
}

/* ── Product Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 16px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 16px 24px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 20px 32px;
    }
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.98);
}

.product-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

/* Out of stock overlay */
.product-card.out-of-stock .product-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 1;
}

.product-out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 2;
}

.product-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.product-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    color: var(--text-light);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-wishlist-btn.active {
    color: var(--danger);
}

.product-wishlist-btn:active {
    transform: scale(0.85);
}

.product-flash-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    text-align: center;
    font-weight: 600;
}

.product-card-info {
    padding: 10px 12px;
}

.product-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.product-card-colors {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.product-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.price-syp {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    width: 100%;
}

.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ── Product Detail Page ── */
.product-detail {
    padding-bottom: 80px;
}

.product-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
}

.product-slider-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.product-slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.product-info-section {
    padding: 20px 16px;
}

.product-detail-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
}

.detail-price-original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-discount-badge {
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
}

/* Sizes */
.sizes-section {
    margin-bottom: 20px;
}

.sizes-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .checkout-form {
        padding: 16px;
    }
}

/* ── Sidebar Navigation ── */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.app-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.app-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    height: 40px;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
    text-decoration: none;
}

.sidebar-link i {
    width: 24px;
    font-size: 18px;
    color: var(--text-light);
    margin-left: 12px;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.sidebar-link:hover i, .sidebar-link.active i {
    color: var(--primary-dark);
}

/* Hide original bottom nav if it still exists in cached files */
.bottom-nav {
    display: none !important;
}

/* ── Desktop Sidebar Layout ── */
@media (min-width: 1024px) {
    /* Make sidebar permanently visible on right, below the header */
    .app-sidebar {
        transform: translateX(0) !important;
        box-shadow: -1px 0 0 var(--border);
        top: 61px;
        height: calc(100vh - 61px);
        z-index: 90;
    }
    
    .categories-bar {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .close-sidebar.lg-hidden {
        display: none !important;
    }
    
    /* Push main content to left, but leave header full width */
    .app-main {
        padding-right: 280px;
    }
    
    /* Hide hamburger menu and sidebar header on desktop */
    .btn-menu, .sidebar-header {
        display: none !important;
    }
}
/* ── Desktop Layout for Product Detail ── */
@media (min-width: 1024px) {
    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 40px;
        max-width: 1200px;
        margin: 0 auto;
        align-items: start;
    }
    .product-slider {
        position: sticky;
        top: 80px;
        aspect-ratio: auto;
        height: 600px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .product-slider-track img {
        border-radius: 12px;
    }
    .product-info-section {
        padding: 0;
    }
}

.sizes-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.size-btn:hover {
    border-color: var(--primary);
}

.size-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.size-btn.unavailable {
    opacity: 0.4;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Quantity */
.quantity-section {
    margin-bottom: 20px;
}

.quantity-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--primary-50);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.qty-btn:hover {
    background: var(--primary-light);
}

.qty-value {
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    border: none;
    outline: none;
    background: #fff;
}

/* Delivery Info */
.delivery-info {
    background: var(--primary-50);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-info i {
    font-size: 20px;
    color: var(--primary-dark);
}

.delivery-info span {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}

/* Buy Now Button */
.buy-now-bar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-50);
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    padding: 14px;
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy-now {
    flex: 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(203, 170, 203, 0.4);
}

.btn-buy-now:active {
    transform: scale(0.97);
}

/* ── Bottom Navigation ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    background: none;
    border: none;
    font-family: 'Cairo', sans-serif;
}

.nav-item i {
    font-size: 22px;
    transition: var(--transition);
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-dark);
}

.nav-item.active i {
    color: var(--primary-dark);
}

.nav-item .nav-badge {
    position: absolute;
    top: -2px;
    right: 50%;
    margin-right: -16px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


/* ── Policy Modals ── */
.policy-modal .modal-content {
    border: 2px solid var(--primary);
    max-width: 450px;
}

.policy-modal .modal-header {
    background: var(--primary);
    color: #fff;
    padding: 16px 20px;
    border: none;
}

.policy-modal .modal-close {
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.policy-item {
    background: #f3f4f6;
    padding: 14px 18px;
    border-radius: 12px;
    border-right: 8px solid #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--primary-dark);
}

.policy-links-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1.5px solid #edf2f7;
    margin-bottom: 24px;
}

.policy-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: all 0.2s;
}

.policy-link-item:last-child {
    border-bottom: none;
}

.policy-link-item:active {
    background: #f8fafc;
}

.policy-link-item .left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 700;
}

.policy-link-item .left i {
    color: var(--primary-dark);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.policy-link-item .right i {
    color: #cbd5e0;
    font-size: 14px;
}

/* ── Modals ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
}

.modal-close {
    background: var(--primary-50);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-light);
}

.modal-body {
    padding: 20px;
}

/* Checkout Form */
.checkout-form .form-group {
    margin-bottom: 16px;
}

.checkout-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    direction: rtl;
    background: #fff;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(203, 170, 203, 0.2);
}

.checkout-form textarea {
    resize: vertical;
    min-height: 80px;
}

.checkout-summary {
    background: var(--primary-50);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
}

.checkout-summary-row.total {
    border-top: 2px solid var(--primary-light);
    padding-top: 8px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark);
}

.coupon-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.coupon-row input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
}

.coupon-row button {
    padding: 10px 18px;
    background: var(--primary);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-confirm-order {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(203, 170, 203, 0.4);
}

.btn-confirm-order:active {
    transform: scale(0.97);
}

.btn-confirm-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Cart Form ── */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 70px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-size {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.cart-remove-btn:hover {
    color: var(--danger);
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cart-total .total-amount {
    color: var(--primary-dark);
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

/* ── Order Tracking ── */
.track-page {
    padding: 20px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.track-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.track-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    direction: ltr;
    text-align: right;
}

.track-form button {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.order-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

.order-status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.order-card-body {
    font-size: 13px;
    color: var(--text-light);
}

.order-card-body p {
    margin-bottom: 4px;
}

.order-items-list {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

/* ── Loading / Messages ── */
.loader {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    white-space: normal;
    text-align: center;
    max-width: 90vw;
    width: max-content;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* ── Success Animation ── */
.success-animation {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #E8F5E9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
    color: var(--success);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-animation h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-animation p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 4px;
}

/* ── PWA Install Banner ── */
.pwa-install-banner {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 16px;
    border-radius: var(--radius);
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateY(200px);
    transition: var(--transition);
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-banner .install-text {
    flex: 1;
}

.pwa-install-banner h4 {
    font-size: 14px;
    font-weight: 700;
}

.pwa-install-banner p {
    font-size: 12px;
    opacity: 0.9;
}

.pwa-install-btn {
    padding: 8px 20px;
    background: #fff;
    color: var(--primary-dark);
    border: none;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
}

/* ── Empty States ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    font-size: 14px;
}

/* ── Responsive ── */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }

    .banner-slide img {
        height: 280px;
    }
}

/* ── Category Icon Themes ── */
.icon-pink { color: #FF69B4 !important; }
.icon-deeppink { color: #FF1493 !important; }
.icon-purple { color: #9B59B6 !important; }
.icon-rose { color: #E91E63 !important; }
.icon-blue { color: #3498DB !important; }
.icon-indigo { color: #3F51B5 !important; }
.icon-cyan { color: #00BCD4 !important; }
.icon-teal { color: #16A085 !important; }
.icon-emerald { color: #2ECC71 !important; }
.icon-orange { color: #E67E22 !important; }
.icon-amber { color: #F39C12 !important; }
.icon-red { color: #C0392B !important; }
.icon-brown { color: #A0522D !important; }
.icon-gold { color: #F1C40F !important; }
.icon-magenta { color: #D81B60 !important; }
.icon-sky { color: #5DADE2 !important; }

/* ── Category Icon Style ── */
.cat-ico-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fdfdfd;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-left: 12px;
}
.cat-ico-circle i {
    font-size: 16px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}
.category-chip i {
    font-size: 14px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Custom Confirm Modal ── */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
}

.confirm-modal-card {
    background: white;
    width: 90%;
    max-width: 360px;
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.confirm-modal-overlay.active .confirm-modal-card {
    transform: scale(1);
}

.confirm-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 105, 0, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.confirm-modal-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.confirm-modal-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 28px;
}

.confirm-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.confirm-btn {
    padding: 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn-yes {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px rgba(255, 105, 0, 0.2);
}

.confirm-btn-no {
    background: #f5f5f5;
    color: #888;
}

.confirm-btn:active {
    transform: scale(0.96);
}

/* ── PWA Install Banner ── */
.pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 16px;
    right: 16px;
    background: #fff;
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border);
}

.pwa-install-banner.show {
    bottom: 80px; /* Above the bottom nav bar */
}

@media (min-width: 1024px) {
    .pwa-install-banner {
        left: unset;
        right: 24px;
        width: 320px;
    }
    .pwa-install-banner.show {
        bottom: 24px;
    }
}

.pwa-install-banner .install-text {
    flex: 1;
}

.pwa-install-banner h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pwa-install-banner p {
    font-size: 11px;
    color: var(--text-light);
}

.pwa-install-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}
