/* =====================================================
   Dawar Market - Premium Quick-Commerce Store Stylesheet
   Modern, Ultra-clean, High-Conversion RTL Arabic Design
   ===================================================== */

:root {
    --store-primary: #2563eb;
    --store-primary-dark: #1d4ed8;
    --store-primary-light: rgba(37, 99, 235, 0.1);
    --store-secondary: #f59e0b;
    --store-accent: #10b981;
    --store-danger: #ef4444;
    --store-bg: #f8fafc;
    --store-card-bg: #ffffff;
    --store-text-main: #0f172a;
    --store-text-muted: #64748b;
    --store-border: #e2e8f0;
    --store-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --store-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
    --store-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.09);
    --store-shadow-hover: 0 18px 40px rgba(37, 99, 235, 0.14);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --store-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--store-bg);
    color: var(--store-text-main);
    font-family: 'Tajawal', 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Utility classes */
.d-none {
    display: none !important;
}

/* =====================================================
   TOP ANNOUNCEMENT BAR
   ===================================================== */
.store-announcement-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--store-border);
    font-size: 0.82rem;
    padding: 0.45rem 1.5rem;
    color: var(--store-text-muted);
}
.store-announcement-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0.75rem;
}
.announcement-start,
.announcement-end {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}
.announcement-divider {
    color: #cbd5e1;
    font-size: 0.8rem;
}
.announcement-whatsapp-link {
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--store-transition);
}
.announcement-whatsapp-link:hover {
    color: #059669;
}
.store-announcement-bar strong {
    color: var(--store-text-main);
}
.live-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-left: 6px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =====================================================
   FROSTED GLASS NAVBAR
   ===================================================== */
.store-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--store-transition);
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--store-text-main);
}
.store-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--store-primary) 0%, #1e40af 100%);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: var(--store-transition);
}
.store-logo:hover .store-logo-icon {
    transform: rotate(-8deg) scale(1.05);
}
.store-logo-text {
    display: flex;
    flex-direction: column;
}
.store-logo-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--store-text-main);
}
.store-logo-badge {
    font-size: 0.72rem;
    color: var(--store-primary);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.store-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.store-track-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--store-primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: var(--store-transition);
    white-space: nowrap;
    line-height: 1;
}
.store-track-btn:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--store-primary);
    transform: translateY(-1px);
}

/* =====================================================
   CART BUTTON CAPSULE (PERFECT SIZING & ALIGNMENT)
   ===================================================== */
.store-navbar .store-cart-btn,
.store-cart-btn {
    position: relative !important;
    width: auto !important;
    min-width: 105px !important;
    height: 42px !important;
    padding: 0 1.15rem !important;
    border-radius: 50px !important;
    background: var(--store-primary) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    transition: var(--store-transition) !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.store-navbar .store-cart-btn:hover,
.store-cart-btn:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Internal Badge inside the Capsule */
.store-navbar .store-cart-btn .cart-badge,
.store-cart-btn .cart-badge {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    border-radius: 50px !important;
    background: #ffffff !important;
    color: var(--store-primary) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    border: none !important;
    line-height: 1 !important;
    margin-right: 2px !important;
    animation: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.store-navbar .store-cart-btn .cart-badge[data-count="0"],
.store-cart-btn .cart-badge[data-count="0"] {
    display: inline-flex !important;
    opacity: 0.85 !important;
}

/* Slide-in Cart Drawer */
.cart-panel {
    position: fixed !important;
    top: 0 !important;
    right: -450px !important;
    left: auto !important;
    width: 420px !important;
    max-width: 92vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.25) !important;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.cart-panel.active {
    right: 0 !important;
}
.cart-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}
.cart-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.store-user-icon-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: var(--store-text-main) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    transition: var(--store-transition) !important;
}
.store-user-icon-btn:hover {
    background: var(--store-primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-v2 {
    position: relative;
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--store-border);
}
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    color: var(--store-primary);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    margin-bottom: 1.5rem;
}
.hero-v2 h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--store-text-main);
    margin-bottom: 1rem;
    line-height: 1.25;
}
.hero-v2 h1 span {
    color: var(--store-primary);
    position: relative;
}
.hero-v2 p {
    font-size: 1.15rem;
    color: var(--store-text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Hero Live Search Box */
.hero-search-container {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.hero-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--store-border);
    border-radius: 50px;
    padding: 0.4rem 0.5rem 0.4rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--store-transition);
}
.hero-search-box:focus-within {
    border-color: var(--store-primary);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.15);
}
.hero-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--store-text-main);
    background: transparent;
    padding: 0.5rem 0.75rem;
}
.hero-search-btn {
    background: var(--store-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--store-transition);
}
.hero-search-btn:hover {
    background: var(--store-primary-dark);
    transform: scale(1.02);
}

.hero-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.hero-tag-pill {
    background: #ffffff;
    border: 1px solid var(--store-border);
    color: var(--store-text-muted);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--store-transition);
}
.hero-tag-pill:hover {
    background: var(--store-primary);
    color: #ffffff;
    border-color: var(--store-primary);
    transform: translateY(-2px);
}

/* =====================================================
   CATEGORIES SECTION
   ===================================================== */
.section-header-wrap {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-badge-pill {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: var(--store-primary);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--store-text-main);
    margin: 0;
}
.section-sub {
    font-size: 0.95rem;
    color: var(--store-text-muted);
    margin-top: 0.4rem;
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
}
.category-card-modern {
    background: #ffffff;
    border: 1px solid var(--store-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--store-text-main);
    transition: var(--store-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--store-shadow-sm);
}
.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--store-shadow-hover);
    border-color: var(--store-primary);
}
.category-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.03) 100%);
    color: var(--store-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: var(--store-transition);
}
.category-card-modern:hover .category-icon-circle {
    background: var(--store-primary);
    color: #ffffff;
    transform: scale(1.1);
}
.category-name-modern {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.category-action-text {
    font-size: 0.75rem;
    color: var(--store-text-muted);
    font-weight: 600;
}

/* =====================================================
   HIGH-DENSITY COMPACT PRODUCT CARDS (QUICK-COMMERCE)
   ===================================================== */
.product-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 1rem !important;
}

.product-card-v2 {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid var(--store-border) !important;
    overflow: hidden !important;
    transition: var(--store-transition) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    position: relative !important;
}

.product-card-v2:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09) !important;
    border-color: var(--store-primary) !important;
}

/* Compact Image Container: fixed height 135px instead of giant 300px square */
.product-image-v2 {
    position: relative !important;
    width: 100% !important;
    height: 135px !important;
    aspect-ratio: unset !important;
    background: #f8fafc !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem !important;
}

.product-image-v2 img {
    max-width: 85% !important;
    max-height: 115px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.product-card-v2:hover .product-image-v2 img {
    transform: scale(1.08) !important;
}

.discount-badge-modern {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.68rem !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
    z-index: 2 !important;
}

/* Compact Card Content */
.product-content-v2 {
    padding: 0.65rem 0.75rem 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.product-category-v2 {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: var(--store-primary) !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product-title-v2 {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--store-text-main) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.4rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 2.2rem !important;
}

/* Compact Pricing and Add-to-Cart Row */
.product-pricing-box {
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
    padding-top: 0.45rem !important;
    border-top: 1px dashed var(--store-border) !important;
}

.price-tag-v2 {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: var(--store-text-main) !important;
    line-height: 1 !important;
}

.price-tag-v2 small {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: var(--store-text-muted) !important;
}

.old-price-struck {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    display: block !important;
    margin-bottom: 1px !important;
}

.btn-add-cart-modern {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.42rem 0.75rem !important;
    background: var(--store-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: var(--store-transition) !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.btn-add-cart-modern:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* =====================================================
   TRUST & VALUE PROPS SECTION
   ===================================================== */
.trust-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.trust-card {
    background: #ffffff;
    border: 1px solid var(--store-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--store-shadow-sm);
    transition: var(--store-transition);
}
.trust-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--store-shadow-md);
    border-color: var(--store-primary);
}
.trust-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.trust-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--store-text-main);
}
.trust-card p {
    font-size: 0.9rem;
    color: var(--store-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* =====================================================
   COMPREHENSIVE 4-COLUMN FOOTER
   ===================================================== */
.store-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4.5rem 1.5rem 1.5rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.store-footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col h5 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background: var(--store-primary);
    border-radius: 2px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--store-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links a:hover {
    color: #ffffff;
    transform: translateX(-5px);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.footer-contact-item i {
    color: var(--store-primary);
    font-size: 1.1rem;
    margin-top: 3px;
}
.btn-footer-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #22c55e;
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: var(--store-transition);
}
.btn-footer-whatsapp:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}
.footer-bottom-bar {
    max-width: 1300px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* =====================================================
   CATALOG FILTER BAR & COMPACT TOOLBAR
   ===================================================== */
.store-filter-bar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--store-border) !important;
    padding: 0.65rem 0 !important;
    position: sticky !important;
    top: 66px !important;
    z-index: 800 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}
.filter-flex-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
}
.search-wrapper {
    width: 280px !important;
    flex-shrink: 0 !important;
    position: relative !important;
}
.store-search-input-v2 {
    width: 100% !important;
    padding: 0.45rem 2.4rem 0.45rem 1rem !important;
    border-radius: 50px !important;
    border: 1px solid var(--store-border) !important;
    background: #f8fafc !important;
    font-family: inherit !important;
    font-size: 0.85rem !important;
    color: var(--store-text-main) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}
.store-search-input-v2:focus {
    background: #ffffff !important;
    border-color: var(--store-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06) !important;
}
.search-icon-v2 {
    position: absolute !important;
    right: 0.9rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--store-text-muted) !important;
    font-size: 0.85rem !important;
    pointer-events: none !important;
}
.category-scroll-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    overflow-x: auto !important;
    padding: 2px 0 !important;
    flex-grow: 1 !important;
    width: auto !important;
    scrollbar-width: none !important;
}
.category-scroll-container::-webkit-scrollbar {
    display: none !important;
}
.cat-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.42rem 1rem !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border: 1px solid var(--store-border) !important;
    background: #f8fafc !important;
    color: var(--store-text-muted) !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}
.cat-pill:hover {
    border-color: var(--store-primary) !important;
    color: var(--store-primary) !important;
    background: #ffffff !important;
    transform: translateY(-1px) !important;
}
.cat-pill.active {
    background: var(--store-primary) !important;
    color: #ffffff !important;
    border-color: var(--store-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Compact Catalog Header */
.catalog-badge-count {
    background: #f1f5f9;
    border: 1px solid var(--store-border);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    color: var(--store-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}
.btn-clear-filter {
    font-size: 0.82rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.65rem;
    background: #fee2e2;
    border-radius: 50px;
    transition: var(--store-transition);
}
.btn-clear-filter:hover {
    background: #fecaca;
    color: #dc2626;
}

@media (max-width: 860px) {
    .filter-flex-container {
        flex-wrap: wrap !important;
        gap: 0.6rem !important;
    }
    .search-wrapper {
        width: 100% !important;
    }
    .category-scroll-container {
        width: 100% !important;
    }
}

/* Add to Cart feedback animation */
.btn-add-cart-modern.added {
    background: #10b981 !important;
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 992px) {
    .store-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}
@media (max-width: 768px) {
    /* Announcement Bar Mobile */
    .store-announcement-bar {
        padding: 0.35rem 0.85rem;
        font-size: 0.76rem;
    }
    .store-announcement-inner {
        gap: 0.5rem;
    }
    .announcement-start,
    .announcement-end {
        gap: 0.4rem;
    }

    /* Navbar Mobile Layout */
    .store-navbar {
        padding: 0.5rem 0.85rem;
        gap: 0.5rem;
    }
    .store-logo {
        gap: 0.45rem;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .store-logo-text {
        min-width: 0;
        overflow: hidden;
    }
    .store-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
        border-radius: 10px;
        flex-shrink: 0;
    }
    .store-logo-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .store-logo-badge {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }

    /* Actions: Keep Everything in One Line without Stacking or Disappearing */
    .store-header-actions {
        gap: 0.4rem !important;
        flex-shrink: 0;
    }
    /* Strictly hide header install button on mobile to avoid crowding/overlapping the logo */
    .store-pwa-install-btn,
    .store-pwa-install-btn.is-ready,
    #pwaHeaderInstallBtn {
        display: none !important;
    }
    .store-track-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
    }
    .store-track-text {
        display: none !important;
    }
    .store-navbar .store-cart-btn,
    .store-cart-btn {
        min-width: 44px !important;
        height: 38px !important;
        padding: 0 0.55rem !important;
        border-radius: 50px !important;
        gap: 0.35rem !important;
    }
    .store-cart-text {
        display: none !important;
    }
    .store-navbar .store-cart-btn .cart-badge,
    .store-cart-btn .cart-badge {
        min-width: 19px !important;
        height: 19px !important;
        font-size: 0.72rem !important;
        padding: 0 4px !important;
    }
    .store-user-icon-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
    }

    .hero-v2 {
        padding: 2rem 1rem 1.75rem;
    }
    .hero-v2 h1 {
        font-size: 1.6rem;
    }
    .hero-v2 p {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
    }
    .hero-search-box {
        padding: 0.3rem 0.4rem 0.3rem 1rem;
    }
    .hero-search-btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }
    .product-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .product-content-v2 {
        padding: 0.75rem;
    }
    .product-title-v2 {
        font-size: 0.9rem;
        height: 2.4rem;
    }
    .price-tag-v2 {
        font-size: 1.1rem;
    }
    .btn-add-cart-modern span {
        display: none;
    }
    .btn-add-cart-modern {
        padding: 0.5rem 0.75rem;
    }

    /* Category Cards: Native App Style */
    .categories-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }
    .category-card-modern {
        padding: 0.9rem 0.35rem;
        border-radius: var(--radius-md);
    }
    .category-icon-circle {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin-bottom: 0.35rem;
        border-radius: 12px;
    }
    .category-name-modern {
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.2;
    }
    .category-action-text {
        display: none !important;
    }

    .store-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom-bar {
        text-align: center;
        justify-content: center;
    }
    .store-filter-bar {
        top: 58px;
        padding: 0.65rem 0;
    }
    .filter-flex-container {
        gap: 0.65rem;
    }
}

/* Extra Small Phones (<= 400px like iPhone SE / Galaxy A) */
@media (max-width: 400px) {
    .store-navbar {
        padding: 0.45rem 0.55rem;
    }
    .store-logo-badge {
        display: none !important;
    }
    .store-logo-title {
        font-size: 0.95rem;
    }
    .store-header-actions {
        gap: 0.25rem !important;
    }
    .store-track-btn,
    .store-user-icon-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 0.88rem !important;
    }
    .store-navbar .store-cart-btn,
    .store-cart-btn {
        height: 34px !important;
        min-width: 38px !important;
        padding: 0 0.45rem !important;
    }
}

/* Floating Cart Micro-Interactions */
@keyframes cartBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.06); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

@keyframes cartBumpDesktop {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-4px) scale(1.04); }
    60% { transform: translateY(0) scale(0.99); }
    100% { transform: translateY(0) scale(1); }
}

.mobile-cart-sticky-bar.visible.cart-bump {
    animation: cartBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 769px) {
    .mobile-cart-sticky-bar.visible.cart-bump {
        animation: cartBumpDesktop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
}

/* =====================================================
   PWA (PROGRESSIVE WEB APP) STYLES & MICRO-INTERACTIONS
   ===================================================== */

/* Header Install Button (Desktop & Tablet) */
.store-pwa-install-btn {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #059669;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--store-transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
}

.store-pwa-install-btn.is-ready {
    display: inline-flex;
}

.store-pwa-install-btn:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.store-pwa-install-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.store-pwa-install-btn:hover i {
    transform: translateY(-1px);
}

/* Tablet view (769px to 992px): Compact icon button */
@media (min-width: 769px) and (max-width: 992px) {
    .store-pwa-install-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 0 !important;
        justify-content: center;
        border-radius: 10px;
    }
    .store-pwa-install-text {
        display: none !important;
    }
}

/* Mobile view (<= 768px): Strictly hidden in header, handled via bottom banner */
@media (max-width: 768px) {
    .store-pwa-install-btn,
    .store-pwa-install-btn.is-ready,
    #pwaHeaderInstallBtn {
        display: none !important;
    }
}

/* Floating Bottom Install Banner */
.pwa-bottom-banner {
    position: fixed;
    bottom: -150px;
    left: 1.25rem;
    right: 1.25rem;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 1040;
    transition: bottom 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.pwa-bottom-banner.visible {
    bottom: 1.25rem;
    opacity: 1;
    pointer-events: auto;
}

/* Push up if sticky mobile cart is also visible */
body:has(.mobile-cart-sticky-bar.visible) .pwa-bottom-banner.visible {
    bottom: 5.5rem;
}

.pwa-banner-inner {
    position: relative;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pwa-banner-close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-banner-close:hover {
    background: #e2e8f0;
    color: #475569;
}

.pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pwa-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-banner-info {
    flex: 1;
    min-width: 0;
    text-align: right;
    padding-left: 0.5rem;
}

.pwa-banner-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--store-text-main);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-desc {
    font-size: 0.75rem;
    color: var(--store-text-muted);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pwa-banner-actions {
    flex-shrink: 0;
}

.btn-pwa-install {
    background: var(--store-primary, #10b981);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.btn-pwa-install:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

/* iOS Safari Installation Guide Modal */
.pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pwa-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.pwa-ios-modal {
    position: fixed;
    bottom: -100%;
    left: 1rem;
    right: 1rem;
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25);
    z-index: 1070;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: right;
}

.pwa-ios-modal.active {
    bottom: 1.5rem;
}

.pwa-ios-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--store-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.pwa-ios-modal-header h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: var(--store-text-main);
    display: flex;
    align-items: center;
}

.pwa-ios-close-btn {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    font-size: 0.8rem;
}

.pwa-ios-app-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.pwa-ios-app-preview img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.pwa-ios-app-preview div {
    display: flex;
    flex-direction: column;
}

.pwa-ios-app-preview strong {
    font-size: 0.9rem;
    color: var(--store-text-main);
}

.pwa-ios-app-preview span {
    font-size: 0.75rem;
    color: var(--store-text-muted);
}

.pwa-ios-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pwa-ios-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pwa-ios-steps .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--store-primary, #10b981);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.pwa-ios-steps .step-text {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

.btn-pwa-ios-done {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--store-text-main);
    padding: 0.65rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pwa-ios-done:hover {
    background: #e2e8f0;
}

/* PWA Live Update Toast / Bar */
.pwa-update-bar {
    position: fixed;
    top: -80px;
    left: 1rem;
    right: 1rem;
    max-width: 440px;
    margin: 0 auto;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50px;
    padding: 0.6rem 1.15rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 1080;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-update-bar.visible {
    top: 1rem;
}

.pwa-update-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.pwa-update-text {
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.pwa-update-btn {
    background: #10b981;
    border: none;
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.pwa-update-btn:hover {
    background: #059669;
}

/* Standalone Mode adjustments (Safe Area padding) */
@supports (padding-top: env(safe-area-inset-top)) {
    html.pwa-standalone body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}


