/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-1: #0052cc;
    --color-2: #00875a;
    --color-primary: #0052cc;
    --color-accent: #00875a;
    --color-dark: #0f172a;
    --color-text: #334155;
    --color-gray: #64748b;
    --color-muted: #94a3b8;
    --color-light: #f8fafc;
    --color-border: #e2e8f0;
    --color-white: #ffffff;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow:    0 4px 16px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10);

    --container: 1160px;
    --transition: .22s cubic-bezier(.4, 0, .2, 1);
    --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;

    /* مقیاس تایپوگرافی */
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 14.5px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 28px;
    --fs-3xl: 34px;
    --fs-4xl: 42px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.85;
    color: var(--color-text);
    background: var(--color-white);
    font-weight: 400;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.015em;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: fixed;
    top: 0; inset-inline: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .98);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo { height: 34px; width: auto; }

.brand-info { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--color-dark);
}
.brand-tag {
    font-size: var(--fs-xs);
    color: var(--color-gray);
    font-weight: 400;
}

.nav ul { display: flex; gap: 2px; align-items: center; }

.nav-link {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
}

.nav-link:hover { color: var(--color-primary); background: rgba(0, 82, 204, .06); }
.nav-link.active {
    color: var(--color-primary);
    background: rgba(0, 82, 204, .08);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    padding: 88px 0 48px;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.10), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 10px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: rgba(255, 255, 255, .22);
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.hero-desc {
    font-size: var(--fs-base);
    line-height: 1.8;
    font-weight: 400;
    opacity: .9;
    max-width: 500px;
    margin-bottom: 18px;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat strong {
    display: block;
    font-size: var(--fs-xl);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.stat span {
    font-size: var(--fs-xs);
    opacity: .8;
    font-weight: 400;
}

.hero-image { position: relative; max-width: 420px; margin-inline: auto; }
.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.hero-wave {
    position: absolute;
    inset-inline: 0; bottom: -1px;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 40px; display: block; }

/* =========================================================
   SECTION
   ========================================================= */
.section { padding: 72px 0; }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.section-label {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 82, 204, .08);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.section-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: var(--fs-base);
    line-height: 1.9;
    color: var(--color-gray);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    line-height: 1.5;
}

.btn-primary {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255,255,255,.8); }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 8px 18px;
    font-size: var(--fs-sm);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-white {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
.btn-white:hover { transform: translateY(-2px); }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--color-light); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-image { position: relative; }
.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}
.about-shape {
    position: absolute;
    inset: -14px -14px 14px 14px;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    border-radius: var(--radius-lg);
    opacity: .14;
    z-index: 1;
}

.about-features {
    margin: 20px 0 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}
.about-features li {
    display: flex; align-items: center; gap: 9px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
}
.check {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0, 135, 90, .12);
    color: var(--color-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: var(--fs-xs);
    flex-shrink: 0;
}

/* =========================================================
   PRODUCTS
   ========================================================= */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.filter-btn {
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--color-light);
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}
.filter-btn:hover { background: rgba(0, 82, 204, .08); color: var(--color-primary); }
.filter-btn.active {
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,82,204,.25);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card.is-hidden { display: none; }

.product-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--color-light);
    overflow: hidden;
}
.product-media img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.03); }
.no-image {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: var(--color-muted);
    font-size: var(--fs-sm);
}

.product-cat,
.product-status {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
.product-cat {
    inset-inline-start: 12px;
    background: rgba(255, 255, 255, .95);
    color: var(--color-primary);
}
.product-status {
    inset-inline-end: 12px;
    color: #fff;
}
.product-status.active   { background: rgba(0, 135, 90, .92); }
.product-status.inactive { background: rgba(220, 38, 38, .9); }

.product-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-name {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-dark);
    line-height: 1.5;
}
.product-desc {
    font-size: var(--fs-sm);
    color: var(--color-gray);
    line-height: 1.85;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}
.product-price {
    font-weight: 700;
    color: var(--color-accent);
    font-size: var(--fs-sm);
}

/* =========================================================
   CTA
   ========================================================= */
.cta { color: #fff; text-align: center; padding: 60px 0; }
.cta-inner h2 {
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: -0.015em;
}
.cta-inner p {
    opacity: .9;
    margin-bottom: 22px;
    font-size: var(--fs-base);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #0b1426;
    color: rgba(255, 255, 255, .75);
    padding-top: 56px;
    font-size: var(--fs-sm);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.1fr;
    gap: 44px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; align-items: center; }
.footer-logo  { height: 42px; }
.footer-brand h4 {
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-base);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.footer-brand p { font-size: var(--fs-xs); opacity: .65; }
.footer-desc { font-size: var(--fs-sm); line-height: 1.9; opacity: .75; max-width: 420px; }

.footer-col h4 {
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: var(--fs-sm);
    opacity: .75;
    transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: #fff; padding-inline-end: 3px; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--fs-sm);
    margin-bottom: 10px;
    opacity: .8;
}
.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}
.footer-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: var(--fs-xs);
    opacity: .55;
}

/* =========================================================
   SCROLL TOP
   ========================================================= */
.scroll-top {
    position: fixed;
    bottom: 22px;
    inset-inline-start: 22px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
    color: #fff;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(0,82,204,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 900;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* =========================================================
   MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.modal.open { display: block; }

.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(11, 20, 38, .72);
    backdrop-filter: blur(4px);
    animation: fadeIn .2s ease;
}

.modal-content {
    position: relative;
    max-width: 760px;
    margin: 6vh auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 88vh;
    overflow-y: auto;
    animation: slideUp .3s ease;
}

.modal-close {
    position: absolute;
    top: 12px; inset-inline-end: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(248, 250, 252, .95);
    color: var(--color-dark);
    font-size: 22px;
    line-height: 1;
    z-index: 2;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }

.modal-media {
    min-height: 220px;
    max-height: 420px;
    background: #0f172a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}
.modal-media img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}

.modal-info { padding: 24px 28px 28px; }
.modal-info h3 {
    font-size: var(--fs-lg);
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.015em;
}
.modal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.modal-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: 999px;
    background: rgba(0, 82, 204, .1);
    color: var(--color-primary);
}
.modal-price {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--fs-xs);
    font-weight: 700;
    border-radius: 999px;
    background: rgba(0, 135, 90, .12);
    color: var(--color-accent);
}
.modal-info p {
    font-size: var(--fs-base);
    color: var(--color-gray);
    line-height: 1.9;
    margin-bottom: 16px;
}

.modal-features { margin-bottom: 18px; }
.modal-features li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: var(--fs-sm);
    margin-bottom: 6px;
    color: var(--color-text);
}
.modal-subtitle {
    margin: 20px 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.modal-gallery button.gallery-thumb {
    display: block;
    width: 100%;
    height: 100px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--color-light);
    overflow: hidden;
    cursor: zoom-in;
    transition: var(--transition);
}
.modal-gallery button.gallery-thumb:hover,
.modal-gallery button.gallery-thumb:focus-visible {
    border-color: var(--color-primary);
    transform: scale(1.03);
    outline: none;
}
.modal-gallery button.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 20, 38, .88);
    backdrop-filter: blur(6px);
}

.lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-inner img {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    background: #0b1426;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover { background: #fee2e2; color: #dc2626; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-nav:hover { background: #fff; }
.lightbox-prev { inset-inline-start: 16px; }
.lightbox-next { inset-inline-end: 16px; }
.lightbox-nav[hidden] { display: none; }

.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    direction: ltr;
    unicode-bidi: isolate;
}
.lightbox-counter[hidden] { display: none; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .hero { padding: 80px 0 40px; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-desc { margin-inline: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-title { font-size: var(--fs-xl); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
    .section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 58px; inset-inline: 0;
        background: #fff;
        box-shadow: var(--shadow);
        padding: 12px 20px;
        transform: translateY(-140%);
        transition: transform .3s ease;
        border-bottom: 1px solid var(--color-border);
    }
    .nav.open { transform: translateY(0); }
    .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { display: block; padding: 10px 14px; border-radius: 8px; }

    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .hero-stats { gap: 24px; }
    .stat strong { font-size: var(--fs-xl); }

    .about-features { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 30px; }

    .product-footer { flex-direction: column; align-items: stretch; }
    .product-footer .btn { width: 100%; }

    .modal-content { margin: 4vh 12px; max-height: 92vh; }
    .modal-info { padding: 20px 18px 24px; }

    .section-head { margin-bottom: 32px; }
}

@media (max-width: 480px) {
    .brand-info { display: none; }
    .hero-badge { font-size: 11px; padding: 4px 10px; }
    .btn { padding: 10px 20px; font-size: var(--fs-xs); }
    .hero-title { font-size: var(--fs-xl); }
    .section-title { font-size: var(--fs-xl); }
    .cta-inner h2 { font-size: var(--fs-lg); }
    .container { padding-inline: 16px; }
    .header-inner { height: 54px; }
    .brand-logo { height: 36px; }
}


/* ================= PRODUCTS MODERN ================= */
.products {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

/* ---------- Toolbar ---------- */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 1rem;
}

.product-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.filter-btn .filter-icon {
    color: #94a3b8;
    font-size: 0.75rem;
    transition: color 0.25s ease;
}

.filter-btn:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--primary-dark, #4f46e5));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(99, 102, 241, 0.6);
}

.filter-btn.active .filter-icon {
    color: #fff;
}

/* ---------- Search ---------- */
.products-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    min-width: 240px;
    color: #94a3b8;
    transition: all 0.25s ease;
}

.products-search:focus-within {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.products-search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1e293b;
    width: 100%;
}

/* ---------- Meta ---------- */
.products-meta {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ---------- Grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

/* ---------- Card ---------- */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 20px -10px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.25);
    border-color: #e0e7ff;
}

/* ---------- Media ---------- */
.product-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-media img {
    transform: scale(1.08);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ---------- Category Badge ---------- */
.product-cat {
    position: absolute;
    top: 0.85rem;
    inset-inline-start: 0.85rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.15);
}

/* ---------- Overlay (Quick View) ---------- */
.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: #fff;
    color: #4f46e5;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.3);
}

.product-card:hover .quick-view {
    transform: translateY(0);
}

.quick-view:hover {
    background: #4f46e5;
    color: #fff;
}

/* ---------- Body ---------- */
.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.product-rating .stars {
    color: #fbbf24;
    letter-spacing: 1px;
}

.product-rating .rating-text {
    color: #94a3b8;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.product-card:hover .product-name {
    color: #4f46e5;
}

.product-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ---------- Footer ---------- */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px dashed #e2e8f0;
}

.product-price-box {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.price-label {
    font-size: 0.7rem;
    color: #94a3b8;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.btn-detail:hover svg {
    transform: translateX(-3px);
}

.btn-detail svg {
    transition: transform 0.25s ease;
}

/* ---------- Empty State ---------- */
.products-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
}

.products-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.products-empty h3 {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: 1.15rem;
}

.products-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .products-search {
        min-width: 0;
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}


/* ================= CATEGORY MENU ================= */
.cat-menu-section {
    padding: 2rem 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.cat-menu {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: none;
}

.cat-menu::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #334155;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.cat-item:hover {
    transform: translateY(-4px);
}

/* ---------- Circle ---------- */
.cat-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 4px solid var(--cat-color, #6366f1);
    color: var(--cat-color, #6366f1);
    position: relative;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
}

.cat-circle::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--cat-color);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.35s ease;
}

.cat-item:hover .cat-circle {
    background: var(--cat-color);
    color: #fff;
    box-shadow: 0 12px 28px -10px var(--cat-color);
    transform: scale(1.05);
}

.cat-item:hover .cat-circle::after {
    opacity: 0.35;
    transform: scale(1.15);
}

.cat-circle svg {
    width: 34px;
    height: 34px;
    transition: transform 0.35s ease;
}

.cat-item:hover .cat-circle svg {
    transform: scale(1.1);
}

/* ---------- Label ---------- */
.cat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.cat-item:hover .cat-label {
    color: var(--cat-color, #4f46e5);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .cat-menu {
        justify-content: flex-start;
        gap: 1.25rem;
        padding: 0.5rem 1rem;
    }

    .cat-circle {
        width: 68px;
        height: 68px;
        border-width: 3px;
    }

    .cat-circle svg {
        width: 28px;
        height: 28px;
    }

    .cat-label {
        font-size: 0.75rem;
    }
}
/* ================= PRODUCT FILTERS (PILL) ================= */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0 0 2rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}

.filter-btn .dot {
    color: #a5b4fc;
    font-size: 0.7rem;
    transition: 0.25s;
}

.filter-btn:hover {
    border-color: #c7d2fe;
    color: #4f46e5;
}

.filter-btn:hover .dot {
    color: #6366f1;
}

.filter-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.7);
}

.filter-btn.active .dot {
    color: #fff;
}

/* موبایل */
@media (max-width: 768px) {
    .product-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 1rem 0.5rem;
        scrollbar-width: none;
    }
    .product-filters::-webkit-scrollbar { display: none; }
    .filter-btn { flex-shrink: 0; }
}
/* ================= PRODUCT FILTERS (CIRCLE) ================= */
.product-filters {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 0 0 2.5rem;
    padding: 1rem 0;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-item:hover {
    transform: translateY(-4px);
}

/* ---------- Circle ---------- */
.cat-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 4px solid var(--c, #6366f1);
    color: var(--c, #6366f1);
    box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.cat-circle svg {
    width: 36px;
    height: 36px;
    transition: transform 0.35s ease;
}

/* حلقه‌ی پالس روی هاور */
.cat-circle::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--c);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.35s ease;
    pointer-events: none;
}

.cat-item:hover .cat-circle {
    background: var(--c);
    color: #fff;
    box-shadow: 0 12px 26px -10px var(--c);
    transform: scale(1.05);
}

.cat-item:hover .cat-circle::after {
    opacity: 0.35;
    transform: scale(1.18);
}

.cat-item:hover .cat-circle svg {
    transform: scale(1.1);
}

/* ---------- Label ---------- */
.cat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2b3a67;
    text-align: center;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.cat-item:hover .cat-label {
    color: var(--c, #4f46e5);
}

/* ---------- Active State ---------- */
.cat-item.active .cat-circle {
    background: var(--c);
    color: #fff;
    box-shadow: 0 12px 26px -10px var(--c);
}

.cat-item.active .cat-label {
    color: var(--c, #4f46e5);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .product-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.25rem;
        padding: 0.5rem 1rem 1rem;
        scrollbar-width: none;
    }
    .product-filters::-webkit-scrollbar { display: none; }

    .cat-item { flex-shrink: 0; }

    .cat-circle {
        width: 68px;
        height: 68px;
        border-width: 3px;
    }

    .cat-circle svg {
        width: 28px;
        height: 28px;
    }

    .cat-label {
        font-size: 0.75rem;
    }
}
/* ================= PRODUCT FILTERS (IMAGE CIRCLE) ================= */
.product-filters {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 0 0 2.5rem;
    padding: 1rem 0;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-item:hover {
    transform: translateY(-4px);
}

/* ---------- Circle with image ---------- */
.cat-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 4px solid var(--c, #6366f1);
    overflow: hidden;
    box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* آیکون پیش‌فرض اگه عکس نبود */
.cat-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--c, #6366f1);
}

.cat-fallback svg {
    width: 36px;
    height: 36px;
}

/* حلقه پالس روی هاور */
.cat-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 0 var(--c);
    transition: box-shadow 0.35s ease;
    pointer-events: none;
}

.cat-item:hover .cat-circle {
    box-shadow: 0 14px 28px -10px var(--c);
    transform: scale(1.06);
}

.cat-item:hover .cat-circle img {
    transform: scale(1.12);
}

/* ---------- Label ---------- */
.cat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2b3a67;
    text-align: center;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.cat-item:hover .cat-label,
.cat-item.active .cat-label {
    color: var(--c, #4f46e5);
}

/* ---------- Active ---------- */
.cat-item.active .cat-circle {
    box-shadow: 0 14px 28px -10px var(--c), 0 0 0 4px rgba(99, 102, 241, 0.08);
    transform: scale(1.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .product-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.25rem;
        padding: 0.5rem 1rem 1rem;
        scrollbar-width: none;
    }
    .product-filters::-webkit-scrollbar { display: none; }

    .cat-item { flex-shrink: 0; }

    .cat-circle {
        width: 68px;
        height: 68px;
        border-width: 3px;
    }

    .cat-fallback svg { width: 28px; height: 28px; }
    .cat-label { font-size: 0.75rem; }
}

/* ================= PRODUCT FILTERS (IMAGE CIRCLE) ================= */
.product-filters {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 0 0 2.5rem;
    padding: 1rem 0;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-item:hover {
    transform: translateY(-4px);
}

.cat-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 4px solid var(--c, #dc2626);
    overflow: hidden;
    box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--c, #dc2626);
}

.cat-fallback svg {
    width: 36px;
    height: 36px;
}

.cat-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 0 var(--c);
    transition: box-shadow 0.35s ease;
    pointer-events: none;
}

.cat-item:hover .cat-circle {
    box-shadow: 0 14px 28px -10px var(--c);
    transform: scale(1.06);
}

.cat-item:hover .cat-circle img {
    transform: scale(1.12);
}

.cat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2b3a67;
    text-align: center;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.cat-item:hover .cat-label,
.cat-item.active .cat-label {
    color: var(--c, #dc2626);
}

.cat-item.active .cat-circle {
    box-shadow: 0 14px 28px -10px var(--c), 0 0 0 4px rgba(220, 38, 38, 0.1);
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .product-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.25rem;
        padding: 0.5rem 1rem 1rem;
        scrollbar-width: none;
    }
    .product-filters::-webkit-scrollbar { display: none; }

    .cat-item { flex-shrink: 0; }

    .cat-circle {
        width: 68px;
        height: 68px;
        border-width: 3px;
    }

    .cat-fallback svg { width: 28px; height: 28px; }
    .cat-label { font-size: 0.75rem; }
}