@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* Color Palette - Bluenix Inspired */
    --primary-blue: #0a3a5a;
    --primary-blue-hover: #002d4b;
    --currency-symbol: ' د.ل';
    --primary-orange: #f1641e;
    --primary-orange-hover: #d25010;
    --dark-teal: #225a5e;
    --soft-teal: #f5f9f9;
    --bg-white: #ffffff;
    --bg-light: #f8ebe6;
    --text-dark: #222222;
    --text-medium: #595959;
    --text-light: #717171;
    --border-color: #e1e1e1;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-white: #111827;
    --soft-teal: #1f2937;
    --bg-light: #1e293b;
    --text-dark: #f1f5f9;
    --text-medium: #cbd5e1;
    --text-light: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    /* Mobile optimizations */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

input {
    font-family: 'Tajawal', sans-serif;
}

/* Layout Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: var(--bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    cursor: pointer;
}



.search-container {
    flex: 1;
    position: relative;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    padding-left: 50px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.search-container input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(10, 58, 90, 0.1);
}

.search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(10, 58, 90, 0.2);
    z-index: 5;
}

.search-btn:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-50%) scale(1.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon-btn {
    background: transparent;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-orange);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 550px;
    margin: 40px 0 60px 0;
    /* Increased bottom margin for dots */
    border-radius: 30px;
    overflow: hidden;
    /* Changed to hidden to clip the moving slides */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Moved overlay here to stay fixed over the visible area */
.hero-slider-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 2;
}

.slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 30px;
    /* Keep radius on the images container */
    overflow: visible;
    /* Changed to visible so children aren't clipped while moving */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}


.slider-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    /* Subtle adjustment to prevent washed out look */
    filter: brightness(0.98) contrast(1.02);
}

.slider-placeholder {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}


.slider-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    right: 20px;
}

.slider-arrow.next {
    left: 20px;
}

.slider-dots {
    position: absolute;
    bottom: -35px;
    /* Moved outside the image area */

    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(10, 58, 90, 0.35);
    /* Increased visibility */
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dot--active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 10px;
}


@media (max-width: 768px) {
    .hero-slider-section {
        height: 300px;
        border-radius: 20px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }
}


/* Delivery Banner Section */
.delivery-banner-section {
    padding: 20px 0;
    margin: 20px 0;
}

.delivery-banner-container {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.delivery-banner-container:hover {
    transform: translateY(-5px);
}

.delivery-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .delivery-banner-container {
        border-radius: 15px;
    }
}


/* Categories Section */
.categories-section {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
    gap: 15px;
    margin-top: 25px;
}

.category-card {
    background: var(--bg-white);
    padding: 20px 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(10, 58, 90, 0.1);
    background: white;
}

.category-card.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(10, 58, 90, 0.3);
    transform: scale(1.05);
}

.category-card.active i,
.category-card.active span {
    color: white;
}

.category-card i {
    color: var(--primary-blue);
    width: 32px;
    height: 32px;
    transition: var(--transition);
}

.category-card:hover i {
    transform: scale(1.2);
    color: var(--primary-orange);
}

.category-card span {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 10px !important;
    }

    .category-card {
        padding: 15px 10px !important;
    }

    .category-card span {
        font-size: 13px !important;
    }
}

/* Products Section */
.products {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: 20px;
}

.product-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-white);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.product-img-container {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    position: relative;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.heart-icon:hover {
    transform: scale(1.1);
}

.product-info {
    padding: 12px;
    background: var(--bg-white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: auto;
}

.product-rating {
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars-active {
    color: #ffc107;
    letter-spacing: 1px;
}

.rating-count {
    color: var(--text-light);
    font-size: 12px;
}

.free-shipping {
    display: inline-block;
    background: #d4e9d7;
    color: #258635;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 8px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #222;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* Buttons */
.primary-btn {
    background: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.primary-btn:hover:not(:disabled) {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
}

.primary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.full-width {
    width: 100%;
}

.close-btn {
    background: none;
    padding: 5px;
    color: var(--text-dark);
    cursor: pointer;
    border: none;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: left 0.4s ease;
}

.cart-drawer.active {
    left: 0;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-blue);
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 50px;
}

.cart-drawer-footer {
    padding: 20px;
    background: #fdfdfd;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    position: relative;
    padding: 40px;
}

/* --- Enhanced Checkout Modal Styles --- */
.checkout-modal .modal-content {
    max-width: 500px;
    padding: 0;
    overflow: hidden;
    border-radius: 30px;
}

.checkout-container {
    padding: 30px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.checkout-steps .step {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.checkout-steps .step.active {
    color: var(--primary-blue);
}

.checkout-steps .line {
    width: 30px;
    height: 2px;
    background: var(--border-color);
}

.input-group-modern,
.input-modern-textarea {
    position: relative;
    margin-bottom: 20px;
}

.input-group-modern i,
.input-modern-textarea i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 20px;
}

.input-modern-textarea i {
    top: 25px;
}

.input-group-modern input,
.input-modern-textarea textarea {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-family: inherit;
    font-size: 16px;
    background: transparent;
    transition: var(--transition);
}

.input-modern-textarea textarea {
    height: 80px;
    resize: none;
}

.input-group-modern input:focus,
.input-modern-textarea textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.payment-selection-clean {
    margin: 25px 0;
}

.payment-badge {
    background: rgba(10, 58, 90, 0.05);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: var(--primary-blue);
    font-weight: 700;
}

.confirm-order-btn {
    background: var(--primary-blue);
    color: white;
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.confirm-order-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(10, 58, 90, 0.2);
}

.checkout-summary-compact {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    font-weight: 800;
    font-size: 18px;
    color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-amount-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.old-price-strike {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-left: 10px;
}

/* Coupon Styles */
.coupon-group {
    display: flex;
    gap: 10px;
}

.coupon-group input {
    flex: 1;
}

.apply-btn {
    background: var(--primary-orange);
    color: white;
    padding: 0 20px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.apply-btn:hover {
    background: var(--primary-orange-hover);
}

.discount-row {
    color: #258635;
    font-weight: 700;
    display: none;
}

/* Coupon Gift Modal Styles */
.coupon-gift-content {
    text-align: center;
    padding: 20px;
}

.coupon-gift-content i {
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.coupon-box {
    background: #f0f7ff;
    border: 2px dashed var(--primary-blue);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-box #couponText {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: 2px;
}

.copy-btn {
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.copy-btn:hover {
    background: var(--primary-blue-hover);
}

/* --- Profile Modal (Premium Glassmorphism) --- */
.user-profile-modal .modal-content {
    max-width: 550px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 35px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #002d4b 100%);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-info-text h2 {
    color: white;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
}

.profile-info-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.profile-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8fafc;
    padding: 10px;
    gap: 5px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 15px 10px;
    background: transparent;
    border: none;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn i {
    width: 22px;
    height: 22px;
    color: var(--text-light);
}

.tab-btn span {
    font-size: 11px;
    font-weight: 700;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    color: var(--primary-blue);
}

.tab-btn.active i {
    color: var(--primary-blue);
}

.profile-tab-content {
    display: none;
    padding: 30px;
    min-height: 350px;
    max-height: 500px;
    overflow-y: auto;
    animation: profileFadeIn 0.4s ease forwards;
}

.profile-tab-content.active {
    display: block;
}

@keyframes profileFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.theme-switch {
    width: 50px;
    height: 26px;
    background: #e2e8f0;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="dark"] .theme-switch {
    background: var(--primary-blue);
}

.switch-handle {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    right: 3px;
    transition: var(--transition);
}

[data-theme="dark"] .switch-handle {
    right: 27px;
}

.settings-select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- Product Detail Modal --- */
.detail-modal .modal-content {
    max-width: 900px;
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.detail-image {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: var(--bg-white);
}

.detail-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.3;
}

.detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-orange);
}

.detail-category {
    font-size: 14px;
    color: var(--text-light);
    background: var(--soft-teal);
    padding: 8px 15px;
    border-radius: 20px;
    width: fit-content;
}

.detail-desc {
    color: var(--text-medium);
    line-height: 1.9;
    font-size: 16px;
}

.detail-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.detail-actions .primary-btn {
    padding: 18px 30px;
    font-size: 18px;
}

/* Animation for Product Cards Click */
.product-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-card:active {
    transform: scale(0.97);
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-info {
        padding: 30px;
    }

    .detail-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }

    .cart-drawer {
        width: 100%;
        left: -100%;
    }
}

/* Enhanced Profile Modal */
.user-profile-modal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfc 100%);
    padding: 0;
    max-width: 650px;
}

.profile-header {
    background: var(--primary-blue);
    padding: 40px 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.profile-info-text h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-info-text p {
    font-size: 14px;
    opacity: 0.8;
}

.profile-tabs {
    display: flex;
    padding: 10px 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn i {
    width: 20px;
}

.tab-btn.active {
    color: var(--primary-blue);
    background: rgba(10, 58, 90, 0.05);
}

.favorites-grid-view {
    padding: 20px 30px 40px;
    min-height: 300px;
}

.fav-empty {
    text-align: center;
    padding: 60px 0;
}

.empty-icon {
    font-size: 50px;
    color: #ffdce0;
    margin-bottom: 15px;
}

.fav-card {
    display: flex;
    background: white;
    border-radius: 15px;
    padding: 12px;
    gap: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.fav-card:hover {
    transform: translateX(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.fav-card-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.fav-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fav-card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 5px;
}

.fav-card-price {
    color: var(--primary-blue);
    font-weight: 800;
}

.fav-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile-modal .close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    z-index: 10;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .promo-banner {
        padding: 40px 20px;
    }

    .promo-banner h1 {
        font-size: 32px;
    }

    .logo img {
        height: 40px;
    }

    .nav-actions span {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ENHANCED Product Detail Modal Styles
   ============================================ */

.enhanced-detail-grid {
    display: flex;
    flex-direction: column;
    min-height: auto;
    background: var(--bg-white);
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.enhanced-detail-image {
    background: radial-gradient(circle at center, #ffffff 0%, #f0f4f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px;
    transition: var(--transition);
    max-height: 500px;
}

.enhanced-detail-info {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-white);
    border-right: none;
    border-top: 1px solid var(--border-color);
}

.interactive-rating {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.rating-stars {
    display: flex;
    gap: 5px;
    justify-content: flex-start;
}

.rating-stars i {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.rating-stars i:hover {
    transform: scale(1.2);
}

.rating-stars i.active {
    fill: #ffc107;
    color: #ffc107;
}

.rating-feedback {
    font-size: 13px;
    color: #258635;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rating-feedback.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .enhanced-detail-image {
        padding: 20px;
        max-height: 400px;
    }

    .enhanced-detail-info {
        padding: 30px 20px;
    }

    .enhanced-detail-title {
        font-size: 28px;
    }
}


.enhanced-detail-image {
    background: radial-gradient(circle at center, #ffffff 0%, #f0f4f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px;
    transition: var(--transition);
    max-height: 500px;
    min-height: 300px;
}

.enhanced-detail-image::before {
    content: '';
    position: absolute;
    bottom: 40px;
    width: 60%;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    filter: blur(15px);
    border-radius: 50%;
}

.enhanced-detail-info {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.enhanced-detail-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.enhanced-detail-image:hover img {
    transform: translateY(-15px) scale(1.05);
}

.image-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 13px;
    z-index: 10;
}

.image-badge i {
    width: 18px;
    height: 18px;
}

.detail-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-preorder {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffecb3;
}

.enhanced-detail-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-blue), #2c5282);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.enhanced-detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107;
    font-size: 18px;
    letter-spacing: 2px;
}

.rating-text {
    color: var(--text-light);
    font-size: 14px;
}

.enhanced-detail-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 24px;
    border: 1px solid rgba(10, 58, 90, 0.1);
    position: relative;
    overflow: hidden;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 15px;
    color: var(--text-medium);
    font-weight: 700;
    margin-bottom: 5px;
}

.price-value {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

.price-value small {
    font-size: 18px;
    font-weight: 600;
    margin-right: 5px;
}

.delivery-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 700;
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 12px;
}

.delivery-hint i {
    width: 16px;
    height: 16px;
}

.premium-features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 15px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.premium-features-list li:hover {
    background: #f1f5f9;
    transform: translateX(-5px);
}

.premium-features-list li i {
    color: var(--primary-blue);
    width: 20px;
    height: 20px;
}

/* Entrance Animations */
@keyframes entrySlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes entryZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes entryFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.entry-anim-slide {
    animation: entrySlideUp 0.6s ease forwards;
    opacity: 0;
}

.entry-anim-zoom {
    animation: entryZoom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.entry-anim-fade {
    animation: entryFade 1s ease forwards;
    opacity: 0;
}

[data-theme="dark"] .enhanced-detail-price {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .premium-features-list li {
    background: #1e293b;
    color: white;
}

[data-theme="dark"] .delivery-hint {
    background: rgba(46, 125, 50, 0.2);
}

.enhanced-detail-category {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 600;
}

.enhanced-detail-category i {
    width: 18px;
    height: 18px;
    color: var(--primary-orange);
}

.enhanced-detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 10px 0;
}

.enhanced-detail-desc,
.enhanced-detail-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.enhanced-detail-desc h3,
.enhanced-detail-features h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.enhanced-detail-desc h3 i,
.enhanced-detail-features h3 i {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
}

.enhanced-detail-desc p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 15px;
}

.enhanced-detail-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enhanced-detail-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--soft-teal);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.enhanced-detail-features li:hover {
    background: rgba(10, 58, 90, 0.08);
    transform: translateX(-5px);
}

.enhanced-detail-features li i {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.enhanced-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.enhanced-add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #002d4b 100%);
    color: white;
    padding: 22px 35px;
    border: none;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(10, 58, 90, 0.25);
}

.enhanced-add-to-cart-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(10, 58, 90, 0.35);
}

.enhanced-add-to-cart-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.enhanced-add-to-cart-btn.success-state {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

.enhanced-favorite-btn {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.enhanced-favorite-btn:hover {
    border-color: #ff4d6d;
    background: #fff5f7;
}

.enhanced-favorite-btn.is-favorite {
    background: #ff4d6d;
    border-color: #ff4d6d;
    color: white;
}

.enhanced-favorite-btn.is-favorite:hover {
    background: #e63950;
}

.enhanced-favorite-btn i {
    width: 24px;
    height: 24px;
}

/* Dark Mode Enhancements for Detail Modal */
[data-theme="dark"] .enhanced-detail-image {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .image-badge {
    background: #1e293b;
    color: #60a5fa;
}

[data-theme="dark"] .enhanced-detail-price {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-right-color: #60a5fa;
}

[data-theme="dark"] .price-value {
    color: #60a5fa;
}

[data-theme="dark"] .enhanced-detail-features li {
    background: #1e293b;
}

[data-theme="dark"] .enhanced-detail-features li:hover {
    background: #2d3b4e;
}

[data-theme="dark"] .enhanced-favorite-btn {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .cart-drawer {
    background: var(--bg-white);
}

[data-theme="dark"] .cart-drawer-footer {
    background: var(--soft-teal);
}

/* Responsive for Enhanced Detail */
@media (max-width: 900px) {
    .enhanced-detail-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .enhanced-detail-image {
        padding: 30px;
        min-height: 400px;
    }

    .enhanced-detail-info {
        padding: 40px 30px;
    }

    .enhanced-detail-title {
        font-size: 28px;
    }

    .price-value {
        font-size: 26px;
    }

    .detail-badge-status {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ============================================
   NEW PRODUCTS SLIDER STYLES
   ============================================ */

.new-products-slider {
    padding: 50px 0;
    background: var(--soft-teal);
    margin: 40px -20px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.slider-header .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.slider-header .section-title i {
    width: 28px;
    height: 28px;
    color: var(--primary-orange);
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.slider-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn i {
    width: 22px;
    height: 22px;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-product-card {
    flex: 0 0 220px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.slider-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(10, 58, 90, 0.15);
    border-color: var(--primary-blue);
}

.slider-product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
}

.slider-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    /* Subtle border-bottom and brightness adjustment */
    filter: brightness(0.99);
}

.slider-product-card:hover .slider-product-img img {
    transform: scale(1.1);
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.slider-product-info {
    padding: 20px;
}

.slider-product-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: auto;
}

.slider-product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.slider-add-btn {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.slider-add-btn:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 58, 90, 0.3);
}

.slider-add-btn i {
    width: 18px;
    height: 18px;
}

/* Dark Mode for Slider */
[data-theme="dark"] .new-products-slider {
    background: var(--soft-teal);
}

[data-theme="dark"] .slider-product-card {
    background: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .slider-product-img {
    background: #1e293b;
}

[data-theme="dark"] .slider-btn {
    background: var(--bg-white);
    border-color: var(--border-color);
}

/* Responsive for Slider */
@media (max-width: 768px) {
    .new-products-slider {
        margin: 30px -20px;
        padding: 40px 0;
    }

    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .slider-product-card {
        flex: 0 0 240px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

/* Payment Methods Styling */
.payment-options {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.payment-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.payment-option i {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

.payment-option span {
    font-size: 13px;
    font-weight: 600;
}

.payment-option.active {
    border-color: var(--primary-blue);
    background: rgba(10, 58, 90, 0.05);
}

.payment-option.active i {
    color: var(--primary-blue);
}

.bank-details-box {
    margin-top: 20px;
    background: #f0f7ff;
    border: 1px dashed var(--primary-blue);
    border-radius: 15px;
    padding: 20px;
    animation: fadeIn 0.4s ease forwards;
}

[data-theme="dark"] .bank-details-box {
    background: rgba(10, 58, 90, 0.1);
}

.bank-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .bank-info-item {
    background: #1e293b;
}

.account-number {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.copy-small-btn {
    background: #eee;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.copy-small-btn:hover {
    background: #ddd;
}

.bank-instructions p {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.4;
}

.whatsapp-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: 0.3s;
}

.whatsapp-confirm-btn:hover {
    background: #128c7e;
    transform: scale(1.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bank Image Modal Styles */
.bank-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.bank-image-modal.active {
    display: flex;
}

.bank-image-modal-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    max-width: 800px;
    width: 100%;
    animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .bank-image-modal-content {
    background: #1e293b;
}

.bank-image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

.close-img-modal {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--primary-orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Small Bank Actions Styling */
.bank-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.whatsapp-direct-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.whatsapp-direct-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(18, 140, 126, 0.3);
}

.confirm-transfer-small-btn {
    background: var(--bg-white);
    color: var(--text-medium);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirm-transfer-small-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(10, 58, 90, 0.02);
}

.confirm-transfer-small-btn.confirmed {
    background: #e6fcf5;
    color: #0ca678;
    border-color: #0ca678;
    box-shadow: 0 4px 12px rgba(12, 166, 120, 0.15);
}

[data-theme="dark"] .confirm-transfer-small-btn.confirmed {
    background: rgba(12, 166, 120, 0.1);
    color: #20c997;
}

/* Order Success Modal Styles */
.success-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 50px 30px;
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    background: #e6fcf5;
    color: #0ca678;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: successBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-wrapper i {
    width: 50px;
    height: 50px;
}

.success-modal h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.success-modal p {
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.order-id-badge {
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .success-icon-wrapper {
    background: rgba(12, 166, 120, 0.1);
}

[data-theme="dark"] .order-id-badge {
    background: #1e293b;
    border-color: #334155;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Profile Order and Tracking Styles */
.profile-tab-content {
    padding: 15px;
}

.profile-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .profile-order-item {
    background: #1e293b;
    border-color: #334155;
}

.order-id {
    font-weight: bold;
    color: var(--primary-color);
}

.order-total {
    color: #258635;
    font-weight: 600;
}

.order-date {
    font-size: 12px;
    color: #777;
}

.tracking-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .tracking-card {
    background: #1e293b;
    border-color: #334155;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.processing {
    background: #cce5ff;
    color: #004085;
}

.status-badge.shipping {
    background: #d4edda;
    color: #155724;
}

.status-badge.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.tracking-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
    padding: 0 10px;
    padding-top: 30px;
}

.stepper-line {
    position: absolute;
    top: 45px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #eee;
    z-index: 1;
    border-radius: 10px;
}

[data-theme="dark"] .stepper-line {
    background: #334155;
}

.stepper-progress {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: var(--primary-blue, #0a3a5a);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.motorcycle-wrapper {
    position: absolute;
    top: -35px;
    transform: scaleX(-1);
    /* Flip for RTL if needed, but bike is symmetric-ish */
    transition: right 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.motorcycle-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-blue, #0a3a5a);
    animation: bikeRide 0.5s infinite alternate ease-in-out;
}

[data-theme="dark"] .motorcycle-icon {
    color: #60a5fa;
}

@keyframes bikeRide {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

.tracking-stepper .step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    background: #eee;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #777;
    transition: all 0.3s ease;
}

[data-theme="dark"] .step-circle {
    background: #334155;
    color: #94a3b8;
}

.step-label {
    font-size: 11px;
    color: #777;
}

.step.active .step-circle {
    background: var(--primary-blue, #0a3a5a);
    color: #fff;
    box-shadow: 0 0 10px rgba(10, 58, 90, 0.3);
}

.step.active .step-label {
    color: var(--primary-blue, #0a3a5a);
    font-weight: 600;
}

[data-theme="dark"] .step.active .step-label {
    color: #60a5fa;
}

.order-items-minimal {
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

[data-theme="dark"] .order-items-minimal {
    color: #94a3b8;
    border-top-color: #334155;
}

/* Notification Badge */
.nav-icon-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .notification-badge {
    border-color: #1e293b;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Tracking Info Modal */
.tracking-info-modal .modal-content {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.tracking-info-body {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tracking-info-img {
    width: 100%;
    height: auto;
    display: block;
}

.tracking-info-footer {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
}

[data-theme="dark"] .tracking-info-body {
    background: #1e293b;
}

[data-theme="dark"] .tracking-info-footer {
    background: #0f172a;
}

/* Global Loading Screen */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d47a1;
    /* Deep blue professional color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
    pointer-events: none;
}

.global-loader.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.loader-logo {
    width: 320px;
    /* Slightly larger as requested */
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
    opacity: 0;
    /* Starts hidden to allow animation to start from 0 if needed, but we'll use keyframes */
}

.global-loader.active .loader-logo {
    animation: shrinkAndFade 1.25s ease-in-out forwards;
}

@keyframes shrinkAndFade {
    0% {
        transform: scale(1.3);
        opacity: 1;
    }

    70% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Category Page Overlay */
.category-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 5000;
    overflow-y: auto;
    display: none;
    animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-page.active {
    display: block;
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.category-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.back-btn-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
}

.back-btn-modern:hover {
    background: var(--primary-blue);
    color: white;
}

.category-page-title-box {
    text-align: left;
}

.category-page-title-box h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
}

.category-page-title-box p {
    color: var(--text-light);
    font-size: 14px;
}

[data-theme="dark"] .category-page {
    background: #0f172a;
}

[data-theme="dark"] .back-btn-modern {
    background: #1e293b;
    color: #60a5fa;
}

[data-theme="dark"] .back-btn-modern:hover {
    background: #60a5fa;
    color: white;
}


/* ============================================================
   MOBILE OVERRIDES & OPTIMIZATIONS (Organized for Phones)
   ============================================================ */

/* Bottom Nav - App style */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-medium);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.bottom-nav-item i {
    width: 20px;
    height: 20px;
}

.bottom-nav-item.active {
    color: var(--primary-blue);
}

@media (max-width: 768px) {

    /* Critical: Prevent horizontal scroll */
    html,
    body {
        padding-bottom: 80px;
        width: 100%;
        overflow-x: hidden !important;
        /* Space for bottom nav - increased for better spacing */
    }

    * {
        max-width: 100%;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .container {
        padding: 0 10px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        /* Slightly reduced padding for more content space */
    }

    /* Ensure all images fit */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Header & Nav */
    header {
        padding: 8px 0;
    }

    .nav-wrapper {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo img {
        height: 38px !important;
        max-width: 100px !important;
        /* Smaller logo for better mobile proportion */
    }

    .search-container {
        flex: 1;
        min-width: 0;
    }

    .search-container input {
        padding: 9px 12px;
        padding-left: 38px;
        font-size: 13px;
        border-radius: 25px;
    }

    .search-btn {
        width: 30px;
        height: 30px;
        left: 5px;
    }

    /* Hide some header icons to move them to bottom nav */
    #userBtn,
    #giftBtn {
        display: none;
    }

    .nav-icon-btn {
        padding: 6px;
    }

    /* Hero Slider */
    .hero-slider-section {
        height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        /* Optimized height for mobile */
        margin: 15px 0 35px 0;
        border-radius: 12px;
        overflow: hidden !important;
    }

    .slider-arrow {
        display: none;
    }

    .slider-dots {
        bottom: -22px;
        gap: 6px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot--active {
        width: 20px;
    }

    /* Section Titles */
    .section-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    /* Categories Section */
    .categories-section {
        padding: 30px 0;
    }

    /* Slider Product Card Mobile Size */
    .slider-product-card {
        flex: 0 0 150px !important;
        /* Smaller for better fit */
    }

    .slider-product-info {
        padding: 10px !important;
    }

    /* New Products Slider */
    .new-products-slider {
        margin: 25px 0;
    }

    .slider-header {
        margin-bottom: 15px !important;
    }

    .slider-controls {
        gap: 5px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    /* Product Grid - 2 Columns */
    .product-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .product-card {
        border-radius: 10px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-img-container {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 1 !important;
    }

    .product-info {
        padding: 8px;
    }

    .product-title {
        font-size: 11px !important;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-price {
        font-size: 13px !important;
    }

    .heart-icon {
        width: 24px;
        height: 24px;
        top: 5px;
        right: 5px;
    }

    /* Products Section */
    .products {
        padding: 20px 0;
    }

    /* Modals */
    .modal {
        width: 95% !important;
        max-height: 90vh !important;
        border-radius: 15px;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        /* تمرير ناعم على أجهزة iOS */
    }

    .modal-content {
        padding: 20px 12px !important;
    }

    .checkout-container {
        padding: 12px;
    }

    .checkout-header h2 {
        font-size: 20px;
    }

    .input-group-modern input,
    .input-modern-textarea textarea {
        font-size: 14px;
        padding: 12px 12px 12px 40px;
    }

    /* ضمان أن المحتوى الداخلي لا يمنع التمرير في نافذة التفاصيل */
    .detail-modal .modal-content {
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .enhanced-detail-grid {
        overflow: visible !important;
    }

    /* Cart Drawer */
    .cart-drawer {
        width: 100% !important;
        left: -100%;
    }

    .cart-drawer.active {
        left: 0;
    }

    .cart-drawer-header h3 {
        font-size: 18px;
    }

    .cart-item {
        gap: 10px;
        margin-bottom: 15px;
    }

    .cart-item-img {
        width: 60px;
        height: 60px;
    }

    .cart-item-title {
        font-size: 13px;
    }

    .cart-total {
        font-size: 16px;
    }

    /* Footer */
    footer {
        padding: 30px 0 15px;
        margin-top: 30px;
        margin-bottom: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-section,
    .footer-links {
        align-items: center;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 13px;
    }

    /* Delivery Banner */
    .delivery-banner-section {
        padding: 15px 0;
        margin: 15px 0;
    }

    .delivery-banner-container {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {

    /* Extra small screens adjustments */
    .nav-wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 40px !important;
    }

    .nav-actions {
        order: 2;
    }

    /* Hero Slider even smaller */
    .hero-slider-section {
        height: 180px !important;
        margin: 12px 0 30px 0;
        border-radius: 10px;
    }

    /* Product titles smaller */
    .product-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-price {
        font-size: 13px;
    }

    /* Section titles */
    .section-title {
        font-size: 16px !important;
    }

    /* Bottom navigation increased size for better touch */
    .mobile-bottom-nav {
        padding: 12px 0;
    }

    .bottom-nav-item {
        font-size: 9px;
    }

    .bottom-nav-item i {
        width: 22px;
        height: 22px;
    }

    /* Modal further optimized */
    .modal {
        width: 98% !important;
        max-height: 90vh !important;
    }

    .modal-content {
        padding: 15px 10px !important;
    }

    /* Checkout inputs smaller */
    .input-group-modern input {
        font-size: 13px;
        padding: 10px 10px 10px 35px;
    }

    /* Cart item smaller */
    .cart-item-img {
        width: 50px;
        height: 50px;
    }

    .cart-item-title {
        font-size: 12px;
    }
}