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

:root {
    --primary: #ff4757;
    --primary-dark: #c0392b;
    --accent: #ffa502;
    --bg: #f5f5f5;
    --white: #fff;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light-gray: #eee;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --accent: #f5a623;
    --bg: #f4f6fb;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(232, 25, 44, 0.15);
    --sidebar-w: 250px;
    --radius: 16px;
    --ec-red: #e8192c;
    --ec-red-dark: #c9131f;
    --ec-red-light: #fff0f0;
    --ec-gray-bg: #f5f5f5;
    --ec-border: #e5e5e5;
    --ec-text-muted: #6c757d;
    --ec-card-shadow: 0 2px 12px rgba(0,0,0,.07);
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--dark);
}

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


/* NAVBAR */

.navbar {
    background: var(--dark);
    color: #fff;
    padding: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-top {
    background: #16213e;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #aaa;
    width: 100%;
}

.nav-top a {
    color: #aaa;
    margin-left: 16px;
}

.nav-top a:hover {
    color: #fff;
}

.nav-main {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--dark);
    width: 100%;
}

.logo {
    font-family: "Sora", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.logo-icon {
    background: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.search-bar {
    flex: 1;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
}

.search-category {
    background: #f0f0f0;
    border: none;
    padding: 0 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    font-family: "DM Sans", sans-serif;
}

.search-btn {
    background: var(--primary);
    border: none;
    padding: 0 20px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    position: relative;
}

.nav-action:hover {
    color: #fff;
}

.nav-action-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.nav-action .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.nav-bottom {
    background: #2d2d44;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.nav-bottom a {
    color: #ccc;
    font-size: 13px;
    white-space: nowrap;
}

.nav-bottom a:hover {
    color: #fff;
}

.category-btn {
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 220px 1fr 200px;
    gap: 12px;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar-cats {
    background: var(--white);
    border-radius: 10px;
    padding: 8px 0;
}

.sidebar-cats h4 {
    padding: 10px 16px 6px;
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-item {
    padding: 1px 3px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}

.cat-item:hover {
    background: #f8f8f8;
    border-left-color: var(--primary);
    color: var(--primary);
}

.cat-item.active {
    background: #fff0f1;
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

.cat-icon {
    font-size: 16px;
}

.hero-banner {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    /* background: linear-gradient(135deg, #1a1a2e, #16213e); */
    min-height: 320px;
    display: flex;
    align-items: center;
}

.banner-slide {
    padding: 40px;
    flex: 1;
}

.banner-tag {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.banner-title {
    font-family: "Sora", sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.banner-title span {
    color: var(--accent);
}

.banner-sub {
    color: #aaa;
    font-size: 15px;
    margin-bottom: 24px;
}

.banner-cta {
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-family: "DM Sans", sans-serif;
}

.banner-cta:hover {
    background: var(--primary-dark);
}

.banner-img {
    font-size: 120px;
    position: absolute;
    right: 0px;
    /* bottom: 10px; */
    opacity: 0.9;
    min-height: 350px;
    height: 350px;
    width: 100%;
    z-index: -1;
}

.dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-banner {
    border-radius: 10px;
    padding: 16px;
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mini-banner:first-child {
    background: linear-gradient(135deg, #2d1b69, #11998e);
}

.mini-banner:last-child {
    background: linear-gradient(135deg, #b8336a, #c490d1);
}

.mini-banner h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mini-banner p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

.mini-banner-img {
    position: absolute;
    right: 10px;
    bottom: 5px;
    font-size: 48px;
    opacity: 0.8;
}

/* DEALS STRIP */
.deals-strip {
    background: var(--white);
    margin: 0 24px;
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.deals-strip-label {
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.deal-countdown {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: 8px;
}

.time-block {
    background: #1a1a2e;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.deal-items {
    display: flex;
    gap: 12px;
    overflow: hidden;
    flex: 1;
}

.deal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 200px;
    cursor: pointer;
}

.deal-item:hover {
    background: #fff0f1;
}

.deal-thumb {
    font-size: 32px;
    width: 40px;
    text-align: center;
}

.deal-info .name {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
}

.deal-info .prices {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
}

.deal-info .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.deal-info .old {
    font-size: 12px;
    color: var(--gray);
    text-decoration: line-through;
}

.deal-info .badge-off {
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

/* PRODUCTS */
.section {
    padding: 20px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title {
    font-family: "Sora", sans-serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
}

.view-all {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tab-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-filter {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    border: 1.5px solid var(--light-gray);
    cursor: pointer;
    background: var(--white);
}

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

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

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}

.product-badge.new {
    background: #2ed573;
}

.product-badge.hot {
    background: #ff6b35;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    z-index: 1;
}

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

.product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
}

.product-info {
    padding: 12px;
}

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

.stars {
    color: var(--accent);
    font-size: 12px;
}

.rating-count {
    font-size: 11px;
    color: var(--gray);
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.product-old {
    font-size: 12px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-discount {
    font-size: 11px;
    background: #fff0f1;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.add-cart-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
}

.add-cart-btn:hover {
    background: var(--primary-dark);
}

/* BRANDS */
.brands-section {
    background: var(--white);
    margin: 0 24px;
    border-radius: 10px;
    padding: 16px 24px;
}

.brands-grid {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.brand-item {
    padding: 12px 24px;
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--gray);
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.brand-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* CATEGORIES BANNER */
.cats-banner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 0 24px;
}

.cat-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

.cat-card-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.cat-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
}

.cat-card-count {
    font-size: 11px;
    color: var(--gray);
    margin-top: 2px;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: #ccc;
    margin-top: 40px;
    padding: 40px 24px 20px;
}

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

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: #888;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2d2d44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

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

.footer-col h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2d2d44;
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.payment-icons {
    display: flex;
    gap: 8px;
}

.pay-icon {
    background: #2d2d44;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #aaa;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    background: var(--primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* CART COUNTER */
#cart-count-display {
    font-weight: 700;
    color: var(--primary);
}

/* product page css start*/


.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 14px;
    gap: 9px;
    align-items: center;
}
.icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.18s;
}
.icon-btn:hover {
    border-color: var(--primary);
    background: #fef2f2;
}
.mob-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 7px 12px;
    gap: 8px;
    flex: 1;
    transition: border 0.2s;
}
.mob-search-bar:focus-within {
    border-color: var(--primary);
    background: #fff;
}
.mob-search-bar input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: transparent;
    width: 100%;
}

/* ── OVERLAY ── */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.28s;
}
.overlay.open {
    opacity: 1;
}

/* ── PAGE ── */
.page {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    gap: 24px;
}

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: flex-start;
    position: sticky;
    top: 28px;
}
.sidebar-box-area {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.sidebar-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: -35px;
}
.cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition:
        background 0.18s,
        color 0.18s;
    gap: 8px;
    user-select: none;
}
.cat-list li:hover {
    background: #fef2f2;
    color: var(--primary);
}
.cat-list li.active {
    background: var(--primary);
    color: #fff;
}
.cat-list li.active .cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.cat-icon {
    font-size: 15px;
}
.cat-label {
    flex: 1;
}
.cat-count {
    font-size: 10px;
    font-weight: 700;
    background: var(--bg);
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 20px;
}

.price-inputs {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.price-inputs input {
    width: 50%;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
}
.price-inputs input:focus {
    border-color: var(--primary);
}
.apply-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.apply-btn:hover {
    background: var(--primary-dark);
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 8px;
    transition: background 0.18s;
}
.rating-row:hover {
    background: #fef2f2;
}
.stars {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 1px;
}
.rating-row input[type="radio"] {
    accent-color: var(--primary);
}

/* ── MAIN ── */
.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.page-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-title span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-bar-area {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px 14px;
    gap: 8px;
    transition: border 0.2s;
}
.search-bar-area:focus-within {
    border-color: var(--primary);
}
.search-bar-area input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: transparent;
    width: 180px;
}
.search-bar-area svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.sort-select {
    padding: 9px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    background: var(--card-bg);
    cursor: pointer;
    transition: border 0.2s;
}
.sort-select:focus {
    border-color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 4px;
}
.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--card-bg);
    transition: all 0.18s;
    font-size: 16px;
}
.view-btn.active,
.view-btn:hover {
    border-color: var(--primary);
    background: #fef2f2;
    color: var(--primary);
}

/* ── Mobile cat chips ── */
.cat-chips-strip {
    display: none;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    margin-bottom: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cat-chips-strip::-webkit-scrollbar {
    display: none;
}
.cat-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 20px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
}
.cat-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.cat-chip:not(.active):hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Mobile sort row ── */
.mob-action-row {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.mob-action-row select {
    flex: 1;
    padding: 9px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    background: var(--card-bg);
    cursor: pointer;
}

/* Active filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}
.filter-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fef2f2;
    color: var(--primary);
    border: 1.5px solid #fca5a5;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}
.filter-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.filter-chip .x {
    font-size: 13px;
    font-weight: 700;
}

/* ── PRODUCT GRID ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition:
        transform 0.22s,
        box-shadow 0.22s;
    animation: fadeUp 0.35s ease both;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.discount-badge {
    position: absolute;
    top: 10px;
    right: 42px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    z-index: 2;
}
.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    font-size: 15px;
    border: none;
    transition: transform 0.18s;
}
.wishlist-btn:hover {
    transform: scale(1.2);
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    padding: 16px;
    transition: transform 0.3s;
}
.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-info {
    padding: 12px 14px 14px;
}
.product-name {
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.price-current {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}
.price-old {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    padding: 9px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition:
        background 0.2s,
        transform 0.15s;
}
.add-to-cart:hover {
    background: var(--primary-dark);
}
.add-to-cart:active {
    transform: scale(0.97);
}

/* List view */
.product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    border-radius: 14px;
}
.product-grid.list-view .product-img {
    width: 140px;
    flex-shrink: 0;
    aspect-ratio: unset;
    height: 140px;
    font-size: 46px;
    border-radius: 0;
}
.product-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
}
.product-grid.list-view .product-name {
    font-size: 14px;
    -webkit-line-clamp: 1;
}
.product-grid.list-view .add-to-cart {
    width: auto;
    padding: 9px 22px;
    align-self: flex-start;
    margin-top: 6px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}
.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* No results */
.no-results {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
    display: none;
}
.no-results.show {
    display: block;
}
.no-results .icon {
    font-size: 56px;
    margin-bottom: 14px;
}
.no-results h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        width: 210px;
    }
    .search-bar input {
        width: 140px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

/* Mobile  x  */
@media (max-width: 768px) {
    .mobile-topbar {
        display: flex;
    }
    .topbar {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 0% !important;
        left: -100%;
        width: min(300px, 80vw);
        height: 100vh;
        overflow-y: auto;
        background: var(--bg);
        z-index: 30000;
        padding: 20px 16px 40px;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: auto;
    }
    .sidebar.open {
        left: 0;
    }
    .overlay {
        display: block;
    }
    .sidebar-close {
        display: block;
    }

    .page {
        padding: 12px 12px 50px;
        gap: 0;
    }

    .cat-chips-strip {
        display: flex;
    }
    .mob-action-row {
        display: flex;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-grid.list-view .product-img {
        width: 110px;
        height: 110px;
        font-size: 36px;
    }
    .product-grid.list-view .product-info {
        padding: 12px;
    }
    .product-grid.list-view .product-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-img {
        font-size: 42px;
        padding: 12px;
    }
    .product-name {
        font-size: 11.5px;
    }
    .price-current {
        font-size: 15px;
    }
    .add-to-cart {
        font-size: 11px;
        padding: 8px 5px;
    }
    .hot-badge,
    .discount-badge {
        font-size: 8px;
    }
    .product-grid.list-view .product-img {
        width: 90px;
        height: 90px;
        font-size: 30px;
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .mob-search-bar input {
        font-size: 13px;
    }
}
/* product page css end*/

/* single page css start */

    
/* ── Breadcrumb ── */
.ec_breadcrumb .breadcrumb-item a {
  color: var(--ec-text-muted);
  text-decoration: none;
  font-size: 13px;
}
.ec_breadcrumb .breadcrumb-item a:hover { color: var(--ec-red); }
.ec_breadcrumb .breadcrumb-item.active { font-size: 13px; color: #222; font-weight: 500; }
.ec_breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #bbb; }
/* ── Product card wrapper ── */
.ec_product_card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-card-shadow);
  overflow: hidden;
}
/* ── Gallery ── */
.ec_gallery_main {
  background: #f8f8f8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
}
.ec_gallery_main img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform .3s ease;
}
.ec_gallery_main img:hover { transform: scale(1.05); }
.ec_badge_new {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ec-red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.ec_thumb_item {
  width: 90px; 
  height: 90px;
  border-radius: 8px;
  border: 1.5px solid var(--ec-border);
  background: #f8f8f8;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, box-shadow .15s;
  flex-shrink: 0;
}
.ec_thumb_item img { width: 80%; height: 80%; object-fit: contain; }
.ec_thumb_item:hover,
.ec_thumb_item.ec_thumb_active {
  border-color: var(--ec-red);
  box-shadow: 0 0 0 2px #ffd0d4;
}
/* ── Info section ── */
.ec_category_tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ec-red);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ec_product_title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}
.ec_star_filled { color: #f5a623; font-size: 15px; }
.ec_star_empty  { color: #ddd;    font-size: 15px; }
.ec_review_count { font-size: 13px; color: var(--ec-text-muted); }
.ec_stock_badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 20px;
}
.ec_stock_dot { width: 7px; height: 7px; background: #16a34a; border-radius: 50%; }
.ec_price_main { font-size: 1.7rem; font-weight: 700; color: var(--ec-red); }
.ec_price_old  { font-size: 14px; text-decoration: line-through; color: #aaa; }
.ec_discount_badge {
  display: inline-block;
  background: var(--ec-red-light);
  color: var(--ec-red);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.ec_divider { border-top: 1px solid var(--ec-border); }
/* ── Variant label ── */
.ec_variant_label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}
/* ── Color buttons ── */
.ec_color_btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.ec_color_btn:hover,
.ec_color_btn.ec_color_active {
  border-color: var(--ec-red);
  transform: scale(1.18);
}
/* ── Quantity ── */
.ec_qty_wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--ec-border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.ec_qty_btn {
  width: 38px; height: 38px;
  background: #f5f5f5;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  transition: background .12s;
  display: flex; align-items: center; justify-content: center;
}
.ec_qty_btn:hover { background: #ececec; }
.ec_qty_input {
  width: 46px; height: 38px;
  border: none;
  border-left: 1px solid var(--ec-border);
  border-right: 1px solid var(--ec-border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  background: #fff;
  -moz-appearance: textfield;
}
.ec_qty_input::-webkit-outer-spin-button,
.ec_qty_input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ec_qty_input:focus { outline: none; }
.ec_qty_total {
  font-size: 13px;
  color: var(--ec-text-muted);
}
/* ── Buttons ── */
.ec_btn_cart {
  background: var(--ec-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.ec_btn_cart:hover { background: var(--ec-red-dark); }
.ec_btn_cart:active { transform: scale(0.97); }
.ec_btn_cart.ec_cart_added { background: #16a34a; }
.ec_btn_buy {
  background: #fff;
  color: var(--ec-red);
  border: 1.5px solid var(--ec-red);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
  white-space: nowrap;
}
.ec_btn_buy:hover { background: var(--ec-red-light); }
.ec_btn_wish {
  width: 44px; height: 44px;
  background: #f5f5f5;
  border: 1px solid var(--ec-border);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #888;
  transition: all .15s;
  flex-shrink: 0;
}
.ec_btn_wish:hover,
.ec_btn_wish.ec_wish_active {
  color: var(--ec-red);
  border-color: var(--ec-red);
  background: var(--ec-red-light);
}
/* ── Delivery box ── */
.ec_delivery_box {
  background: #fafafa;
  border: 1px solid var(--ec-border);
  border-radius: 10px;
  padding: 14px 16px;
}
.ec_del_row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #555;
}
.ec_del_row i { font-size: 18px; color: var(--ec-red); flex-shrink: 0; }
.ec_del_row strong { color: #222; font-weight: 600; }
/* ── Tabs ── */
.ec_tabs_wrap {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-card-shadow);
  overflow: hidden;
}
.ec_tab_nav { border-bottom: 1px solid var(--ec-border); }
.ec_tab_btn {
  border: none;
  background: none;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.ec_tab_btn:hover { color: var(--ec-red); }
.ec_tab_btn.ec_tab_active {
  color: var(--ec-red);
  border-bottom-color: var(--ec-red);
}
.ec_tab_pane { display: none; padding: 1.5rem; }
.ec_tab_pane.ec_tab_show { display: block; }
/* ── Spec table ── */
.ec_spec_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ec_spec_table tr:nth-child(even) td { background: #fafafa; }
.ec_spec_table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--ec-border);
  color: #555;
}
.ec_spec_table td:first-child {
  font-weight: 600;
  color: #222;
  width: 38%;
}
/* ── Description ── */
.ec_desc_text { font-size: 14px; color: #555; line-height: 1.8; }
.ec_desc_text li { margin-bottom: 5px; }
/* ── Reviews ── */
.ec_review_card {
  background: #fafafa;
  border: 1px solid var(--ec-border);
  border-radius: 10px;
  padding: 14px 16px;
}
.ec_reviewer_name { font-size: 14px; font-weight: 600; color: #222; }
.ec_review_date   { font-size: 12px; color: #aaa; }
.ec_review_text   { font-size: 13px; color: #555; line-height: 1.6; }
/* ── Responsive tweaks ── */
@media (max-width: 576px) {
  .ec_product_title { font-size: 1.1rem; }
  .ec_price_main    { font-size: 1.35rem; }
  .ec_tab_btn       { padding: 11px 14px; font-size: 13px; }
}

/* single page css end */


/* =========================
   RESPONSIVE DESIGN
========================= */

/* Large Tablet */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        grid-template-columns: 200px 1fr 180px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .sidebar-cats,
    .hero-right {
        display: none;
    }

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

    .search-bar {
        max-width: 100%;
    }

    .nav-bottom {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-main {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-bar {
        order: 3;
        width: 100%;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-around;
        margin-top: 10px;
    }

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

    .banner-title {
        font-size: 26px;
    }

    .banner-slide {
        padding: 20px;
    }

    .deals-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .deal-items {
        overflow-x: auto;
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .banner-title {
        font-size: 22px;
    }

    .banner-sub {
        font-size: 13px;
    }

    .nav-top {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .category-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .product-img {
        height: 140px;
    }

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