/* =====================================================
   أسر كريم للسيراميك والأدوات الصحية — style.css
   ===================================================== */

/* ---- Variables ---- */
:root {
    --primary: #c5a059;
    --primary-dark: #a68541;
    --primary-light: #fdf6e7;
    --logo-brown: #3d341f;
    --dark-bg: #1a150c;
    --gold: #c5a059;
    --gold-light: #fde047;
    --gold-dark: #8a6d3b;
    --gold-bg: #fdf6e7;
    --dark: #1f2937;
    --dark-brown: #3d341f;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --font: 'Cairo', sans-serif;
    --text: #374151;
    --text-muted: #6b7280;
    --green: var(--gold);
    /* Replaced green with gold as requested */
}

/* ---- Loader Definitions ---- */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    /* White background for loader */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo-wrap {
    margin-bottom: 20px;
}

.loader-logo-circle {
    width: 180px;
    height: 180px;
    border-radius: 30px;
    background: #ffffff;
    /* White background, no more green/dark brown */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

.loader-logo-circle img {
    width: 150px;
    /* Larger logo */
    height: auto;
    object-fit: contain;
}

.loader-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold) !important;
    /* Solid Gold Color */
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    direction: rtl;
}

.loader-text span {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.loader-text span:last-child {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-bar {
    width: 200px;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto 0;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gold);
    animation: progressLoad 4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes progressLoad {
    to {
        width: 100%;
    }
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
}

/* Filter Controls */
.filter-controls {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 6px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 1.4rem;
    font-weight: 900;
}

.logo span {
    color: var(--gold);
}

.logo img {
    max-height: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav a {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--gold);
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    background: var(--gold-bg);
    color: var(--gold);
}

.cart-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--gold);
    color: white !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.cart-header-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.4);
}

.cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-text {
    display: block;
}

@media (max-width: 480px) {
    .cart-text {
        display: none;
    }

    .cart-header-btn {
        padding: 8px;
        width: 42px;
        height: 42px;
        justify-content: center;
    }
}

#whatsapp-btn:hover {
    background: var(--gold-bg);
    color: var(--gold);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold-light);
    color: #000000 !important;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Search Dropdown */
.search-bar-drop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

.search-bar-drop.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-bar-drop input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    background: #f9fafb;
}

.search-bar-drop input:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.search-results-container {
    position: relative;
    width: 100%;
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    padding: 8px;
    display: none;
    border: 1px solid var(--border);
    scrollbar-width: thin;
}

.live-search-results::-webkit-scrollbar {
    width: 6px;
}

.live-search-results::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.live-search-results.active {
    display: block;
    animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #fdf6e7;
    transform: translateX(-5px);
}

.search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #eee;
}

.search-item-info {
    flex: 1;
    text-align: right;
}

.search-item-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text);
}

.search-item-info p {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 800;
}

.no-results-msg {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Mobile menu definitions updated */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 8px 0;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--gold);
    background: var(--gold-bg);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* =====================================================
   HERO
   ===================================================== */
.hero-section {
    min-height: 100svh;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.75) 100%),
        url('Screenshot 2026-03-06 015048.png') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding-top: 56px;
}

.hero-content {
    padding: 32px 20px 48px;
    width: 100%;
    color: white;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars {
    color: #facc15;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    color: white;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.4rem;
    }
}

.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Search bar in hero */
.hero-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.search-btn-hero {
    background: var(--gold);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    border-radius: 12px 0 0 12px; /* Round only left side */
}

.hero-search .search-results-container {
    flex: 1;
}

.hero-search input {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    background: transparent;
    text-align: right;
}

.search-btn-hero:hover {
    background: var(--primary-dark);
}

/* Tag pills */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-tag {
    padding: 6px 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    /* backdrop-filter removed to fix blur bugs */
    transition: var(--transition);
}

.hero-tag:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}

/* Delivery note */
.hero-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.hero-delivery svg {
    flex-shrink: 0;
}

/* =====================================================
   FEATURES GRID
   ===================================================== */
/* Feature Grid Start */

.features-section {
    background: #fff;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 14px;
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.feature-card:nth-child(odd) {
    border-left: none;
}

.feature-card:nth-child(3),
.feature-card:nth-child(4) {
    border-bottom: none;
}

.feat-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-text {
    display: flex;
    flex-direction: column;
}

.feat-text strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.feat-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    margin-top: -14px;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-section {
    padding: 60px 20px;
    background: #fff;
    border-bottom: 8px solid #f3f4f6;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-main {
    margin-bottom: 40px;
}

.about-subtitle {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.partners-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .partners-container {
        grid-template-columns: 1fr 1fr;
    }
}

.partner-card {
    background: #f9fafb;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.partner-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.partner-icon {
    font-size: 1.5rem;
}

.partner-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.partner-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.section-title-sm {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

@media (min-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.why-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.why-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.card-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(197, 160, 89, 0.15);
    line-height: 1;
}

.why-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.why-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.about-footer-info {
    text-align: center;
    padding: 20px;
    background: var(--gold-bg);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--dark2);
}

.about-footer-info strong {
    color: var(--primary);
}

/* =====================================================
   CATEGORIES
   ===================================================== */
.categories-section {
    padding: 32px 20px;
    background: #fff;
    border-bottom: 8px solid #f3f4f6;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    gap: 8px;
}

.category-card:hover {
    border-color: var(--gold);
    background: var(--gold-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cat-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--gold-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.cat-price {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
}

/* =====================================================
   PRODUCTS
   ===================================================== */
.products-section,
.new-arrivals-section {
    padding: 32px 20px;
    background: #fff;
    border-bottom: 8px solid #f3f4f6;
}

.products-grid,
#general-products-grid,
#most-sold-grid,
#new-arrivals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #fff;
    padding: 15px;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Badges */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.limited-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #be4518;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 12px;
    z-index: 2;
}

.product-info {
    padding: 15px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gold-badge {
    background: var(--gold) !important;
    color: white !important;
}

.product-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    background: var(--gold);
    padding: 2px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(197, 160, 89, 0.2);
}

.product-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: 6px;
    align-self: flex-start;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}

.product-price-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-left: 55px; /* Added to prevent overlap with plus button on mobile */
}

.old-price {
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
}

.cur-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #000;
}

/* Plus button */
.plus-btn {
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.plus-btn:hover {
    background: var(--gold-dark);
    transform: scale(1.1);
}

.plus-btn:active {
    transform: scale(0.9);
    background: var(--gold-dark);
}

.plus-btn.added {
    background: var(--gold);
    transform: scale(1.2);
}


/* View more */
.view-more-wrap {
    text-align: center;
}

.view-more-btn {
    display: inline-block;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 8px;
    transition: var(--transition);
    font-family: var(--font);
    cursor: pointer;
}

.view-more-btn:hover {
    background: var(--gold);
    color: white;
}

.view-more-btn.outline {
    background: transparent;
}

/* =====================================================
   STATS
   ===================================================== */
.stats-section {
    background: linear-gradient(135deg, #d4af37 0%, #4a412a 100%);
    padding: 48px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* =====================================================
   NEW ARRIVALS
   ===================================================== */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title-inline {
    font-size: 1.5rem;
    font-weight: 900;
}

.view-all-link {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}

/* =====================================================
   BRANDS
   ===================================================== */
.brands-section {
    padding: 32px 20px;
    background: #f9fafb;
    border-bottom: 8px solid #f3f4f6;
}

.brands-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 10px 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    min-height: 140px;
    align-items: flex-start;
}

.brands-scroll::-webkit-scrollbar {
    display: none;
}

.brand-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand-circle:hover {
    transform: translateY(-4px);
}

.brand-circle .brand-img-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s ease;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.brand-circle.active .brand-img-wrap {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.25);
}

.brand-circle .brand-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services-section {
    padding: 32px 20px;
    background: #f9fafb;
    border-bottom: 8px solid #f3f4f6;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.service-icon-box {
    width: 64px;
    height: 64px;
    background: var(--gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.service-card strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.service-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================
   CTA GREEN SECTION
   ===================================================== */
.contact-section {
    background: var(--dark-brown);
    padding: 40px 24px;
}

.contact-inner {
    text-align: center;
    color: white;
}

.cta-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 24px;
    margin-bottom: 16px;
}

.contact-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
    color: white;
}

.contact-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    line-height: 1.6;
}

.wa-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    padding: 15px 24px;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.wa-cta-btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

.visit-btn {
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.visit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 32px 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 6px;
}

.footer-logo span {
    color: var(--gold-light);
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
    line-height: 1.5;
}

.footer-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 24px;
}

.footer-badge svg {
    color: var(--gold-light);
    flex-shrink: 0;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.payment-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    width: 100%;
    text-align: center;
}

.pay-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.pay-badge.mastercard {
    background: #eb001b;
}

.pay-badge.visa {
    background: #1a1f71;
}

.pay-badge.valu {
    background: #5b5fc7;
}

.pay-badge.now {
    background: #333;
}

.pay-badge.cash {
    background: var(--gold-dark);
}

/* Footer grid */
.footer-grid {
    padding: 28px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--gold-light);
}

/* Contact info */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact-list li a:hover {
    color: var(--gold-light);
}

.contact-icon-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Social */
.footer-social {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: white;
}

/* Secure bar */
.footer-secure {
    background: #111;
    padding: 10px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Copyright */
.footer-bottom {
    padding: 14px 20px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =====================================================
   FLOATING WHATSAPP
   ===================================================== */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.45);
    transition: var(--transition);
    animation: pulseWa 2.5s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    background: var(--dark-brown);
}

@keyframes pulseWa {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(197, 160, 89, 0.45);
    }

    50% {
        box-shadow: 0 4px 30px rgba(197, 160, 89, 0.7), 0 0 0 8px rgba(197, 160, 89, 0.12);
    }
}

/* =====================================================
   CART TOAST
   ===================================================== */
.cart-toast {
    position: fixed;
    top: 80px;
    right: 50%;
    transform: translateX(50%) translateY(-20px);
    background: var(--gold);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 11000;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

/* =====================================================
   RESPONSIVE — TABLET & DESKTOP
   ===================================================== */
@media (min-width: 640px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .categories-grid {
        gap: 16px;
    }

    .services-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 32px;
    }

    .hero-content {
        max-width: 620px;
        padding: 60px 48px;
    }

    .hero-section {
        align-items: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .products-grid,
    #general-products-grid,
    #most-sold-grid,
    #new-arrivals-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .feature-card:nth-child(n) {
        border-bottom: none;
        border-left: 1px solid var(--border);
    }

    .feature-card:first-child {
        border-left: none;
    }

    .features-section {
        padding: 0 32px;
    }

    .about-section,
    .categories-section,
    .products-section,
    .new-arrivals-section,
    .brands-section,
    .services-section,
    .stats-section,
    .contact-section {
        padding: 56px 48px;
    }
}

/* =====================================================
   PROFESSIONAL LOADER / SPLASH SCREEN
   ===================================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1s;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Cleaned up redundant styles */

/* --- Category Detail View --- */
.category-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 4% 40px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 10px;
    border-radius: 24px;
    margin-inline: 4%;
    position: relative;
    overflow: hidden;
}

.category-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 15px;
}

.category-hero p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

.category-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sub-categories-section {
    padding: 40px 5%;
}

.sub-categories-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

.sub-categories-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 25px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sub-cat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.sub-cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.sub-cat-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sub-cat-count {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Fix for stat numbers visibility */
.stat-num {
    direction: ltr;
    display: inline-block;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* =====================================================
   CART DRAWER
   ===================================================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 10001;
    /* Higher than overlay */
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    /* backdrop-filter removed to fix blur bugs */
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    font-size: 1.5rem;
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    animation: slideInRight 0.3s ease-out;
}

.cart-item img {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8fafc;
}

.cart-item-info {
    flex: 1;
    text-align: right;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000000 !important;
}

.cart-item-info .item-price {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.cart-item-remove:hover {
    opacity: 0.7;
}

.empty-cart-msg {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border);
    background: #fdfdfd;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #000000 !important;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: white;
    border-radius: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

.checkout-btn:active {
    transform: scale(0.98);
}

.empty-cart-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* =====================================================
   PAYMENT METHODS SECTION
   ===================================================== */
/* Removed payment-methods-section styles */

/* Payment Modal */
.payment-number-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    z-index: 20000;
    text-align: center;
    width: 90%;
    max-width: 400px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    background: #ffffff !important;
}

.payment-number-modal.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1);
}

.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* backdrop-filter removed to fix blur bugs */
    z-index: 10000;
    display: none;
}

.payment-overlay.show {
    display: block;
}

.number-display {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    margin: 20px 0;
    letter-spacing: 2.5px;
    background: #fdf8e6;
    padding: 15px;
    border-radius: 12px;
    border: 1.5px dashed var(--gold);
}

.btn-submit {
    background: var(--gold);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--dark-brown);
}



/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    padding: 30px;
    background-color: #ffffff !important;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 99999 !important;
    display: none;
    overflow-y: auto;
    text-align: right;
    border: 1px solid #eee;
}

.checkout-modal.show {
    display: block !important;
    animation: modalIn 0.3s ease-out;
}

.checkout-modal h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #000000 !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 800;
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 1rem;
    color: #000;
    outline: none;
    transition: var(--transition);
    background: #fdfdfd;
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    flex: 1;
    background: #f3f4f6;
    color: #4b5563;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-confirm {
    flex: 2;
    background: var(--gold);
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .product-price-row {
        padding-left: 45px;
    }
    .plus-btn {
        width: 38px;
        height: 38px;
        bottom: 12px;
        left: 12px;
        font-size: 1.6rem;
    }
    .product-name {
        font-size: 0.95rem;
    }
    .cur-price {
        font-size: 1.15rem;
    }
}

/* Product Details Modal */
.product-details-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    z-index: 99999 !important;
    display: none !important;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.product-details-modal.show {
    display: block !important;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.product-modal-gallery {
    padding: 30px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-img-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
}

.main-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbs-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    flex-shrink: 0;
    overflow: hidden;
}

.thumb-item.active {
    border-color: var(--gold);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-type {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.modal-price-row {
    margin-bottom: 30px;
}

.modal-cur-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #000000 !important;
}

.modal-old-price {
    text-decoration: line-through;
    color: #94a3b8;
    margin-left: 15px;
    font-size: 1.2rem;
}

.modal-specs {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    font-size: 1rem;
    color: #475569;
}

.modal-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.modal-add-btn {
    flex: 1;
    background: var(--dark-brown);
    color: white;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
}

.modal-wa-btn {
    flex: 1;
    background: var(--dark-brown);
    color: white;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    color: #64748b;
    z-index: 10;
}

@media (max-width: 850px) {
    .product-modal-content {
        grid-template-columns: 1fr;
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-img-container {
        height: 300px;
    }

    .product-modal-info {
        padding: 25px;
    }
}

/* =====================================================
   ALL BRANDS MODAL
   ===================================================== */
.all-brands-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(95vw, 700px);
    max-height: 80vh;
    background: #fff;
    border-radius: 20px;
    padding: 50px 20px 30px;
    z-index: 30000;
    overflow-y: auto;
    display: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.all-brands-modal.show {
    display: block !important;
    animation: modalIn 0.3s ease-out;
}

.all-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    padding: 10px;
}

.all-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.all-brand-item:hover {
    background: var(--gold-bg);
    transform: translateY(-3px);
}

.all-brand-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.all-brand-item span {
    font-size: 0.85rem;
    font-weight: 800;
}

/* Brand Filter Banner */
.brand-filter-banner {
    background: var(--gold-bg);
    border: 2px solid var(--gold);
    padding: 15px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.brand-filter-banner span {
    font-weight: 800;
    color: var(--dark-brown);
}

.brand-filter-banner button {
    background: var(--gold);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 800;
}