﻿
/* =========================================
   BTILE - Premium Store Theme
   RTL | Persian | Responsive
   ========================================= */

:root {
    --bt-green: #075446;
    --bt-green-dark: #063d33;
    --bt-green-light: #e8f0eb;
    --bt-cream: #f7f4ee;
    --bt-white: #ffffff;
    --bt-gold: #c4a46b;
    --bt-text: #26332e;
    --bt-muted: #777f79;
    --bt-border: #e8e5de;
    --bt-danger: #b33d35;
    --bt-radius: 12px;
    --bt-shadow: 0 8px 28px rgba(25, 48, 39, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--bt-text);
    background: var(--bt-white);
    line-height: 1.9;
    font-size: 14px;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

    button,
    input[type="submit"] {
        cursor: pointer;
    }

.container {
    width: 92%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Announcement bar ---------- */

.topbar {
    background: var(--bt-green-dark);
    color: #f6f5ef;
    padding: 7px 0;
    text-align: center;
    font-size: 12px;
}

/* ---------- Header ---------- */

.header {
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--bt-border);
    position: relative;
    z-index: 10;
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    color: var(--bt-green);
    font-size: 29px;
    font-weight: bold;
    white-space: nowrap;
}

    .logo small {
        display: block;
        font-size: 10px;
        color: var(--bt-muted);
        font-weight: normal;
        line-height: 1.5;
    }

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 23px;
    font-size: 13px;
}

    .nav a {
        padding: 10px 0;
    }

        .nav a:hover,
        .nav a.active {
            color: var(--bt-green);
        }

.header-action {
    display: inline-block;
    background: var(--bt-green);
    color: #fff;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 12px;
    white-space: nowrap;
}

    .header-action:hover,
    .btn-primary:hover {
        background: var(--bt-green-dark);
        color: #fff;
    }

/* ---------- Buttons ---------- */

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 22px;
    border-radius: 7px;
    font-size: 13px;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--bt-green);
    color: #fff;
    border: 1px solid var(--bt-green);
}

.btn-outline {
    background: transparent;
    color: var(--bt-green);
    border: 1px solid var(--bt-green);
}

    .btn-outline:hover {
        background: var(--bt-green);
        color: #fff;
    }

/* ---------- Hero section ---------- */

.hero {
    background: linear-gradient(110deg, #f8f5ef, #e6ece5);
    padding: 55px 0;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 45px;
}

.eyebrow {
    color: var(--bt-green);
    font-size: 13px;
    font-weight: bold;
}

.hero h1 {
    color: var(--bt-green-dark);
    font-size: clamp(27px, 4vw, 43px);
    line-height: 1.7;
    margin: 12px 0;
}

.hero p {
    color: #657069;
    font-size: 14px;
    max-width: 600px;
    margin: 0 0 24px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-art {
    min-height: 320px;
    border-radius: 16px;
    background: linear-gradient(140deg, #c7d6ca, #e9dcc9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    overflow: hidden;
}

.hero-art-inner {
    width: 100%;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.3);
    border-radius: 12px;
    color: var(--bt-green-dark);
}

    .hero-art-inner strong {
        display: block;
        font-size: 25px;
        margin-bottom: 8px;
    }

/* ---------- General sections ---------- */

.section {
    padding: 55px 0;
}

.section-heading {
    margin-bottom: 28px;
    text-align: center;
}

    .section-heading h2 {
        margin: 0 0 8px;
        font-size: 24px;
        color: var(--bt-green-dark);
    }

    .section-heading p {
        margin: 0;
        color: var(--bt-muted);
        font-size: 13px;
    }

.products-section {
    background: #f4f5f1;
}

/* ---------- Categories ---------- */

.categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

.category-card {
    display: block;
    background: var(--bt-white);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 20px 10px;
    text-align: center;
    transition: all .25s ease;
}

    .category-card:hover {
        border-color: var(--bt-green);
        transform: translateY(-4px);
        box-shadow: var(--bt-shadow);
    }

.category-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--bt-green-light);
    color: var(--bt-green);
    font-size: 25px;
}

.category-card h3 {
    margin: 0;
    font-size: 13px;
    color: var(--bt-text);
}

/* ---------- Product grid and cards ---------- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--bt-white);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--bt-shadow);
    }

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    overflow: hidden;
    background: #f1f0eb;
}

    .product-image img {
        display: block;
        width: 100%;
        height: 100%;
        padding: 10px;
        object-fit: contain;
        transition: transform .35s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.no-image {
    color: var(--bt-muted);
    font-size: 12px;
}

.product-info {
    padding: 15px;
}

    .product-info h3 {
        margin: 0 0 8px;
        font-size: 13px;
        line-height: 2;
    }

        .product-info h3 a:hover {
            color: var(--bt-green);
        }

.product-code {
    color: var(--bt-muted);
    font-size: 11px;
}

.price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 13px 0;
}

.price {
    color: var(--bt-green);
    font-size: 15px;
    font-weight: bold;
}

.old-price {
    color: #92958f;
    font-size: 11px;
    text-decoration: line-through;
}

.discount {
    color: var(--bt-danger);
    background: #fff0ed;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
}

.details-link {
    display: block;
    padding: 9px;
    border: 1px solid var(--bt-green);
    border-radius: 6px;
    color: var(--bt-green);
    text-align: center;
    font-size: 12px;
}

    .details-link:hover {
        background: var(--bt-green);
        color: #fff;
    }

.all-products {
    margin-top: 30px;
    text-align: center;
}

/* ---------- Search and filters ---------- */

.shop-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    margin: 25px 0;
}

.filter-input {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--bt-border);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--bt-text);
    font-size: 13px;
}

    .filter-input:focus {
        border-color: var(--bt-green);
        box-shadow: 0 0 0 3px rgba(7, 84, 70, .08);
    }

.filter-button {
    padding: 11px 20px;
    border: 1px solid var(--bt-green);
    border-radius: 7px;
    background: var(--bt-green);
    color: #fff;
}

    .filter-button:hover {
        background: var(--bt-green-dark);
    }

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.page-button {
    padding: 9px 20px;
    border: 1px solid var(--bt-green);
    border-radius: 6px;
    background: var(--bt-green);
    color: #fff;
}

    .page-button:disabled {
        border-color: #ddd;
        background: #e5e5e5;
        color: #888;
        cursor: not-allowed;
    }

.page-info {
    font-size: 12px;
    color: var(--bt-muted);
}

/* ---------- Benefits ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature {
    padding: 25px;
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    text-align: center;
    background: #fff;
}

.feature-icon {
    color: var(--bt-green);
    font-size: 28px;
}

.feature h3 {
    margin: 8px 0;
    font-size: 15px;
}

.feature p {
    margin: 0;
    color: var(--bt-muted);
    font-size: 12px;
}

/* ---------- About section ---------- */

.about {
    padding: 45px 0;
    background: var(--bt-green-dark);
    color: #fff;
}

    .about h2 {
        margin-top: 0;
        font-size: 24px;
    }

    .about p {
        max-width: 900px;
        color: #e0e9e3;
        font-size: 13px;
    }

/* ---------- Footer ---------- */

.footer {
    padding: 32px 0;
    background: #082e27;
    color: #e4ece6;
    font-size: 12px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.footer a {
    color: #fff;
    margin-left: 12px;
}

    .footer a:hover {
        color: var(--bt-gold);
    }

/* ---------- Product details ---------- */

.product-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 35px;
    align-items: start;
    margin: 35px auto;
}

.product-gallery,
.product-summary {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    background: #fff;
}

    .product-gallery img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .product-summary h1 {
        margin-top: 0;
        color: var(--bt-green-dark);
        font-size: 25px;
    }

    .product-summary .price {
        font-size: 22px;
    }

.product-description {
    color: #606a64;
    line-height: 2.2;
}

.stock-label {
    color: var(--bt-green);
    font-size: 12px;
}

/* ---------- Empty states ---------- */

.empty-state {
    padding: 35px 15px;
    text-align: center;
    color: var(--bt-muted);
    background: var(--bt-cream);
    border-radius: var(--bt-radius);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav {
        gap: 13px;
    }

    .header-inner {
        gap: 14px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 15px 0;
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-art {
        min-height: 220px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 180px;
    }

    .shop-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .shop-filters .filter-button {
            grid-column: 1 / -1;
        }

    .product-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        width: 94%;
    }

    .logo {
        font-size: 25px;
    }

    .header-action {
        padding: 8px 11px;
    }

    .nav {
        gap: 15px;
        font-size: 12px;
    }

    .hero {
        padding: 35px 0;
    }

        .hero h1 {
            font-size: 27px;
        }

    .section {
        padding: 38px 0;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        padding: 16px 8px;
    }

    .products-grid {
        gap: 9px;
    }

    .product-image {
        height: 145px;
    }

    .product-info {
        padding: 10px;
    }

        .product-info h3 {
            font-size: 12px;
        }

    .price {
        font-size: 13px;
    }

    .old-price {
        font-size: 10px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}
body {
    background-color: #f0e8d8 !important;
}

.header {
    background-color: #075446 !important;
}

/* ==============================
   BTILE - Shared Persian Font
   ============================== */

html {
    direction: rtl;
}

body,
button,
input,
select,
textarea {
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
}

body {
    font-size: 14px;
    line-height: 1.9;
    color: #292f2b;
    background-color: #f8f7f2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
    font-weight: 700;
    line-height: 1.8;
}

button,
input,
select,
textarea {
    font-size: 14px;
}

a {
    transition: color .2s ease, background-color .2s ease;
}

button,
.btn-primary,
.btn-outline,
.header-action,
.details-link {
    border-radius: 8px;
}

/* =========================================
   BTILE - Unified Theme System
   تم‌های رنگی یکپارچه
   ========================================= */

/* تم پیش‌فرض: سبز */
:root,
html[data-theme="green"] {
    --bt-green: #176b52;
    --bt-green-dark: #123f35;
    --bt-green-light: #e8f0eb;
    --bt-green-hover: #205b49;
    --bt-cream: #f7f4ee;
    --bt-gold: #d8bd83;
    --bt-white: #ffffff;
    --bt-text: #26332e;
    --bt-muted: #777f79;
    --bt-border: #e8e5de;
    --bt-danger: #b33d35;
}

/* تم آبی */
html[data-theme="blue"] {
    --bt-green: #245a9a;
    --bt-green-dark: #17345b;
    --bt-green-light: #e8eff9;
    --bt-green-hover: #194777;
    --bt-cream: #f3f6fb;
    --bt-gold: #e4bd72;
    --bt-white: #ffffff;
    --bt-text: #263448;
    --bt-muted: #778294;
    --bt-border: #e1e7f0;
    --bt-danger: #b33d35;
}

/* تم قهوه‌ای */
html[data-theme="brown"] {
    --bt-green: #87583d;
    --bt-green-dark: #503326;
    --bt-green-light: #f4e9df;
    --bt-green-hover: #70442f;
    --bt-cream: #faf3e9;
    --bt-gold: #d9b889;
    --bt-white: #ffffff;
    --bt-text: #3c3029;
    --bt-muted: #897b72;
    --bt-border: #e9ded3;
    --bt-danger: #b33d35;
}

/* تم بنفش */
html[data-theme="purple"] {
    --bt-green: #48445f;
    --bt-green-dark: #29263c;
    --bt-green-light: #eeecf5;
    --bt-green-hover: #37334d;
    --bt-cream: #f6f4fa;
    --bt-gold: #d5c5a1;
    --bt-white: #ffffff;
    --bt-text: #302e3d;
    --bt-muted: #807e8e;
    --bt-border: #e6e3ef;
    --bt-danger: #b33d35;
}

/* تم تیره */
html[data-theme="dark"] {
    --bt-green: #c9aa72;
    --bt-green-dark: #17191d;
    --bt-green-light: #30343b;
    --bt-green-hover: #b89a5a;
    --bt-cream: #24272d;
    --bt-gold: #c9aa72;
    --bt-white: #24272d;
    --bt-text: #eeeeee;
    --bt-muted: #b3b6bc;
    --bt-border: #41454d;
    --bt-danger: #ff8c82;
}
html[data-theme="white"] {
    --bt-green: #ffffff;
    --bt-green-dark: #f1f1f1;
    --bt-green-light: #ffffff;
    --bt-green-hover: #e8e8e8;
    --bt-cream: #ffffff;
    --bt-gold: #c49a45;
    --bt-white: #ffffff;
    --bt-text: #292929;
    --bt-muted: #666666;
    --bt-border: #e2e2e2;
    --bt-danger: #c62828;
}

/* رنگ‌های عمومی */
body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    color: var(--bt-text);
    background: var(--bt-white);
}

button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* سربرگ و منو */
.topbar {
    background: var(--bt-green-dark);
    color: #fff;
}

.header {
    background: var(--bt-green-dark);
    color: #fff;
    border-bottom: 3px solid var(--bt-gold);
}

    .header a,
    .topbar a {
        color: inherit;
    }

.logo,
.logo small {
    color: inherit;
}

.nav a:hover,
.nav a.active {
    color: var(--bt-gold);
}

.nav a::after {
    background: var(--bt-gold);
}

/* دکمه‌ها و لینک‌های عملیاتی */
.btn-primary,
.header-action,
.filter-button,
.page-button,
.product-card .product-button,
.product-card .btn,
.product-card .view-product {
    background: var(--bt-green);
    border-color: var(--bt-green);
    color: #fff;
}

    .btn-primary:hover,
    .header-action:hover,
    .filter-button:hover,
    .product-card .product-button:hover,
    .product-card .btn:hover,
    .product-card .view-product:hover {
        background: var(--bt-green-hover);
        border-color: var(--bt-green-hover);
        color: #fff;
    }

.btn-outline,
.details-link {
    color: var(--bt-green);
    border-color: var(--bt-green);
}

    .btn-outline:hover,
    .details-link:hover {
        background: var(--bt-green);
        color: #fff;
    }

/* کارت‌ها و قیمت‌ها */
.product-card,
.category-card,
.feature,
.product-gallery,
.product-summary {
    background: var(--bt-white);
    border-color: var(--bt-border);
    color: var(--bt-text);
}

    .product-info h3,
    .category-card h3,
    .product-summary h1,
    .section-heading h2,
    .hero h1 {
        color: var(--bt-green-dark);
    }

.price,
.product-price,
.current-price,
.stock-label,
.feature-icon {
    color: var(--bt-green);
}

.category-icon {
    background: var(--bt-green-light);
    color: var(--bt-green);
}

.product-image {
    background: var(--bt-cream);
}

/* بخش درباره ما و پاورقی */
.about,
.footer {
    background: var(--bt-green-dark);
    color: #fff;
}

    .footer a:hover {
        color: var(--bt-gold);
    }

/* تم تیره: پس‌زمینه‌های بخش‌های اصلی */
html[data-theme="dark"] body,
html[data-theme="dark"] .products-section,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero-art,
html[data-theme="dark"] .hero-art-inner,
html[data-theme="dark"] .empty-state {
    background: #1c1f24;
    color: var(--bt-text);
}

html[data-theme="dark"] .header {
    background: #17191d;
}

html[data-theme="dark"] .product-image {
    background: #30343b;
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .product-summary h1,
html[data-theme="dark"] .product-info h3,
html[data-theme="dark"] .category-card h3 {
    color: var(--bt-text);
}

html[data-theme="dark"] .hero p,
html[data-theme="dark"] .product-description {
    color: var(--bt-muted);
}

/* کادرهای ورود اطلاعات */
.filter-input {
    background: var(--bt-white);
    color: var(--bt-text);
    border-color: var(--bt-border);
}

    .filter-input:focus {
        border-color: var(--bt-green);
    }

@media (max-width: 768px) {
    .nav {
        gap: 12px;
    }
}

/* انتخاب رنگ قالب */
.theme-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--bt-text);
}

.theme-color {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 2px solid #fff;
    outline: 1px solid #d5d5d5;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .2s ease;
}

    .theme-color:hover {
        transform: scale(1.12);
    }

.theme-green {
    background: #176b52;
}

.theme-blue {
    background: #245a9a;
}

.theme-brown {
    background: #87583d;
}

.theme-purple {
    background: #48445f;
}

.theme-dark {
    background: #30343b;
}

@media (max-width: 768px) {
    .theme-picker {
        margin: 8px 0;
    }
}
/* کنترل اندازه لوگوی بی‌تایل */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

    .topbar-brand .brand-image {
        display: block;
        width: 55px;
        height: 55px;
        max-width: 55px;
        max-height: 55px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .topbar-brand .brand-symbol {
        width: 45px;
        height: 45px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .topbar-brand .brand-name {
        font-size: 22px;
        font-weight: 800;
        white-space: nowrap;
    }

@media (max-width: 768px) {
    .topbar-brand .brand-image {
        width: 42px;
        height: 42px;
        max-width: 42px;
        max-height: 42px;
    }

    .topbar-brand .brand-name {
        font-size: 18px;
    }
}
/* چیدمان نوار بالایی بی‌تایل */
.topbar-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
}

/* لوگو و نام فروشگاه */
.topbar-brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

    .topbar-brand .brand-image {
        display: block;
        width: 55px;
        height: 55px;
        max-width: 55px;
        max-height: 55px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .topbar-brand .brand-symbol {
        flex-shrink: 0;
    }

    .topbar-brand .brand-name {
        white-space: nowrap;
    }

/* توضیحات فروشگاه */
.topbar-inner > small,
.topbar-slogan,
.topbar-inner > span {
    margin: 0;
}

/* انتخاب رنگ قالب */
.theme-picker {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    white-space: nowrap;
}

/* نوار منو */
.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .topbar-slogan {
        width: 100%;
    }

    .theme-picker {
        width: 100%;
    }

    .header-inner {
        justify-content: center;
    }

    .nav {
        justify-content: center;
        gap: 12px;
    }
}
.theme-white {
    background: #ffffff;
    border: 2px solid #c7c7c7;
    outline: 1px solid #d5d5d5;
}

/* کلید شب و روز بی‌تایل */
.theme-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    white-space: nowrap;
}

.theme-switch-label {
    font-size: 13px;
    color: var(--bt-text);
}

.theme-switch {
    position: relative;
    width: 76px;
    height: 36px;
    padding: 0;
    border: 1px solid #cbd0d5;
    border-radius: 30px;
    background: #e9edf2;
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .25s ease;
}

.theme-switch-icon {
    z-index: 1;
    width: 28px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

.theme-sun {
    color: #c58b13;
}

.theme-moon {
    color: #536174;
}

.theme-switch-knob {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px #0002;
    transition: transform .25s ease, background .25s ease;
}

html[data-theme="dark"] .theme-switch {
    background: #263343;
    border-color: #455365;
}

html[data-theme="dark"] .theme-switch-knob {
    transform: translateX(-40px);
    background: #111923;
}

html[data-theme="dark"] .theme-sun {
    color: #9ba8b8;
}

html[data-theme="dark"] .theme-moon {
    color: #f4d477;
}

@media (max-width: 768px) {
    .theme-switch-wrap {
        justify-content: center;
    }
}
/* حالت روشن - روز */
html[data-theme="light"] {
    color-scheme: light;
    --bt-green: #075446;
    --bt-green-dark: #063f36;
    --bt-green-light: #e7f2ed;
    --bt-green-hover: #0b6b58;
    --bt-cream: #ffffff;
    --bt-gold: #c49a45;
    --bt-white: #ffffff;
    --bt-text: #292929;
    --bt-muted: #666666;
    --bt-border: #e2e2e2;
    --bt-danger: #c62828;
}

/* حالت تیره - شب */
html[data-theme="dark"] {
    color-scheme: dark;
    --bt-green: #172b29;
    --bt-green-dark: #101d1c;
    --bt-green-light: #263a37;
    --bt-green-hover: #31534b;
    --bt-cream: #18211f;
    --bt-gold: #e1bc6b;
    --bt-white: #202b29;
    --bt-text: #f1f3f2;
    --bt-muted: #b6c0bc;
    --bt-border: #394641;
    --bt-danger: #ff7777;
}

    html[data-theme="dark"] body {
        background-color: #18211f;
        color: #f1f3f2;
    }

    html[data-theme="dark"] .topbar,
    html[data-theme="dark"] .header {
        background-color: #101d1c;
        color: #ffffff;
    }

    html[data-theme="dark"] .product-card,
    html[data-theme="dark"] .category-card,
    html[data-theme="dark"] .contact-card {
        background-color: #202b29;
        color: #f1f3f2;
        border-color: #394641;
    }

    html[data-theme="dark"] input,
    html[data-theme="dark"] textarea,
    html[data-theme="dark"] select {
        background-color: #202b29;
        color: #f1f3f2;
        border-color: #394641;
    }

/* ===== هدر جدید بی‌تایل ===== */

.topbar {
    background: var(--bt-green, #075446);
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
}

.topbar-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-separator {
    opacity: .6;
}

/* بخش برند */
.brand-header {
    background: var(--bt-white, #fff);
    color: var(--bt-text, #292929);
    border-bottom: 1px solid var(--bt-border, #e2e2e2);
    padding: 22px 0;
}

.brand-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

    .topbar-brand .brand-image {
        width: 76px;
        height: 76px;
        max-width: 76px;
        max-height: 76px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .topbar-brand .brand-symbol {
        width: 66px;
        height: 66px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: var(--bt-green, #075446);
        color: #fff;
        font-size: 36px;
        font-weight: 800;
        flex-shrink: 0;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.topbar-brand .brand-name {
    font-size: 29px;
    font-weight: 900;
    line-height: 1.4;
    white-space: nowrap;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--bt-muted, #666);
    white-space: nowrap;
}

.brand-slogan {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    line-height: 1.9;
    color: var(--bt-text, #292929);
}

/* کلید روز و شب */
.theme-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.theme-switch-label {
    font-size: 13px;
    color: var(--bt-text, #292929);
}

.theme-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    width: 76px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--bt-border, #d5d5d5);
    border-radius: 30px;
    background: #e9edf2;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-switch-icon {
    z-index: 1;
    width: 30px;
    text-align: center;
    font-size: 21px;
    line-height: 1;
    pointer-events: none;
}

.theme-sun {
    color: #c58b13;
}

.theme-moon {
    color: #536174;
}

.theme-switch-knob {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px #0002;
    transition: transform .25s ease;
}

html[data-theme="dark"] .theme-switch {
    background: #263343;
}

html[data-theme="dark"] .theme-switch-knob {
    transform: translateX(-38px);
    background: #101923;
}

html[data-theme="dark"] .theme-sun {
    color: #9ba8b8;
}

html[data-theme="dark"] .theme-moon {
    color: #f4d477;
}

/* منوی اصلی */
.header {
    background: var(--bt-green, #075446);
    color: #fff;
    border-bottom: 3px solid var(--bt-gold, #c49a45);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

    .nav a {
        color: #fff;
        text-decoration: none;
        padding: 22px 0;
        border-bottom: 2px solid transparent;
        transition: border-color .2s ease;
    }

        .nav a:hover {
            border-bottom-color: var(--bt-gold, #c49a45);
        }

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--bt-gold, #c49a45);
    color: #172b29;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

/* حالت تیره */
html[data-theme="dark"] .brand-header {
    background: #18211f;
    color: #f1f3f2;
    border-color: #394641;
}

html[data-theme="dark"] .brand-slogan,
html[data-theme="dark"] .theme-switch-label {
    color: #f1f3f2;
}

/* نمایش موبایل */
@media (max-width: 900px) {
    .brand-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .brand-slogan {
        order: 3;
        width: 100%;
    }

    .nav {
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .topbar-info {
        justify-content: center;
        text-align: center;
    }

    .brand-header-inner {
        justify-content: center;
        gap: 18px;
    }

    .topbar-brand .brand-image {
        width: 54px;
        height: 54px;
    }

    .topbar-brand .brand-symbol {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .topbar-brand .brand-name {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .brand-slogan {
        font-size: 14px;
    }

    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }

    .nav {
        justify-content: center;
        gap: 8px 18px;
    }

        .nav a {
            padding: 8px 0;
            font-size: 13px;
        }
}

/* ===== فوتر بی‌تایل ===== */

.footer {
    margin-top: 55px;
    padding: 45px 0 0;
    background: var(--bt-green-dark, #063f36);
    color: #fff;
    border-top: 4px solid var(--bt-gold, #c49a45);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr .7fr 1fr;
    gap: 45px;
    padding-bottom: 35px;
}

.footer-column {
    min-width: 0;
}

    .footer-column h3 {
        margin: 0 0 20px;
        padding-bottom: 12px;
        font-size: 17px;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.footer-brand-symbol {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bt-gold, #c49a45);
    color: #173b32;
    font-size: 27px;
    font-weight: 900;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .footer-brand-text strong {
        font-size: 22px;
    }

    .footer-brand-text small {
        font-size: 12px;
        opacity: .8;
    }

.footer-description {
    margin: 20px 0 14px;
    color: rgba(255,255,255,.8);
    line-height: 2;
    font-size: 14px;
}

.footer-copyright {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.65);
    line-height: 2;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .footer-navigation a {
        display: block;
        margin-bottom: 13px;
        color: rgba(255,255,255,.82);
        text-decoration: none;
        transition: color .2s ease, transform .2s ease;
    }

        .footer-navigation a:hover {
            color: var(--bt-gold, #c49a45);
            transform: translateX(-3px);
        }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.footer-contact-label {
    flex: 0 0 52px;
    color: var(--bt-gold, #c49a45);
    font-weight: 700;
}

.footer-map-link {
    display: inline-block;
    margin-top: 5px;
    color: var(--bt-gold, #e1bc6b);
    text-decoration: none;
    font-size: 13px;
}

    .footer-map-link:hover {
        text-decoration: underline;
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.17);
    font-size: 12px;
    color: rgba(255,255,255,.7);
}

    .footer-bottom a {
        color: #fff;
        text-decoration: none;
    }

        .footer-bottom a:hover {
            color: var(--bt-gold, #e1bc6b);
        }

/* موبایل و تبلت */
@media (max-width: 800px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer {
        padding-top: 32px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-about {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* حالت شب */
html[data-theme="dark"] .footer {
    background: #101917;
    color: #f1f3f2;
}

.hero-art {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
}

.hero-slider {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-radius: 20px;
    background: #e9e5df;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 35px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
}

    .hero-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

.hero-art-inner {
    max-width: 440px;
    color: #fff;
    text-align: right;
    direction: rtl;
    position: relative;
    z-index: 2;
}

    .hero-art-inner strong {
        display: block;
        font-size: clamp(23px, 3vw, 36px);
        line-height: 1.8;
        margin-bottom: 12px;
    }

    .hero-art-inner span {
        display: block;
        font-size: 16px;
        line-height: 2;
    }

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #222;
    font-size: 22px;
    cursor: pointer;
    transition: background .2s;
}

    .hero-arrow:hover {
        background: #fff;
    }

.hero-prev {
    left: 15px;
}

.hero-next {
    right: 15px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: all .3s;
}

    .hero-dot.active {
        width: 28px;
        border-radius: 10px;
        background: #fff;
    }

@media (max-width: 600px) {
    .hero-slider {
        height: 280px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-art-inner strong {
        font-size: 24px;
    }

    .hero-art-inner span {
        font-size: 14px;
    }
}


.hero-slider {
    position: relative;
    width: 100%;
    min-height: 380px;
    overflow: hidden;
    border-radius: 16px;
    background: #26352f;
}

    .hero-slider .hero-slide {
        display: none;
        position: absolute;
        inset: 0;
        width: 100%;
        min-height: 380px;
        padding: 35px;
        box-sizing: border-box;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        align-items: center;
    }

        .hero-slider .hero-slide.active {
            display: flex;
        }

    .hero-slider .hero-art-inner {
        position: relative;
        z-index: 1;
        max-width: 480px;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,.55);
    }

        .hero-slider .hero-art-inner strong {
            display: block;
            font-size: 28px;
            line-height: 1.8;
        }

        .hero-slider .hero-art-inner span {
            display: block;
            margin-top: 10px;
            font-size: 16px;
            line-height: 1.8;
        }

    .hero-slider .hero-arrow {
        position: absolute;
        z-index: 3;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 50%;
        background: rgba(255,255,255,.9);
        color: #173b32;
        cursor: pointer;
    }

    .hero-slider .hero-prev {
        right: 15px;
    }

    .hero-slider .hero-next {
        left: 15px;
    }

    .hero-slider .hero-dots {
        position: absolute;
        z-index: 3;
        bottom: 18px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 9px;
    }

    .hero-slider .hero-dot {
        width: 10px;
        height: 10px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255,255,255,.6);
        cursor: pointer;
    }

        .hero-slider .hero-dot.active {
            background: #fff;
            transform: scale(1.25);
        }

@media (max-width: 600px) {
    .hero-slider,
    .hero-slider .hero-slide {
        min-height: 300px;
    }

        .hero-slider .hero-slide {
            padding: 25px;
        }

        .hero-slider .hero-art-inner strong {
            font-size: 22px;
        }

        .hero-slider .hero-art-inner span {
            font-size: 14px;
        }
}
/* متن اسلایدر در پایین تصویر، بدون کادر */
.hero-slider .hero-slide {
    align-items: flex-end;
    padding: 20px 35px 15px !important;
}

.hero-slider .hero-art-inner {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 360px;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff;
    text-align: right;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .8);
}

    .hero-slider .hero-art-inner strong {
        display: block;
        margin: 0 0 2px;
        padding: 0;
        font-size: 18px;
        line-height: 1.6;
        background: transparent !important;
        border: none !important;
    }

    .hero-slider .hero-art-inner span {
        display: block;
        margin: 0;
        padding: 0;
        font-size: 12px;
        line-height: 1.6;
        background: transparent !important;
        border: none !important;
    }

@media (max-width: 600px) {
    .hero-slider .hero-slide {
        padding: 15px 20px 12px !important;
    }

    .hero-slider .hero-art-inner strong {
        font-size: 16px;
    }

    .hero-slider .hero-art-inner span {
        font-size: 11px;
    }
}
/* لینک تماس */
.footer-phone-link {
    color: inherit;
    text-decoration: none;
    direction: ltr;
    display: inline-block;
}

    .footer-phone-link:hover {
        color: var(--bt-gold);
        text-decoration: underline;
    }

/* شبکه های اجتماعی */
.footer-social {
    margin-top: 22px;
}

    .footer-social h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bt-border);
    border-radius: 50%;
    color: var(--bt-text);
    text-decoration: none;
    font-size: 19px;
    transition: transform .2s ease, background .2s ease;
}

    .social-icon:hover {
        transform: translateY(-3px);
        background: var(--bt-green);
        color: #fff;
    }

    .social-icon.rubika {
        font-size: 20px;
        font-weight: bold;
    }

@media (max-width: 600px) {
    .footer-social-links {
        gap: 8px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }
}

/* رنگ اختصاصی شبکه‌های اجتماعی */
.footer-social-links .social-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 21px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
    transition: transform .2s ease, box-shadow .2s ease;
}

    /* Instagram */
    .footer-social-links .social-icon.instagram {
        background: linear-gradient( 45deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 75%, #4f5bd5 100% );
    }

    /* Telegram */
    .footer-social-links .social-icon.telegram {
        background: #229ED9;
    }

    /* Rubika */
    .footer-social-links .social-icon.rubika {
        background: #7B2CBF;
        font-size: 23px;
        font-weight: bold;
    }

    /* WhatsApp */
    .footer-social-links .social-icon.whatsapp {
        background: #25D366;
    }

    /* افکت هنگام رفتن ماوس روی آیکن */
    .footer-social-links .social-icon:hover {
        color: #fff;
        transform: translateY(-4px) scale(1.06);
        box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
    }

@media (max-width: 600px) {
    .footer-social-links .social-icon {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }
}
.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--bt-gold);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

    .footer-map-link:hover {
        color: var(--bt-green);
        transform: translateX(-3px);
        text-decoration: none;
    }
.contact-page {
    padding: 45px 0 65px;
}

.contact-page-heading {
    margin-bottom: 30px;
    text-align: center;
}

    .contact-page-heading h1 {
        margin-bottom: 10px;
        color: var(--bt-text);
        font-size: 28px;
    }

    .contact-page-heading p {
        color: var(--bt-muted);
        line-height: 2;
    }

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: stretch;
}

.contact-info-card,
.contact-map-card {
    padding: 24px;
    border: 1px solid var(--bt-border);
    border-radius: 16px;
    background: var(--bt-white);
}

    .contact-info-card h2 {
        margin: 0 0 20px;
        font-size: 20px;
        color: var(--bt-text);
    }

.contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
    color: var(--bt-text);
    line-height: 2;
}

    .contact-info-row strong {
        color: var(--bt-muted);
    }

    .contact-info-row a {
        color: var(--bt-green);
        text-decoration: none;
        direction: ltr;
    }

.contact-directions-btn {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--bt-green);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .contact-directions-btn:hover {
        opacity: .9;
        color: #fff;
    }

.contact-map-frame {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

    .contact-map-frame iframe {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 350px;
        border: 0;
        border-radius: 10px;
    }

.contact-map-placeholder {
    display: flex;
    min-height: 350px;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bt-muted);
}

.contact-map-pin {
    color: var(--bt-green);
    font-size: 44px;
}

.contact-map-placeholder h3 {
    color: var(--bt-text);
}

@media (max-width: 768px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-heading h1 {
        font-size: 23px;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        min-height: 280px;
    }
}

/* رنگ اصلی برند پیام‌رسان‌ها در Hero */

.hero-social-links .hero-social-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    color: #fff !important;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .16);
    transition: transform .2s ease, box-shadow .2s ease;
}

    /* Instagram */
    .hero-social-links .hero-social-icon.instagram {
        background: linear-gradient( 45deg, #FCAF45 0%, #F77737 25%, #E1306C 50%, #C13584 70%, #833AB4 85%, #5851DB 100% );
    }

    /* Telegram */
    .hero-social-links .hero-social-icon.telegram {
        background: #0088CC;
    }

    /* WhatsApp */
    .hero-social-links .hero-social-icon.whatsapp {
        background: #25D366;
    }

    /* Rubika - رنگ تقریبی برند */
    .hero-social-links .hero-social-icon.rubika {
        background: #7B2CBF;
        font-size: 23px;
        font-weight: 800;
    }

    .hero-social-links .hero-social-icon:hover {
        color: #fff !important;
        transform: translateY(-3px) scale(1.06);
        box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
    }

@media (max-width: 600px) {
    .hero-social-links .hero-social-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}



/* ==========================
   BTILE - Cart Page
   ========================== */

.cart-page {
    padding-top: 35px;
    padding-bottom: 60px;
    color: var(--bt-text);
}

.cart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.cart-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--bt-green);
    font-size: 13px;
    font-weight: 700;
}

.cart-heading h1 {
    margin: 0 0 8px;
    color: var(--bt-text);
    font-size: 27px;
    font-weight: 800;
}

.cart-heading p {
    margin: 0;
    color: var(--bt-muted);
    font-size: 13px;
    line-height: 2;
}

.cart-back-link {
    flex-shrink: 0;
    color: var(--bt-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

    .cart-back-link:hover {
        text-decoration: underline;
    }

.cart-card {
    overflow: hidden;
    background: var(--bt-white);
    border: 1px solid var(--bt-border);
    border-radius: 16px;
    box-shadow: 0 5px 22px rgba(0, 0, 0, .035);
}

.cart-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--bt-border);
}

    .cart-card-heading h2 {
        margin: 0;
        color: var(--bt-text);
        font-size: 18px;
        font-weight: 800;
    }

    .cart-card-heading span {
        color: var(--bt-muted);
        font-size: 12px;
    }

.cart-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: right;
    color: var(--bt-text);
}

    .cart-table th {
        padding: 16px 14px;
        background: rgba(128, 128, 128, .07);
        color: var(--bt-muted);
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        border-bottom: 1px solid var(--bt-border);
    }

    .cart-table td {
        padding: 17px 14px;
        font-size: 13px;
        line-height: 1.9;
        vertical-align: middle;
        border-bottom: 1px solid var(--bt-border);
    }

    .cart-table tr:last-child td {
        border-bottom: none;
    }

    .cart-table .qty-input {
        width: 68px;
        min-height: 38px;
        padding: 7px;
        border: 1px solid var(--bt-border);
        border-radius: 8px;
        background: var(--bt-white);
        color: var(--bt-text);
        text-align: center;
        font: inherit;
        outline: none;
    }

        .cart-table .qty-input:focus {
            border-color: var(--bt-green);
            box-shadow: 0 0 0 3px rgba(0, 100, 70, .09);
        }

.cart-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cart-page .btn {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

    .cart-page .btn:hover {
        transform: translateY(-1px);
        opacity: .92;
    }

.cart-page .btn-primary {
    background: var(--bt-green);
    color: #fff;
}

.cart-page .btn-secondary {
    background: transparent;
    border-color: var(--bt-border);
    color: var(--bt-text);
}

.cart-page .btn-update {
    background: rgba(128, 128, 128, .09);
    border-color: var(--bt-border);
    color: var(--bt-text);
}

.cart-page .btn-delete {
    background: rgba(190, 45, 45, .08);
    border-color: rgba(190, 45, 45, .2);
    color: #c0392b;
}

.cart-summary {
    padding: 24px;
    background: rgba(128, 128, 128, .035);
    border-top: 1px solid var(--bt-border);
}

.cart-summary-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

    .cart-summary-info > span {
        color: var(--bt-muted);
        font-size: 14px;
    }

    .cart-summary-info strong {
        color: var(--bt-green);
        font-size: 25px;
        font-weight: 800;
    }

    .cart-summary-info small {
        font-size: 12px;
        font-weight: 500;
    }

.cart-shipping-note {
    margin: 12px 0 20px;
    color: var(--bt-muted);
    font-size: 12px;
    line-height: 2;
}

.cart-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-checkout-btn {
    margin-right: auto;
    min-width: 180px;
}

.cart-empty {
    padding: 55px 20px;
    text-align: center;
    background: var(--bt-white);
    border: 1px solid var(--bt-border);
    border-radius: 16px;
}

.cart-empty-icon {
    margin-bottom: 15px;
    font-size: 42px;
}

.cart-empty h3 {
    margin: 0 0 10px;
    color: var(--bt-text);
    font-size: 20px;
}

.cart-empty p {
    margin: 0 0 22px;
    color: var(--bt-muted);
    font-size: 13px;
    line-height: 2;
}

.cart-message {
    display: block;
    margin-bottom: 18px;
    line-height: 2;
}

@media (max-width: 700px) {
    .cart-page {
        padding-top: 25px;
        padding-bottom: 40px;
    }

    .cart-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

        .cart-heading h1 {
            font-size: 23px;
        }

    .cart-card-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .cart-summary {
        padding: 18px;
    }

    .cart-summary-info strong {
        font-size: 21px;
    }

    .cart-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .cart-actions .btn {
            width: 100%;
            box-sizing: border-box;
        }

    .cart-checkout-btn {
        grid-column: 1 / -1;
        margin-right: 0;
    }

    .cart-empty {
        padding: 40px 16px;
    }
}

```css
/* ==========================
   BTILE - Checkout Page
   ========================== */
.checkout-page {
    padding-top: 35px;
    padding-bottom: 60px;
    color: var(--bt-text);
}

.checkout-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.checkout-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--bt-green);
    font-size: 13px;
    font-weight: 800;
}

.checkout-heading h1 {
    margin: 0 0 9px;
    color: var(--bt-text);
    font-size: 27px;
    font-weight: 800;
}

.checkout-heading p {
    margin: 0;
    color: var(--bt-muted);
    font-size: 13px;
    line-height: 2;
}

.checkout-back-link {
    flex-shrink: 0;
    color: var(--bt-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

    .checkout-back-link:hover {
        text-decoration: underline;
    }

.checkout-message {
    display: block;
    margin-bottom: 18px;
    line-height: 2;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    align-items: start;
    gap: 22px;
}

.checkout-panel {
    min-width: 0;
    padding: 24px;
    background: var(--bt-white);
    border: 1px solid var(--bt-border);
    border-radius: 16px;
    box-shadow: 0 5px 22px rgba(0, 0, 0, .035);
}

.checkout-panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bt-border);
}

.checkout-step {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(0, 100, 70, .09);
    color: var(--bt-green);
    font-size: 16px;
    font-weight: 800;
}

.checkout-panel-heading h2 {
    margin: 0 0 5px;
    color: var(--bt-text);
    font-size: 17px;
    font-weight: 800;
}

.checkout-panel-heading p {
    margin: 0;
    color: var(--bt-muted);
    font-size: 12px;
    line-height: 1.9;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
}

.checkout-field {
    min-width: 0;
}

.checkout-field-full {
    grid-column: 1 / -1;
}

.checkout-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--bt-text);
    font-size: 13px;
    font-weight: 700;
}

.checkout-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--bt-border);
    border-radius: 9px;
    background: var(--bt-white);
    color: var(--bt-text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.9;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

textarea.checkout-input {
    resize: vertical;
    min-height: 95px;
}

.checkout-input:focus {
    border-color: var(--bt-green);
    box-shadow: 0 0 0 3px rgba(0, 100, 70, .09);
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.checkout-btn {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

    .checkout-btn:hover {
        transform: translateY(-1px);
        opacity: .92;
    }

.checkout-btn-primary {
    background: var(--bt-green);
    color: #fff;
}

.checkout-btn-secondary {
    background: transparent;
    border-color: var(--bt-border);
    color: var(--bt-text);
}

.checkout-summary {
    position: relative;
}

.checkout-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--bt-border);
    font-size: 13px;
}

    .checkout-summary-row > span:first-child {
        color: var(--bt-muted);
    }

    .checkout-summary-row strong {
        color: var(--bt-text);
        font-weight: 800;
        text-align: left;
    }

    .checkout-summary-row small,
    .checkout-summary-total small {
        font-size: 11px;
        font-weight: 500;
    }

.checkout-shipping {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid var(--bt-border);
    border-radius: 11px;
    background: rgba(128, 128, 128, .045);
}

.checkout-shipping-icon {
    font-size: 23px;
}

.checkout-shipping strong {
    display: block;
    margin-bottom: 5px;
    color: var(--bt-text);
    font-size: 13px;
}

.checkout-shipping p {
    margin: 0;
    color: var(--bt-muted);
    font-size: 12px;
    line-height: 2;
}

.checkout-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--bt-border);
}

    .checkout-summary-total > span {
        color: var(--bt-text);
        font-size: 13px;
        font-weight: 700;
    }

    .checkout-summary-total strong {
        color: var(--bt-green);
        font-size: 22px;
        font-weight: 900;
        text-align: left;
        white-space: nowrap;
    }

.checkout-notice {
    margin-top: 8px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(128, 128, 128, .07);
}

    .checkout-notice strong {
        display: block;
        margin-bottom: 5px;
        color: var(--bt-text);
        font-size: 12px;
    }

    .checkout-notice p {
        margin: 0;
        color: var(--bt-muted);
        font-size: 12px;
        line-height: 2;
    }

.checkout-success {
    max-width: 680px;
    margin: 25px auto 0;
    padding: 40px 25px;
    text-align: center;
    background: var(--bt-white);
    border: 1px solid var(--bt-border);
    border-radius: 16px;
    box-shadow: 0 5px 22px rgba(0, 0, 0, .035);
}

.checkout-success-icon {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(0, 150, 90, .1);
    color: var(--bt-green);
    font-size: 32px;
    font-weight: 800;
}

.checkout-success h2 {
    margin: 0 0 15px;
    color: var(--bt-text);
    font-size: 21px;
}

.checkout-success p {
    color: var(--bt-muted);
    font-size: 13px;
    line-height: 2;
}

.checkout-order-number {
    display: inline-block;
    margin: 0 auto 10px;
    padding: 10px 22px;
    border: 1px dashed var(--bt-border);
    border-radius: 9px;
    color: var(--bt-green);
    font-size: 22px;
    font-weight: 900;
    direction: ltr;
}

.checkout-success-description {
    max-width: 500px;
    margin: 12px auto;
}

.checkout-success-actions {
    justify-content: center;
}

@media (max-width: 850px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-summary {
        order: 2;
    }
}

@media (max-width: 600px) {
    .checkout-page {
        padding-top: 25px;
        padding-bottom: 40px;
    }

    .checkout-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

        .checkout-heading h1 {
            font-size: 23px;
        }

    .checkout-panel {
        padding: 18px;
    }

    .checkout-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .checkout-field-full {
        grid-column: auto;
    }

    .checkout-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

        .checkout-actions .checkout-btn {
            width: 100%;
        }

    .checkout-summary-total strong {
        font-size: 19px;
    }

    .checkout-success {
        padding: 30px 18px;
    }
}
.categories .category-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
}

    .categories .category-icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .25s ease;
    }

.categories .category-card:hover .category-icon img {
    transform: scale(1.06);
}