/* =====================================================
   USEOOO MARKETPLACE - MINIMAL STYLE
   Inspired by jomla.ae | Clean & Modern
   SOLID COLORS ONLY - No Gradients
   ===================================================== */

/* CSS Variables - USEOOO Brand Identity */
:root {
    /* Brand Colors from Logo */
    --primary-color: #ff7a1a;
    --primary-hover: #e5670b;
    --primary-light: #fff4ea;

    --secondary-color: #111827;
    --accent-color: #7ccf3a;
    --accent-light: #e9ffe0;

    /* States */
    --success-color: #16a34a;
    --warning-color: #facc15;
    --danger-color: #ef4444;

    /* Backgrounds */
    --bg-main: #f4f5f7;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;

    /* Text */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    /* Border & Shadow */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 6px 16px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 8px 18px rgba(0, 0, 0, 0.20);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 20px;
    --radius-full: 999px;

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========= GLOBAL BACKGROUND & TYPO ========= */
body {
    background: var(--bg-main) !important;
    color: var(--text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Cairo", sans-serif !important;
    line-height: 1.6;
}

.container {
    max-width: 1400px !important;
}

a {
    text-decoration: none !important;
}

main,
.main-content {
    padding-top: 10px;
    padding-bottom: 32px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
}

/* ========= UNIFIED BUTTON SYSTEM ========= */
.btn-uo-primary {
    background: var(--primary-color);
    color: #ffffff !important;
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-uo-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #ffffff !important;
}

.btn-uo-outline {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color) !important;
    border-radius: var(--radius-full);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-uo-outline:hover {
    background: var(--primary-light);
    color: var(--primary-color) !important;
}

.btn-uo-white-outline {
    background: transparent;
    color: #fff !important;
    border-radius: var(--radius-full);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-uo-white-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff !important;
}

/* ========= TOP BAR ========= */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: #e5e7eb;
    font-size: 13px;
    padding: 8px 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
}

.top-bar i {
    color: var(--primary-color);
    margin-inline-end: 6px;
}

.top-bar .accent {
    font-weight: 700;
    color: var(--accent-color);
}

.top-bar .top-link {
    color: #f9fafb;
    font-weight: 600;
    padding: 5px 14px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-full);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar .top-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========= HEADER ========= */
.navbar {
    background: var(--bg-white) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 48px;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

/* Header Search */
.header-search {
    max-width: 500px;
    width: 100%;
    display: flex;
}

.header-search .form-control {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 10px 18px;
    font-size: 14px;
    background: var(--bg-light);
    transition: var(--transition);
}

.header-search .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background: var(--bg-white);
}

.header-search .btn-search {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 0 22px;
    transition: var(--transition);
}

.header-search .btn-search:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Seller Button */
.btn-seller {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}

.btn-seller:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icons a {
    color: var(--text-secondary);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: var(--transition);
}

.header-icons a i {
    font-size: 18px;
}

.header-icons a:hover {
    color: var(--primary-color);
}

.header-icons .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger-color);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========= CATEGORY BAR (HORIZONTAL) ========= */
.category-bar-v2 {
    background: var(--bg-white);
    border-radius: var(--radius-full);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

.category-bar-v2::-webkit-scrollbar {
    display: none;
}

.category-item-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 78px;
    padding: 8px 6px;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: var(--transition);
}

.category-item-v2:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.category-item-v2 img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
    margin-bottom: 6px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.category-item-v2:hover img {
    border-color: var(--primary-color);
}

.category-item-v2 span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 74px;
}

/* ========= MAIN CATEGORY CARDS ========= */
.main-category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    height: 100%;
}

.main-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.main-category-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
    transition: var(--transition);
}

.main-category-card:hover .main-category-icon {
    background: var(--primary-color);
    color: #fff;
}

.main-category-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.main-category-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* ========= HERO AREA ========= */
.hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 991px) {
    .hero-v2 {
        grid-template-columns: 1fr;
    }

    .hero-right {
        flex-direction: row;
    }

    .hero-right .promo-card img {
        height: 140px;
    }
}

/* Main Slider Card */
.hero-slider {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    height: 360px;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    filter: brightness(0.94);
}

/* Overlay Content - Semi-transparent solid */
.hero-slider-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 24px 28px;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
}

.hero-slider-content h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-slider-content p {
    font-size: 14px;
    max-width: 360px;
    margin-bottom: 14px;
    opacity: 0.95;
}

.hero-slider-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Swiper Pagination */
.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 22px;
    border-radius: 4px;
}

/* Hero Right Promos */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 360px;
}

.promo-card {
    flex: 1;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.promo-card:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.promo-card:hover img {
    transform: scale(1.05);
}

/* ========= FLASH DEALS BAR ========= */
.flash-deals-bar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.flash-deals-bar h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-deals-bar h3 i {
    color: var(--primary-color);
    animation: flash 1s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.flash-deals-bar .countdown {
    display: flex;
    gap: 4px;
}

.flash-deals-bar .countdown-item {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
}

/* ========= SECTION HEADERS ========= */
.section-header-v2 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 0;
    margin: 18px 0 10px;
    border-bottom: none;
}

.section-title-v2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-v2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header-v2 small {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.see-all-v2 {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    transition: var(--transition);
}

.see-all-v2:hover {
    background: var(--primary-color);
    color: #fff;
}

.see-all-v2 i {
    font-size: 10px;
}

/* ========= OFFER BANNER BETWEEN SECTIONS ========= */
.offer-banner-v2 {
    margin: 14px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.offer-banner-v2:hover {
    box-shadow: var(--shadow-md);
}

.offer-banner-v2 img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
}

/* ========= BRANDS ========= */
.brands-section-v2 {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.brand-item-v2 {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    min-height: 60px;
    transition: var(--transition);
}

.brand-item-v2 img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item-v2:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.brand-item-v2:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========= VENDORS SECTION ========= */
.vendors-section {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.vendor-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.vendor-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.vendor-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.vendor-logo img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.vendor-name {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--text-primary);
}

.vendor-meta {
    font-size: 11px;
    margin: 0;
    color: var(--text-muted);
}

.vendor-meta .rating {
    color: var(--warning-color);
}

.vendor-verified {
    background: var(--accent-light);
    color: var(--success-color);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: 6px;
    font-weight: 600;
}

/* ========= PRODUCT CARDS ========= */
.product-card-v2 {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 12px 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.product-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card-v2::before {
    display: none;
}

.product-img-v2 {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    margin-bottom: 10px;
    transition: var(--transition);
}

.product-card-v2:hover .product-img-v2 {
    transform: scale(1.03);
}

.product-title-v2 {
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0;
    min-height: 38px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title-v2 a {
    color: var(--text-primary);
    transition: var(--transition);
}

.product-title-v2 a:hover {
    color: var(--primary-color);
}

/* Vendor Badge */
.vendor-badge {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.vendor-badge i {
    color: var(--accent-color);
}

/* Product Rating */
.product-rating-v2 {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    margin-bottom: 6px;
}

.product-rating-v2 i {
    font-size: 10px;
    color: var(--warning-color);
}

.product-rating-v2 span {
    color: var(--text-muted);
    font-size: 10px;
    margin-inline-start: 4px;
}

/* Product Price */
.product-price-v2 {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.product-price-v2 .current-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-color);
}

.product-old-price-v2 {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.save-badge {
    background: var(--accent-color);
    color: #ffffff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.discount-badge {
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

/* Wishlist Icon */
.wishlist-icon-v2 {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 2;
    transition: var(--transition);
}

.wishlist-icon-v2 i {
    font-size: 14px;
}

.wishlist-icon-v2:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.wishlist-icon-v2.active {
    background: var(--accent-light);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Sale Badge */
.sale-badge-v2 {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: var(--danger-color);
    color: #ffffff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    z-index: 2;
}

/* Add to Cart Button */
.add-to-cart-btn-v2 {
    margin-top: auto;
    width: 100%;
    border-radius: var(--radius-full);
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart-btn-v2:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: #ffffff;
}

.add-to-cart-btn-v2::before {
    content: '🛒';
    font-size: 12px;
}

/* ========= TRUST SECTION ========= */
.trust-section {
    padding: 16px 0 28px;
    background: transparent;
}

.trust-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.trust-item i {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--accent-color);
    display: block;
}

.trust-item h6 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.trust-item small {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========= FOOTER ========= */
footer {
    background: var(--secondary-color) !important;
    color: #9ca3af;
}

footer h4,
footer h5 {
    color: #fff !important;
}

footer a {
    color: #9ca3af !important;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* ========= SCROLL TO TOP ========= */
.scroll-to-top {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset-inline-end: 18px;
    bottom: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    font-size: 16px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* ========= SWIPER OVERRIDES ========= */
.swiper-button-next,
.swiper-button-prev {
    background: var(--bg-white);
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 12px !important;
    font-weight: bold;
    color: var(--text-primary);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: #fff;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 991px) {
    .top-bar .container {
        justify-content: center;
    }

    .top-bar-left {
        display: none;
    }

    .hero-slider,
    .hero-slider .swiper-slide img {
        height: 280px;
    }

    .hero-right {
        height: auto;
    }

    .hero-slider-content {
        padding: 18px;
    }

    .hero-slider-content h1 {
        font-size: 20px;
    }

    .hero-slider-content p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 6px 8px;
        font-size: 11px;
    }

    .category-bar-v2 {
        padding: 8px 10px;
        border-radius: var(--radius-lg);
    }

    .category-item-v2 {
        min-width: 66px;
    }

    .category-item-v2 img {
        width: 36px;
        height: 36px;
    }

    .hero-slider,
    .hero-slider .swiper-slide img {
        height: 200px;
    }

    .section-title-v2 {
        font-size: 15px;
    }

    .section-header-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .product-img-v2 {
        height: 130px;
    }

    .product-price-v2 .current-price {
        font-size: 15px;
    }

    .add-to-cart-btn-v2 {
        padding: 8px 10px;
        font-size: 11px;
    }

    .main-category-card {
        padding: 12px;
    }

    .main-category-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }

    .main-category-info h3 {
        font-size: 12px;
    }

    .trust-item {
        padding: 12px 8px;
    }

    .trust-item i {
        font-size: 18px;
    }
}

/* ========= RTL SUPPORT (Arabic) ========= */
[dir="rtl"] .section-title-v2::before {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .see-all-v2:hover {
    transform: translateX(3px);
}

/* ========= GLASS CATEGORY BAR - Glassmorphism Style ========= */
.category-glass-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    overflow-x: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-glass-bar::-webkit-scrollbar {
    height: 4px;
}

.category-glass-bar::-webkit-scrollbar-track {
    background: transparent;
}

.category-glass-bar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.category-glass-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 155px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-glass-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px 14px 50% 50%;
    pointer-events: none;
}

.glass-icon {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7ccf3a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 207, 58, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-icon i {
    font-size: 16px;
}

.glass-icon-all {
    background: #111827;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.4);
}

.glass-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.glass-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.glass-sub {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

.category-glass-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.98);
}

.category-glass-item:hover .glass-icon {
    transform: scale(1.08);
}

.category-glass-item.active {
    background: #fff4ea;
    border-color: #ff7a1a;
}

.category-glass-item.active::before {
    background: rgba(255, 122, 26, 0.12);
}

.category-glass-item.active .glass-icon {
    background: #ff7a1a;
    box-shadow: 0 4px 12px rgba(255, 122, 26, 0.5);
}

.category-glass-item.active .glass-title {
    color: #e5670b;
}

.category-glass-item.active .glass-sub {
    color: #ff7a1a;
}

.category-glass-item:nth-child(2) .glass-icon {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.category-glass-item:nth-child(3) .glass-icon {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.category-glass-item:nth-child(4) .glass-icon {
    background: #ec4899;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.category-glass-item:nth-child(5) .glass-icon {
    background: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.category-glass-item:nth-child(6) .glass-icon {
    background: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.category-glass-item:nth-child(7) .glass-icon {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.category-glass-item:nth-child(8) .glass-icon {
    background: #06b6d4;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.category-glass-item:nth-child(9) .glass-icon {
    background: #84cc16;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.4);
}

.category-glass-item:nth-child(10) .glass-icon {
    background: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
    .category-glass-bar {
        padding: 8px 10px;
        border-radius: 18px;
        gap: 8px;
    }

    .category-glass-item {
        padding: 8px 10px;
        min-width: 130px;
        border-radius: 12px;
    }

    .glass-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 10px;
    }

    .glass-icon i {
        font-size: 14px;
    }

    .glass-title {
        font-size: 12px;
        max-width: 80px;
    }

    .glass-sub {
        font-size: 10px;
    }
}

/* ========= GLASS CATEGORY BAR OVERRIDE - Square Layout ========= */
.category-glass-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 90px;
    width: 90px;
    height: 90px;
    padding: 12px 8px;
    gap: 6px;
}

.category-glass-item .glass-icon {
    margin-bottom: 4px;
}

.category-glass-item .glass-title {
    font-size: 11px;
    font-weight: 700;
    max-width: 80px;
    line-height: 1.3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-glass-item .glass-text,
.category-glass-item .glass-sub {
    display: none;
}

@media (max-width: 768px) {
    .category-glass-item {
        min-width: 80px;
        width: 80px;
        height: 80px;
        padding: 10px 6px;
    }

    .category-glass-item .glass-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .category-glass-item .glass-title {
        font-size: 10px;
        max-width: 70px;
    }
}

/* ========= PRODUCT CARD - Add to Cart Button with Lime Stroke ========= */
.add-to-cart-btn-v2 {
    background: #ffffff !important;
    color: #7ccf3a !important;
    border: 2px solid #7ccf3a !important;
}

.add-to-cart-btn-v2:hover {
    background: #7ccf3a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(124, 207, 58, 0.4);
}

.add-to-cart-btn-v2::before {
    content: '';
}

/* ========= PRODUCT PRICE - Orange Color ========= */
.product-price-v2 .current-price {
    color: #ff7a1a !important;
    font-weight: 800;
}

/* ========= GLASS CATEGORY - CENTERED SQUARE LAYOUT ========= */
.category-glass-item {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-width: 100px !important;
    width: auto !important;
    height: auto !important;
    padding: 14px 12px !important;
    gap: 8px !important;
}

.category-glass-item::before {
    display: none !important;
}

.category-glass-item .glass-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 14px !important;
    margin: 0 auto !important;
}

.category-glass-item .glass-icon i {
    font-size: 20px !important;
}

.category-glass-item .glass-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    max-width: 90px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    display: block !important;
}

@media (max-width: 768px) {
    .category-glass-item {
        min-width: 85px !important;
        padding: 10px 8px !important;
    }

    .category-glass-item .glass-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 12px !important;
    }

    .category-glass-item .glass-icon i {
        font-size: 18px !important;
    }

    .category-glass-item .glass-title {
        font-size: 10px !important;
        max-width: 75px !important;
    }
}

/* ========= HIDE OLD HEADER ELEMENTS ========= */
.bg-gradient-reverse-primary {
    display: none !important;
}

.navbar-clone.fixed {
    display: none !important;
}

/* ========= NEW HEADER STYLES ========= */
.header-v2-wrapper {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background: #111827;
    color: #e5e7eb;
    font-size: 12px;
    padding: 6px 0;
}

.top-app-link {
    color: #9ca3af;
    font-size: 16px;
    transition: all 0.2s ease;
}

.top-app-link:hover {
    color: #ff7a1a;
}

.top-link-simple {
    color: #e5e7eb;
    font-size: 12px;
    transition: all 0.2s ease;
}

.top-link-simple:hover {
    color: #ff7a1a;
}

.header-main-nav {
    padding: 12px 0;
    background: #fff;
}

.header-logo img {
    max-height: 45px;
    object-fit: contain;
}

.header-search-wrapper {
    flex: 1;
    max-width: 550px;
    margin: 0 20px;
}

.header-search-wrapper .form-control,
.header-search-wrapper .select2-container--default .select2-selection--single {
    border-radius: 999px !important;
    border: 2px solid #e5e7eb !important;
    padding: 10px 20px !important;
    height: 44px !important;
    background: #f9fafb !important;
}

.header-search-wrapper .select2-container--default .select2-selection--single:focus,
.header-search-wrapper .form-control:focus {
    border-color: #ff7a1a !important;
    background: #fff !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f9fafb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: none;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: #ff7a1a;
    color: #fff;
}

.action-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-badge:empty {
    display: none;
}

/* Hide old navbar on homepage when new header exists */
.wrapper.bg-soft-primary>.content-wrapper>header.wrapper.bg-light>.bg-gradient-reverse-primary {
    display: none !important;
}

/* ========= HEADER V2 - MODERN MARKETPLACE STYLE ========= */
.header-v2 {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1050;
}

/* Top Bar */
.header-v2-top {
    background: #111827;
    padding: 8px 0;
}

.header-v2-app-link {
    color: #9ca3af;
    font-size: 18px;
    transition: all 0.2s ease;
}

.header-v2-app-link:hover {
    color: #ff7a1a;
}

.header-v2-link {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-v2-link:hover {
    color: #ff7a1a;
}

.header-v2-divider {
    color: #4b5563;
    font-size: 12px;
}

/* Main Header */
.header-v2-main {
    padding: 14px 0;
    background: #fff;
}

.header-v2-logo {
    flex-shrink: 0;
}

.header-v2-logo img {
    max-height: 48px;
    object-fit: contain;
}

/* Navigation */
.header-v2-nav {
    display: flex;
    gap: 8px;
}

.header-v2-nav .nav-link {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-v2-nav .nav-link:hover {
    color: #ff7a1a;
    background: #fff4ea;
}

.header-v2-nav .nav-link.active {
    color: #ff7a1a;
    background: #fff4ea;
}

/* Action Buttons */
.header-v2-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-v2-action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f5f7;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-v2-action-btn:hover {
    background: #ff7a1a;
    color: #fff;
}

.header-v2-cart-btn {
    background: #ff7a1a;
    color: #fff;
}

.header-v2-cart-btn:hover {
    background: #e5670b;
}

.header-v2-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.header-v2-badge:empty {
    display: none;
}

/* Mobile Search */
.header-v2-mobile-search {
    display: none;
}

/* Dropdown Styles */
.header-v2 .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
}

.header-v2 .dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-v2 .dropdown-item:hover {
    background: #f4f5f7;
}

.header-v2 .dropdown-item i {
    width: 18px;
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    .header-v2-nav {
        flex-direction: column;
        gap: 4px;
    }

    .header-v2-mobile-search {
        display: block;
    }
}

@media (max-width: 576px) {
    .header-v2-top {
        padding: 6px 0;
    }

    .header-v2-main {
        padding: 10px 0;
    }

    .header-v2-logo img {
        max-height: 38px;
    }

    .header-v2-action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ========= FOOTER V2 - MODERN MARKETPLACE STYLE ========= */
footer.text-inverse {
    background: #111827 !important;
}

footer .angled.bg-navy {
    background: #111827 !important;
    padding: 50px 0 30px !important;
}

footer .angled::before,
footer .angled::after {
    display: none !important;
}

footer .widget {
    margin-bottom: 20px;
}

footer .footer-logo-footer {
    margin-bottom: 20px;
}

footer .footer-logo-footer img {
    max-height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

footer .widget-title.text-white {
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

footer .widget-title.text-white::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff7a1a;
    border-radius: 2px;
}

[dir="rtl"] footer .widget-title.text-white::after {
    left: auto;
    right: 0;
}

footer .widget ul.list-unstyled li {
    margin-bottom: 8px;
}

footer .widget ul.list-unstyled li a {
    color: #9ca3af;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

footer .widget ul.list-unstyled li a:hover {
    color: #ff7a1a;
    padding-left: 5px;
}

[dir="rtl"] footer .widget ul.list-unstyled li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

footer .single-cta {
    margin-bottom: 16px;
}

footer .single-cta .cta-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: #ff7a1a !important;
    margin-bottom: 4px;
}

footer .single-cta .cta-text p {
    color: #e5e7eb;
    font-size: 14px;
    margin: 0;
}

footer .footer-text p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
}

footer .nav.social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

[dir="rtl"] footer .nav.social a {
    margin-right: 0;
    margin-left: 8px;
}

footer .nav.social a:hover {
    background: #ff7a1a;
    transform: translateY(-3px);
}

footer .cta-text p,
footer p {
    color: #9ca3af;
}

/* Seller Link Highlight */
footer .widget ul.list-unstyled li:first-child a {
    color: #ff7a1a;
    font-weight: 600;
}

footer .widget ul.list-unstyled li:first-child a:hover {
    color: #fff;
}

/* Footer Bottom Bar */
footer .angled.bg-navy .container::after {
    content: '\00A9  useooo - All Rights Reserved';
    display: block;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 13px;
}

/* ========= FIX DROPDOWN Z-INDEX ========= */
.header-v2-top .dropdown-menu {
    z-index: 1100 !important;
    position: absolute !important;
}

.header-v2-top .dropdown {
    position: relative;
}

.header-v2 .dropdown-menu {
    z-index: 1100 !important;
}


/* ========= FIX LANGUAGE DROPDOWN MENU ========= */
.header-v2-top .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    display: none;
    min-width: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
}

.header-v2-top .dropdown-menu.show {
    display: block !important;
}

.header-v2-top .dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    color: #111827;
    transition: all 0.2s ease;
}

.header-v2-top .dropdown-item:hover {
    background: #f4f5f7;
    color: #ff7a1a;
}

/* Ensure dropdown is not clipped */
.header-v2-top {
    position: relative;
    overflow: visible !important;
}

.header-v2-top .container {
    overflow: visible !important;
}

.header-v2 {
    overflow: visible !important;
}


/* ========= ARABIC FONT SUPPORT ========= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

body,
html {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

[dir="rtl"] body,
[dir="rtl"] html,
.is_rtl body,
.is_rtl html {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    direction: rtl;
    text-align: right;
}

/* Fix RTL for header and navigation */
[dir="rtl"] .header-v2-nav .nav-link i.fa-arrow-left {
    transform: rotate(180deg);
}

[dir="rtl"] .see-all-v2 i {
    transform: rotate(180deg);
}


/* ========= CART SIDEBAR / OFFCANVAS V2 ========= */
#offcanvas-cart {
    z-index: 99999 !important;
    background: #ffffff !important;
    border-left: none !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15) !important;
    max-width: 420px;
    width: 100%;
}

#offcanvas-cart .offcanvas-header {
    background: var(--primary-color);
    padding: 20px 24px;
    border-bottom: none;
}

#offcanvas-cart .offcanvas-header h3 {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

#offcanvas-cart .offcanvas-header h3::before {
    content: "\f07a";
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 20px;
}

#offcanvas-cart .offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

#offcanvas-cart .offcanvas-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

#offcanvas-cart .offcanvas-body {
    padding: 16px 20px;
    overflow-y: auto;
}

/* Cart Item Card V2 */
.shopping-cart {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shopping-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px 0 0 4px;
}

.shopping-cart:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.shopping-cart-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.shopping-cart .cart-img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f5f7;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.shopping-cart:hover .cart-img {
    border-color: var(--primary-color);
}

.shopping-cart .cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopping-cart .post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shopping-cart .price {
    margin: 0;
}

.shopping-cart .price .amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Quantity Input - Modern Style with +/- buttons */
.shopping-cart .product-quantity {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.shopping-cart .product-quantity .qty-btn {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.shopping-cart .product-quantity .qty-btn:hover {
    background: var(--primary-hover);
}

.shopping-cart .product-quantity .qty-btn:active {
    transform: scale(0.95);
}

.shopping-cart .product-quantity .qty-btn.minus {
    border-radius: 6px 0 0 6px;
}

.shopping-cart .product-quantity .qty-btn.plus {
    border-radius: 0 6px 6px 0;
}

.shopping-cart .product-quantity input[type="number"] {
    width: 45px;
    height: 32px;
    text-align: center;
    border: none;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    -moz-appearance: textfield;`r`n    appearance: textfield;
}

.shopping-cart .product-quantity input[type="number"]::-webkit-outer-spin-button,
.shopping-cart .product-quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;`r`n    appearance: none;
    margin: 0;
}

.shopping-cart .product-quantity input[type="number"]:focus {
    outline: none;
    box-shadow: none;
}

/* Line Price */
.shopping-cart .product-line-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--success-color);
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 8px;
}

/* Remove Button */
.shopping-cart .remove-product {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    border: none;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.shopping-cart .remove-product:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.1);
}

.shopping-cart .remove-product i {
    font-size: 16px;
}

[dir="rtl"] .shopping-cart .remove-product {
    right: auto;
    left: 12px;
}

[dir="rtl"] .shopping-cart::before {
    left: auto;
    right: 0;
    border-radius: 0 4px 4px 0;
}

/* Cart Footer Buttons */
#offcanvas-cart .offcanvas-footer {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

#offcanvas-cart .offcanvas-footer a.btn-red,
#offcanvas-cart .offcanvas-footer a.btn-primary {
    width: 100%;
    margin: 0 0 12px 0 !important;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

#offcanvas-cart a.btn-red {
    background: #ffffff !important;
    color: var(--text-secondary) !important;
    border: 2px solid #e5e7eb;
}

#offcanvas-cart a.btn-red:hover {
    background: #f4f5f7 !important;
    border-color: var(--text-secondary);
    color: var(--text-primary) !important;
}

#offcanvas-cart a.btn-primary,
#offcanvas-cart a.view_cart_button {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 122, 26, 0.25);
}

#offcanvas-cart a.btn-primary:hover,
#offcanvas-cart a.view_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 122, 26, 0.35);
    background: var(--primary-hover) !important;
}

/* Empty Cart Style */
#offcanvas-cart .offcanvas-body h1.h4 {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 40px 0 20px;
}

#offcanvas-cart .offcanvas-body h1.h4::before {
    content: "\f07a";
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 400;
    display: block;
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

#offcanvas-cart .offcanvas-body img[alt="Empty Cart"] {
    max-width: 180px;
    opacity: 0.7;
    margin: 0 auto;
    display: block;
}

/* Fix backdrop z-index */
.offcanvas-backdrop {
    z-index: 99998 !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #offcanvas-cart {
        max-width: 100%;
    }

    .shopping-cart .cart-img {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .shopping-cart .post-title {
        font-size: 13px;
    }

    .shopping-cart .price .amount {
        font-size: 14px;
    }
}