/*
Theme Name: SmartYx Store Theme
Theme URI: https://smartyx.store
Author: SmartYx Creative Team
Author URI: https://smartyx.store
Description: قوالب متجر سمارتيكس الإلكتروني الاحترافي - متكامل مع WooCommerce, FiboSearch, Filter Everything, وواتساب مع لوحة تحكم شاملة لتعديل كافة بيانات المتجر بسهولة.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: smartyx-store
Domain Path: /languages
*/

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

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #f8fafc;
    font-size: 0.875rem;
    padding: 0.6rem 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.announcement-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-text .badge {
    background: var(--accent);
    color: #1e1b4b;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.announcement-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8125rem;
}

.announcement-contact a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.announcement-contact a:hover {
    color: #ffffff;
}

/* Main Header */
.site-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.site-logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.header-search .dgwt-wcas-search-wrapp {
    width: 100% !important;
    max-width: 100% !important;
}

.header-search .dgwt-wcas-search-input {
    border-radius: var(--radius-full) !important;
    border: 2px solid var(--border-color) !important;
    padding: 0.7rem 1.25rem 0.7rem 3rem !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    background: #f8fafc !important;
    transition: var(--transition) !important;
}

.header-search .dgwt-wcas-search-input:focus {
    border-color: var(--primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

/* Fallback Search Input */
.custom-search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.custom-search-input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: var(--transition);
    outline: none;
}

.custom-search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.custom-search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.custom-search-btn:hover {
    background: var(--primary-hover);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.action-btn-whatsapp {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.action-btn-whatsapp:hover {
    background: var(--whatsapp-green);
    color: #ffffff;
    border-color: var(--whatsapp-green);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.action-btn-cart {
    background: var(--primary);
    color: #ffffff;
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.action-btn-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.cart-count-badge {
    background: var(--accent);
    color: #1e1b4b;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 7px;
    margin-right: 0.25rem;
}

/* Category Navigation Bar */
.category-navbar {
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0;
}

.category-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    scrollbar-width: none;
}

.category-nav-list::-webkit-scrollbar {
    display: none;
}

.category-nav-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    transition: var(--transition);
}

.category-nav-item a:hover,
.category-nav-item.active a {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.category-nav-item.all-cats a {
    background: var(--primary);
    color: #ffffff;
}

.category-nav-item.all-cats a:hover {
    background: var(--primary-hover);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #1e293b 100%);
    color: #ffffff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: #fde047;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-card-img {
    border-radius: var(--radius-md);
    margin: 0 auto 1.5rem;
    max-height: 280px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero-card-badge {
    background: var(--accent);
    color: #1e1b4b;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hero-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 1rem;
}

/* Features Grid */
.features-section {
    padding: 2rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.feature-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--secondary);
}

.feature-text p {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Section Common */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-wrap h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--secondary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title-wrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.section-title-wrap p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.view-all-link:hover {
    gap: 0.7rem;
}

/* ==========================================================================
   Modern Category Showcase & Shelf Styling (v2.0)
   ========================================================================== */
.categories-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 768px) {
    /* Hide top categories block on mobile screens as requested */
    .store-categories-header-block {
        display: none !important;
    }

    .categories-showcase-grid {
        display: flex;
        overflow-x: auto;
        padding: 0.25rem 0.25rem 0.85rem;
        scroll-snap-type: x mandatory;
        gap: 0.65rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .categories-showcase-grid::-webkit-scrollbar {
        display: none;
    }
    .category-showcase-card {
        min-width: 96px;
        max-width: 104px;
        padding: 0.75rem 0.45rem;
        border-radius: 14px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .category-icon-halo {
        width: 48px;
        height: 48px;
        border-radius: 13px;
        margin-bottom: 0.45rem;
    }
    .category-icon-halo svg {
        width: 22px;
        height: 22px;
    }
    .category-showcase-title {
        font-size: 0.78rem;
        margin: 0 0 0.3rem;
        line-height: 1.25;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .category-showcase-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.45rem;
        gap: 3px;
    }
    .badge-dot {
        width: 5px;
        height: 5px;
    }
    .category-card-arrow {
        display: none !important;
    }
}

.category-showcase-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.35rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.category-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cat-accent, var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-showcase-card:hover {
    transform: translateY(-6px);
    border-color: var(--cat-accent, var(--primary));
    box-shadow: 0 16px 30px -6px var(--cat-glow, rgba(37, 99, 235, 0.2));
}

.category-showcase-card:hover::before {
    opacity: 1;
}

.category-icon-halo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 18px -4px var(--cat-glow, rgba(0,0,0,0.18));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.category-showcase-card:hover .category-icon-halo {
    transform: scale(1.1) rotate(-3deg);
}

.category-img-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.category-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-svg-wrap svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

.category-showcase-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 0.45rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.category-showcase-card:hover .category-showcase-title {
    color: var(--cat-accent, var(--primary));
}

.category-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    line-height: 1;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.category-card-arrow {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(4px);
    transition: all 0.25s ease;
}

.category-showcase-card:hover .category-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--cat-accent, var(--primary));
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Category Shelf Header Redesign */
.shelf-header-card {
    background: #ffffff;
    padding: 1.25rem 1.6rem;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    border-right: 5px solid var(--cat-accent, var(--primary));
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.shelf-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shelf-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.shelf-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.shelf-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
    line-height: 1.3;
}

.shelf-count-chip {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.shelf-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.shelf-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    color: var(--secondary);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.shelf-view-all-btn:hover {
    background: var(--btn-color, var(--primary));
    color: #ffffff !important;
    border-color: var(--btn-color, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.shelf-view-all-btn .mobile-label {
    display: none;
}
.shelf-view-all-btn .desktop-label {
    display: inline;
}

@media (max-width: 768px) {
    .shelf-view-all-btn .desktop-label {
        display: none !important;
    }
    .shelf-view-all-btn .mobile-label {
        display: inline !important;
    }

    /* Shelf Header on Mobile: Compact & Sleek */
    .category-shelf-section {
        margin-bottom: 2.25rem !important;
        scroll-margin-top: 80px !important;
    }
    .shelf-header-card {
        padding: 0.65rem 0.85rem;
        border-radius: 14px;
        margin-bottom: 0.85rem;
        border-right-width: 4px;
        gap: 0.5rem;
    }
    .shelf-header-left {
        gap: 0.6rem;
    }
    .shelf-icon-badge {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .shelf-icon-badge svg {
        width: 18px;
        height: 18px;
    }
    .shelf-title {
        font-size: 1.05rem;
        font-weight: 800;
    }
    .shelf-count-chip {
        font-size: 0.68rem;
        padding: 0.15rem 0.45rem;
    }
    .shelf-subtitle {
        display: none !important;
    }
    .shelf-view-all-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    .shelf-view-all-btn svg {
        width: 12px;
        height: 12px;
    }

    /* 2 Products Per Row on Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    .product-card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    .product-thumbnail-wrap {
        padding-top: 100%; /* Crisp 1:1 square ratio */
    }
    .product-badge-wrap {
        top: 6px;
        right: 6px;
        gap: 3px;
    }
    .badge-sale, .badge-featured {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .product-info {
        padding: 0.65rem 0.55rem;
    }
    .product-category-tag {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }
    .product-title {
        font-size: 0.82rem !important;
        line-height: 1.35;
        margin-bottom: 0.35rem;
        -webkit-line-clamp: 2;
        min-height: 2.2rem;
    }
    .product-rating {
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
        gap: 2px;
    }
    .rating-count {
        font-size: 0.65rem;
    }
    .product-price-wrap {
        margin-bottom: 0.5rem;
    }
    .price {
        font-size: 0.95rem !important;
    }
    .price del {
        font-size: 0.72rem;
    }
    .product-actions-bar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.35rem;
    }
    .btn-add-cart {
        padding: 0.45rem 0.35rem;
        font-size: 0.74rem;
        border-radius: 8px;
        gap: 0.25rem;
    }
    .btn-add-cart svg {
        width: 14px;
        height: 14px;
    }
    .btn-whatsapp-order {
        padding: 0.45rem 0.55rem;
        border-radius: 8px;
    }
    .btn-whatsapp-order svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 0.5rem !important;
    }
    .product-info {
        padding: 0.55rem 0.45rem;
    }
    .product-title {
        font-size: 0.78rem !important;
    }
    .price {
        font-size: 0.88rem !important;
    }
    .btn-add-cart {
        font-size: 0.7rem;
        padding: 0.4rem 0.25rem;
    }
}


/* Products Grid */
.products-section {
    padding: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-4px);
}

.product-badge-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-sale {
    background: var(--danger);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.badge-featured {
    background: var(--accent);
    color: #1e1b4b;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.product-thumbnail-wrap {
    position: relative;
    background: #f8fafc;
    overflow: hidden;
    padding-top: 85%;
}

.product-thumbnail-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.product-price-wrap {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

.price del {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

.price ins {
    text-decoration: none;
    color: var(--primary);
}

.product-actions-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
}

.btn-add-cart {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-whatsapp-order {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-whatsapp-order:hover {
    background: var(--whatsapp-green);
    color: #ffffff;
    border-color: var(--whatsapp-green);
}

/* Promo Banner Section */
.promo-banner-section {
    padding: 2.5rem 0;
}

.promo-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.promo-banner::after {
    content: 'SMARTYX';
    position: absolute;
    left: -20px;
    bottom: -30px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 5px;
    pointer-events: none;
}

.promo-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.promo-content p {
    font-size: 1.1rem;
    color: #dbeafe;
    max-width: 500px;
}

.promo-btn {
    background: #ffffff;
    color: var(--primary);
    font-weight: 800;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.promo-btn:hover {
    background: var(--secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Shop Layout with Filter Sidebar */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
}

.shop-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
    padding-right: 0.75rem;
}

.widget-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Site Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.footer-about p {
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #94a3b8;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact-item svg,
.footer-contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.925rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.social-icon-btn.whatsapp-icon:hover {
    background: var(--whatsapp-green);
}

.footer-bottom {
    background: #090d16;
    padding: 1.25rem 0;
    border-top: 1px solid #1e293b;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.payment-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-badge {
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--whatsapp-green);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.05);
    color: #ffffff;
}

.floating-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Bottom Navigation */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0;
    z-index: 990;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-nav-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.2rem;
    position: relative;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary);
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
}

/* Responsive queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-description {
        margin: 0 auto 2rem;
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .hero-title {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .mobile-nav-bar {
        display: block;
    }
    body {
        padding-bottom: 60px;
    }
    .floating-whatsapp span {
        display: none;
    }
    .floating-whatsapp {
        padding: 0.85rem;
        bottom: 75px;
    }
}

/* ==========================================================================
   SmartX Cart Drawer & Mini Cart Styling
   ========================================================================== */
.smartx-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.smartx-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.smartx-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    background: #ffffff;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.smartx-drawer.open {
    transform: translateX(0);
}

.smartx-drawer-header {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.smartx-close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.smartx-close-btn:hover {
    color: var(--danger);
    background: #fee2e2;
}

.smartx-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    direction: rtl;
    text-align: right;
}

/* Mini Cart Styles */
.widget_shopping_cart_content ul.cart_list,
.widget_shopping_cart_content ul.product_list_widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_shopping_cart_content li.mini_cart_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.widget_shopping_cart_content li.mini_cart_item a.remove {
    position: static;
    order: 3;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    margin-right: auto;
}

.widget_shopping_cart_content li.mini_cart_item a.remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.widget_shopping_cart_content li.mini_cart_item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin: 0;
}

.widget_shopping_cart_content li.mini_cart_item .quantity {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.woocommerce-mini-cart__total {
    margin-top: 1.5rem;
    padding: 1.25rem 0;
    border-top: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
}

.woocommerce-mini-cart__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.woocommerce-mini-cart__buttons a.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.8rem 1rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    font-family: inherit !important;
}

.woocommerce-mini-cart__buttons a.button:first-child {
    background: #f1f5f9 !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

.woocommerce-mini-cart__buttons a.button:first-child:hover {
    background: #e2e8f0 !important;
}

.woocommerce-mini-cart__buttons a.button.checkout {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.woocommerce-mini-cart__buttons a.button.checkout:hover {
    background: var(--primary-hover) !important;
}

.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   SmartX Simplified Checkout Styling
   ========================================================================== */
.woocommerce-checkout {
    margin-top: 1rem;
}

.woocommerce-checkout .col2-set {
    margin-bottom: 2rem;
}

.woocommerce-checkout .form-row {
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
}

.woocommerce-checkout label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.woocommerce-checkout .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea {
    width: 100% !important;
    padding: 0.9rem 1.25rem !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    background: #f8fafc !important;
    transition: var(--transition) !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

#order_review_heading {
    margin-top: 2rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--secondary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.woocommerce-checkout-review-order-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-checkout-review-order-table thead th {
    background: #f8fafc;
    font-weight: 800;
}

#place_order {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    padding: 1rem 2.5rem !important;
    border-radius: var(--radius-full) !important;
    width: 100% !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35) !important;
    transition: var(--transition) !important;
}

#place_order:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45) !important;
}

/* Spinner & Button States for Fast Add to Cart */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: smartx-spin 0.6s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

.btn-add-cart.is-adding {
    background: var(--primary) !important;
    color: #ffffff !important;
    pointer-events: none;
    opacity: 0.92;
}

.btn-add-cart.is-added {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

@keyframes smartx-spin {
    to {
        transform: rotate(360deg);
    }
}


