/**
 * ============================================================================
 * Alnilen Client Storefront Styles
 * ============================================================================
 */

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --primary-deep: #0A5C5E;
    --primary-blue: #0D7377;
    --accent-cyan: #0E8589;
    --accent-light-cyan: #10969B;
    --accent-green: #0D7377;
    --highlight-pink: #E91E63;
    --highlight-orange: #FF5722;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-gray: #64748B;
    --text-light: #94A3B8;
    --border-light: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 15px;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 10px;
}

/* ============================================================
   Utility
   ============================================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   Account Dropdown (used in header actions)
   ============================================================ */
.topbar-account-dropdown { position: relative; }
.topbar-account-trigger { cursor: pointer; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.topbar-account-trigger:hover { background: var(--bg-light); }
.topbar-dd-arrow { transition: transform 0.2s; opacity: 0.5; }
.topbar-account-dropdown.open .topbar-dd-arrow { transform: rotate(180deg); opacity: 1; }
.topbar-account-dropdown.open .topbar-account-trigger {
    background: var(--primary-deep);
    color: #fff;
    border-color: var(--primary-deep);
}
.topbar-account-dropdown.open .topbar-account-trigger svg { fill: #fff; }
.topbar-dd-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 190px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid var(--border-light);
    padding: 6px 0;
    z-index: 99999;
    transition: opacity 0.15s;
}
.topbar-account-dropdown.open .topbar-dd-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.topbar-dd-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--text-dark) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
}
.topbar-dd-menu a:hover { background: var(--bg-light); color: var(--text-dark) !important; }
.topbar-dd-menu a svg { color: var(--text-gray) !important; flex-shrink: 0; }
.topbar-dd-divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.topbar-dd-logout { color: #dc2626 !important; }
.topbar-dd-logout svg { color: #dc2626 !important; }

/* ============================================================
   Dark Mode
   ============================================================ */
html.dark-mode {
    --bg-light: #0F172A;
    --bg-white: #1E293B;
    --text-dark: #F1F5F9;
    --text-gray: #94A3B8;
    --text-light: #64748B;
    --border-light: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
}

html.dark-mode .header {
    background: var(--bg-white);
    border-bottom-color: var(--border-light);
}
html.dark-mode .header-action { color: var(--text-dark); }
html.dark-mode .header-action:hover { color: var(--primary-blue); }
html.dark-mode .search-bar { border-color: var(--border-light); background: var(--bg-light); }
html.dark-mode .nav-bar { background: transparent; }
html.dark-mode .nav-bar-item { color: #7DCED8; border-color: #7DCED8; }
html.dark-mode .nav-bar-item:hover { background: #02577e; color: #fff; border-color: #02577e; }
html.dark-mode .nav-bar-item.active { background: #02577e; color: #fff; border-color: #02577e; }
html.dark-mode .nav-bar-divider { background: rgba(125,206,216,0.2); }

/* nav-bar inherits header gradient — no separate dark override needed */

html.dark-mode .newsletter-section {
    background: linear-gradient(135deg, #071E22 0%, #0A4A4C 50%, #0A5C5E 100%);
}

html.dark-mode .footer {
    background: #0B1120;
}

html.dark-mode .search-bar input {
    color: var(--text-dark);
}

html.dark-mode .categories-panel {
    background: var(--bg-white);
}

html.dark-mode .categories-panel-list a {
    color: var(--text-dark);
    border-bottom-color: var(--border-light);
}

html.dark-mode .hero-promo-card {
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.08), rgba(251, 191, 36, 0.05));
    border-color: rgba(252, 211, 77, 0.15);
}

html.dark-mode .hero-promo-card:hover {
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.15), rgba(251, 191, 36, 0.1));
    border-color: rgba(252, 211, 77, 0.3);
}

/* ============================================================
   Header
   ============================================================ */
.header {
    background: #FDFDE8;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0 0;
    position: relative;
    z-index: 99999;
    box-shadow: none;
}

/* Scrolled compact actions */
.scrolled-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.scrolled-btn {
    background: none;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    cursor: pointer;
    color: var(--primary-deep);
    transition: all 0.2s;
}
.scrolled-btn:hover { background: var(--bg-light); border-color: var(--primary-blue); }

/* Scrolled: fixed compact bar overlaying on top */
.scrolled-bar {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 9999999;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    transition: top 0.25s ease;
}
.scrolled-bar.visible { top: 0; }
.scrolled-bar .logo img { height: 30px; }
.scrolled-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.scrolled-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.scrolled-brand-name {
    font-size: 14px;
    font-weight: 900;
    color: var(--primary-deep);
    line-height: 1.2;
}
.scrolled-brand-tagline {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.2;
}
@media (max-width: 768px) {
    .scrolled-bar { padding: 0 10px; }
    .scrolled-bar .logo img { height: 26px; }
    .scrolled-btn { padding: 5px 6px; }
    .scrolled-btn svg { width: 18px; height: 18px; }
    .scrolled-actions { gap: 4px; }
}
html.dark-mode .scrolled-bar { background: var(--bg-white); }

.header > .container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 20px;
}

.header-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo { flex-shrink: 0; }

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img { transform: scale(1.03); }

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
    margin-inline-end: auto;
}

.search-bar {
    display: flex;
    align-items: stretch;
    background: var(--bg-white);
    border: 2px solid var(--primary-deep);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-bar:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13,115,119,0.15);
}

.search-cat-filter,
.search-cat-spinner,
.search-btn {
    background: var(--primary-deep);
    color: #fff;
}
.search-cat-filter {
    border: none;
    outline: none;
    padding: 0 14px 0 28px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    width: 75px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 8px center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.search-cat-filter option {
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
}
.search-cat-spinner {
    padding: 0 16px;
    display: flex;
    align-items: center;
}
.search-cat-spinner img {
    width: 20px;
    height: 20px;
}
.search-cat-sep {
    width: 0;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    color: var(--text-dark);
}

.logo-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 2px;
    z-index: 2;
}

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

.logo-site-name {
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #0D7377, #1976D2, #2E7D32, #F57C00, #0D7377);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: taglineShimmer 5s linear infinite;
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.1);
}

.logo-tagline {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #0D7377, #1976D2, #2E7D32, #F57C00, #0D7377);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: taglineShimmer 5s linear infinite;
}

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

.search-btn {
    border: none;
    padding: 0 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.search-btn:hover { background: var(--primary-blue); }
.search-btn:active { opacity: 0.85; }

.search-btn svg {
    width: 22px;
    height: 22px;
    fill: #FFFFFF;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--primary-deep);
    font-size: 19px;
    font-weight: 900;
    -webkit-text-stroke: 0.5px currentColor;
    transition: all 0.2s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.header-action:hover {
    color: var(--primary-blue);
    background: transparent;
}

.header-action svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.header-action:hover svg { transform: scale(1.1); }

.header-action span {
    font-size: 12px;
    font-weight: 500;
}

/* Cart badge */
.cart-action { position: relative; }
.cart-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
    pointer-events: none;
}

/* Toast notification */
.cart-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--primary-deep, #1a237e);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cart-toast-error { background: #e53935; }
.cart-toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 12px;
    opacity: 0.8;
}
.cart-toast-close:hover { opacity: 1; }

/* Confirm dialog */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.confirm-overlay.show { opacity: 1; }
.confirm-box {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 28px 32px 20px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    min-width: 280px;
    max-width: 360px;
    transform: scale(0.9);
    transition: transform 0.2s;
}
.confirm-overlay.show .confirm-box { transform: scale(1); }
.confirm-msg {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 14px 0 20px;
}
.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.confirm-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.confirm-btn:hover { transform: scale(1.05); }
.confirm-btn-yes {
    background: #e53935;
    color: white;
    box-shadow: 0 3px 12px rgba(229,57,53,0.3);
}
.confirm-btn-no {
    background: var(--bg-light);
    color: var(--text-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-action .badge {
    position: absolute;
    top: 5px;
    left: 10px;
    background: var(--highlight-pink);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================================
   Navigation Bar (inside header, below search)
   ============================================================ */
.nav-bar {
    grid-column: 2;
    grid-row: 2;
    margin-top: 8px;
    background: transparent;
    padding: 4px 0;
}

.nav-bar-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.nav-bar-inner::-webkit-scrollbar { display: none; }

.nav-bar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    color: #02577e;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1.5px solid #02577e;
    background: transparent;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.nav-bar-item:hover {
    background: #02577e;
    color: #fff;
    border-color: #02577e;
}
.nav-bar-item:hover svg { fill: #fff; }

.nav-bar-item.hot {
    background: #02577e;
    color: #FCD34D;
    border-color: #02577e;
}
.nav-bar-item.hot:hover {
    background: #013d59;
}

/* Active nav item */
.nav-bar-item.active {
    background: #02577e;
    color: #fff;
    border-color: #02577e;
    box-shadow: 0 2px 8px rgba(2,87,126,0.25);
}
.nav-bar-item.hot.active {
    background: #013d59;
    color: #FCD34D;
    border-color: #013d59;
}

.nav-bar-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.nav-bar-divider {
    width: 1px;
    height: 20px;
    background: rgba(2,87,126,0.2);
    align-self: center;
    flex-shrink: 0;
}

.nav-bar-item.cart-action {
    position: relative;
}

.nav-bar-item .cart-badge {
    position: absolute;
    top: 2px;
    inset-inline-start: calc(50% + 4px);
    background: var(--highlight-pink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Categories toggle (tablet) — hidden on desktop (sidebar visible), shown <=1200px */
.nav-bar-item.categories-toggle-desktop {
    display: none;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    font-weight: 600;
}

/* Mobile toggles row — hidden on desktop, shown <=768px */
.nav-bar-mobile-toggles {
    display: none;
}

.nav-bar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: transparent;
    border: 1.5px solid #02577e;
    border-radius: 50px;
    color: #02577e;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    justify-content: center;
    flex: 1;
}

.nav-bar-toggle:hover {
    background: #02577e;
    color: #fff;
}

.nav-bar-toggle svg:first-child {
    width: 18px;
    height: 18px;
}

.nav-bar-toggle-arrow {
    transition: transform 0.3s ease;
    margin-right: -4px;
}

.nav-bar-toggle.open .nav-bar-toggle-arrow {
    transform: rotate(180deg);
}

.nav-bar-toggle-cats {
    background: transparent;
    border-color: #02577e;
}

/* Mobile Categories Slide-in Panel */
.categories-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-overlay.open {
    display: block;
    opacity: 1;
}

.categories-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-white);
    z-index: 999999;
    box-shadow: var(--shadow-xl);
    transition: right 0.35s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.categories-panel.open {
    right: 0;
}

/* Shop panel: slides from left (in RTL) */
.shop-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.shop-overlay.open { display: block; opacity: 1; }

.shop-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-white);
    z-index: 999999;
    box-shadow: var(--shadow-xl);
    transition: left 0.35s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.shop-panel.open { left: 0; }
html.dark-mode .shop-panel { background: var(--bg-white); }

.categories-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-blue));
    color: white;
    flex-shrink: 0;
}

.categories-panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.categories-panel-close {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease;
}

.categories-panel-close:hover {
    background: rgba(255,255,255,0.3);
}

.categories-panel-list {
    flex: 1;
    overflow-y: auto;
}

.categories-panel-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.categories-panel-list a:last-child { border-bottom: none; }

.categories-panel-list a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
    padding-right: 30px;
}

.categories-panel-list a svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-cyan);
    flex-shrink: 0;
}

/* Prevent body scroll when panel is open */
body.categories-open { overflow: hidden; }

/* Legacy nav-links removed — replaced by .nav-bar */

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section { padding: 25px 0 10px; }

.hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Sidebar Categories */
.sidebar-categories {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    grid-row: 1 / -1;
}

.sidebar-title {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-blue));
    color: white;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-list { list-style: none; }

.sidebar-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-list li:last-child a { border-bottom: none; }

.sidebar-list li a:hover {
    background: linear-gradient(90deg, rgba(0, 200, 232, 0.1), transparent);
    color: var(--primary-blue);
    padding-right: 25px;
}

.sidebar-list li a svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-list li a:hover svg { opacity: 1; }

.sidebar-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-item-label i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--primary-teal);
    flex-shrink: 0;
}

.sidebar-list li a:hover .sidebar-item-label i {
    color: var(--primary-blue);
}

/* Slide-in panel icons */
.categories-panel-list a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--primary-teal);
}

/* Hero Slider */
.hero-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 380px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
}

.hero-slide-tag {
    display: inline-block;
    background: var(--accent-cyan);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    animation: slide-in-right 0.6s ease;
}

.hero-slide-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    animation: slide-in-right 0.6s ease 0.1s backwards;
}

.hero-slide-discount {
    font-size: 48px;
    font-weight: 900;
    color: var(--highlight-pink);
    margin-bottom: 20px;
    animation: slide-in-right 0.6s ease 0.2s backwards;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: slide-in-right 0.6s ease 0.3s backwards;
}

.hero-slide-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(-5px);
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-cyan);
    width: 30px;
    border-radius: 10px;
}

/* Side Banners */
.hero-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 380px;
}

.promo-banner {
    flex: 1;
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
}

.promo-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-banner:hover img { transform: scale(1.05); }

.promo-banner-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    color: white;
    pointer-events: none;
}

.promo-banner-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.promo-banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-banner-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-light-cyan);
}

.promo-banner-old-price {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.6;
}

.promo-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.promo-banner:hover .promo-banner-link {
    opacity: 1;
    transform: translateY(0);
}

.promo-banners-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue, #1a6985));
    border-radius: var(--radius);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.promo-banners-view-all svg:first-child {
    width: 18px;
    height: 18px;
}
.promo-banners-view-all:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.promo-banners-view-all-arrow {
    transition: transform 0.2s;
}
.promo-banners-view-all:hover .promo-banners-view-all-arrow {
    transform: translateX(-4px);
}

/* ============================================================
   Hero Bottom (Merchants + Promos inside hero grid)
   ============================================================ */
.hero-bottom {
    grid-column: 2 / -1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -10px;
}

/* Merchants strip */
.hero-merchants {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}

.hero-merchants-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hero-merchants-label span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-merchants-label svg {
    color: var(--primary-deep);
}

.hero-merchants-list {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hero-merchants-list::-webkit-scrollbar { display: none; }

.hero-merchant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 70px;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.25s ease;
}
.hero-merchant-item img,
.hero-merchant-item .hero-merchant-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    overflow: hidden;
    object-fit: cover;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-merchant-name {
    font-size: 12px;
    font-weight: 900;
    color: #02577e;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    -webkit-text-stroke: 0.3px #02577e;
}

.hero-merchant-item:hover {
    transform: scale(1.05);
}
.hero-merchant-item:hover img,
.hero-merchant-item:hover .hero-merchant-placeholder {
    border-color: var(--accent-cyan);
    box-shadow: 0 2px 8px rgba(0, 200, 232, 0.25);
}

.hero-merchant-placeholder {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-deep);
}

.hero-merchants-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-deep);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s;
}

.hero-merchants-more:hover {
    color: var(--accent-cyan);
}

/* Promos strip */
.hero-promos {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hero-promos::-webkit-scrollbar { display: none; }

.hero-promo-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.12), rgba(251, 191, 36, 0.08));
    border: 1px solid rgba(252, 211, 77, 0.25);
    border-radius: var(--radius-md);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.hero-promo-card:hover {
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.22), rgba(251, 191, 36, 0.15));
    border-color: rgba(252, 211, 77, 0.45);
    transform: translateY(-1px);
}

.hero-promo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    flex-shrink: 0;
}

.hero-promo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.hero-promo-merchant {
    font-size: 11px;
    color: var(--text-gray);
    white-space: nowrap;
}

/* ============================================================
   Features Section
   ============================================================ */
.features-section { padding: 10px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 200, 232, 0.1), rgba(0, 191, 165, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--accent-cyan);
}

.feature-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 12px;
    color: var(--text-gray);
}

/* ============================================================
   Section Header (shared)
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.section-title-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.section-link:hover {
    color: var(--accent-cyan);
    gap: 12px;
}

/* ============================================================
   Products Section
   ============================================================ */
.products-section { padding: 40px 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
}

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

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.product-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.product-badge.sale { background: var(--highlight-pink); }
.product-badge.new { background: var(--accent-green); }
.product-badge.hot { background: var(--highlight-orange); }

/* Product Image */
.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Product Actions (hover overlay) */
.product-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-action-btn {
    width: 42px;
    height: 42px;
    background: var(--bg-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.product-action-btn:hover { background: var(--primary-blue); }
.product-action-btn:hover svg { fill: white; }

.product-action-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-dark);
    transition: fill 0.3s ease;
}

/* Product Info */
.product-info { padding: 20px; }

.product-category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.product-rating .stars {
    color: #FFC107;
    font-size: 13px;
}

.product-rating .count {
    font-size: 12px;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .current {
    font-size: 20px;
    font-weight: 800;
    color: var(--highlight-pink);
}

.product-price .old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ============================================================
   Categories Section
   ============================================================ */
.categories-section {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

/* Category Row */
.cat-row {
    margin-bottom: 24px;
}
.cat-row:last-child { margin-bottom: 0; }

.cat-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cat-row-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cat-row-title i { color: var(--primary-blue); font-size: 16px; }
.cat-row-title:hover { color: var(--primary-blue); }

.cat-row-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cat-row-more:hover { text-decoration: underline; }

/* Scroll container */
.cat-row-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cat-row-scroll::-webkit-scrollbar { display: none; }

.cat-row-track {
    display: flex;
    gap: 14px;
}

/* Product item in row */
.cat-row-item {
    flex-shrink: 0;
    width: 150px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.cat-row-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cat-row-img {
    position: relative;
    height: 140px;
    background: var(--bg-light);
}
.cat-row-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cat-row-badge {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    background: var(--danger-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.cat-row-info {
    padding: 10px;
}
.cat-row-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-row-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}
.cat-row-old-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-inline-start: 6px;
}

.cat-loading-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-light);
    font-size: 13px;
}

/* ============================================================
   Banner Section
   ============================================================ */
.banner-section { padding: 40px 0; }

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.banner-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.banner-card:hover::before {
    background: linear-gradient(135deg, rgba(61, 61, 143, 0.7) 0%, rgba(0, 200, 232, 0.4) 100%);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-card:hover img { transform: scale(1.1); }

.banner-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    z-index: 2;
}

.banner-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.banner-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    width: fit-content;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: var(--accent-cyan);
    color: white;
}

/* ============================================================
   Newsletter Section
   ============================================================ */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-blue) 50%, var(--accent-cyan) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.newsletter-text { color: white; }

.newsletter-text h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 16px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

.newsletter-form button {
    padding: 18px 40px;
    background: var(--highlight-pink);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--highlight-orange);
    transform: scale(1.05);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .logo { margin-bottom: 10px; }
.footer-site-name {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 6px;
    background: linear-gradient(90deg, #0D7377, #1976D2, #2E7D32, #F57C00, #0D7377);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: taglineShimmer 5s linear infinite;
}

.footer-about .logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-cyan);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    background: linear-gradient(90deg, #0D7377, #1976D2, #2E7D32, #F57C00, #0D7377);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: taglineShimmer 5s linear infinite;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.footer-contact li a {
    direction: ltr;
    unicode-bidi: embed;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-contact li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact li a:hover {
    color: var(--accent-cyan);
}

.footer-contact li svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 12px;
    margin: 0;
}

.footer-customer-service {
    color: var(--text-light);
    font-size: 13px;
}

.footer-cart-count {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-block;
    margin-inline-start: 4px;
}
.footer-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 14px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    align-self: flex-start;
}
.footer-lang-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ============================================================
   Category Page
   ============================================================ */
.breadcrumb-section {
    padding: 15px 0;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb-sep { color: var(--text-light); font-size: 12px; }

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

.category-header-section { padding: 30px 0 10px; }

.category-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-page-icon {
    font-size: 24px;
    color: var(--primary);
}

.category-page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.category-page-count {
    font-size: 14px;
    color: var(--text-light);
}

.category-page-desc {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.subcategories-section { padding: 15px 0 5px; }

.subcategories-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.subcategory-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 128, 128, 0.05);
}

.subcategory-chip i { font-size: 14px; }

.subcategory-count {
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state p {
    margin-top: 15px;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 0;
}

.pagination-btn,
.pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

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

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

.pagination-dots {
    padding: 0 4px;
    color: var(--text-light);
}

/* ============================================================
   Product Detail Page (PDP)
   ============================================================ */
.pdp-breadcrumb {
    padding: 14px 0;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}
.pdp-breadcrumb a { color: var(--text-dark); text-decoration: none; font-weight: 500; }
.pdp-breadcrumb a:hover { color: var(--primary-blue); }
.pdp-breadcrumb-sep { margin: 0 6px; }

.pdp-section { padding: 20px 0 40px; }

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Gallery */
.pdp-gallery { position: sticky; top: 20px; }

.pdp-main-image {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}
.pdp-main-image img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    display: block;
}

.pdp-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
.pdp-badge-sale { background: var(--danger-red); color: #fff; }

.pdp-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.pdp-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-white);
    padding: 0;
    transition: border-color 0.2s;
}
.pdp-thumb.active,
.pdp-thumb:hover { border-color: var(--primary-blue); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb-caption {
    display: block;
    font-size: 10px;
    text-align: center;
    color: var(--text-light);
    padding: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Details */
.pdp-category {
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    margin-bottom: 4px;
    display: inline-block;
}
.pdp-category:hover { text-decoration: underline; }

.pdp-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.pdp-short-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.pdp-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pdp-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-blue);
}
.pdp-compare-price {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}
.pdp-discount {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--danger-red);
    padding: 2px 8px;
    border-radius: 4px;
}

.pdp-stock {
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pdp-in-stock { color: var(--success-green); }
.pdp-out-stock { color: var(--danger-red); }
.pdp-low-stock { color: var(--warning-orange); font-size: 13px; }

.pdp-merchant {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}
.pdp-merchant img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.pdp-merchant a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.pdp-merchant a:hover { color: var(--primary-blue); }

/* Actions */
.pdp-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pdp-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.pdp-qty-btn {
    width: 38px;
    height: 42px;
    background: var(--bg-light);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
    transition: background 0.2s;
}
.pdp-qty-btn:hover { background: var(--border-color); }
.pdp-qty input {
    width: 50px;
    height: 42px;
    text-align: center;
    border: none;
    border-inline: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    -moz-appearance: textfield;
}
.pdp-qty input::-webkit-inner-spin-button { display: none; }

.pdp-btn {
    padding: 0 24px;
    height: 42px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pdp-btn-cart {
    background: var(--primary-blue);
    color: #fff;
}
.pdp-btn-cart:hover { opacity: 0.9; }
.pdp-btn-disabled { opacity: 0.5; cursor: not-allowed; }
.pdp-btn-buy {
    background: var(--success-green);
    color: #fff;
}
.pdp-btn-buy:hover { opacity: 0.9; }

.pdp-extra-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pdp-icon-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    padding: 9px 16px;
    transition: all 0.2s;
}
.pdp-icon-btn i {
    font-size: 20px;
    color: var(--text-light);
    transition: color 0.2s;
}
.pdp-icon-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 150, 136, 0.06);
}
.pdp-icon-btn:hover i {
    color: var(--accent-cyan);
}

.pdp-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

/* Tabs */
.pdp-tabs-section { padding: 0 0 40px; }

.pdp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.pdp-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.pdp-tab:hover { color: var(--text-dark); }
.pdp-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.pdp-tab-content { display: none; }
.pdp-tab-content.active { display: block; }

.pdp-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}
.pdp-description img { max-width: 100%; height: auto; border-radius: var(--border-radius); }

.pdp-no-content {
    font-size: 14px;
    color: var(--text-light);
    padding: 20px 0;
}

.pdp-spec-content { font-size: 14px; line-height: 1.7; }

/* Related */
.pdp-related { padding: 20px 0 50px; }

/* ============================================================
   Animations
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ============================================================
   Touch-friendly
   ============================================================ */
@media (hover: none) {
    .product-actions {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    .promo-banner-link {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Responsive: <= 1200px
   ============================================================ */
@media (max-width: 1200px) {
    .hero-grid { grid-template-columns: 1fr 300px; grid-template-rows: auto; }
    .sidebar-categories { display: none; }
    .hero-bottom { grid-column: 1 / -1; }
    .nav-bar-item.categories-toggle-desktop { display: flex; }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Responsive: <= 992px
   ============================================================ */
@media (max-width: 992px) {
    .header-action span:not(.cart-badge) { display: none; }
    .header-actions { gap: 2px; }
    .header-action { padding: 6px 8px; }
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-bottom { grid-column: 1 / -1; }
    .hero-banners { flex-direction: row; }
    .hero-promos { flex-wrap: wrap; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .banner-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    /* nav-bar scrolls horizontally on smaller screens */
}

/* ============================================================
   Responsive: <= 768px — Bottom Nav Bar
   ============================================================ */
@media (max-width: 768px) {
    .pdp-grid { grid-template-columns: 1fr; gap: 24px; }
    .pdp-gallery { position: static; }
    .pdp-main-image img { height: 320px; }
    .pdp-title { font-size: 20px; }
    .pdp-price { font-size: 24px; }
    .pdp-tab { padding: 10px 16px; font-size: 14px; }
    .pdp-actions { flex-direction: column; }
    .pdp-actions > * { width: 100%; }
    .pdp-btn { justify-content: center; }

    /* Mobile: 3 rows via grid */
    .header { padding: 8px 0 0; }
    .header > .container {
        display: grid !important;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 6px 8px;
        align-items: center;
    }

    /* Break header-content so children join grid */
    .header-content {
        display: contents;
    }

    /* Row 1 col 1: logo (right in RTL) */
    .logo-wrap {
        grid-row: 1; grid-column: 1;
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }

    /* Row 1 col 2: actions (far end = physical left in RTL) */
    .header-actions {
        grid-row: 1; grid-column: 2;
        display: flex;
        gap: 2px;
        margin-inline-start: auto;
    }
    .header-action { padding: 4px 6px; -webkit-text-stroke: 0; }
    .header-action span:not(.cart-badge) { display: none; }
    .header-action svg { width: 22px; height: 22px; }
    .logo img { height: 36px; }
    .logo-site-name { font-size: 14px; }
    .logo-tagline { font-size: 8px; letter-spacing: 0.5px; }

    /* Row 2: search full width */
    .search-container {
        grid-row: 2; grid-column: 1 / -1;
        max-width: none;
        margin-inline-end: 0;
    }
    .search-bar input { padding: 10px 12px; font-size: 14px; }
    .search-cat-filter { width: 60px; font-size: 11px; padding: 0 10px 0 22px; }
    .search-btn { padding: 0 18px; }

    /* Row 3: nav toggles */
    .nav-bar {
        grid-row: 3; grid-column: 1 / -1;
    }

    /* Row 3: nav toggles */
    .nav-bar { margin-top: 4px; }

    .nav-bar-mobile-toggles {
        display: flex;
        gap: 8px;
    }
    .nav-bar-toggle { padding: 7px 14px; font-size: 13px; flex: 1; justify-content: center; }

    .nav-bar-item.categories-toggle-desktop { display: none !important; }

    .nav-bar-inner {
        display: none;
        flex-direction: column;
        gap: 6px;
        padding-top: 10px;
    }

    .nav-bar-inner.open { display: flex; }

    .nav-bar-item {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 10px;
        justify-content: flex-start;
    }

    .nav-bar-item span { display: inline; }

    .nav-bar-item svg {
        width: 18px;
        height: 18px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .banner-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .section-title h2 { font-size: 22px; }
    .hero-slide-title { font-size: 24px; }
    .hero-slide-discount { font-size: 36px; }
}

/* ============================================================
   Responsive: <= 480px
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-banners { flex-direction: column; }
    .hero-merchants { flex-wrap: wrap; }
    .hero-promos { flex-wrap: wrap; }
    .features-grid { grid-template-columns: 1fr; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-info { padding: 12px; }
    .product-name { font-size: 13px; }
    .product-price .current { font-size: 16px; }
    .product-image { height: 180px; }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cat-row-item { width: 130px; }
    .cat-row-img { height: 120px; }

    .newsletter-form { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form button { width: 100%; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-main { height: 280px; }
    .hero-slide-content { padding: 30px 20px 25px; }
    .hero-slide-title { font-size: 20px; }
    .hero-slide-discount {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .hero-slide-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    .promo-banner-content { padding: 20px; }
    .promo-banner-title { font-size: 16px; }
    .promo-banner-price { font-size: 24px; }
}
