/* =========================================================
   BASE & TYPOGRAPHY
   ========================================================= */
body {
    font-family: 'Vazirmatn', 'Tajawal', sans-serif;
    background-color: #f6f9f6;
    color: #0f172a;
}

section[id] {
    scroll-margin-top: 92px;
}

/* =========================================================
   GLASS CARD STYLES
   ========================================================= */
.glass-card-light {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(6, 78, 59, 0.1);
}

.glass-card-dark {
    background: rgba(2, 44, 34, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

/* =========================================================
   SECTION TITLES (H2 Big / Span Small)
   ========================================================= */
h2.sec-sub-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

span.sec-main-title {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    font-weight: 500;
    display: block;
}

/* =========================================================
   WHY VARAN ICONS
   ========================================================= */
.why-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #dcfce7;
    color: #064e3b;
    border: 1px solid rgba(6, 78, 59, 0.15);
    margin-bottom: 1rem;
}

.why-icon i {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* =========================================================
   BEST SELLER SLIDER
   ========================================================= */
.slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: .5rem;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .slide-card {
        flex-basis: calc(50% - .5rem);
    }
}

@media (min-width: 1024px) {
    .slide-card {
        flex-basis: calc(33.333% - .667rem);
    }
}

@media (min-width: 1280px) {
    .slide-card {
        flex-basis: calc(20% - .8rem);
    }
}

/* =========================================================
   ANIMATIONS & EFFECTS
   ========================================================= */
@keyframes flowGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(217, 119, 6, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}

.node-active {
    animation: flowGlow 2.2s infinite;
}

.cat-watermark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.07;
    color: #064e3b;
    pointer-events: none;
}

.acc-icon {
    transition: transform .25s ease;
}

details[open] summary .acc-icon {
    transform: rotate(45deg);
}

summary::-webkit-details-marker {
    display: none;
}

.gold-gradient {
    background: linear-gradient(135deg, #bf9b30 0%, #d4af37 50%, #aa771c 100%);
}

/* =========================================================
   NEW LOGO ANIMATIONS (Arch / Medal Design)
   ========================================================= */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin2 {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fl {
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(201, 164, 92, .25));
    }

    50% {
        filter: drop-shadow(0 0 28px rgba(232, 207, 148, .55));
    }
}

/* Logo classes */
.logo-float {
    animation: fl 7s ease-in-out infinite;
}

.logo-glow-new {
    animation: fl 6s ease-in-out infinite, glow 4s ease-in-out infinite;
}

.logo-medal-spin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 138%;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: .32;
    animation: spin2 140s linear infinite;
    pointer-events: none;
}

/* =========================================================
   REDUCED MOTION (Accessibility)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {

    .logo-float,
    .logo-glow-new,
    .logo-medal-spin,
    .node-active {
        animation: none !important;
    }
}

@keyframes floatY {
    50% {
        transform: translateY(-10px);
    }
}

.logo-float {
    animation: floatY 8s ease-in-out infinite;
}

/* =========================================================
   v2 ADDITIONS - Varan icon set, hero logo, footer, ornaments
   (icons come from js/varan-icons.js; hero from js/varan-hero-logo.js)
   ========================================================= */
.ico {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.ico80 {
    width: 1.5em;
    height: 1.5em;
    vertical-align: -.35em;
    stroke-width: 5;
    fill: currentColor;
    fill-opacity: .12;
}

.why-icon .ico,
.why-icon .ico80 {
    width: clamp(3rem, 6vw, 4.5rem);
    height: clamp(3rem, 6vw, 4.5rem);
    vertical-align: 0;
}

.why-icon .ico80 {
    stroke-width: 3.4;
}

/* English typography: classic serif headings + clean sans body */
html[lang=en] body {
    font-family: 'Poppins', 'Vazirmatn', sans-serif;
}

html[lang=en] h1,
html[lang=en] h2.sec-sub-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    letter-spacing: -.005em;
}

/* Animated hero logo frame */
.vhl {
    border: 1px solid rgba(201, 164, 92, .18);
}

/* Section title ornament (tulip + ikat zigzag) */
h2.sec-sub-title::after {
    content: "";
    display: block;
    height: 20px;
    max-width: 240px;
    margin: 10px 0 0;
    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='20'%3E%3Cg%20stroke='%23c9a45c'%20fill='none'%20stroke-width='1.2'%3E%3Cpath%20d='M0%2010%20L7%204%20L14%2010%20L21%204%20L28%2010%20L35%204%20L42%2010%20L49%204%20L56%2010%20L63%204%20L70%2010%20L77%204%20L84%2010%20L91%204%20L98%2010'/%3E%3Cpath%20d='M142%2010%20L149%204%20L156%2010%20L163%204%20L170%2010%20L177%204%20L184%2010%20L191%204%20L198%2010%20L205%204%20L212%2010%20L219%204%20L226%2010%20L233%204%20L240%2010'/%3E%3C/g%3E%3Cpath%20d='M120%201C113%206%20112%2012%20116%2015C118%2017%20122%2017%20124%2015C128%2012%20127%206%20120%201Z'%20fill='%23c9a45c'/%3E%3C/svg%3E") left center/contain no-repeat;
}

.text-center h2.sec-sub-title::after {
    margin: 10px auto 0;
    background-position: center;
}

/* Footer */
.v-footer {
    position: relative;
}

.v-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a45c, transparent);
    opacity: .55;
}

.foot-h {
    color: #e8cf94;
    /* font-family: 'Cormorant Garamond', Georgia, serif; */
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .02em;
    margin-bottom: .9rem;
}

.foot-link {
    font-size: .8rem;
    color: #9ca3af;
    transition: color .15s;
}

.foot-link:hover {
    color: #e8cf94;
}

.foot-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 44px;
}

.foot-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 164, 92, .6);
    color: #e8cf94;
    font-size: 1.15rem;
    transition: background .15s, color .15s;
}

.foot-social a:hover {
    background: #c9a45c;
    color: #14100d;
}

.foot-copy {
    max-width: 80rem;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(201, 164, 92, .22);
    text-align: center;
    font-size: .75rem;
}


/* سبد خرید به صورت پیش‌فرض (دسکتاپ) نمایش داده می‌شود */
.cart {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* در تبلت و موبایل (عرض کمتر از 1024 پیکسل) مخفی شود */
@media (max-width: 1024px) {
    .cart {
        display: none !important;
    }
}