:root {
    --bg: #06131f;
    --panel: #0a1b2c;
    --panel-2: #102a3d;
    --text: #f7fbff;
    --muted: #c1d4df;
    --line: rgba(255, 255, 255, 0.16);
    --cyan: #12cfe3;
    --green: #42f2a8;
    --amber: #ffd23f;
    --orange: #ff8f2f;
    --pink: #ff4fa3;
    --danger: #ff5c5c;
    --font: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background:
        radial-gradient(circle at 16% 10%, rgba(18, 207, 227, 0.28), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(255, 210, 63, 0.24), transparent 28%),
        radial-gradient(circle at 72% 82%, rgba(66, 242, 168, 0.16), transparent 32%),
        linear-gradient(180deg, #06131f 0%, #08223a 48%, #07141f 100%);
    color: var(--text);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px clamp(14px, 4vw, 46px);
    background: rgba(6, 19, 31, 0.84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 194, 31, 0.5);
}

.brand span {
    display: grid;
    gap: 3px;
}

.brand strong {
    font-size: 17px;
    color: var(--amber);
    line-height: 1.3;
}

.brand small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
}

nav a {
    text-decoration: none;
}

nav a:hover {
    color: var(--amber);
}

.cart-toggle,
.button,
.filters button {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(18, 207, 227, 0.24), rgba(255, 210, 63, 0.22));
    border: 1px solid var(--line);
}

.cart-toggle span {
    min-width: 24px;
    min-height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #06101c;
    background: var(--amber);
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: auto;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 30px;
    align-items: center;
    padding: 38px 0 28px;
}

.hero-copy {
    display: grid;
    gap: 18px;
}

.eyebrow {
    margin: 0;
    color: var(--green);
    font-weight: 700;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.3;
    font-weight: 900;
}

h2 {
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.35;
    font-weight: 850;
}

.hero-copy > p:not(.eyebrow),
.section-head p,
.guide p,
.policy-band p,
.contact p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
}

.hero-actions,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    text-decoration: none;
}

.button.primary {
    color: #06101c;
    background: linear-gradient(135deg, var(--amber), var(--orange), #ffb23f);
    box-shadow: 0 14px 34px rgba(255, 143, 47, 0.28);
}

.button.ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero-visual img {
    width: min(100%, 360px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
}

.beam {
    position: absolute;
    inset-inline-end: -8%;
    width: 68%;
    height: 22%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 194, 31, 0.56), transparent);
    filter: blur(20px);
    transform: rotate(-8deg);
    z-index: -1;
}

.beam-one {
    bottom: 23%;
}

.beam-two {
    bottom: 32%;
    background: linear-gradient(90deg, rgba(25, 214, 229, 0.34), transparent);
}

.trust-strip {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 50px rgba(18, 207, 227, 0.08);
}

.trust-strip div {
    padding: 14px;
    display: grid;
    gap: 8px;
    border-inline-start: 1px solid var(--line);
}

.trust-strip div:last-child {
    border-inline-start: 0;
}

.trust-strip strong {
    color: var(--amber);
}

.trust-strip span {
    color: var(--muted);
    line-height: 1.8;
    font-size: 13px;
}

.promo-wall {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 18px;
}

.promo-main,
.promo-stack article,
.knowledge-grid article,
.faq details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.075);
}

.promo-main {
    min-height: 220px;
    padding: 22px;
    display: grid;
    align-content: center;
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(255, 210, 63, 0.27), rgba(18, 207, 227, 0.13)),
        rgba(255, 255, 255, 0.08);
}

.promo-main span {
    color: var(--green);
    font-weight: 800;
}

.promo-main p,
.promo-stack span,
.knowledge-grid p,
.faq p {
    color: var(--muted);
    line-height: 1.85;
}

.promo-stack {
    display: grid;
    gap: 12px;
}

.promo-stack article {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.promo-stack strong {
    color: var(--amber);
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 0;
}

.section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filters button {
    padding: 0 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.filters button.active {
    color: #06101c;
    background: linear-gradient(135deg, var(--amber), var(--green));
    border-color: var(--amber);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.product-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.product-image {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 8px;
    background:
        radial-gradient(circle at 72% 52%, rgba(255, 194, 31, 0.92) 0 9%, rgba(255, 122, 24, 0.46) 10% 22%, transparent 23%),
        linear-gradient(135deg, rgba(25, 214, 229, 0.2), rgba(45, 240, 162, 0.08)),
        var(--panel-2);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.product-image.has-photo {
    min-height: 0;
    background: #f4f4f4;
}

.product-image.has-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    background: #f4f4f4;
    image-rendering: auto;
}

.product-image::before {
    content: "";
    position: absolute;
    width: 64%;
    height: 34%;
    border: 3px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px 8px 24px 8px;
    inset-inline-end: 14%;
    top: 34%;
    box-shadow: inset 0 0 24px rgba(25, 214, 229, 0.2), 0 0 34px rgba(255, 194, 31, 0.15);
}

.product-image.has-photo::before,
.product-image.has-photo::after {
    display: none;
}

.product-image::after {
    content: "";
    position: absolute;
    width: 48%;
    height: 24%;
    inset-inline-start: -10%;
    top: 40%;
    background: linear-gradient(90deg, rgba(255, 194, 31, 0.5), transparent);
    filter: blur(8px);
}

.product-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 850;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card p {
    color: var(--muted);
    line-height: 1.7;
    min-height: 62px;
    font-size: 11.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 58px;
    align-content: flex-start;
}

.specs span {
    color: var(--cyan);
    background: rgba(25, 214, 229, 0.08);
    border: 1px solid rgba(25, 214, 229, 0.18);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10.5px;
    line-height: 1.5;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
}

.price {
    color: var(--amber);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.call-price {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 194, 31, 0.55);
}

.call-price:hover {
    color: var(--green);
    border-color: var(--green);
}

.add-button {
    color: #06101c;
    background: var(--green);
    padding: 0 12px;
    font-size: 12px;
}

.guide {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guide-grid article,
.contact-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.075);
}

.guide-grid article {
    display: grid;
    gap: 8px;
}

.guide-grid strong {
    color: var(--amber);
}

.guide-grid span {
    color: var(--muted);
    line-height: 1.9;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.knowledge-grid article {
    padding: 14px;
}

.knowledge-grid h3 {
    color: var(--amber);
    margin: 0 0 10px;
}

.policy-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 22px;
    margin-top: 58px;
    border: 1px solid rgba(255, 210, 63, 0.28);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 210, 63, 0.18), rgba(18, 207, 227, 0.1), rgba(66, 242, 168, 0.08));
}

.policy-band ul {
    margin: 0;
    padding: 0 20px 0 0;
    color: var(--muted);
    line-height: 2.1;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 26px;
    padding-bottom: 54px;
}

.faq {
    padding-top: 0;
    padding-bottom: 54px;
}

.faq details {
    padding: 16px 18px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    color: var(--amber);
    font-weight: 800;
}

.faq p {
    margin-top: 12px;
}

.contact-card {
    display: grid;
    gap: 10px;
}

.contact-card span {
    color: var(--muted);
}

.contact-card strong {
    color: var(--text);
    font-size: 16px;
}

.contact-card .address {
    font-size: 14px;
    line-height: 1.9;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.trust-seal {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid var(--line);
}

.trust-seal a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 92px;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.trust-seal img {
    width: 86px;
    height: auto;
    display: block;
}

.full-button {
    width: 100%;
}

.cart {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.58);
    display: none;
    justify-content: flex-start;
}

.cart.open {
    display: flex;
}

.cart-panel {
    width: min(420px, 100%);
    min-height: 100vh;
    margin-right: auto;
    padding: 20px;
    background: #080d18;
    border-inline-start: 1px solid var(--line);
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 16px;
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-head button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
}

.cart-items {
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
}

.cart-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cart-item button {
    justify-self: start;
    color: var(--danger);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero,
    .guide,
    .policy-band,
    .contact,
    .promo-wall {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .trust-strip,
    .knowledge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 620px) {
    .brand small {
        display: none;
    }

    .hero {
        padding-top: 22px;
        gap: 20px;
    }

    h1 {
        font-size: 29px;
    }

    h2 {
        font-size: 22px;
    }

    .hero-actions .button,
    .contact-card .button,
    .promo-main .button {
        width: 100%;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .trust-strip,
    .guide-grid,
    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        padding: 9px;
    }

    .product-card h3 {
        font-size: 13px;
    }

    .product-card p {
        min-height: 72px;
        font-size: 11px;
        line-height: 1.65;
    }

    .specs span {
        font-size: 10px;
        padding: 4px 6px;
    }

    .price-row {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .add-button {
        width: 100%;
    }

    .section {
        padding-top: 42px;
    }

    .hero-visual img {
        width: min(100%, 280px);
    }

    .trust-strip div {
        border-inline-start: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-strip div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 390px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
