@font-face {
    font-family: "IRANYekanX";
    src: url("../../fonts/Woff2/IRANYekanXFaNum-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekanX";
    src: url("../../fonts/Woff2/IRANYekanXFaNum-Bold.woff2") format("woff2");
    font-weight: 700 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink-900: #0b1524;
    --ink-800: #122036;
    --ink-700: #1c2e4c;
    --amber-500: #f2a73b;
    --amber-300: #f8c879;
    --teal-400: #2bc7b0;
    --paper-50: #f5f7fa;
    --slate-400: #90a0b7;
    --slate-600: #5c6c84;
    --theme-page: #eef3f8;
    --theme-page-soft: #f8fafc;
    --theme-surface: rgba(255, 255, 255, .74);
    --theme-surface-strong: rgba(255, 255, 255, .92);
    --theme-surface-soft: rgba(241, 245, 249, .82);
    --theme-text: #0b1524;
    --theme-muted: #64748b;
    --theme-border: rgba(148, 163, 184, .24);
    --theme-border-strong: rgba(148, 163, 184, .40);
    --theme-shadow: 0 18px 55px rgba(15, 23, 42, .10);
    --theme-shadow-soft: 0 10px 30px rgba(15, 23, 42, .07);
    --theme-glow-1: rgba(242, 167, 59, .18);
    --theme-glow-2: rgba(43, 199, 176, .14);
    --theme-input: rgba(255, 255, 255, .82);
    --theme-thumb-from: rgba(241, 245, 249, .95);
    --theme-thumb-to: rgba(226, 232, 240, .88);
    --shop-shell-width: min(1320px, calc(100% - 24px));
    --shop-shell-padding: 24px;
    --shop-sticky-navigation-height: 0px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --theme-page: #07111f;
    --theme-page-soft: #0a1627;
    --theme-surface: rgba(17, 31, 52, .72);
    --theme-surface-strong: rgba(15, 28, 48, .92);
    --theme-surface-soft: rgba(25, 42, 67, .72);
    --theme-text: #eef5ff;
    --theme-muted: #9aaac0;
    --theme-border: rgba(148, 163, 184, .18);
    --theme-border-strong: rgba(148, 163, 184, .30);
    --theme-shadow: 0 22px 65px rgba(0, 0, 0, .32);
    --theme-shadow-soft: 0 12px 34px rgba(0, 0, 0, .22);
    --theme-glow-1: rgba(242, 167, 59, .14);
    --theme-glow-2: rgba(43, 199, 176, .12);
    --theme-input: rgba(8, 20, 36, .74);
    --theme-thumb-from: rgba(29, 46, 72, .90);
    --theme-thumb-to: rgba(18, 33, 56, .94);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--theme-page);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    font-family: "IRANYekanX", Tahoma, sans-serif;
    color: var(--theme-text);
    background:
        radial-gradient(circle at 9% 4%, var(--theme-glow-1), transparent 28rem),
        radial-gradient(circle at 92% 24%, var(--theme-glow-2), transparent 31rem),
        linear-gradient(180deg, var(--theme-page-soft), var(--theme-page));
    font-feature-settings: "tnum" 1, "lnum" 1;
    transition: background-color .28s ease, color .28s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
    transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-weight: 800;
    letter-spacing: -.01em;
}

.container {
    width: 100%;
    max-width: none;
    padding-inline: var(--shop-shell-padding);
}

.top-bar-shell,
.navbar-main,
.cat-nav,
.hero,
.shop-section,
.deal-shell,
.project-section,
.product-shell,
footer {
    width: var(--shop-shell-width);
    max-width: none;
    margin-inline: auto;
}

.top-bar {
    color: var(--slate-400);
    font-size: .8rem;
    background: rgba(7, 17, 31, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.top-bar-shell {
    padding-inline: var(--shop-shell-padding);
}

.top-bar a,
.top-bar span {
    color: var(--slate-400);
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--amber-500);
}

#shopStickySentinel {
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.shop-sticky-navigation {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flow-root;
}

.navbar-main {
    margin-top: 12px;
    padding-inline: 10px;
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    background: var(--theme-surface-strong);
    box-shadow: var(--theme-shadow-soft);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.shop-sticky-navigation.is-stuck .navbar-main {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.brand-mark {
    color: var(--theme-text);
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.brand-mark span {
    color: var(--amber-500);
}

.search-bar {
    max-width: 640px;
    overflow: hidden;
    border: 1.5px solid var(--theme-border-strong);
    border-radius: 15px;
    background: var(--theme-input);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.search-bar input {
    color: var(--theme-text);
    border: none;
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--theme-muted);
}

.search-bar input:focus {
    color: var(--theme-text);
    background: transparent;
    box-shadow: none;
}

.search-bar .btn {
    min-width: 48px;
    margin: 4px;
    color: #fff;
    border: none;
    border-radius: 12px;
    background: var(--ink-900);
}

.mobile-search {
    max-width: none;
}

#themeToggle {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 0 .75rem;
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .2s ease, border-color .2s ease;
}

#themeToggle:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 167, 59, .65);
}

#themeToggle i {
    color: var(--amber-500);
}

.theme-label {
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.header-action {
    color: var(--theme-text);
    font-size: .72rem;
}

.header-action i {
    margin-bottom: .25rem;
    font-size: 1.15rem;
}

.header-action:hover {
    color: var(--amber-500);
}

.cat-nav {
    margin-top: 9px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(11, 21, 36, .92);
    box-shadow: 0 14px 35px rgba(2, 8, 23, .15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cat-nav .nav-link {
    padding: .72rem 1rem;
    color: #e6ecf5;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}

.cat-nav .nav-link:hover {
    color: var(--amber-500);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    color: #fff;
    border-radius: 30px;
    background:
        radial-gradient(100% 140% at 100% 0%, rgba(43, 199, 176, .14), transparent 45%),
        radial-gradient(100% 140% at 0% 100%, rgba(242, 167, 59, .16), transparent 46%),
        linear-gradient(135deg, #16274a 0%, var(--ink-900) 62%);
    box-shadow: 0 28px 70px rgba(5, 12, 24, .24);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 34px 34px;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-copy-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    background: rgba(8, 20, 36, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 45px rgba(0, 0, 0, .15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.35;
}

.hero-description,
.deal-copy,
.cta-copy {
    max-width: 650px;
    color: var(--slate-400);
    line-height: 2;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--amber-500);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    display: inline-block;
    background: var(--amber-500);
}

.btn-amber {
    color: var(--ink-900);
    border: none;
    background: var(--amber-500);
    font-weight: 800;
}

.btn-amber:hover {
    color: var(--ink-900);
    background: var(--amber-300);
}

.btn-outline-amber {
    color: var(--amber-500);
    border: 1.5px solid var(--amber-500);
    background: transparent;
    font-weight: 800;
}

.btn-outline-amber:hover {
    color: var(--ink-900);
    background: var(--amber-500);
}

.energy-flow {
    position: relative;
    min-height: 310px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 14px;
    padding: 30px 10px;
}

.flow-line {
    position: absolute;
    top: 44%;
    right: 8%;
    left: 8%;
    height: 2px;
    border-top: 2px dashed #31466f;
}

.flow-pulse {
    position: absolute;
    top: calc(44% - 5px);
    right: 8%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--amber-500);
    box-shadow: 0 0 16px rgba(242, 167, 59, .9);
    animation: energyPulse 4.5s linear infinite;
}

@keyframes energyPulse {
    from { right: 8%; }
    to { right: calc(92% - 10px); }
}

.flow-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.flow-node span {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: var(--amber-500);
    border: 2px solid var(--amber-500);
    border-radius: 50%;
    background: var(--ink-800);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.flow-node:nth-of-type(even) span {
    color: var(--teal-400);
    border-color: var(--teal-400);
}

.flow-node span i {
    font-size: 1.45rem;
}

.flow-node strong {
    margin-top: 18px;
    color: #eaf0f8;
    font-size: .83rem;
}

.flow-node small {
    margin-top: 4px;
    color: var(--slate-400);
    font-size: .69rem;
}

.shop-section,
.deal-shell,
.project-section {
    position: relative;
}

.shop-section-alt {
    margin-block: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.cat-tile,
.product-card,
.brand-chip,
.buy-box,
.info-panel,
.empty-store {
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--theme-shadow-soft);
    backdrop-filter: blur(17px) saturate(135%);
    -webkit-backdrop-filter: blur(17px) saturate(135%);
}

.cat-tile {
    height: 100%;
    display: block;
    padding: 1.35rem .8rem;
    color: var(--theme-text);
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cat-tile:hover {
    color: var(--theme-text);
    transform: translateY(-5px);
    border-color: rgba(242, 167, 59, .55);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .14);
}

.cat-tile .icon-wrap {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto .8rem;
    color: var(--ink-900);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--amber-300), var(--amber-500));
    box-shadow: 0 12px 25px rgba(242, 167, 59, .22);
}

.cat-tile small {
    display: block;
    margin-top: .35rem;
    color: var(--theme-muted);
    font-size: .7rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.4rem;
}

.section-head h2 {
    margin: 0;
    font-size: 1.5rem;
}

.deal-strip,
.cta-band {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 0%, rgba(43, 199, 176, .14), transparent 24rem),
        linear-gradient(130deg, rgba(18, 32, 54, .98), rgba(7, 17, 31, .99));
    box-shadow: 0 25px 65px rgba(4, 12, 25, .25);
}

.cta-band .accent-bar {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 6px;
    background: linear-gradient(var(--amber-500), var(--teal-400));
}

.product-card {
    position: relative;
    height: 100%;
    display: block;
    overflow: hidden;
    color: var(--theme-text);
    border-radius: 20px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    color: var(--theme-text);
    transform: translateY(-5px);
    border-color: rgba(242, 167, 59, .55);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .14);
}

.product-card .thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: color-mix(in srgb, var(--theme-muted) 65%, transparent);
    background: linear-gradient(145deg, var(--theme-thumb-from), var(--theme-thumb-to));
}

.product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.product-card .thumb > i {
    font-size: 2.2rem;
}

.badge-tag,
.badge-off {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .28rem .55rem;
    color: var(--ink-900);
    border-radius: 7px;
    background: var(--amber-500);
    font-size: .68rem;
    font-weight: 800;
}

.badge-tag {
    position: absolute;
    top: .65rem;
    right: .65rem;
}

.badge-new {
    color: #fff;
    background: var(--teal-400);
}

.product-card .body {
    padding: .95rem;
}

.product-card .brand {
    color: var(--theme-muted);
    font-size: .7rem;
    font-weight: 700;
}

.product-card .title {
    height: 2.95em;
    margin: .25rem 0 .6rem;
    overflow: hidden;
    color: var(--theme-text);
    font-size: .87rem;
    font-weight: 700;
    line-height: 1.55;
}

.price-now {
    color: var(--theme-text);
    font-size: 1rem;
    font-weight: 900;
}

.price-old {
    margin-top: .25rem;
    color: var(--theme-muted);
    font-size: .76rem;
    text-decoration: line-through;
}

.unit-tag {
    width: fit-content;
    max-width: 100%;
    margin-top: .4rem;
    overflow: hidden;
    padding: .2rem .5rem;
    color: var(--theme-muted);
    border: 1px solid var(--theme-border);
    border-radius: 7px;
    background: var(--theme-surface-soft);
    font-size: .68rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand-chip {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: var(--theme-muted);
    border-radius: 14px;
    font-size: .95rem;
    font-weight: 800;
    text-align: center;
}

.empty-store {
    border-radius: 24px;
}

.empty-store i {
    color: var(--amber-500);
    font-size: 3rem;
}

.breadcrumb-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    color: var(--theme-muted);
    font-size: .8rem;
}

.breadcrumb-bar a {
    color: var(--theme-muted);
    text-decoration: none;
}

.breadcrumb-bar a:hover {
    color: var(--amber-500);
}

.product-title {
    color: var(--theme-text);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.55;
}

.product-subtitle,
.product-short-description,
.product-code,
.stock-label,
.quantity-label,
.consultation-box p {
    color: var(--theme-muted);
}

.product-short-description {
    line-height: 1.9;
}

.brand-badge,
.product-code {
    display: inline-flex;
    align-items: center;
    padding: .28rem .6rem;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-surface-soft);
    font-size: .72rem;
    font-weight: 700;
}

.product-action-buttons {
    flex-shrink: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-surface-soft);
    transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease;
}

.icon-btn:hover,
.icon-btn.active {
    color: var(--amber-500);
    transform: translateY(-2px);
    border-color: var(--amber-500);
    background: color-mix(in srgb, var(--amber-500) 12%, var(--theme-surface-soft));
}

.gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: linear-gradient(145deg, var(--theme-thumb-from), var(--theme-thumb-to));
    box-shadow: var(--theme-shadow-soft);
}

.gallery-main > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.gallery-placeholder {
    color: var(--theme-muted);
    font-size: 5rem;
}

.gallery-discount {
    position: absolute;
    top: 16px;
    right: 16px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    overflow: hidden;
    padding: 4px;
    border: 1.5px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface-soft);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--amber-500);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-spec-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface-soft);
}

.quick-spec-card i {
    color: var(--amber-500);
    font-size: 1.05rem;
}

.quick-spec-card span {
    color: var(--theme-muted);
    font-size: .7rem;
}

.quick-spec-card strong {
    font-size: .82rem;
}

.trust-item {
    height: 100%;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.trust-item span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    color: var(--amber-500);
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface-soft);
}

.trust-item small {
    color: var(--theme-muted);
    font-size: .7rem;
    line-height: 1.6;
}

.sticky-buy {
    position: sticky;
    top: calc(var(--shop-sticky-navigation-height) + 6px);
}

.buy-box {
    padding: 1.35rem;
    border-radius: 22px;
}

.buy-box .price-now {
    font-size: 1.55rem;
}

.stock-label {
    font-size: .73rem;
    font-weight: 700;
}

.stock-label i {
    color: var(--teal-400);
}

.qty-box {
    width: fit-content;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--theme-border-strong);
    border-radius: 12px;
    background: var(--theme-surface-soft);
}

.qty-box button,
.qty-box input {
    color: var(--theme-text);
    border: none;
    background: transparent;
}

.qty-box button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.qty-box input {
    width: 42px;
    text-align: center;
    font-weight: 800;
}

.qty-box input:focus {
    outline: none;
}

.delivery-card {
    padding: .9rem;
    border: 1px dashed var(--theme-border-strong);
    border-radius: 16px;
    background: var(--theme-surface-soft);
}

.delivery-card > i {
    margin-top: .15rem;
    color: var(--amber-500);
    font-size: 1.2rem;
}

.delivery-card strong {
    display: block;
    margin-bottom: .2rem;
    font-size: .84rem;
}

.delivery-card p {
    color: var(--theme-muted);
    font-size: .74rem;
    line-height: 1.75;
}

.info-panel {
    padding: 1.35rem;
    border-radius: 22px;
}

.info-panel-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: var(--theme-text);
    font-size: 1rem;
    font-weight: 900;
}

.info-panel-title i {
    color: var(--amber-500);
}

.spec-table {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 17px;
    background: var(--theme-surface-soft);
}

.spec-row {
    display: grid;
    grid-template-columns: minmax(130px, 38%) 1fr;
    gap: 12px;
    padding: .75rem .9rem;
    border-bottom: 1px dashed var(--theme-border);
    font-size: .84rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span {
    color: var(--theme-muted);
}

.spec-row strong {
    color: var(--theme-text);
}

.product-description {
    color: var(--theme-muted);
    font-size: .9rem;
    line-height: 2.05;
}

.pros-cons-title {
    margin-bottom: .55rem;
    font-size: .84rem;
    font-weight: 900;
}

.pros-title {
    color: var(--teal-400);
}

.cons-title {
    color: #d65345;
}

.pros-cons-list {
    margin: 0;
    padding-right: 1.15rem;
    color: var(--theme-muted);
    font-size: .82rem;
    line-height: 1.95;
}

.product-carousel-section {
    border-top: 1px solid var(--theme-border);
}

footer {
    margin-top: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    color: var(--slate-400);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 32px 32px 18px 18px;
    background: var(--ink-900);
    box-shadow: 0 25px 65px rgba(2, 8, 23, .25);
}

footer h6 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
}

footer p,
footer span {
    color: var(--slate-400);
    font-size: .84rem;
    line-height: 2;
}

footer a {
    color: var(--slate-400);
    font-size: .84rem;
    line-height: 2.15;
    text-decoration: none;
}

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

.footer-bottom {
    color: var(--slate-400);
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .77rem;
}

html[data-theme="dark"] .product-card:hover,
html[data-theme="dark"] .cat-tile:hover {
    box-shadow: 0 22px 52px rgba(0, 0, 0, .34);
}

@media (max-width: 1199px) {
    .energy-flow {
        gap: 7px;
    }

    .flow-node span {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 991px) {
    :root {
        --shop-shell-width: calc(100% - 18px);
        --shop-shell-padding: 18px;
    }

    .navbar-main {
        margin-top: 8px;
        border-radius: 20px;
    }

    .hero-copy-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .energy-flow {
        min-height: 260px;
    }

    .sticky-buy {
        position: static;
    }
}

@media (max-width: 767px) {
    :root {
        --shop-shell-width: calc(100% - 12px);
        --shop-shell-padding: 14px;
    }

    .theme-label {
        display: none;
    }

    #themeToggle {
        width: 40px;
        min-width: 40px;
        padding: 0;
    }

    .hero {
        border-radius: 22px;
    }

    .hero-copy-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .energy-flow {
        min-height: 360px;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }

    .flow-line,
    .flow-pulse {
        display: none;
    }

    .flow-node strong {
        margin-top: 10px;
    }

    .product-card,
    .cat-tile {
        border-radius: 17px;
    }

    .product-card .body {
        padding: .75rem;
    }

    .product-card .title {
        font-size: .78rem;
    }

    .product-card .price-now {
        font-size: .82rem;
    }

    .section-head h2 {
        font-size: 1.25rem;
    }

    .gallery-main {
        border-radius: 20px;
    }

    .product-title {
        font-size: 1.25rem;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* SAFA Energy v14: align hero and featured section */
.hero + .deal-shell {
    margin-top: 24px;
}

.deal-shell > .container {
    padding-inline: 0;
}

.deal-shell .deal-strip {
    width: 100%;
    border-radius: 30px;
}

@media (max-width: 767px) {
    .hero + .deal-shell {
        margin-top: 16px;
    }

    .deal-shell .deal-strip {
        border-radius: 22px;
    }
}

/* SAFA Energy v16: group and group-brand pages */
.group-brand-card {
    min-height: 112px;
    height: 100%;
    flex-direction: column;
    gap: 7px;
    color: var(--theme-text);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.group-brand-card:hover {
    color: var(--theme-text);
    transform: translateY(-4px);
    border-color: rgba(242, 167, 59, .55);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .13);
}

.group-brand-card i {
    color: var(--amber-500);
    font-size: 1.25rem;
}

.group-brand-card strong {
    font-size: .95rem;
}

.group-brand-card small {
    color: var(--theme-muted);
    font-size: .72rem;
    font-weight: 700;
}


/* Storefront account module */
.account-sidebar .nav-link{color:var(--theme-text);border-radius:12px;padding:.7rem .85rem;font-weight:650}
.account-sidebar .nav-link:hover{background:var(--theme-surface-soft);color:var(--amber-500)}
.form-control,.form-select{border-color:var(--theme-border-strong);background:var(--theme-input);color:var(--theme-text);border-radius:12px;min-height:44px}
.form-control:focus,.form-select:focus{background:var(--theme-input);color:var(--theme-text);border-color:var(--amber-500);box-shadow:0 0 0 .2rem rgba(242,167,59,.15)}

/* SAFA Energy v19: phone-only login and OTP */
.storefront-auth-card {
    max-width: 100%;
    border-radius: 24px;
}
.storefront-auth-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--amber-500);
    background: var(--theme-surface-soft);
    font-size: 1.35rem;
}
.storefront-mobile-input {
    min-height: 50px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.storefront-auth-mobile {
    color: var(--theme-text);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.storefront-auth-fallback {
    color: var(--theme-muted);
    font-size: .82rem;
}
.storefront-auth-fallback a {
    color: var(--amber-500);
    font-weight: 800;
    text-decoration: none;
}
.storefront-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    direction: ltr;
}
.storefront-otp-input {
    min-width: 0;
    min-height: 54px;
    padding: 0;
    text-align: center;
    color: var(--theme-text) !important;
    background: var(--theme-input) !important;
    font-size: 1.15rem;
    font-weight: 950;
}
.storefront-otp-input.filled {
    border-color: var(--amber-500) !important;
    box-shadow: 0 0 0 3px rgba(242,167,59,.12);
}
.storefront-otp-timer-wrap {
    padding: 10px 12px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--theme-muted);
    background: var(--theme-surface-soft);
    font-size: .8rem;
    font-weight: 750;
}
.storefront-otp-timer-wrap strong {
    color: var(--teal-400);
    direction: ltr;
    font-size: 1rem;
}
.storefront-otp-timer-wrap strong.expired {
    color: #e7515a;
}
@media (max-width: 575px) {
    .storefront-otp-grid { gap: 5px; }
    .storefront-otp-input { min-height: 48px; font-size: 1rem; }
}

/* SAFA Energy v19: storefront sale limit */
.quantity-limit-note {
    color: var(--theme-muted);
    font-size: .75rem;
    font-weight: 700;
}
.qty-box button:disabled {
    cursor: not-allowed;
    opacity: .38;
}
.storefront-out-of-stock {
    padding: 10px 12px;
    border: 1px solid rgba(231,81,90,.28);
    border-radius: 12px;
    color: #e7515a;
    background: rgba(231,81,90,.08);
    font-size: .82rem;
    font-weight: 800;
}

/* SAFA Energy v21: restore account panel and widen only storefront shell */
html.storefront-customer-account-page .top-bar-shell,
html.storefront-customer-account-page .navbar-main,
html.storefront-customer-account-page .cat-nav,
html.storefront-customer-account-page footer {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-inline: auto !important;
}

html.storefront-customer-account-page .navbar-main > .container,
html.storefront-customer-account-page .cat-nav > .container,
html.storefront-customer-account-page footer > .container {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 24px !important;
}

html.storefront-customer-account-page .account-sidebar {
    position: sticky;
    top: calc(var(--shop-sticky-navigation-height, 0px) + 18px);
}

html.storefront-customer-account-page .account-sidebar .nav-link {
    border-radius: 12px;
    color: var(--theme-muted);
    font-weight: 800;
}

html.storefront-customer-account-page .account-sidebar .nav-link:hover,
html.storefront-customer-account-page .account-sidebar .nav-link:focus {
    color: var(--theme-text);
    background: var(--theme-surface-soft);
}

@media (max-width: 991px) {
    html.storefront-customer-account-page .top-bar-shell,
    html.storefront-customer-account-page .navbar-main,
    html.storefront-customer-account-page .cat-nav,
    html.storefront-customer-account-page footer {
        width: calc(100% - 16px) !important;
    }

    html.storefront-customer-account-page .navbar-main > .container,
    html.storefront-customer-account-page .cat-nav > .container,
    html.storefront-customer-account-page footer > .container {
        padding-inline: 18px !important;
    }

    html.storefront-customer-account-page .account-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    html.storefront-customer-account-page .top-bar-shell,
    html.storefront-customer-account-page .navbar-main,
    html.storefront-customer-account-page .cat-nav,
    html.storefront-customer-account-page footer {
        width: calc(100% - 10px) !important;
    }

    html.storefront-customer-account-page .navbar-main > .container,
    html.storefront-customer-account-page .cat-nav > .container,
    html.storefront-customer-account-page footer > .container {
        padding-inline: 14px !important;
    }
}

/* SAFA Energy v25: mobile-style account sidebar profile */
.account-sidebar-profile {
    position: relative;
    margin: 0;
    padding: 28px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 15%, rgba(255, 255, 255, .82), transparent 34%),
        linear-gradient(135deg, #cfe1ff 0%, #e8ddff 100%);
    border-bottom: 1px solid rgba(110, 130, 165, .20);
}

.account-sidebar-profile::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .34;
    background-image:
        linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 28px 28px;
}

.account-sidebar-avatar {
    position: relative;
    z-index: 2;
    width: 132px;
    height: 132px;
    margin: 0 0 16px;
    display: block;
    flex: 0 0 auto;
    cursor: pointer;
    border-radius: 999px;
}

.account-sidebar-avatar img,
.account-sidebar-avatar-fallback {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    object-fit: cover;
    overflow: hidden;
    color: #000;
    border: 4px solid rgba(255, 255, 255, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 42px rgba(58, 74, 115, .20);
}

.account-sidebar-avatar-fallback i {
    font-size: 4.6rem;
    line-height: 1;
}

.account-sidebar-camera {
    position: absolute;
    right: 2px;
    bottom: 5px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, .96);
    border-radius: 999px;
    background: linear-gradient(145deg, #3f7cff, #7258ff);
    box-shadow: 0 10px 24px rgba(62, 111, 255, .30);
    transition: transform .18s ease, filter .18s ease;
}

.account-sidebar-avatar:hover .account-sidebar-camera {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.account-sidebar-profile.is-uploading .account-sidebar-camera {
    animation: storefrontAvatarPulse .8s ease-in-out infinite alternate;
}

@keyframes storefrontAvatarPulse {
    from { transform: scale(.92); opacity: .72; }
    to { transform: scale(1.08); opacity: 1; }
}

.account-sidebar-user-name,
.account-sidebar-site-name {
    position: relative;
    z-index: 2;
}

.account-sidebar-user-name {
    color: #111827;
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.7;
}

.account-sidebar-site-name {
    margin-top: 2px;
    color: #64748b;
    font-size: .76rem;
    font-weight: 750;
}

.account-sidebar-nav {
    padding: 14px;
}

html.storefront-customer-account-page .account-sidebar .nav-link.active {
    color: var(--ink-900);
    background: var(--amber-500);
}

@media (max-width: 991px) {
    .account-sidebar-profile {
        padding-block: 24px 20px;
    }

    .account-sidebar-avatar,
    .account-sidebar-avatar img,
    .account-sidebar-avatar-fallback {
        width: 118px;
        height: 118px;
    }

    .account-sidebar-avatar-fallback i {
        font-size: 4rem;
    }
}

@media (max-width: 575px) {
    .account-sidebar-avatar,
    .account-sidebar-avatar img,
    .account-sidebar-avatar-fallback {
        width: 108px;
        height: 108px;
    }

    .account-sidebar-avatar {
        margin-bottom: 12px;
    }

    .account-sidebar-avatar-fallback i {
        font-size: 3.6rem;
    }

    .account-sidebar-camera {
        width: 35px;
        height: 35px;
        right: 0;
        bottom: 3px;
    }
}


/* SAFA Energy v26: align account body with header and footer */
html.storefront-customer-account-page .storefront-account-shell {
    width: calc(100% - 24px);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

@media (max-width: 991px) {
    html.storefront-customer-account-page .storefront-account-shell {
        width: calc(100% - 16px);
    }
}

@media (max-width: 767px) {
    html.storefront-customer-account-page .storefront-account-shell {
        width: calc(100% - 10px);
    }
}
