@import url('https://fonts.googleapis.com/css2?family=Zain:wght@400;700;800;900&display=swap');

:root {
    --primary: #066988;
    --accent: #FBD45B;
    --white: #FFFFFF;
    --black: #000000;
    --gray-bg: #F6F7F8;
    --gray-btn: #EBEBEB;
    --red-badge: #E53935;
    --green-badge: #43A047;
    --star: #FFC107;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
    --window-inner-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: 'Zain', sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--white);
    color: var(--black);
    overflow-x: clip;
    width: 100%;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== iOS SCROLL LOCK ====== */
html.filter-open {
    position: fixed;
    width: 100%;
    overflow-y: scroll;
}

html.filter-open body {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--primary);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    height: 103px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 155px;
    height: 103px;
    flex-shrink: 0;
}

.navbar-logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-links a {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--white);
    transition: opacity 0.3s ease;
    position: relative;
    padding: 10px 0;
    min-width: 113px;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 40px;
}

.navbar-links a:hover {
    opacity: 0.9;
}

.navbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.navbar-hamburger span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.navbar-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO ===== */
.hero {
    width: 100%;
    height: 744px;
    background: url('../assets/hero-bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 90px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 70px;
    color: var(--accent);
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: fadeInUp 1s ease;
}

.hero-search {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    animation: fadeInUp 1.2s ease;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search input {
    width: 100%;
    max-width: 500px;
    flex: 1;
    height: 60px;
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 0 30px;
    font-family: 'Zain', sans-serif;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    direction: rtl;
    min-width: 0;
}

.hero-search button {
    height: 60px;
    padding: 0 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Zain', sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.hero-search button:hover {
    background: #055577;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 60px 40px;
    max-width: 1440px;
    margin: 0 auto;
    overflow: clip;
}

.section-header {
    text-align: right;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 33px;
    color: rgba(0, 0, 0, 0.5);
}

/* ===== PRODUCTS GRID ===== */
.products-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    direction: rtl;
    overflow: hidden;
}

.products-carousel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.products-carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== PRODUCT CARD ===== */
.product-card {
    min-width: 307px;
    width: 307px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.product-card-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: #fafafa;
    border-radius: 40px 40px 0 0;
}

.product-card-image img {
    max-height: 210px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    z-index: 3;
}

.badge-discount {
    background: var(--red-badge);
}

.badge-new {
    background: var(--green-badge);
}

.product-card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-category {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.product-name {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--black);
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.product-stars {
    display: flex;
    gap: 3px;
    direction: ltr;
    justify-content: flex-end;
}

.product-stars .star {
    color: var(--star);
    font-size: 16px;
}

.product-price {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    margin: 4px 0;
}

.product-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--gray-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    text-align: center;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.product-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
}

.store-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    overflow: hidden;
    flex-shrink: 0;
}

.store-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.store-noon { background: #F7E017; color: #000; }
.store-amazon { background: #FF9900; }
.store-aliexpress { background: #E53935; }
.store-shein { background: #333; }
.store-jarir { background: #CC0000; }
.store-extra { background: #2D6EB5; }
.store-iherb { background: #618B25; }
.store-niceone { background: #000; }
.store-namshi { background: #C8FF00; color: #000; }
.store-trendyol { background: #FF6000; }
.store-sephora { background: #000; }

.deals-section .product-card-image {
    background: #1a1a2e;
}

/* ===== FILTER PANEL ===== */
.filter-panel {
    width: 308px;
    min-width: 308px;
    min-height: 451px;
    background: var(--white);
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 130px;
    flex-shrink: 0;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 27px;
    color: var(--black);
}

.filter-title svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.filter-reset {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.filter-reset:hover {
    color: var(--primary);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-select {
    width: 100%;
    height: 44px;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0 20px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    background: var(--white);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    direction: rtl;
    outline: none;
    transition: border-color 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23066988' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-stores-title {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--black);
    margin-bottom: 14px;
}

.filter-store-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    transition: color 0.3s;
}

.filter-store-item:hover {
    color: var(--primary);
}

.filter-store-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.filter-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.filter-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-checkbox.checked::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.filter-handle {
    display: none;
}

.filter-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gray-bg);
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.filter-close-btn:hover {
    background: #E53935;
    color: var(--white);
}

.filter-body {
}

.filter-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: var(--gray-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-accordion-header:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-accordion-arrow {
    transition: transform 0.3s ease;
    color: var(--primary);
    flex-shrink: 0;
}

.filter-accordion.open .filter-accordion-arrow {
    transform: rotate(180deg);
}

.filter-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 4px;
}

.filter-accordion.open .filter-accordion-body {
    max-height: 500px;
    padding: 12px 4px 0;
}

.filter-footer {
    display: none;
}

.filter-apply-btn {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-apply-btn:hover {
    background: #055577;
}

/* ===== STORE LOGOS & BADGES ===== */
.lowest-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 12px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 13px;
    margin-right: 8px;
}

.store-cell-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== VIEW ALL BUTTON ===== */
.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px auto 0;
    padding: 14px 36px;
    background: var(--gray-btn);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.view-all-btn .arrow {
    font-size: 20px;
    transition: transform 0.3s;
}

.view-all-btn:hover .arrow {
    transform: translateX(-6px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    padding: 60px 60px 40px;
    color: var(--white);
    margin-top: 60px;
    overflow: hidden;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about .footer-logo img {
    height: 75px;
    margin-bottom: 20px;
}

.footer-about p {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.footer-col-title {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    background: rgba(251, 212, 91, 0.15);
    display: inline-block;
    padding: 8px 24px;
    border-radius: 25px;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s, padding-right 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 8px;
}

.footer-links a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    direction: ltr;
    text-align: left;
    word-break: break-word;
}

.footer-contact li svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 1440px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== زر فتح الفلتر على الموبايل ===== */
.filter-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: var(--white);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-toggle-btn svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.filter-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ✅ Overlay شفاف — بدون تظليل مثل H&M */
.filter-mobile-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1090;
    -webkit-tap-highlight-color: transparent;
}

.filter-mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== RESPONSIVE HOME ===== */
@media (max-width: 1200px) {
    .products-wrapper {
        flex-direction: column;
    }

    .filter-panel {
        width: 100%;
        min-width: unset;
        min-height: unset;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    .filter-header {
        grid-column: 1 / -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content p {
        font-size: 35px;
    }

    .section-header h2 {
        font-size: 38px;
    }

    .section-header p {
        font-size: 22px;
    }

    .hero {
        height: 420px;
    }
}

@media (max-width: 768px) {
    /* ===== نافبار ===== */
    .navbar {
        padding: 0 12px;
        height: 56px;
    }

    .navbar-logo {
        width: auto;
        height: 56px;
    }

    .navbar-logo img {
        height: 55px;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }

    .navbar-links.open,
    .navbar-links.active {
        right: 0;
    }

    .navbar-hamburger {
        display: flex;
    }

    .navbar-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .navbar-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .mobile-menu-overlay.show {
        display: block;
    }

    /* ===== هيرو ===== */
    .hero {
        height: auto;
        min-height: 200px;
        padding: 28px 14px;
    }

    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-search {
        flex-direction: row;
        max-width: 100%;
        margin-top: 16px;
    }

    .hero-search input {
        height: 42px;
        font-size: 14px;
        padding: 0 14px;
        border-radius: 0 20px 20px 0;
    }

    .hero-search button {
        height: 42px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 20px 0 0 20px;
    }

    /* ===== الأقسام ===== */
    .section {
        padding: 20px 12px 16px;
        overflow: visible;
    }

    .section-header {
        margin-bottom: 12px;
    }

    .section-header h2 {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .section-header p {
        font-size: 13px;
    }

    .filter-toggle-btn {
        display: flex;
    }

    /* ===== Full Screen Filter — H&M Style ===== */
    .filter-panel {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; bottom: 0; right: 0; left: 0;
        width: 100%;
        min-width: unset;
        min-height: unset;
        max-height: 100%;
        max-height: calc(var(--vh, 1vh) * 100);
        height: 100%;
        height: -webkit-fill-available;
        border-radius: 0;
        overflow: hidden;
        padding: 0;
        z-index: 1100;
        box-shadow: none;
        background: #fff;
        border: none;
        transform: translateY(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.32,0.72,0,1), visibility 0s 0.35s;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        will-change: transform;
    }

    .filter-panel.open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.35s cubic-bezier(0.32,0.72,0,1), visibility 0s 0s;
    }

    .filter-panel .filter-select {
        position: relative;
        -webkit-appearance: menulist;
        touch-action: manipulation;
        pointer-events: auto;
        cursor: pointer;
    }

    .filter-handle {
        display: flex;
        justify-content: center;
        padding: 12px 0 4px;
        flex-shrink: 0;
    }

    .filter-handle span {
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .filter-header {
        padding: 8px 16px 12px;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        flex-shrink: 0;
    }

    .filter-title {
        font-size: 20px;
    }

    .filter-reset {
        font-size: 14px;
    }

    .filter-close-btn {
        display: flex;
    }

    /* ✅ محتوى الفلتر — سكرول مع منع التسرب */
    .filter-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px 16px 8px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        min-height: 0;
    }

    /* ✅ الفوتر ثابت تحت مع GPU layer */
    .filter-footer {
        display: block;
        padding: 12px 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        background: var(--white);
        flex-shrink: 0;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .filter-apply-btn {
        height: 44px;
        font-size: 16px;
        border-radius: 12px;
    }

    .filter-select {
        height: 38px;
        font-size: 14px;
        padding: 0 14px;
        border-radius: 20px;
    }

    .filter-accordion-header {
        font-size: 14px;
        padding: 10px 14px;
        border-radius: 20px;
    }

    .filter-stores-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .filter-store-item {
        font-size: 14px;
        margin-bottom: 8px;
        gap: 8px;
    }

    .filter-store-logo {
        width: 20px;
        height: 20px;
    }

    .filter-checkbox {
        width: 18px;
        height: 18px;
    }

    .filter-checkbox.checked::after {
        font-size: 11px;
    }

    .filter-group {
        margin-bottom: 12px;
    }

    /* ===== products-wrapper يصير block + الكروسيل يسكرول ===== */
    .products-wrapper {
        display: block;
        overflow: visible;
    }

    .products-carousel-container {
        overflow: visible;
        width: 100%;
    }

    .products-carousel {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding-bottom: 8px;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
        transform: none !important;
    }

    .products-carousel::-webkit-scrollbar {
        display: none;
    }

    .products-carousel {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* ===== كروت المنتجات ===== */
    .product-card {
        min-width: 155px;
        width: 155px;
        border-radius: 14px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .product-card-image {
        height: 130px;
        border-radius: 14px 14px 0 0;
        padding: 10px;
    }

    .product-card-image img {
        max-height: 105px;
    }

    .product-card-body {
        padding: 8px 10px 10px;
        gap: 3px;
    }

    .product-category {
        font-size: 11px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
        margin: 2px 0;
    }

    .product-stars .star {
        font-size: 12px;
    }

    .product-btn,
    .product-card-cta {
        padding: 7px;
        font-size: 12px;
        border-radius: 10px;
    }

    .product-store {
        font-size: 12px;
        gap: 4px;
    }

    .store-icon {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .carousel-nav {
        display: none;
    }

    /* ===== كلاسات renderer.js على الموبايل ===== */
    .product-image {
        height: 130px;
        border-radius: 14px 14px 0 0;
        padding: 10px;
    }

    .product-image img {
        max-height: 105px;
    }

    .product-info {
        padding: 8px 10px 8px;
        gap: 2px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-card-store {
        padding: 8px 10px;
        gap: 5px;
    }

    .store-logo-bottom {
        width: 20px;
        height: 20px;
    }

    .store-name-bottom {
        font-size: 12px;
    }

    .product-badge {
        font-size: 11px;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }

    /* ===== الفوتر ===== */
    .footer {
        padding: 30px 12px 20px;
        margin-top: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-about p {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-about .footer-logo img {
        height: 55px;
        margin-bottom: 10px;
    }

    .footer-col-title {
        font-size: 15px;
        padding: 5px 14px;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 13px;
        gap: 5px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-contact li {
        font-size: 13px;
        margin-bottom: 10px;
        gap: 8px;
    }

    .footer-contact li svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        margin-top: 20px;
        padding-top: 14px;
        font-size: 12px;
    }

    /* ===== زر شاهد الكل ===== */
    .view-all-btn {
        font-size: 15px;
        padding: 10px 24px;
        margin-top: 20px;
    }

    .badge {
        font-size: 11px;
        padding: 3px 8px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero {
        min-height: 170px;
        padding: 22px 10px;
    }

    .hero-search input {
        height: 38px;
        font-size: 13px;
    }

    .hero-search button {
        height: 38px;
        font-size: 13px;
        padding: 0 14px;
    }

    .section {
        padding: 16px 10px 14px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .section-header p {
        font-size: 12px;
    }

    .product-card {
        min-width: 140px;
        width: 140px;
        border-radius: 12px;
    }

    .product-card-image {
        height: 110px;
        border-radius: 12px 12px 0 0;
        padding: 8px;
    }

    .product-card-image img {
        max-height: 90px;
    }

    .product-card-body {
        padding: 6px 8px 8px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
        margin: 1px 0;
    }

    .product-category {
        font-size: 10px;
    }

    .product-btn,
    .product-card-cta {
        padding: 6px;
        font-size: 11px;
        border-radius: 8px;
    }

    .product-store {
        font-size: 10px;
        gap: 3px;
    }

    .store-icon {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .navbar {
        padding: 0 10px;
        height: 50px;
    }

    .navbar-logo {
        height: 50px;
    }

    .navbar-logo img {
        height: 48px;
    }

    .view-all-btn {
        font-size: 13px;
        padding: 8px 20px;
        margin-top: 14px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #055577;
}

/* ===== SEARCH PAGE NAVBAR ===== */
.navbar-search {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-search-bar {
    flex: 1;
    max-width: 740px;
    height: 54px;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
    min-width: 0;
}

.navbar-search-bar input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 24px;
    font-family: 'Zain', sans-serif;
    font-size: 18px;
    font-weight: 700;
    direction: rtl;
    background: transparent;
    min-width: 0;
}

.navbar-search-bar button {
    width: 83px;
    height: 54px;
    background: var(--accent);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.navbar-search-bar button svg {
    color: var(--primary);
}

.navbar-search-bar button:hover {
    background: #e8c343;
}

.navbar-links-search {
    gap: 24px;
}

/* ===== SEARCH PAGE ===== */
.search-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 60px 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb svg {
    color: rgba(0, 0, 0, 0.3);
}

.search-title {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: var(--black);
    text-align: center;
    margin-bottom: 40px;
}

.search-title span {
    color: var(--primary);
}

/* ===== SEARCH CONTENT ===== */
.search-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    direction: rtl;
}

.filter-panel-search {
    position: sticky;
    top: 130px;
}

.search-results-area {
    flex: 1;
    min-width: 0;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card-search {
    width: 100%;
    min-width: unset;
    height: auto;
}

.product-card-image-search {
    height: 200px;
    background: #1a1a2e;
    border-radius: 40px 40px 0 0;
}

.product-btn-search {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

.product-btn-search:hover {
    background: #055577 !important;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: rgba(0, 0, 0, 0.4);
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    direction: ltr;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pagination-num:hover {
    background: rgba(6, 105, 136, 0.1);
}

.pagination-num.active {
    background: var(--accent);
    color: var(--black);
}

.pagination-arrow {
    width: 35px;
    height: 33px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--black);
}

.pagination-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== SEARCH RESPONSIVE ===== */
@media (max-width: 1200px) {
    .search-content {
        flex-direction: column;
    }

    .filter-panel-search {
        width: 100%;
        min-width: unset;
        min-height: unset;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    .filter-panel-search .filter-header {
        grid-column: 1 / -1;
    }
}

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

    .search-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .navbar-search {
        padding: 0 10px;
        gap: 6px;
        height: 56px;
    }

    .navbar-search-bar {
        max-width: none;
        flex: 1;
        height: 38px;
    }

    .navbar-search-bar input {
        padding: 0 10px;
        font-size: 13px;
    }

    .navbar-search-bar button {
        width: 44px;
        height: 38px;
    }

    .navbar-links-search {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }

    .navbar-links-search.open,
    .navbar-links-search.active {
        right: 0;
    }

    .search-page {
        padding: 12px;
    }

    .search-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-search {
        border-radius: 14px;
    }

    .product-card-image-search {
        height: 120px;
        border-radius: 14px 14px 0 0;
    }

    .filter-panel-search {
        display: none !important;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        min-width: unset;
        min-height: unset;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        padding: 20px 16px;
        z-index: 999;
        box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
    }

    .filter-panel-search.open {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card-search .product-name {
        font-size: 11px;
    }

    .product-card-search .product-price {
        font-size: 13px;
    }
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 60px;
    overflow: hidden;
}

.product-hero-card {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 48px;
    min-height: 500px;
}

.product-hero-info {
    flex: 1;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.product-hero-title {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: var(--black);
    line-height: 1.4;
    word-break: break-word;
}

.product-hero-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stars {
    display: flex;
    gap: 3px;
    direction: ltr;
}

.hero-stars .star {
    color: var(--star);
    font-size: 18px;
}

.hero-stars .star.half {
    position: relative;
    color: #e0e0e0;
}

.hero-stars .star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: var(--star);
}

.hero-stars .star.empty {
    color: #e0e0e0;
}

.product-hero-rating-text {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
}

.product-hero-store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    cursor: pointer;
    transition: opacity 0.3s;
}

.product-hero-store-link:hover {
    opacity: 0.7;
}

.product-hero-store-link svg {
    width: 14px;
    height: 14px;
}

.product-hero-source {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-bg);
    padding: 6px 18px 6px 6px;
    border-radius: 25px;
    width: fit-content;
}

.product-hero-source-icon {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    flex-shrink: 0;
    overflow: hidden;
}

.product-hero-source-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.product-hero-source-name {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
}

.product-hero-desc {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.9;
    word-break: break-word;
}

.product-hero-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 0;
}

.product-hero-price-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 16px;
    flex-wrap: wrap;
}

.product-hero-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-hero-price-label {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
}

.product-hero-price {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: var(--primary);
    line-height: 1.1;
}

.product-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    background: var(--accent);
    color: var(--black);
    border: none;
    border-radius: 15px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.product-hero-cta:hover {
    background: #e8c343;
    color: var(--black);
}

.product-hero-cta svg {
    width: 20px;
    height: 20px;
}

.product-hero-gallery {
    width: 460px;
    min-width: 460px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.product-hero-main-image {
    width: 100%;
    height: 400px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 30px 0 0 0;
}

.product-hero-main-image img {
    max-height: 350px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-hero-main-image:hover img {
    transform: scale(1.08);
}

.product-hero-thumbs {
    display: flex;
    gap: 0;
    height: 120px;
}

.product-thumb {
    flex: 1;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.3s;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.product-thumb:first-child {
    border-radius: 0 0 0 30px;
}

.product-thumb:last-child {
    border-radius: 0;
}

.product-thumb:hover {
    opacity: 0.8;
}

.product-thumb.active {
    border-top: 3px solid var(--accent);
}

.product-thumb img {
    max-height: 90px;
    max-width: 80%;
    object-fit: contain;
}

.product-thumb-more {
    flex: 1;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s;
}

.product-thumb-more:hover {
    background: rgba(26, 26, 46, 0.95);
}

/* ===== PRODUCT STORES TABLE ===== */
.product-stores-section {
    margin-top: 16px;
    overflow: hidden;
}

.product-stores-heading {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--black);
    margin-bottom: 24px;
}

.product-stores-table {
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-stores-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.product-stores-table thead th {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.5);
    padding: 20px 24px;
    text-align: right;
    background: var(--gray-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.product-stores-table tbody td {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--black);
    padding: 18px 24px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
    white-space: nowrap;
}

.product-stores-table tbody tr:last-child td {
    border-bottom: none;
}

.product-stores-table tbody tr:hover {
    background: rgba(6, 105, 136, 0.03);
}

.store-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-cell-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    flex-shrink: 0;
    overflow: hidden;
}

.store-cell-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.store-cell-name {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.price-cell {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--black);
}

.table-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.table-cta:hover {
    background: var(--primary);
    color: var(--white);
}

.table-cta svg {
    width: 16px;
    height: 16px;
}

/* ===== PRODUCT PAGE RESPONSIVE ===== */
@media (max-width: 1200px) {
    .product-hero-card {
        flex-direction: column;
    }

    .product-hero-gallery {
        width: 100%;
        min-width: unset;
    }

    .product-hero-main-image {
        height: 350px;
        border-radius: 30px 30px 0 0;
    }

    .product-hero-info {
        padding: 32px 36px;
    }

    .product-thumb:first-child {
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 12px;
    }

    .product-hero-card {
        border-radius: 16px;
        margin-bottom: 24px;
    }

    .product-hero-info {
        padding: 14px 12px;
        gap: 10px;
    }

    .product-hero-title {
        font-size: 18px;
    }

    .product-hero-desc {
        font-size: 13px;
    }

    .product-hero-price {
        font-size: 24px;
    }

    .product-hero-cta {
        padding: 10px 20px;
        font-size: 15px;
    }

    .product-hero-main-image {
        height: 200px;
        border-radius: 16px 16px 0 0;
    }

    .product-hero-thumbs {
        height: 65px;
    }

    .product-hero-price-area {
        flex-direction: column;
        align-items: stretch;
    }

    .product-hero-cta {
        width: 100%;
    }

    .product-stores-heading {
        font-size: 18px;
    }

    .product-stores-table thead th,
    .product-stores-table tbody td {
        padding: 10px 10px;
        font-size: 13px;
    }

    .store-cell-icon {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .table-cta {
        padding: 6px 14px;
        font-size: 12px;
    }

    .price-cell {
        font-size: 15px;
    }

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

@media (max-width: 480px) {
    .product-hero-main-image {
        height: 170px;
    }

    .product-hero-thumbs {
        height: 50px;
    }

    .product-hero-title {
        font-size: 16px;
    }

    .product-hero-price {
        font-size: 22px;
    }

    .product-stores-table thead th,
    .product-stores-table tbody td {
        padding: 8px 6px;
        font-size: 11px;
    }

    .store-cell-icon {
        width: 26px;
        height: 26px;
        font-size: 9px;
    }

    .store-cell-name {
        font-size: 12px;
    }

    .table-cta {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ===== STORE PAGE ===== */
.store-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 60px 60px;
    overflow: hidden;
}

.store-breadcrumb {
    font-family: 'Zain', sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
}

.store-banner-card {
    width: 100%;
    max-width: 1320px;
    height: 298px;
    background: var(--white);
    border-radius: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.store-banner-info {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.store-banner-name {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--black);
    margin: 0;
    line-height: 1.2;
}

.store-banner-desc {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    max-width: 933px;
    line-height: 1.6;
    word-break: break-word;
}

.store-banner-badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 18px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-family: 'Zain', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.store-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 355px;
    max-width: 100%;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    margin-top: 6px;
}

.store-banner-cta:hover {
    background: #055574;
    transform: translateY(-1px);
}

.store-banner-cta svg {
    flex-shrink: 0;
}

.store-banner-image {
    width: 190px;
    height: 190px;
    flex-shrink: 0;
    margin-left: 40px;
    border-radius: 0;
    overflow: hidden;
}

.store-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-products-section {
    margin-top: 10px;
}

.store-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.store-products-title {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 50px;
    color: var(--black);
    margin: 0;
    line-height: 1.2;
}

.store-filter-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-filter-tab {
    font-family: 'Zain', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 20px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.store-filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.store-filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(6, 105, 136, 0.3);
}

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

.store-product-card {
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.store-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.store-product-image-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
}

.store-product-title-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--white);
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.store-product-image-wrap img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.store-product-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.store-product-category {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
}

.store-product-name {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--black);
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.store-product-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    direction: ltr;
}

.store-product-stars .star {
    font-size: 16px;
}

.store-product-stars .star.full {
    color: var(--star);
}

.store-product-stars .star.half {
    color: var(--star);
    opacity: 0.6;
}

.store-product-stars .star.empty {
    color: #ddd;
}

.store-product-price {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
    margin-top: 2px;
}

.store-product-btn {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}

.store-product-btn:hover {
    background: #055574;
}

.store-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.store-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-pagination-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: var(--white);
    color: var(--black);
    font-family: 'Zain', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-pagination-num:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.store-pagination-num.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.store-pagination-arrow {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.store-pagination-arrow:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.store-pagination-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .store-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .store-products-title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .store-page {
        padding: 70px 12px 30px;
    }

    .store-banner-card {
        height: auto;
        flex-direction: column-reverse;
        padding: 20px;
        text-align: center;
        border-radius: 16px;
    }

    .store-banner-info {
        align-items: center;
        padding: 0;
    }

    .store-banner-name {
        font-size: 22px;
    }

    .store-banner-image {
        margin-left: 0;
        margin-bottom: 16px;
        border-radius: 50%;
        width: 100px;
        height: 100px;
    }

    .store-banner-cta {
        width: 100%;
        max-width: 355px;
        height: 44px;
        font-size: 15px;
    }

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

    .store-products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-products-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .store-page {
        padding: 60px 10px 24px;
    }

    .store-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .store-product-image-wrap {
        height: 130px;
    }

    .store-products-title {
        font-size: 22px;
    }

    .store-filter-tabs {
        gap: 6px;
    }

    .store-filter-tab {
        padding: 7px 14px;
        font-size: 13px;
    }

    .store-banner-card {
        border-radius: 14px;
        padding: 16px;
    }

    .store-banner-name {
        font-size: 18px;
    }

    .store-banner-desc {
        font-size: 13px;
    }

    .store-banner-cta {
        height: 40px;
        font-size: 14px;
    }

    .store-banner-image {
        width: 80px;
        height: 80px;
    }

    .store-product-info {
        padding: 8px 10px 12px;
    }

    .store-product-name {
        font-size: 13px;
    }

    .store-product-price {
        font-size: 15px;
    }

    .store-product-btn {
        height: 36px;
        font-size: 13px;
        border-radius: 10px;
    }
}

@media (max-width: 420px) {
    .store-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .store-product-image-wrap {
        height: 110px;
    }

    .store-product-info {
        padding: 6px 8px 10px;
    }

    .store-product-name {
        font-size: 12px;
    }

    .store-product-price {
        font-size: 14px;
    }

    .store-product-btn {
        height: 32px;
        font-size: 12px;
    }
}

/* ========================================
   API INTEGRATION - NEW ADDITIONS
   ======================================== */

/* ===== LIVE SEARCH DROPDOWN ===== */
.live-search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 100;
    display: none;
    max-height: 380px;
    overflow-y: auto;
}

.live-search-dropdown.visible {
    display: block;
    animation: fadeIn 0.2s ease;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--black);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.15s;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover {
    background: var(--gray-bg);
}

.live-search-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.live-search-info {
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-family: 'Zain', sans-serif;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--black);
}

.live-search-price {
    font-family: 'Zain', sans-serif;
    font-size: 14px;
    color: var(--primary);
    font-weight: 800;
    margin-top: 2px;
}

.live-search-empty {
    padding: 24px;
    text-align: center;
    color: rgba(0,0,0,0.4);
    font-family: 'Zain', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* ===== PRODUCT IMAGE (dynamic cards from renderer.js) ===== */
.product-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: #fafafa;
    border-radius: 40px 40px 0 0;
    position: relative;
}

.product-image img {
    max-height: 210px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.deals-section .product-image {
    background: #1a1a2e;
}

/* ===== PRODUCT INFO (dynamic cards) ===== */
.product-info {
    padding: 16px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.product-title {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* ===== PRODUCT RATING (dynamic cards) ===== */
.product-rating {
    display: flex;
    gap: 2px;
    direction: ltr;
    justify-content: flex-end;
    margin: 2px 0;
}

.product-rating .star-icon {
    flex-shrink: 0;
}

.product-card-cta {
    display: block;
    width: 100%;
    padding: 11px 12px;
    background: var(--gray-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    text-align: center;
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.product-card-cta:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.product-card-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.store-logo-bottom {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.store-name-bottom {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.5);
}

/* ===== DISCOUNT BADGE (dynamic) ===== */
.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'Zain', sans-serif;
    font-size: 14px;
    font-weight: 700;
    z-index: 3;
}

.product-badge.badge-discount {
    background: var(--red-badge);
}

.product-badge.badge-new {
    background: var(--green-badge);
}

/* ===== STORE PRICE ROWS (inside cards) ===== */
.product-stores-count {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(0,0,0,0.45);
    margin-top: 2px;
}

.product-stores-prices {
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.store-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-family: 'Zain', sans-serif;
    font-size: 14px;
}

.store-logo-small {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.store-name-small {
    flex: 1;
    color: rgba(0,0,0,0.5);
    font-weight: 400;
}

.store-price-value {
    font-weight: 700;
    color: var(--black);
}

/* ===== LOWEST PRICE BAR ===== */
.product-lowest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.lowest-label {
    font-family: 'Zain', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(0,0,0,0.5);
}

.lowest-value {
    font-family: 'Zain', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    border-radius: 40px 40px 0 0;
}

.skeleton-category {
    height: 14px;
    width: 30%;
    margin-top: 16px;
}

.skeleton-title {
    height: 18px;
    width: 85%;
    margin-top: 8px;
}

.skeleton-stars {
    height: 14px;
    width: 45%;
    margin-top: 6px;
}

.skeleton-text {
    height: 14px;
    width: 65%;
    margin-top: 10px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-price {
    height: 22px;
    width: 50%;
    margin-top: 8px;
}

.skeleton-btn {
    height: 44px;
    width: 100%;
    margin-top: 10px;
    border-radius: 15px;
}

.skeleton-store-bottom {
    height: 48px;
    width: 100%;
    border-radius: 0 0 40px 40px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== DEALS PAGE ===== */
.deals-hero {
    background: linear-gradient(135deg, #066988 0%, #044e66 100%);
    padding: 60px 20px 40px;
    text-align: center;
    margin-top: 103px;
    position: relative;
    overflow: hidden;
}

.deals-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.deals-hero-content {
    position: relative;
    z-index: 2;
}

.deals-hero-content h1 {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: var(--white);
    margin-bottom: 8px;
}

.deals-hero-content p {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
}

.deals-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 24px;
}

.deals-toolbar-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.deals-toolbar-left .deals-count {
    font-family: 'Zain', sans-serif;
    color: #888;
    font-size: 18px;
    font-weight: 700;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.deals-grid .product-card {
    width: 100%;
    min-width: unset;
}

.deals-grid .product-image {
    background: #1a1a2e;
}

.deals-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Zain', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    transition: all 0.2s;
    padding: 0 12px;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-dots {
    color: #999;
    padding: 0 4px;
    font-family: 'Zain', sans-serif;
}

/* ===== DEALS PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .deals-hero {
        padding: 24px 12px 18px;
        margin-top: 56px;
    }

    .deals-hero-content h1 {
        font-size: 22px;
    }

    .deals-hero-content p {
        font-size: 13px;
    }

    .deals-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px;
        gap: 8px;
        margin-bottom: 16px;
    }

    .deals-toolbar-right {
        flex-direction: column;
    }

    .deals-toolbar-left .deals-count {
        font-size: 14px;
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .deals-grid .product-card {
        border-radius: 14px;
    }

    .deals-grid .product-image {
        height: 120px;
        border-radius: 14px 14px 0 0;
        padding: 8px;
    }

    .deals-grid .product-info {
        padding: 8px 10px 8px;
    }

    .deals-grid .product-title {
        font-size: 12px;
    }

    .deals-grid .product-price {
        font-size: 14px;
    }

    .deals-grid .product-card-cta {
        padding: 6px;
        font-size: 11px;
        border-radius: 8px;
    }

    .deals-grid .product-card-store {
        padding: 6px 8px;
    }

    .deals-grid .store-logo-bottom {
        width: 18px;
        height: 18px;
    }

    .deals-grid .store-name-bottom {
        font-size: 11px;
    }

    .deals-pagination {
        margin-top: 20px;
        padding-bottom: 24px;
    }

    .page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .deals-hero {
        margin-top: 50px;
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .deals-grid .product-image {
        height: 100px;
    }
}

@media (max-width: 420px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ===== LIVE SEARCH RESPONSIVE ===== */
@media (max-width: 768px) {
    .live-search-dropdown {
        border-radius: 0 0 16px 16px;
        max-height: 260px;
    }

    .live-search-item {
        padding: 8px 12px;
        gap: 8px;
    }

    .live-search-item img {
        width: 36px;
        height: 36px;
    }

    .live-search-title {
        font-size: 13px;
    }

    .live-search-price {
        font-size: 12px;
    }

    .skeleton-image {
        height: 130px;
        border-radius: 14px 14px 0 0;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 110px;
        border-radius: 12px 12px 0 0;
        padding: 8px;
    }

    .product-image img {
        max-height: 90px;
    }

    .product-info {
        padding: 6px 8px 6px;
    }

    .product-title {
        font-size: 12px;
    }

    .product-card-cta {
        padding: 6px;
        font-size: 11px;
        border-radius: 8px;
    }

    .product-card-store {
        padding: 6px 8px;
        gap: 4px;
    }

    .store-logo-bottom {
        width: 16px;
        height: 16px;
    }

    .store-name-bottom {
        font-size: 11px;
    }

    .product-badge {
        font-size: 10px;
        padding: 2px 8px;
        top: 6px;
        right: 6px;
    }
}

/* ===== RELATED PRODUCTS CAROUSEL ===== */
.related-section {
    margin-top: 48px;
    overflow: hidden;
}

.related-heading {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--black);
    margin-bottom: 24px;
}

.related-carousel-wrap {
    position: relative;
    overflow: hidden;
}

.related-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.related-carousel .product-card {
    min-width: 260px;
    flex-shrink: 0;
}

.related-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.related-nav .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
}

/* ===== RELATED RESPONSIVE ===== */
@media (max-width: 768px) {
    .related-section {
        margin-top: 24px;
    }

    .related-section .products-carousel-container {
        overflow: visible;
    }

    .related-section .products-carousel,
    #related-carousel {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .related-section .products-carousel::-webkit-scrollbar,
    #related-carousel::-webkit-scrollbar {
        display: none;
    }

    .related-section .products-carousel,
    #related-carousel {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .related-carousel .product-card {
        min-width: 155px;
        scroll-snap-align: start;
    }

    .related-heading {
        font-size: 18px;
    }

    .related-nav {
        display: none;
    }
}