/* ==================================
   RESET
================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #F7F3EC;
    color: #2B2B2B;
    overflow-x: hidden;
    line-height: 1.8;
    transition: .3s;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==================================
   VARIABLES
================================== */
:root {
    --primary: #B8860B;
    --primary-dark: #8B6914;
    --secondary: #D4A017;
    --bg: #F7F3EC;
    --card: #FFF8EE;
    --card2: #FAF3E5;
    --text: #2B2B2B;
    --border: #E8DCC5;
    --shadow: 0 12px 30px rgba(0, 0, 0, .08);
    --radius: 24px;
}

/* ==================================
   DARK MODE
================================== */
body.dark {
    --bg: #0F172A;
    --card: #1E293B;
    --card2: #273449;
    --text: #F8FAFC;
    --border: #334155;
    --shadow: 0 15px 40px rgba(0, 0, 0, .35);
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(1300px, 92%);
    margin: auto;
}

/* ==================================
   LOADER
================================== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: .5s;
}

#loader img {
    width: 120px;
}

#loader h2 {
    font-size: 30px;
    letter-spacing: 4px;
    color: var(--primary);
}

/* ==================================
   INSTAGRAM FLOAT
================================== */
.instagram-float {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #FD1D1D, #FCAF45);
    color: white;
    font-weight: 700;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
    transition: .35s;
}

.instagram-float:hover {
    transform: translateY(-5px);
}

.instagram-float i {
    font-size: 24px;
}

/* ==================================
   HEADER
================================== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: .35s;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .70);
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

body.dark .header {
    background: rgba(15, 23, 42, .75);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo-box img {
    height: 85px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    font-weight: 700;
    position: relative;
    font-size: 19.5px;
}

.nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 20px;
    transition: .3s;
}

.nav a:hover::after {
    width: 100%;
}

/* ==================================
   HEADER ACTIONS
================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 18px;
    transition: all 0.3s;
    font-weight: bold;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(5deg);
}

#langBtn {
    width: auto;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
}

/* کاتالوگ در دسکتاپ */
.catalog-btn-glow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(184, 134, 11, .3);
    border: 1px solid var(--primary-dark);
}

.catalog-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, .5);
    background: var(--primary-dark);
}

.menu-btn {
    display: none;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(184, 134, 11, .3);
}

.catalog-btn-mobile {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    font-weight: 700;
    margin-top: 15px;
}

/* PC Only */
.pc-only {
    display: inline-block;
}

@media(max-width:991px) {
    .header {
        padding: 12px 0;
    }

    .header-inner {
        gap: 8px;
    }

    .logo-box img {
        height: 65px;
    }

    .header-actions {
        gap: 6px;
    }

    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -230px;
        width: 230px;
        height: 100vh;
        background: var(--card);
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 130px 25px;
        gap: 22px;
        transition: .4s;
        box-shadow: -15px 0 40px rgba(0, 0, 0, .2);
        z-index: 1001;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 17.5px;
        width: 100%;
        padding: 10px 0;
    }

    .pc-only {
        display: none;
    }

    .catalog-btn-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 24px;
        background: var(--primary);
        color: white;
        border-radius: 999px;
        font-weight: 700;
        margin-top: 20px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

}


/* ==================================
   HERO
================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 850px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 2.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: brightness(0.65) contrast(1.2);
}

.hero-slider img:hover {
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.3) 0%,
            rgba(10, 10, 10, 0.75) 50%,
            rgba(10, 10, 10, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
    color: white;
    padding: 0 20px;
}

.hero-text-box {
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    padding: 60px 70px 55px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 16px 38px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    font-weight: 800;
    font-size: 15.5px;
    margin-bottom: 36px;
    letter-spacing: 2px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .4);
}

.hero h1 {
    font-size: clamp(52px, 6.2vw, 88px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .8);
}

.hero p {
    font-size: 22.5px;
    opacity: 0.93;
    line-height: 1.85;
    margin-bottom: 52px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.primary-btn {
    background: linear-gradient(135deg, #B8860B, #d4a017, #B8860B);
    background-size: 200% 200%;
    color: white;
    padding: 22px 52px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 18.5px;
    transition: all .6s ease;
    box-shadow: 0 20px 50px rgba(184, 134, 11, .55);
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(184, 134, 11, .7);
    background-position: right center;
}

.primary-btn {
    background: var(--primary);
    color: white;
    padding: 18px 34px;
    border-radius: 999px;
    font-weight: 800;
    transition: .35s;
    box-shadow: 0 12px 30px rgba(184, 134, 11, .35);
}

.primary-btn:hover {
    transform: translateY(-4px);
    background: var(--primary-dark);
}

/* ==================================
   SECTION TITLE
================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
}

.section-title p {
    opacity: .75;
    font-size: 18px;
}

/* ==================================
   BRAND STORY & TRUST BAR & STATS
================================== */
.brand-story {
    padding: 120px 0;
    background: var(--bg);
}

.story-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    align-items: center;
    gap: 70px;
}

.story-image {
    display: flex;
    justify-content: center;
}

.story-image img {
    width: 300px;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, .15));
}

.story-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
    font-weight: 900;
}

.story-content p {
    font-size: 19px;
    line-height: 2.2;
    opacity: .9;
}

.trust-bar {
    padding: 25px 0;
    background: var(--primary);
    color: white;
    overflow: hidden;
}

.trust-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.trust-item i {
    font-size: 22px;
}

.stats {
    padding: 100px 0;
    background: var(--card2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--card);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: .35s;
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-card h3 {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-card p {
    font-weight: 700;
}

/* ==================================
   FEATURED PRODUCTS (SLIDER)
================================== */
.featured-section {
    padding: 120px 0;
    background: var(--card2);
    overflow: hidden;
}

.featured-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.featured-nav {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 22px;
    transition: .3s;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.featured-nav:hover {
    transform: scale(1.08);
    background: var(--primary-dark);
}

.featured-viewport {
    overflow: hidden;
    flex: 1;
    padding: 20px 0;
    margin: -20px 0;
}

.featured-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-track .product-card {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
}

.featured-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4d4d4;
    transition: .3s;
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ==================================
   CATEGORIES
================================== */
.categories-section {
    padding: 100px 0;
    background: var(--bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: .35s;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.category-image-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #FFF4DD;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

body.dark .category-image-wrap {
    background: #334155;
}

.category-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.category-card:hover .category-image-wrap img {
    transform: scale(1.15);
}

.category-card h3 {
    font-size: 22px;
    font-weight: 800;
}

/* ==================================
   PRODUCTS SECTION
================================== */
.products-section {
    padding: 120px 0;
    background: var(--bg);
}

.products-toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.search-box {
    width: min(520px, 100%);
    position: relative;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
}

.search-box input {
    width: 100%;
    height: 60px;
    padding-right: 55px;
    padding-left: 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 16px;
    outline: none;
    transition: .3s;
    color: var(--text);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, .12);
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-chip {
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    font-weight: 700;
    border: 1px solid var(--border);
    transition: .3s;
}

.filter-chip:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==================================
   PRODUCTS GRID
================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* در تبلت و موبایل */
@media(max-width:1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:520px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 60px 0 40px;
}

.load-more-btn {
    background: var(--primary);
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(184, 134, 11, .35);
    transition: all .4s;
}

.load-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(184, 134, 11, .45);
}

/* ==================================
   PRODUCT CARD
================================== */
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: .35s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .15);
}

.product-image {
    background: #FFF4DD;
    padding: 25px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.dark .product-image {
    background: #334155;
}

.product-image img {
    max-height: 240px;
    transition: .45s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-content {
    padding: 22px;
}

.product-code {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(184, 134, 11, .12);
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
}

.product-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.8;
    min-height: 64px;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: .35s;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* ==================================
   CONTACT & FOOTER
================================== */
.contact-section {
    padding: 120px 0;
    background: var(--card2);
}

.about-card {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 35px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    line-height: 2.2;
    font-size: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--card);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: .35s;
    border: 1px solid var(--border);
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 32px;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 800;
}

.contact-link {
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
    word-break: break-word;
}

.footer {
    padding: 50px 0;
    background: #111827;
    color: white;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-brand img {
    height: 70px;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 800;
}

.footer-center {
    flex: 1;
    text-align: center;
    opacity: .9;
    line-height: 2;
}

/* ==================================
   RESPONSIVE
================================== */
@media(max-width:1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .featured-track .product-card {
        min-width: calc(50% - 15px);
    }
}

@media(max-width:768px) {
    .hero {
        min-height: 720px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-track .product-card {
        min-width: 100%;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

@media(max-width:520px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .search-box input {
        height: 55px;
        font-size: 15px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 10px 18px;
    }

    .instagram-float {
        left: 15px;
        bottom: 15px;
        padding: 12px 16px;
    }

    .instagram-float span {
        display: none;
    }
}

/* ==================================
   ANIMATIONS
================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .15);
}

.counter {
    transition: all 0.5s ease;
}

.hero-badge {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .3);
}

.primary-btn {
    position: relative;
    overflow: hidden;
}

.primary-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 40%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-25deg);
    transition: .6s;
}

.primary-btn:hover::after {
    left: 120%;
}


.product-card {
    border: 1px solid rgba(184, 134, 11, .15);
}

.product-image {
    background: linear-gradient(135deg, #FFF4DD, #FAE8C5);
}

.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(184, 134, 11, .35);
    transition: all .4s;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 15px 40px rgba(184, 134, 11, .5);
}