
:root {
    --bg: #1a1a1a;
    --card: #222;
    --border: #444;
    --text: #e0e0e0;
    --accent: #f0d000;
    --accent-hover: #ffea00;
    --success: #2ecc71;
    --danger: #e74c3c;
    --muted: #888;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

button, input, select, textarea, a, span, p,
h1, h2, h3, h4, h5, h6, td, th, label {
    font-family: 'Vazir', Tahoma, sans-serif;
}



@font-face {
    font-family: 'Vazir';
    src: url('/static/fonts/vazir/Vazir-Light-FD-WOL.eot');
    src: url('/static/fonts/vazir/Vazir-Light-FD-WOL.eot?#iefix') format('embedded-opentype'),
         url('/static/fonts/vazir/Vazir-Light-FD-WOL.woff') format('woff'),
         url('/static/fonts/vazir/Vazir-Light-FD-WOL.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/static/fonts/vazir/Vazir-Bold-FD.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* Header */
/* .top-bar {
    margin-bottom: 20px;
    background: #111;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
} */
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
}
/* nav {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}
nav a:not(.nav-deals-btn):hover { color: var(--accent); } */
.user-name { color: var(--muted); font-size: 0.9rem; }
.badge {
    background: var(--accent);
    color: #111;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 4px;
}

/* Buttons */
.btn-primary, .btn-outline, .btn-danger, .btn-success {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--accent);
    color: #111;
    font-weight: bold;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 0.85rem; }

/* Cards & forms */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Messages */
.messages { margin: 12px auto; }
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.alert-success { background: #1a3a2a; border: 1px solid var(--success); }
.alert-error, .alert-danger { background: #3a1a1a; border: 1px solid var(--danger); }
.alert-warning { background: #3a3a1a; border: 1px solid var(--accent); }
.alert-info { background: #1a2a3a; border: 1px solid #3498db; }

/* Categories */
.categories-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    overflow-x: auto;
}
.categories-bar .label {
    color: var(--accent);
    font-weight: bold;
    white-space: nowrap;
    margin-left: 8px;
}
.cat-btn {
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.cat-btn:hover,
.cat-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: #2a2a1a;
}
.nav-arrow {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 6px;
}

/* Search */
.search-fold {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}
.search-fold select,
.search-fold input { flex: 1; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}
th {
    color: var(--muted);
    font-weight: normal;
    font-size: 0.9rem;
}
.total-row {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}
.status-pending { background: #3a3a1a; color: var(--accent); }
.status-confirmed { background: #1a3a2a; color: var(--success); }
.status-preparing { background: #1a2a3a; color: #3498db; }
.status-shipped { background: #2a1a3a; color: #9b59b6; }
.status-completed { background: #1a3a2a; color: var(--success); }
.status-cancelled { background: #3a1a1a; color: var(--danger); }
.status-draft { background: #333; color: #aaa; }

.footer {
    margin-top: 100px;
    padding: 20px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

.auth-box {
    max-width: 420px;
    margin: 40px auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
}
.auth-box h1 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}


select.form-control,
.search-fold select,
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #111;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f0d000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center; /* فاصله فلش از لبه چپ */
    padding: 10px 12px 10px 36px; /* چپ بیشتر = جا برای فلش */
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    direction: rtl;
}

.search-fold select {
    padding-left: 36px;
    background-position: left 14px center;
}



/* ===== Responsive Tables ===== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* اسکرول نرم روی iOS */
  margin-bottom: 8px;
}

/* جدول داخل wrapper */
.table-wrap table {
  width: 100%;
  min-width: 520px; /* حداقل عرض تا ستون‌ها له نشن */
  border-collapse: collapse;
}

/* کمی فشرده‌تر کردن روی موبایل */
@media (max-width: 640px) {
  .table-wrap table {
    font-size: 0.85rem;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 8px 10px;
    white-space: nowrap; /* جلوگیری از شکستن متن داخل سلول */
  }
  /* ستون محصول اجازه داره کمی جمع بشه */
  .table-wrap td:first-child,
  .table-wrap th:first-child {
    white-space: normal;
    min-width: 120px;
  }
}






.delivery-zones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.zones-table {
    width: 100%;
    border-collapse: collapse;
}
.zones-table th,
.zones-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}
.zones-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
}
.zones-table td:last-child {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .delivery-zones-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .delivery-map { order: 1; }
    .delivery-fees { order: 2; }
}





/* HOME.html */
/* HOME.html */
/* HOME.html */
/* HOME.html */
/* HOME.html */
/* HOME.html */
/* HOME.html */
/* HOME.html */
    .pagination-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 20px 0 32px;
    padding: 12px;
}
.page-btn {
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    min-width: 40px;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
    font-weight: bold;
}
.page-info {
    color: var(--muted);
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container,
main {
    flex: 1 0 auto;   /* محتوا وسط را پر می‌کند */
}

.footer {
    margin-top: auto; /* همیشه پایین */
    flex-shrink: 0;
    padding: 20px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

/* Special Sell */
/* ===== فروش ویژه (FOLD اول) ===== */
.promo-fold {
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 14px 14px 16px;
    background: linear-gradient(135deg, #2a1212 0%, #1a1a1a 55%);
    border: 1px solid #5c1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.promo-fold-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.promo-fold-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ff4d4d;
    letter-spacing: 0.02em;
}

.promo-fold-hint {
    font-size: 0.8rem;
    color: #a88;
}

.promo-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.promo-track::-webkit-scrollbar {
    height: 4px;
}
.promo-track::-webkit-scrollbar-thumb {
    background: #5c1a1a;
    border-radius: 4px;
}

.promo-card {
    flex: 0 0 auto;
    width: 160px;
    min-height: 88px;
    scroll-snap-align: start;
    background: #1e1e1e;
    border: 1px solid #4a2020;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: right;
    cursor: pointer;
    color: var(--text, #e0e0e0);
    font-family: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-card:hover,
.promo-card:focus {
    border-color: #ff4d4d;
    box-shadow: 0 4px 14px rgba(255, 60, 60, 0.2);
    transform: translateY(-2px);
    outline: none;
}

.promo-badge {
    align-self: flex-start;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.4;
}

.promo-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-card-sub {
    font-size: 0.72rem;
    color: #999;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* مودال */
.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.promo-modal-box {
    background: #1a1a1a;
    border: 1px solid #5c1a1a;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px 18px 18px;
    position: relative;
}

.promo-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #333;
    color: #eee;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
}

.promo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.9rem;
}
.promo-table th,
.promo-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #333;
    text-align: right;
}
.promo-table th {
    color: #888;
    font-size: 0.8rem;
}

/* موبایل */
@media (max-width: 640px) {
    .promo-fold {
        padding: 12px 10px 14px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    .promo-card {
        width: 140px;
        min-height: 82px;
        padding: 9px 10px;
    }
    .promo-card-title {
        font-size: 0.85rem;
    }
    .promo-modal-box {
        max-width: 100%;
        padding: 18px 14px 14px;
    }
}



.promo-card {
    flex: 0 0 auto;
    width: 168px;
    margin:10px;
    min-height: 100px;
    scroll-snap-align: start;
    background: #1e1e1e;
    border: 1px solid #5c2020;
    border-radius: 12px;
    padding: 10px 12px 12px;
    text-align: right;
    cursor: pointer;
    color: var(--text, #e0e0e0);
    font-family: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.15s, box-shadow 0.15s;
    /* حلقه نورانی */
    box-shadow:
        0 0 0 1px rgba(255, 77, 77, 0.35),
        0 0 12px rgba(255, 60, 60, 0.25);
    animation: promo-glow 2.2s ease-in-out infinite;
}

@keyframes promo-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 77, 77, 0.35),
            0 0 10px rgba(255, 60, 60, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(255, 90, 90, 0.7),
            0 0 18px rgba(255, 50, 50, 0.45);
    }
}

.promo-card:hover,
.promo-card:focus {
    transform: translateY(-3px) scale(1.02);
    animation: none;
    box-shadow:
        0 0 0 2px #ff4d4d,
        0 8px 20px rgba(255, 50, 50, 0.35);
    outline: none;
}

/* دعوت به کلیک */
.promo-card-cta {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff6b6b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.promo-card-cta::after {
    content: ">";
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .promo-card { animation: none; }
}


/* Stroies */

.stories-fold {
    margin: 12px 0 8px;
    padding: 8px 0;
}
.stories-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 4px 10px;
    -webkit-overflow-scrolling: touch;
}
.story-circle {
    flex: 0 0 auto;
    width: 74px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    text-align: center;
}
.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f0d000, #e74c3c, #f0d000);
    display: inline-flex;
    box-sizing: border-box;
}
.story-ring img,
.story-letter {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    border: 2px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #f0d000;
}
.story-label {
    display: block;
    font-size: 0.68rem;
    margin-top: 6px;
    color: #ccc;
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.story-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.story-modal-box {
    position: relative;
    width: min(420px, 100%);
    max-height: 90vh;
}
.story-modal-close {
    position: absolute;
    top: -36px;
    left: 0;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    z-index: 2;
}
.story-video {
    width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    background: #000;
    display: block;
}
.story-cta-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    font-size: 0.95rem;
}




.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    display: inline-flex;
    box-sizing: border-box;
    position: relative;
    background: conic-gradient(
        from 0deg,
        #f0d000,
        #e74c3c,
        #f0d000,
        #e74c3c,
        #f0d000
    );
    animation: story-spin 2.8s linear infinite;
}

@keyframes story-spin {
    to { transform: rotate(360deg); }
}

/* عکس/حرف برعکس نچرخد */
.story-ring img,
.story-letter {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    border: 2px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #f0d000;
    animation: story-spin-reverse 2.8s linear infinite;
}

@keyframes story-spin-reverse {
    to { transform: rotate(-360deg); }
}

/* دکمه play روی وسط دایره */
.story-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    animation: story-spin-reverse 2.8s linear infinite;
}
.story-play::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .story-ring,
    .story-ring img,
    .story-letter,
    .story-play {
        animation: none;
    }
}


.search-fold {
    display: flex;
    flex-direction: row-reverse; /* در RTL: دسته سمت چپ بصری، یا بدون این با order */
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.search-fold .search-cat {
    flex: 0 0 140px;
    max-width: 140px;
    min-width: 120px;
}

.search-fold .search-q {
    flex: 1 1 180px;
    min-width: 0;
}

.search-fold .search-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .search-fold {
        flex-direction: column;
        align-items: stretch;
    }
    .search-fold .search-cat {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
        order: 1;
    }
    .search-fold .search-q {
        width: 100%;
        order: 2;
    }
    .search-fold .search-btn {
        width: 100%;
        order: 3;
    }
}










.search-fold {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.search-fold .search-cat,
.search-fold #categorySelect {
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
    height: 44px;
    min-height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
}

.search-fold .search-q,
.search-fold #searchInput {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
}

.search-fold .search-btn {
    flex: 0 0 auto;
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    white-space: nowrap;
}

/* فقط موبایل: زیر هم */
@media (max-width: 640px) {
    .search-fold {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .search-fold .search-cat,
    .search-fold #categorySelect {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        order: 1;
    }
    .search-fold .search-q,
    .search-fold #searchInput {
        width: 100%;
        flex: 0 0 auto;
        order: 2;
    }
    .search-fold .search-btn {
        width: 100%;
        order: 3;
    }
}





/* TAG */
.menu-tags-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}



.menu-tags-arrow {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 100%;
    min-height: 85px;
    border-radius: 10px;          /* مستطیل با گوشه کمی گرد */
    border: 1px solid var(--border);
    background: #111;
    color: var(--accent);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu-tags-arrow:hover {
    border-color: var(--accent);
    background: #1a1a1a;
}

@media (max-width: 640px) {
    .menu-tags-arrow {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        min-height: 64px;
        font-size: 1.5rem;
    }
}


.menu-tags {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: auto auto;   /* دو ردیف */
    grid-auto-flow: column;          /* ستون‌ها افقی پر می‌شوند */
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 4px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;           /* فایرفاکس */
    padding-right: 10px;
}
.menu-tags::-webkit-scrollbar {
    display: none;
}

.menu-tag {
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    white-space: nowrap;
    min-width: 72px;
    text-align: center;
}

.menu-tag:hover,
.menu-tag.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #111;
}






.menu-tag-all:not(.active) {
    border: 1px dashed #e74c3c;
    color: #e74c3c;
    background: #111;
}

.menu-tag-all.active {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #111;
}












/* BASE.html */
/* BASE.html */
/* BASE.html */
/* BASE.html */
/* BASE.html */
/* BASE.html */
/* BASE.html */
/* فقط موبایل — دسکتاپ دست نمی‌خورد */
@media (max-width: 640px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    .container {
        max-width: 100%;
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }
    .card {
        max-width: 100%;
        overflow-x: auto;
        box-sizing: border-box;
        padding: 12px;
    }
    .table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        box-sizing: border-box;
    }
    .table-wrap table {
        width: 100%;
        min-width: 520px;
        border-collapse: collapse;
        margin: 0;
    }
    .top-bar .container {
        flex-wrap: wrap;
        gap: 8px;
    }
    nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    nav a,
    nav .user-name,
    nav .btn-outline {
        flex-shrink: 0;
        font-size: 0.85rem;
    }
}

.footer {
    margin-top: auto; /* همیشه پایین */
    flex-shrink: 0;
    padding: 20px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}


/*  Mega Menu */
/* ===== Drawer Menu (تمیز — بدون تکرار) ===== */
/* 
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 44px;
    height: 40px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}
.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    height: 100dvh;
    background: #141414;
    border-left: 1px solid var(--border);
    z-index: 10001;
    padding: 0 0 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(110%);
    transition: transform .28s ease;
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0,0,0,.4);
}
.drawer-nav.is-open {
    transform: translateX(0);
}


.drawer-header {
    position: relative;
    height: 56px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.drawer-close {
    position: absolute !important;
    top: 8px !important;
    left: 100px !important;
    right: auto !important;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.drawer-nav a,
.drawer-nav .user-name {
    display: block;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid #2a2a2a;
}
.drawer-nav a:hover {
    background: #1c1c1c;
    color: var(--accent);
}
.drawer-nav .btn-outline,
.drawer-nav .btn-primary {
    margin: 12px 16px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .top-bar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 769px) {
    .nav-toggle,
    .nav-backdrop,
    .drawer-nav {
        display: none !important;
    }
}



.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.desktop-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}
.desktop-nav a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .desktop-nav { display: none !important; }
    .nav-toggle { display: flex; }
}

@media (min-width: 769px) {
    .nav-toggle,
    .nav-backdrop,
    .drawer-nav {
        display: none !important;
    }
    .desktop-nav {
        display: flex !important;
    }
}


 */


















/* LANDING.html */
/* LANDING.html */
/* LANDING.html */
/* LANDING.html */
/* LANDING.html */
/* LANDING.html */
/* LANDING.html */
/* LANDING.html */

.landing-hero {
    text-align: center;
    padding: 36px 16px 28px;
    background: linear-gradient(135deg, #2a1a00 0%, #1a1a1a 60%);
    border: 1px solid #5c3d00;
    border-radius: 16px;
    margin: 20px 0 28px;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(240,208,0,0.12), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(231,76,60,0.08), transparent 45%);
    pointer-events: none;
}
.landing-hero h1 {
    font-size: 1.8rem;
    color: #f0d000;
    margin-bottom: 8px;
    position: relative;
}
.landing-hero p {
    color: #bbb;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.deal-card {
    background: #141414;
    border: 1px solid #3d2e00;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.deal-card:hover {
    transform: translateY(-4px);
    border-color: #f0d000;
    box-shadow: 0 12px 28px rgba(240, 180, 0, 0.18);
}
.deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.deal-img-wrap {
    height: 180px;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.deal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.deal-img-placeholder {
    color: #444;
    font-size: 0.9rem;
}
.deal-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.deal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #eee;
    line-height: 1.4;
}
.deal-sub {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
}
.deal-qty {
    font-size: 0.85rem;
    color: #f0d000;
    margin-top: 4px;
}
.deal-prices {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.deal-price-special {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f0d000;
}
.deal-price-old {
    font-size: 0.8rem;
    color: #777;
    text-decoration: line-through;
}
.deal-save {
    font-size: 0.78rem;
    color: #2ecc71;
    margin-top: 2px;
}
.deal-btn {
    margin-top: auto;
    padding-top: 12px;
}
.deal-btn .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #f0d000, #e6b800);
    color: #111;
    border: none;
    font-weight: 700;
}
.deal-btn .btn-primary:hover {
    filter: brightness(1.08);
}
.landing-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
@media (max-width: 640px) {
    .landing-hero h1 { font-size: 1.4rem; }
    .landing-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .deal-img-wrap { height: 140px; }
}





/* .deal-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

.deal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding-top: 10px;
}
 */




.deal-img-wrap {
    width: 100%;
    height: 280px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.deal-img-wrap img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}


.deal-btn {
    text-align: center;
}

.deal-btn a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;          /* اگر می‌خواهی دکمه تمام عرض باشد */
    padding: 10px 16px;
    box-sizing: border-box;
}











.deal-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;   /* باکس مربعی متناسب با کارت */
    height: auto;          /* ارتفاع ثابت را حذف کن */
    background: #0d0d0d;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* کل بنر داخل باکس */
    object-position: center;
    display: block;
}

@media (max-width: 640px) {
    .landing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .deal-img-wrap {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .deal-img-wrap img {
        object-fit: contain;
    }
}










/* ORDER-DETAIL.html */
/* ORDER-DETAIL.html */
/* ORDER-DETAIL.html */
/* ORDER-DETAIL.html */
/* ORDER-DETAIL.html */
.delivery-zones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.zones-table {
    width: 100%;
    border-collapse: collapse;
}
.zones-table th,
.zones-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}
.zones-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
}
.zones-table td:last-child {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.delivery-map img {
    width: 100%;
    max-height: 500px;      /* ارتفاع حداکثر — عدد را عوض کن */
    object-fit: contain;    /* کل نقشه دیده شود، کش نیاید */
    /* object-fit: cover;  اگر بخواهی کادر را پر کند و گوشه بریده شود */
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    background: #111;
}

@media (max-width: 768px) {
    .delivery-zones-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .delivery-map { order: 1; }
    .delivery-fees { order: 2; }
}


/* Upload */
.receipt-upload-box {
    border: 1px dashed #444;
    border-radius: 12px;
    padding: 18px 16px;
    background: #111;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 14px;
}
.receipt-upload-box:hover,
.receipt-upload-box.dragover {
    border-color: var(--accent);
    background: #1a1808;
}
.receipt-upload-box.has-file {
    border-style: solid;
    border-color: var(--accent);
}
.receipt-upload-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: var(--accent);
}
.receipt-upload-text {
    color: #ccc;
    font-size: 0.9rem;
}
.receipt-upload-hint {
    color: #777;
    font-size: 0.78rem;
    margin-top: 4px;
}
.receipt-upload-name {
    margin-top: 8px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-all;
}
.receipt-upload-box input[type="file"] {
    display: none;
}
.receipt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) {
    .receipt-form-row { grid-template-columns: 1fr; }
}










/* CHECKOUT.html */
/* CHECKOUT.html */
/* CHECKOUT.html */
/* CHECKOUT.html */
/* CHECKOUT.html */
/* CHECKOUT.html */
/* CHECKOUT.html */
/* CHECKOUT.html */
/* CHECKOUT.html */
.delivery-zones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.zones-table { width: 100%; border-collapse: collapse; }
.zones-table th, .zones-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}
.zones-table td:last-child {
    color: var(--accent);
    font-weight: 700;
}
@media (max-width: 768px) {
    .delivery-zones-grid { grid-template-columns: 1fr; }
}
.delivery-map img {
    width: 100%;
    max-height: 500px;      /* ارتفاع حداکثر — عدد را عوض کن */
    object-fit: contain;    /* کل نقشه دیده شود، کش نیاید */
    /* object-fit: cover;  اگر بخواهی کادر را پر کند و گوشه بریده شود */
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    background: #111;
}





/* ===== روش ارسال — رادیوهای شیک ===== */
.delivery-method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    margin: 0;
}

.delivery-option:hover {
    border-color: #5a4a1a;
    background: #1a1a1a;
}

.delivery-option:has(input:checked) {
    border-color: var(--accent);
    background: linear-gradient(135deg, #1f1a0a 0%, #141414 70%);
    box-shadow: 0 0 0 1px rgba(240, 208, 0, 0.25);
}

.delivery-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    border: 2px solid #555;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.delivery-option input[type="radio"]:checked {
    border-color: var(--accent);
    background: #111;
}

.delivery-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.delivery-option input[type="radio"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.delivery-option:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.delivery-option-text {
    flex: 1;
    line-height: 1.5;
}

.delivery-option-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.delivery-option-note {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.delivery-option-disabled-tag {
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 600;
}







/* Story | Testimonial */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .media-row { grid-template-columns: 1fr; }
}

.media-col-head {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0 4px;
}
.stories-head { color: var(--accent, #f0d000); }
.testi-head { color: #2ecc71; }

.stories-fold {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #141414;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 10px 6px;
}
.testi-fold {
  border-color: #1e3d2a;
  background: #0f1a14;
}

.stories-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }

.media-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #7ec8ff;
  font-size: 1.2rem;
  cursor: pointer;
}
.testi-fold .media-arrow {
  color: #2ecc71;
  border-color: #1e3d2a;
}

/* حلقه نظرات: سبز به‌جای زرد/قرمز استوری */
.testi-ring {
  border: 2px solid #2ecc71 !important;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.25);
}
.testi-circle .story-label { color: #a8e6c1; }















/* ===== نحوه تسویه (سبد) ===== */
.pay-mode-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.pay-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    margin: 0;
}

.pay-mode-option:hover {
    border-color: #5a4a1a;
    background: #1a1a1a;
}

.pay-mode-option:has(input:checked) {
    border-color: var(--accent);
    background: linear-gradient(135deg, #1f1a0a 0%, #141414 70%);
    box-shadow: 0 0 0 1px rgba(240, 208, 0, 0.25);
}

.pay-mode-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    border: 2px solid #555;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s;
}

.pay-mode-option input[type="radio"]:checked {
    border-color: var(--accent);
}

.pay-mode-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pay-mode-option-text {
    flex: 1;
    line-height: 1.5;
}

.pay-mode-option-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.pay-mode-option-note {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--muted);
}

.pay-mode-option-pct {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.pay-mode-option-pct.is-zero {
    color: var(--success, #2ecc71);
}









.menu-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    padding: 10px 12px;
}

.menu-tag-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.menu-tag-icon-all,
.menu-tag-icon-fallback {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--accent);
}

.menu-tag-label {
    font-size: 0.8rem;
    white-space: nowrap;
}

.menu-tag.active .menu-tag-icon-all,
.menu-tag.active .menu-tag-icon-fallback {
    border-color: var(--accent);
    background: var(--accent);
    color: #111;
}



/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: #0e0e0e;
    padding: 28px 0 16px;
    color: var(--muted);
    font-size: 0.88rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
.footer-col h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.footer-col a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin: 6px 0;
    font-size: 0.88rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-text {
    color: #999;
    line-height: 1.7;
    margin: 4px 0;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.footer-social a {
    display: inline-block;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 10px;
    margin: 0;
}
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 12px;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}


/* contact */
.about-page { max-width: 1080px; margin: 0 auto 48px; }

/* انیمیشن خیلی سبک */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .45s ease both; }
.reveal-d1 { animation-delay: .06s; }
.reveal-d2 { animation-delay: .12s; }
.reveal-d3 { animation-delay: .18s; }

.section-title {
    color: var(--accent);
    font-size: 1.2rem;
    margin: 40px 0 16px;
    letter-spacing: .02em;
}

/* —— فولد اول: ارتباط + شعب —— */
.top-fold {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 16px;
    margin-top: 12px;
}
.panel {
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}
.panel h3 {
    color: var(--accent);
    margin-bottom: 14px;
    font-size: 1.05rem;
}
.channel-list { display: flex; flex-direction: column; gap: 10px; }
.channel-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    transition: border-color .15s;
}
.channel-item:hover { border-color: #5a4a12; }
.channel-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: #221e0a; color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.channel-meta { min-width: 0; }
.channel-label { font-size: .75rem; color: #888; }
.channel-value { font-size: .95rem; color: #eee; font-weight: 600; word-break: break-all; }
.channel-value a { color: inherit; text-decoration: none; }
.channel-value a:hover { color: var(--accent); }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social-btn {
    width: 44px; height: 44px; border-radius: 12px;
    background: #1a1a1a; border: 1px solid #333;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; transition: border-color .15s, transform .15s;
}
.social-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.social-btn img { width: 24px; height: 24px; object-fit: contain; }

.branch-mini {
    border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden;
    margin-bottom: 12px; background: #111;
}
.branch-mini:last-child { margin-bottom: 0; }
.branch-mini img {
    width: 100%; height: 140px; object-fit: cover; display: block; background: #0d0d0d;
}
.branch-mini-body { padding: 12px 14px; }
.branch-mini-body h4 { color: #f0d000; margin-bottom: 4px; font-size: .95rem; }
.branch-mini-body p { color: #999; font-size: .82rem; line-height: 1.6; margin-bottom: 10px; }
.branch-links { display: flex; flex-wrap: wrap; gap: 6px; }
.branch-links a {
    font-size: .75rem; padding: 6px 10px; border-radius: 8px;
    border: 1px solid #333; color: #ddd; text-decoration: none; background: #1a1a1a;
}
.branch-links a.primary { border-color: var(--accent); color: #111; background: var(--accent); font-weight: 700; }

/* —— ویدیو با دکمه Play لوکس —— */
.video-shell {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #4a3a10;
    background: #000;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.video-shell video {
    width: 100%; aspect-ratio: 16/9; display: block; background: #000;
}
.video-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
    cursor: pointer; transition: opacity .25s;
}
.video-overlay.is-hidden { opacity: 0; pointer-events: none; }
.play-btn {
    width: 78px; height: 78px; border-radius: 50%;
    background: linear-gradient(145deg, #f0d000, #c9a200);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px rgba(240,208,0,.15), 0 10px 30px rgba(0,0,0,.4);
    transition: transform .2s, box-shadow .2s;
}
.play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 14px rgba(240,208,0,.22), 0 14px 36px rgba(0,0,0,.45);
}
.play-btn::after {
    content: "";
    width: 0; height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #111;
    margin-left: 4px;
}
.video-caption {
    padding: 12px 16px; color: #aaa; font-size: .85rem;
    background: #141414; border-top: 1px solid #2a2a2a;
}

/* —— مأموریت / چشم‌انداز —— */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv-card {
    background: #141414; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.mv-card img { width: 100%; height: 180px; object-fit: cover; display: block; background: #0d0d0d; }
.mv-card .body { padding: 16px; }
.mv-card h3 { color: var(--accent); margin-bottom: 8px; }
.mv-card p { color: #ccc; line-height: 1.9; font-size: .9rem; text-align: justify; }

/* —— متن درباره —— */
.about-text-box {
    background: #141414; border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 22px; color: #ccc; line-height: 2; font-size: .95rem; text-align: justify;
}

/* —— تایم‌لاین —— */
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-item {
    display: flex; gap: 14px; padding: 14px 16px;
    background: #141414; border: 1px solid var(--border); border-radius: 12px;
    border-right: 3px solid var(--accent);
}
.tl-year { flex: 0 0 70px; color: var(--accent); font-weight: 800; }
.tl-text { color: #ccc; line-height: 1.7; font-size: .9rem; }

/* —— اسلایدر برندها (مهم) —— */
.brands-section {
    background: linear-gradient(180deg, #1a1608 0%, #121212 100%);
    border: 1px solid #4a3a10;
    border-radius: 18px;
    padding: 22px 16px 18px;
}
.brands-head {
    text-align: center; margin-bottom: 8px;
}
.brands-head h2 { color: var(--accent); font-size: 1.2rem; margin-bottom: 6px; }
.brands-head p { color: #999; font-size: .88rem; line-height: 1.7; max-width: 520px; margin: 0 auto 14px; }

.brand-slider-wrap { position: relative; overflow: hidden; }
.brand-track {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px 4px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.brand-track::-webkit-scrollbar { display: none; }
.brand-card {
    flex: 0 0 140px; scroll-snap-align: start;
    background: #fff; border-radius: 14px;
    height: 88px;
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: transform .2s;
}
.brand-card:hover { transform: translateY(-3px); }
.brand-card img {
    max-width: 100%; max-height: 56px; object-fit: contain;
}
.brand-nav {
    display: flex; justify-content: center; gap: 10px; margin-top: 4px;
}
.brand-nav button {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid #444; background: #1a1a1a; color: var(--accent);
    font-size: 1.2rem; cursor: pointer;
}
.brand-nav button:hover { border-color: var(--accent); }

@media (max-width: 768px) {
    .top-fold, .mv-grid { grid-template-columns: 1fr; }
    .brand-card { flex-basis: 120px; height: 76px; }
}


.brand-marquee {
    overflow: hidden;
    width: 100%;
    direction: ltr; /* مهم: لوپ را LTR حساب می‌کنیم */
}
.brand-marquee-track {
    display: flex;
    flex-direction: row;
    gap: 14px;
    width: max-content;
    will-change: transform;
}
.brand-marquee-track .brand-card {
    flex: 0 0 140px;
}







/* TAG */
.menu-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 88px;
    padding: 1px 1px;
    padding-top: 8px;
}

.menu-tag-icon {
    width: 110px;
    height: 85px;
    object-fit: contain;
    display: block;
}

.menu-tag-icon-all,
.menu-tag-icon-fallback {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.menu-tag-label {
    font-size: 0.85rem;
    white-space: nowrap;
}





.menu-subtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
}
.menu-subtag {
    border: 1px solid var(--border);
    background: #1a1a1a;
    color: #ccc;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.menu-subtag:hover {
    border-color: #5a4a12;
    color: #eee;
}
.menu-subtag.active {
    border-color: var(--accent);
    color: #111;
    background: var(--accent);
    font-weight: 700;
}





/* chat */
.chat-fab-wrap {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.chat-fab-bale { background: #00B894; }
.chat-fab-rubika { background: #7B2CBF; }
.chat-fab svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 640px) {
    .chat-fab-wrap { bottom: 16px; left: 16px; }
    .chat-fab { width: 50px; height: 50px; }
}



.order-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
@media (max-width: 900px) {
    .order-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .order-filters { grid-template-columns: 1fr; }
}


/* مخفی کردن فلش تگ/دسته در موبایل */
@media (max-width: 900px) {
    .menu-tags-arrow {
        display: none !important;
    }
    .menu-tags-wrap {
        gap: 0;
        padding: 0 4px;
    }
    .menu-tags {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .menu-tags::-webkit-scrollbar {
        display: none;
    }
}





/* DRAG */


/* Radius IMAGE */
/* فقط آیکون تگ منو — نه بقیه عکس‌ها */
.menu-tags .menu-tag-icon,
.menu-tag .menu-tag-icon {
    width: 66px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #111;
}

.menu-tags .menu-tag-icon-fallback,
.menu-tag .menu-tag-icon-fallback {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
}



/* عکس محصول — فقط لیست سطری */
.product-results.view-list .product-row .img-box,
.product-row .img-box {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.product-results.view-list .product-row .img-box img,
.product-row .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ستون اول گرید دسکتاپ هم با عکس هم‌عرض شود */
@media (min-width: 901px) {
    .product-results.view-list .product-row {
        grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
    }
}








/* DARK Light Mode */
/* تم روشن */
/* html[data-theme="light"] {
    --bg: #f4f4f5;
    --card: #ffffff;
    --border: #d4d4d8;
    --text: #18181b;
    --accent: #c9a000;
    --accent-hover: #a88600;
    --success: #16a34a;
    --danger: #dc2626;
    --muted: #71717a;
}

html[data-theme="light"] body {
    background: var(--bg);
    color: var(--text);
}

html[data-theme="light"] .top-bar,
html[data-theme="light"] .card,
html[data-theme="light"] .product-row,
html[data-theme="light"] .form-control,
html[data-theme="light"] .menu-tag,
html[data-theme="light"] .search-fold {
    background: var(--card);
    color: var(--text);
}

html[data-theme="light"] .form-control {
    background: #fafafa;
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="light"] .btn-outline {
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="light"] .logo {
    color: var(--accent);
}
 */




/* ADD TO CARD BTN */
.add-btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.add-btn-cart:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 208, 0, 0.25);
}

.add-btn-cart:active {
    transform: scale(0.96);
    box-shadow: none;
}

.add-btn-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.add-btn-plus {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #111;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.2);
}

/* بعد از کلیک موفق می‌توانی کلاس add-btn-pop بدهی */
.add-btn-cart.add-btn-pop {
    animation: addBtnPop 0.35s ease;
}
@keyframes addBtnPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* موبایل: فقط آیکون سبد + پلاس، جمع‌وجور */
@media (max-width: 600px) {
    .product-row .add-btn-cart {
        width: auto;
        min-width: 44px;
        height: 44px;
        padding: 0 12px;
        border-radius: 12px;
        gap: 0;
    }
    .product-row .add-btn-cart .add-btn-text {
        display: none;
    }
    .product-row .add-btn-cart .add-btn-icon svg {
        width: 20px;
        height: 20px;
    }
}





/* ADD TO CARD CARDS  */
.badge-featured {
    background: var(--accent);
    color: #111;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
}

.stock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}
.stock-icon {
    display: inline-flex;
    color: var(--accent);
    opacity: 0.85;
}
.stock-sep { opacity: 0.5; }

.price-old {
    text-decoration: line-through;
    color: #e74c3c;
    font-size: 0.85em;
    display: block;
}
.price-new { font-weight: bold; }

.img-box {
    cursor: pointer;
}
.img-placeholder {
    color: #555;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* موبایل: RTL — راست→چپ: سبد | تعداد | … و قیمت راست، عکس بزرگ */
@media (max-width: 600px) {
    .product-row {
        direction: rtl;
        display: grid;
        grid-template-columns: 1fr 88px;
        grid-template-areas:
            "title  img"
            "price  img"
            "actions actions";
        gap: 10px 12px;
        align-items: start;
        padding: 12px;
    }

    .product-row .title {
        grid-area: title;
        text-align: right;
        min-width: 0;
    }
    .product-row .title strong {
        white-space: normal;
        font-size: 0.95rem;
    }

    .product-row .price {
        
        grid-area: price;
        text-align: right;
        justify-self: stretch;
    }

    .product-row .img-box {
        grid-area: img;
        width: 88px;
        height: 88px;
        min-width: 88px;
        min-height: 88px;
        border-radius: 10px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .product-row .img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 8px;
    }

    /* یک ردیف: از راست سبد، بعد quantity */
    .product-row .qty-control,
    .product-row .add-btn {
        grid-area: auto;
    }

    .product-row {
        /* actions در یک سلول با flex */
    }

    /* qty و btn را با subgrid شبیه‌سازی: هر دو در area actions */
    .product-row .add-btn-cart {
        grid-area: actions;
        justify-self: start; /* در RTL = سمت راست */
        width: auto;
        min-width: 48px;
        height: 44px;
        padding: 0 14px;
        margin-left: auto; /* هل به راست در برخی موتورها؛ در RTL با flex بهتر */
    }
    .product-row .qty-control {
        grid-area: actions;
        justify-self: end;
        width: auto;
        max-width: max-content;
        align-self: center;
    }
}



@media (max-width: 600px) {
    .product-row {
        direction: rtl;
        display: grid;
        grid-template-columns: 1fr 88px;
        grid-template-areas:
            "title   img"
            "price   img"
            "actions actions";
        gap: 10px 12px;
    }

    .product-row .title  { grid-area: title; }
    .product-row .price  { grid-area: price; text-align: right; }
    .product-row .img-box {
        grid-area: img;
        width: 88px;
        height: 88px;
    }

    /* wrapper مجازی نداریم: با display محتویات actions */
}

/* بهتر: یک div.actions در HTML */







/* TABLET */

/* تبلت: یک ردیف افقی مرتب */
@media (max-width: 900px) and (min-width: 601px) {
    .product-row {
        direction: rtl;
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) auto auto;
        grid-template-areas:
            "img title  price price"
            "img title  qty   btn";
        align-items: center;
        column-gap: 12px;
        row-gap: 8px;
    }

    .product-row .img-box {
        grid-area: img;
        width: 80px;
        height: 80px;
        align-self: center;
    }

    .product-row .title {
        grid-area: title;
        text-align: right;
        min-width: 0;
        align-self: center;
    }
    .product-row .title strong {
        white-space: normal;
    }

    .product-row .price {
        grid-area: price;
        text-align: left;
        justify-self: stretch;
        white-space: nowrap;
        padding-left: 4px;
    }

    .product-row .product-actions {
        display: contents;
    }

    .product-row .qty-control {
        grid-area: qty;
        width: auto;
        max-width: max-content;
        justify-self: end;
    }

    .product-row .add-btn,
    .product-row .add-btn-cart {
        grid-area: btn;
        width: auto;
        min-width: 44px;
        height: 42px;
        padding: 0 12px;
        justify-self: start;
    }
}










/* COL <=> ROW */
/* ===== View toggle: list / grid ===== */
.view-toggle {
    display: inline-flex;
    gap: 4px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
}
.view-btn {
    width: 40px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}
.view-btn.is-active {
    background: var(--accent);
    color: #111;
    font-weight: 700;
}

.product-results.view-list {
    display: block;
}

.product-results.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.product-results.view-grid .product-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 0;
    height: 100%;
    padding: 12px;
}

.product-results.view-grid .img-box {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 140px;
    aspect-ratio: 1 / 1;
    order: -2;
    border-radius: 12px;
}
.product-results.view-grid .img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0d0d0d;
}

.product-results.view-grid .title {
    order: -1;
    text-align: center;
}
.product-results.view-grid .title strong {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}
.product-results.view-grid .stock {
    justify-content: center;
    font-size: 0.75rem;
}

.product-results.view-grid .price {
    text-align: center;
}

.product-results.view-grid .qty-control {
    order: 10;
    width: 100%;
    max-width: none;
    justify-content: center;
}

.product-results.view-grid .add-btn-cart {
    order: 11;
    width: 100%;
    height: 44px;
    min-width: 0;
    padding: 0 12px;
    border-radius: 12px;
    margin-top: auto;
}
.product-results.view-grid .add-btn-text {
    display: inline;
}

@media (max-width: 600px) {
    .product-results.view-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-results.view-grid .img-box {
        min-height: 110px;
    }
    .product-results.view-grid .add-btn-text {
        display: none;
    }
}





/* FIX GRID ADD Btn Price Quantity */
.product-results.view-grid .product-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    height: 100%;
    padding: 12px;
    margin-bottom: 0;
}

.product-results.view-grid .img-box {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 140px;
    aspect-ratio: 1 / 1;
    order: 0;
    flex-shrink: 0;
}

.product-results.view-grid .title {
    order: 1;
    text-align: center;
    flex: 1 1 auto; /* عنوان فضای وسط را می‌گیرد */
    min-height: 3.2em;
}
.product-results.view-grid .title strong {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-results.view-grid .stock {
    justify-content: center;
    font-size: 0.72rem;
}

/* بلوک پایین: قیمت + qty + دکمه — چسبیده به هم */
.product-results.view-grid .price,
.product-results.view-grid .qty-control,
.product-results.view-grid .add-btn-cart {
    order: 2;
}

.product-results.view-grid .price {
    margin-top: auto;          /* کل بلوک پایین می‌چسبد */
    text-align: center;
    padding-top: 6px;
    min-height: 2.6em;         /* جای قیمت خط‌خورده یکسان */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.product-results.view-grid .qty-control {
    width: 100%;
    max-width: none;
    justify-content: center;
    margin: 0;
    order: 3;
}

.product-results.view-grid .add-btn-cart {
    width: 100%;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding: 0 12px;
    border-radius: 12px;
    order: 4;
}



@media (max-width: 640px) {
    .view-toggle {
        display: none !important;
    }

    /* حتی اگر localStorage گرید باشد، روی موبایل لیست */
    .product-results.view-grid {
        display: block !important;
    }
    .product-results.view-grid .product-row {
        /* استایل‌های گرید را خنثی کن — همان قوانین موبایل لیست اعمال شود */
        display: grid !important;
        flex-direction: unset;
        height: auto;
        /* اگر از قبل media موبایل برای .product-row داری، همان کافی است */
    }
}


@media (max-width: 640px) {
    .view-toggle {
        display: none !important;
    }

    #productResults.product-results,
    #productResults.product-results.view-grid,
    #productResults.product-results.view-list {
        display: block !important;
    }
}





/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: #141414;
    padding: 28px 0 16px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.footer-col h4 {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 8px;
    opacity: 0.85;
}
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-text {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 8px;
}
.footer-channel {
    margin-bottom: 10px;
}
.footer-channel-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
}
.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1c1c1c;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.footer-social-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.footer-branch { margin-bottom: 14px; }
.footer-branch strong { display: block; margin-bottom: 4px; font-size: 0.9rem; }
.footer-branch-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-branch-links a { display: inline; margin: 0; font-size: 0.8rem; color: var(--accent); }
.footer-bottom {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* آیکون شبکه‌های اجتماعی — وسط */
.footer-col .footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    width: 100%;
}

/* لینک‌های نقشه شعب — وسط */
.footer-col .footer-branch-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

/* اگر کل ستون شعب/برند را هم وسط می‌خواهی */
.footer-col:has(.footer-social-icons),
.footer-col:has(.footer-branch) {
    text-align: center;
}
.footer-col:has(.footer-branch) .footer-branch {
    text-align: center;
}
.footer-col:has(.footer-branch) .footer-text {
    text-align: center;
}

.footer-col-center {
    text-align: center;
}
.footer-col-center .footer-social-icons,
.footer-col-center .footer-branch-links {
    justify-content: center;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}



/* sub tag btn */
/* ظرف ساب‌تگ */
/* ===== ساب‌تگ ساده و قابل‌کلیک ===== */
/* ===== ساب‌تگ — بدون چشمک ===== */
.menu-subtags {
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 4px 8px;
    animation: subIn 0.28s ease both;
}

@keyframes subIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.menu-subtag {
    appearance: none;
    border: 1px solid #5a4a12;
    background: #16140c;
    color: #f0d000;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 0 1px rgba(240, 208, 0, 0.12);
}

.menu-subtag:hover {
    border-color: var(--accent);
    background: #2a2410;
    color: #fff3a0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(240, 208, 0, 0.18);
}

.menu-subtag.active,
.menu-subtag.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #111;
    font-weight: 800;
    box-shadow: none;
    transform: none;
}

































































/* ===== قفل اندازه آیکون تگ‌ها ===== */
.menu-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 88px;
    padding: 12px 14px;
}

.menu-tag-icon,
.menu-tags img.menu-tag-icon {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0;
    background: transparent;
}

.menu-tag-icon-all,
.menu-tag-icon-fallback {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 1rem;
}

/* ===== قفل آیکون شبکه‌های فوتر ===== */
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.footer-social-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #1a1a1a;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
}

.footer-social-icon img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    display: block !important;
}

/* نگذار استایل لینک‌های ستون فوتر روی آیکون اثر بگذارد */
.footer-col a.footer-social-icon {
    display: inline-flex !important;
}




























/* Affiliate Input */
.agent-code-box {
    border: 1px solid #4a3a10;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a1608 0%, #141414 70%);
    margin: 16px 0;
    overflow: hidden;
}
.agent-code-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #eee;
    cursor: pointer;
    text-align: right;
}
.agent-code-toggle:hover { background: rgba(240,208,0,.06); }
.agent-code-toggle-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #221e0a;
    border: 1px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.agent-code-toggle-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.agent-code-toggle-text strong {
    color: var(--accent);
    font-size: 0.95rem;
}
.agent-code-toggle-text small {
    color: #999;
    font-size: 0.8rem;
}
.agent-code-chevron {
    color: var(--accent);
    font-size: 0.75rem;
    transition: transform .2s;
}
.agent-code-box.is-open .agent-code-chevron {
    transform: rotate(180deg);
}
.agent-code-panel {
    padding: 0 16px 16px;
    border-top: 1px solid #333;
}
.agent-code-panel label {
    display: block;
    margin: 12px 0 6px;
    color: #ccc;
    font-size: 0.85rem;
}
.agent-code-input-wrap {
    position: relative;
}
.agent-code-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 700;
    pointer-events: none;
}
.agent-code-input {
    width: 100%;
    padding: 12px 36px 12px 12px !important;
    direction: ltr !important;
    text-align: left !important;
    letter-spacing: 0.04em;
    font-family: ui-monospace, monospace;
    background: #0d0d0d !important;
    border: 1px solid #444 !important;
    border-radius: 10px !important;
    color: #f0d000 !important;
}
.agent-code-input::placeholder {
    color: #666 !important;
    text-align: right;
    direction: rtl;
}
.agent-code-input:focus {
    border-color: var(--accent) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(240,208,0,.2);
}
.agent-code-hint {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 8px;
    line-height: 1.6;
}

























/* ==============================
   Modern Animated Quantity Stepper
================================ */


.qty-control-group {
    display: inline-flex;
    align-items: center;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    height: 46px;
    padding: 5px;

    border-radius: 13px;

    background: linear-gradient(145deg, #252525, #1c1c1c);
    border: 1px solid rgba(255,255,255,.10);

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,.035),
        0 4px 12px rgba(0,0,0,.16);
}

.qty-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 9px;

    cursor: pointer;
    transition: all .2s ease;
}

.qty-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qty-minus {
    background: rgba(255,255,255,.055);
    color: #bdbdbd;
}

.qty-plus {
    background: rgba(255,213,0,.12);
    color: #ffda00;
}

.qty-minus:hover {
    background: rgba(255,255,255,.12);
    color: white;
}

.qty-plus:hover {
    background: #ffda00;
    color: #171717;
}

.qty-btn:active {
    transform: scale(.88);
}

.qty-value-wrap {
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 100%;
    padding: 0;
    margin: 0;

    background: transparent;
    border: none;
    outline: none;

    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    text-align: center;

    font-variant-numeric: tabular-nums;

    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    color: #ffda00;
}

.qty-unit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 27px;
    padding: 0 9px;
    margin-right: 3px;

    border-radius: 7px;
    background: rgba(255,255,255,.055);

    color: #a7a7a7;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}














/* ==========================================================
   PRODUCT UI REDESIGN
   Load this file AFTER style.css.
   Supports .product-results.view-list and .product-results.view-grid
========================================================== */

.product-results {
    width: 100%;
    min-width: 0;
}

/* ---------- Shared product card ---------- */
.product-row {
    direction: rtl;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 16px;
    background: linear-gradient(145deg, #252525 0%, #1d1d1d 100%);
    box-shadow: 0 5px 18px rgba(0,0,0,.13);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.product-row:hover {
    border-color: rgba(240,208,0,.38);
    box-shadow: 0 9px 24px rgba(0,0,0,.22), 0 0 0 1px rgba(240,208,0,.06);
}

.product-row .title {
    min-width: 0;
    text-align: right;
    align-self: center;
}

.product-row .title strong {
    display: block;
    color: #f3f3f3;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-row .badge-featured {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 5px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(240,208,0,.14);
    border: 1px solid rgba(240,208,0,.32);
    color: #f5d900;
    font-size: .68rem;
    line-height: 1.6;
}

.product-row .stock {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin-top: 6px;
    color: #999;
    font-size: .74rem;
    line-height: 1.6;
}

.product-row .stock-icon {
    display: inline-flex;
    color: #d7bd24;
}

.product-row .stock-sep {
    opacity: .35;
}

/* ---------- Product image ---------- */
.product-row .img-box {
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle at 50% 35%, #303030, #151515 75%);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
}

.product-row .img-box img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ---------- Price ---------- */
.product-row .price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    text-align: right;
    color: #f0d000;
    font-weight: 700;
    white-space: normal;
    line-height: 1.55;
}

.product-row .price-old {
    display: block;
    color: #888;
    font-size: .76rem;
    font-weight: 500;
    text-decoration: line-through;
}

.product-row .price-new {
    display: block;
    color: #f0d000;
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* ---------- Actions wrapper: cart + quantity ---------- */
.product-row .product-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
}

.product-row .add-btn-cart {
    min-width: 126px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(255,230,80,.45);
    border-radius: 12px;
    background: linear-gradient(135deg, #f4d900, #dfb900);
    color: #171717;
    font-size: .84rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220,185,0,.12);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.product-row .add-btn-cart:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(220,185,0,.2);
}

.product-row .add-btn-cart:active {
    transform: scale(.97);
}

.product-row .add-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 0;
}

.product-row .add-btn-icon svg {
    width: 18px;
    height: 18px;
}

.product-row .add-btn-plus {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 50%;
    background: #171717;
    color: #f4d900;
    font-size: 11px;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
}

/* Quantity stepper */
.product-row .qty-control-group {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.product-row .qty-stepper {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: linear-gradient(145deg, #292929, #1b1b1b);
    box-shadow: inset 0 1px 2px rgba(255,255,255,.035), 0 3px 10px rgba(0,0,0,.14);
}

.product-row .qty-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.product-row .qty-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-row .qty-minus {
    background: rgba(255,255,255,.06);
    color: #c5c5c5;
}

.product-row .qty-plus {
    background: rgba(240,208,0,.13);
    color: #f0d000;
}

.product-row .qty-minus:hover {
    background: rgba(255,255,255,.13);
    color: #fff;
}

.product-row .qty-plus:hover {
    background: #f0d000;
    color: #171717;
}

.product-row .qty-btn:active {
    transform: scale(.9);
}

.product-row .qty-value-wrap {
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row .qty-input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: tabular-nums;
    appearance: textfield;
    -moz-appearance: textfield;
}

.product-row .qty-input::-webkit-inner-spin-button,
.product-row .qty-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.product-row .qty-input:focus {
    color: #f0d000;
}

.product-row .qty-unit {
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
    padding: 0 8px;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    color: #aaa;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================================
   LIST / ROW VIEW — desktop
========================================================== */
.product-results.view-list {
    display: flex !important;
    flex-direction: column;
    gap: 11px;
}

.product-results.view-list .product-row {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) minmax(145px, auto) minmax(270px, auto);
    grid-template-areas: "img title price actions";
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    margin: 0;
}

.product-results.view-list .img-box {
    grid-area: img;
    width: 90px;
    height: 90px;
}

.product-results.view-list .title { grid-area: title; }
.product-results.view-list .price { grid-area: price; }
.product-results.view-list .product-actions { grid-area: actions; }

/* ==========================================================
   LIST / ROW VIEW — tablet
========================================================== */
@media (min-width: 601px) and (max-width: 960px) {
    .product-results.view-list .product-row {
        grid-template-columns: 82px minmax(0, 1fr) minmax(175px, 205px);
        grid-template-areas:
            "img title price"
            "img title actions";
        gap: 8px 12px;
        padding: 12px;
    }

    .product-results.view-list .img-box {
        width: 82px;
        height: 82px;
        grid-row: 1 / span 2;
    }

    .product-results.view-list .price {
        align-items: flex-start;
        align-self: end;
    }

    .product-results.view-list .product-actions {
        gap: 6px;
        align-self: start;
    }

    .product-results.view-list .add-btn-cart {
        min-width: 42px;
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        gap: 0;
    }

    .product-results.view-list .add-btn-text { display: none; }
}

/* ==========================================================
   LIST / ROW VIEW — mobile
========================================================== */
@media (max-width: 600px) {
    .product-results.view-list .product-row {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-areas:
            "img title"
            "img price"
            "actions actions";
        align-items: start;
        gap: 7px 12px;
        padding: 12px;
        border-radius: 14px;
    }

    .product-results.view-list .img-box {
        grid-area: img;
        width: 84px;
        height: 84px;
        min-width: 84px;
        min-height: 84px;
        align-self: start;
    }

    .product-results.view-list .title {
        grid-area: title;
        align-self: center;
    }

    .product-results.view-list .title strong {
        font-size: .88rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-results.view-list .stock {
        gap: 3px 6px;
        margin-top: 4px;
        font-size: .68rem;
    }

    .product-results.view-list .price {
        grid-area: price;
        align-items: flex-start;
        align-self: start;
        gap: 0;
    }

    .product-results.view-list .price-old { font-size: .7rem; }
    .product-results.view-list .price-new { font-size: .9rem; }

    .product-results.view-list .product-actions {
        grid-area: actions;
        display: flex;
        flex-direction: column !important;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: 3px;
    }

    .product-results.view-list .add-btn-cart {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: .8rem;
    }

    .product-results.view-list .add-btn-text { display: inline; }

    .product-results.view-list .qty-control-group { flex: 0 0 auto; }
    .product-results.view-list .qty-stepper { height: 44px; gap: 3px; padding: 4px; }
    .product-results.view-list .qty-btn { width: 29px; height: 32px; min-width: 29px; }
    .product-results.view-list .qty-value-wrap { width: 26px; }
    .product-results.view-list .qty-unit { padding: 0 6px; font-size: 9px; }
}

@media (max-width: 370px) {
    .product-results.view-list .product-row { grid-template-columns: 76px minmax(0, 1fr); gap: 7px 9px; }
    .product-results.view-list .img-box { width: 76px; height: 76px; min-width: 76px; min-height: 76px; }
    .product-results.view-list .add-btn-cart { font-size: .74rem; gap: 5px; }
    .product-results.view-list .qty-stepper { gap: 2px; }
    .product-results.view-list .qty-btn { width: 26px; min-width: 26px; }
    .product-results.view-list .qty-value-wrap { width: 23px; }
}

/* ==========================================================
   GRID / COLUMN VIEW — all screens
========================================================== */
.product-results.view-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: stretch;
    gap: 14px;
}

.product-results.view-grid .product-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 13px;
    border-radius: 15px;
}

.product-results.view-grid .img-box {
    order: 0;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / .88;
    border-radius: 12px;
}

.product-results.view-grid .img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-results.view-grid .title {
    order: 1;
    flex: 1 1 auto;
    min-height: 3.2em;
    text-align: right;
}

.product-results.view-grid .title strong {
    font-size: .88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-results.view-grid .stock {
    justify-content: flex-start;
    font-size: .69rem;
}

.product-results.view-grid .price {
    order: 2;
    min-height: 43px;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px 0;
    border-top: 1px solid rgba(255,255,255,.055);
}

.product-results.view-grid .price-old { font-size: .72rem; }
.product-results.view-grid .price-new { font-size: .95rem; }

.product-results.view-grid .product-actions {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.product-results.view-grid .qty-control-group {
    order: 0;
    align-self: center;
}

.product-results.view-grid .add-btn-cart {
    order: 1;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 11px;
}

@media (max-width: 640px) {
    /* در موبایل هم هر دو حالت لیست و گرید فعال می‌مانند */
    .view-toggle { display: inline-flex !important; }

    .product-results.view-grid,
    #productResults.product-results.view-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-results.view-grid .product-row {
        display: flex !important;
        gap: 8px;
        padding: 10px;
        border-radius: 13px;
    }

    .product-results.view-grid .img-box {
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .product-results.view-grid .title { min-height: 3.1em; }
    .product-results.view-grid .title strong { font-size: .78rem; }
    .product-results.view-grid .stock { font-size: .63rem; gap: 3px 4px; }
    .product-results.view-grid .price { min-height: 40px; }
    .product-results.view-grid .price-new { font-size: .82rem; }
    .product-results.view-grid .price-old { font-size: .65rem; }
    .product-results.view-grid .qty-stepper { height: 40px; gap: 2px; padding: 3px; }
    .product-results.view-grid .qty-btn { width: 27px; height: 30px; min-width: 27px; }
    .product-results.view-grid .qty-value-wrap { width: 24px; }
    .product-results.view-grid .qty-unit { height: 23px; padding: 0 5px; font-size: 9px; }
    .product-results.view-grid .add-btn-cart { height: 39px; min-height: 39px; font-size: .74rem; }
    .product-results.view-grid .add-btn-icon svg { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
    .product-results.view-grid { gap: 8px; }
    .product-results.view-grid .product-row { padding: 8px; }
    .product-results.view-grid .qty-btn { width: 24px; min-width: 24px; }
    .product-results.view-grid .qty-value-wrap { width: 21px; }
}

/* Keep both view modes available on narrow screens too. */
.view-toggle {
    display: inline-flex !important;
}

/* Accessibility / motion */
.product-row button:focus-visible,
.product-row .img-box:focus-visible {
    outline: 2px solid #f0d000;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .product-row,
    .product-row button {
        transition: none !important;
    }
}

/* Override the old mobile rule that forced #productResults to block. */
@media (max-width: 640px) {
    #productResults.product-results.view-list {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }
}







































/* ==========================================
 ==========================================
 ==========================================
 ==========================================
 ==========================================
   PARTNERS - Modern UI
   Theme: Navy / Emerald / Gold
========================================== */

.partners-page {
    --p-bg: #0b1220;
    --p-card: #111d30;
    --p-card-light: #17263c;
    --p-border: rgba(255,255,255,.09);
    --p-text: #f4f7fb;
    --p-muted: #9ba9bc;
    --p-green: #19c58b;
    --p-green-dark: #07996c;
    --p-gold: #f4c65e;

    width: 100%;
    color: var(--p-text);
    padding-bottom: 45px;
    overflow: hidden;
}

.partners-page * {
    box-sizing: border-box;
}

.partners-page a {
    text-decoration: none;
}

.partners-page button,
.partners-page input {
    font: inherit;
}


/* ==========================================
   HERO
========================================== */

.partner-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    min-height: 280px;
    padding: 45px;
    margin-bottom: 48px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    background:
        radial-gradient(circle at 85% 10%, rgba(25,197,139,.22), transparent 32%),
        radial-gradient(circle at 10% 100%, rgba(244,198,94,.10), transparent 34%),
        linear-gradient(125deg, #13243a, #0c1728 65%, #101e31);
    box-shadow: 0 20px 60px rgba(0,0,0,.17);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.partner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #69e0b4;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.live-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    background: var(--p-green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(25,197,139,.13);
    animation: livePulse 1.8s infinite;
}

.hero-copy h1 {
    color: white;
    font-size: clamp(27px, 4vw, 43px);
    line-height: 1.55;
    font-weight: 900;
    margin: 0 0 15px;
}

.hero-copy h1 span {
    display: block;
    color: var(--p-green);
}

.hero-copy p {
    max-width: 590px;
    color: #b6c3d4;
    line-height: 2;
    font-size: 15px;
    margin: 0;
}

.hero-decoration {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    pointer-events: none;
}

.hero-decoration-one {
    width: 270px;
    height: 270px;
    top: -170px;
    left: 12%;
}

.hero-decoration-two {
    width: 190px;
    height: 190px;
    bottom: -135px;
    left: 32%;
}


/* Hero metrics */

.hero-metrics {
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.hero-metric {
    width: 135px;
    padding: 20px 14px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(12px);
}

.hero-metric span {
    display: block;
    color: #aebbd0;
    font-size: 12px;
    margin-bottom: 12px;
}

.hero-metric strong {
    display: block;
    font-size: 29px;
    color: white;
    font-weight: 900;
}


/* ==========================================
   SECTION HEADINGS
========================================== */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-kicker {
    display: block;
    color: var(--p-green);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 900;
    margin-bottom: 8px;
}

.section-heading h2 {
    color: var(--p-text);
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 7px;
}

.section-heading p {
    color: var(--p-muted);
    font-size: 13px;
    margin: 0;
}

.competition-tag {
    padding: 9px 15px;
    border: 1px solid rgba(244,198,94,.22);
    background: rgba(244,198,94,.08);
    color: #f5d78e;
    border-radius: 30px;
    font-size: 12px;
    white-space: nowrap;
}


/* ==========================================
   PODIUM
========================================== */

.podium-section {
    margin-bottom: 55px;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 18px;
}

.podium-card {
    --medal-color: #b8c5d6;
    --medal-bg: rgba(184,197,214,.12);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;

    min-height: 315px;
    padding: 25px 18px 0;
    border-radius: 22px 22px 12px 12px;
    border: 1px solid rgba(255,255,255,.09);

    background:
        linear-gradient(160deg, rgba(255,255,255,.065), transparent 45%),
        #111d30;

    box-shadow: 0 15px 40px rgba(0,0,0,.13);

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

    animation: podiumRise .8s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--card-delay, 0) * 130ms);
}

.podium-card.rank-1 {
    --medal-color: #f5ca66;
    --medal-bg: rgba(245,202,102,.13);

    min-height: 365px;
    border-color: rgba(245,202,102,.45);
    background:
        radial-gradient(circle at 50% 0%, rgba(245,202,102,.19), transparent 55%),
        linear-gradient(160deg, #253044, #111d30 72%);
    order: 2;
}

.podium-card.rank-2 {
    --medal-color: #d8e0ec;
    --medal-bg: rgba(216,224,236,.11);
    order: 1;
}

.podium-card.rank-3 {
    --medal-color: #dc9b70;
    --medal-bg: rgba(220,155,112,.12);
    order: 3;
}

.podium-card:hover {
    transform: translateY(-9px);
    border-color: var(--medal-color);
    box-shadow: 0 22px 50px rgba(0,0,0,.25);
}

.podium-glow {
    position: absolute;
    z-index: -1;
    top: -100px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--medal-color);
    filter: blur(100px);
    opacity: .13;
}

.podium-medal {
    position: relative;
    margin-bottom: 14px;
}

.medal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    font-size: 42px;
    border-radius: 50%;
    border: 1px solid var(--medal-color);
    background: var(--medal-bg);
    box-shadow: 0 0 30px color-mix(in srgb, var(--medal-color), transparent 78%);
}

.rank-1 .medal-icon {
    width: 88px;
    height: 88px;
    font-size: 50px;
    animation: medalFloat 3s ease-in-out infinite;
}

.crown {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
    animation: crownFloat 2s ease-in-out infinite;
}

.podium-rank {
    color: var(--medal-color);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 9px;
}

.podium-card h3 {
    color: white;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 12px;
}

.podium-points {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.podium-points strong {
    color: var(--medal-color);
    font-size: 31px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.podium-points span {
    color: #aab7c9;
    font-size: 12px;
}

.podium-divider {
    width: 80%;
    height: 1px;
    margin: 17px 0;
    background: rgba(255,255,255,.09);
}

.podium-details {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.podium-details div {
    min-width: 0;
}

.podium-details span {
    display: block;
    color: #9caec2;
    font-size: 10px;
    margin-bottom: 8px;
}

.podium-details strong {
    display: block;
    color: #f1f4f8;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.podium-base {
    width: calc(100% + 36px);
    margin-top: auto;
    padding: 12px;
    color: var(--medal-color);
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 3px;
    background: var(--medal-bg);
}

.podium-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 55px 20px;
    border: 1px dashed var(--p-border);
    border-radius: 18px;
    background: var(--p-card);
}

.podium-empty span {
    font-size: 42px;
}

.podium-empty h3 {
    margin: 10px 0;
    color: white;
}

.podium-empty p {
    color: var(--p-muted);
    font-size: 13px;
}


/* ==========================================
   RANKING TABLE
========================================== */

.ranking-section {
    padding: 26px;
    border: 1px solid var(--p-border);
    border-radius: 22px;
    background: rgba(17,29,48,.82);
}

.ranking-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 230px;
    padding: 0 14px;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
}

.ranking-search > span {
    color: var(--p-green);
    font-size: 25px;
}

.ranking-search input {
    width: 100%;
    min-width: 0;
    height: 43px;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    font-size: 12px;
}

.ranking-search input::placeholder {
    color: #8594a9;
}

.ranking-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--p-border);
    border-radius: 14px;
}

.ranking-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    text-align: right;
}

.ranking-table thead {
    background: rgba(255,255,255,.045);
}

.ranking-table th {
    padding: 16px 18px;
    color: #aab9cd;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.ranking-table td {
    padding: 15px 18px;
    color: #d9e2ef;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,.055);
    white-space: nowrap;
}

.ranking-table tbody tr {
    transition: background .25s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(25,197,139,.065);
}

.rank-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    color: #b8c5d6;
    background: rgba(255,255,255,.07);
    font-size: 12px;
    font-weight: 900;
}

.gold-rank {
    background: rgba(245,202,102,.15);
    color: #f5ca66;
}

.silver-rank {
    background: rgba(216,224,236,.15);
    color: #d8e0ec;
}

.bronze-rank {
    background: rgba(220,155,112,.15);
    color: #dc9b70;
}

.visitor-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visitor-name strong {
    color: #f2f5fa;
}

.visitor-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 10px;
    color: #71e2b9;
    background: rgba(25,197,139,.13);
    font-weight: 900;
}

.ranking-table code {
    color: #9be8ce;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(25,197,139,.08);
    font-size: 12px;
}

.points-value {
    color: #f5ca66;
    font-weight: 900;
}

.table-empty,
.search-empty {
    padding: 30px;
    text-align: center;
    color: var(--p-muted);
    font-size: 13px;
}

.search-empty {
    padding: 20px 5px;
}

.search-empty[hidden] {
    display: none;
}

.leaderboard-footer {
    margin-top: 28px;
    text-align: center;
}

.back-to-partners {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #9fe8ce;
    padding: 12px 20px;
    border: 1px solid rgba(25,197,139,.25);
    border-radius: 12px;
    background: rgba(25,197,139,.07);
    transition: .25s ease;
    font-size: 13px;
    font-weight: 800;
}

.back-to-partners:hover {
    color: white;
    background: var(--p-green-dark);
    transform: translateY(-3px);
}


/* ==========================================
   APPLICATION PAGE
========================================== */

.apply-hero {
    min-height: 375px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.apply-main-btn,
.apply-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 13px 20px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 900;
    transition: .3s ease;
}

.apply-main-btn {
    color: #09251d;
    background: var(--p-green);
    box-shadow: 0 8px 25px rgba(25,197,139,.18);
}

.apply-main-btn:hover {
    background: #55e3b5;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(25,197,139,.27);
}

.apply-secondary-btn {
    color: white;
    border: 1px solid rgba(255,255,255,.17);
    background: rgba(255,255,255,.04);
}

.apply-secondary-btn:hover {
    background: rgba(255,255,255,.12);
}


/* Decorative illustration */

.apply-visual {
    position: relative;
    flex: 0 0 290px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(25,197,139,.24);
}

.visual-circle-one {
    width: 235px;
    height: 235px;
    animation: slowRotate 18s linear infinite;
}

.visual-circle-two {
    width: 175px;
    height: 175px;
    border-style: dashed;
    animation: slowRotate 24s linear infinite reverse;
}

.visual-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background: rgba(23,38,60,.9);
    box-shadow: 0 12px 35px rgba(0,0,0,.2);
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

.visual-card strong {
    color: #edf7f3;
    font-size: 12px;
}

.visual-card-main {
    flex-direction: column;
    width: 155px;
    height: 155px;
    justify-content: center;
    gap: 7px;
}

.visual-card-main .visual-trophy {
    font-size: 49px;
    animation: medalFloat 3s ease-in-out infinite;
}

.visual-card-main strong {
    font-size: 16px;
    color: #f5ca66;
}

.visual-card-main > span:last-child {
    color: #aab9cd;
    font-size: 11px;
}

.visual-card-small {
    top: 26px;
    right: 0;
    animation: floatingCard 4s ease-in-out infinite;
}

.visual-card-bottom {
    bottom: 23px;
    left: -3px;
    animation: floatingCard 5s ease-in-out infinite reverse;
}


/* Benefits */

.benefits-section {
    margin-bottom: 65px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.benefit-card {
    padding: 25px;
    border: 1px solid var(--p-border);
    border-radius: 17px;
    background: var(--p-card);
    transition: .3s ease;
}

.benefit-card:hover {
    transform: translateY(-7px);
    border-color: rgba(25,197,139,.4);
    background: #15283a;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    border-radius: 14px;
    background: rgba(25,197,139,.1);
    font-size: 25px;
    margin-bottom: 18px;
}

.benefit-card h3 {
    color: white;
    font-size: 16px;
    margin: 0 0 10px;
}

.benefit-card p {
    color: var(--p-muted);
    font-size: 12px;
    line-height: 2;
    margin: 0;
}


/* Form layout */

.apply-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 65px;
    scroll-margin-top: 35px;
}

.apply-intro {
    padding: 20px 10px;
}

.apply-intro h2 {
    color: white;
    font-size: 32px;
    margin: 0 0 15px;
    font-weight: 900;
}

.apply-intro > p {
    color: var(--p-muted);
    font-size: 14px;
    line-height: 2.2;
    max-width: 470px;
}

.apply-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.apply-checklist div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dce6f1;
    font-size: 13px;
}

.apply-checklist span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #6fe1b8;
    border-radius: 50%;
    background: rgba(25,197,139,.12);
    font-weight: 900;
}

.apply-contact-note {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 450px;
    margin-top: 35px;
    padding: 17px;
    border: 1px solid rgba(25,197,139,.15);
    border-radius: 13px;
    background: rgba(25,197,139,.05);
}

.apply-contact-note > span {
    font-size: 25px;
}

.apply-contact-note p {
    color: #b5c5d4;
    font-size: 11px;
    line-height: 1.9;
    margin: 0;
}

.apply-form-card {
    padding: 30px;
    border-radius: 21px;
    border: 1px solid var(--p-border);
    background:
        radial-gradient(circle at 100% 0%, rgba(25,197,139,.08), transparent 30%),
        var(--p-card);
    box-shadow: 0 20px 55px rgba(0,0,0,.16);
}

.form-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 27px;
}

.form-icon {
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #0c281f;
    background: var(--p-green);
    font-size: 25px;
}

.form-card-heading h3 {
    color: white;
    font-size: 19px;
    margin: 0 0 5px;
}

.form-card-heading p {
    color: var(--p-muted);
    font-size: 11px;
    margin: 0;
}

.apply-form-card .form-group {
    margin-bottom: 20px;
}

.apply-form-card label {
    display: block;
    color: #dce6f1;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 9px;
}

.apply-form-card .form-control {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    outline: none;
    color: white;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(5,13,25,.4);
    font-size: 13px;
    transition: .25s ease;
}

.apply-form-card .form-control::placeholder {
    color: #64758b;
}

.apply-form-card .form-control:focus {
    border-color: var(--p-green);
    background: rgba(5,13,25,.65);
    box-shadow: 0 0 0 4px rgba(25,197,139,.09);
}

.apply-submit-btn {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    color: #08251c;
    background: var(--p-green);
    font-size: 13px;
    font-weight: 900;
    transition: .3s ease;
}

.apply-submit-btn:hover {
    color: #06251b;
    background: #56e4b6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(25,197,139,.2);
}

.submit-arrow {
    transition: transform .3s ease;
}

.apply-submit-btn:hover .submit-arrow {
    transform: translateX(-5px);
}

.form-note {
    margin: 13px 0 0;
    text-align: center;
    color: #8293a8;
    font-size: 10px;
}


/* ==========================================
   TOP AGENTS
========================================== */

.top-agents-section {
    padding: 25px;
    border-radius: 21px;
    border: 1px solid var(--p-border);
    background: rgba(17,29,48,.78);
}

.view-all-link {
    color: #65dbb0;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: .2s ease;
}

.view-all-link:hover {
    color: white;
}

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

.mini-agent-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.065);
    background: rgba(255,255,255,.035);
    transition: .25s ease;
}

.mini-agent-card:hover {
    transform: translateY(-4px);
    background: rgba(25,197,139,.07);
    border-color: rgba(25,197,139,.2);
}

.mini-agent-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 37px;
    height: 37px;
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    font-size: 20px;
    color: #d9e2ee;
}

.mini-agent-info {
    flex: 1;
    min-width: 0;
}

.mini-agent-info strong,
.mini-agent-info span {
    display: block;
}

.mini-agent-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
    font-size: 13px;
    margin-bottom: 6px;
}

.mini-agent-info span {
    color: var(--p-muted);
    font-size: 11px;
}

.mini-agent-star {
    color: var(--p-gold);
    font-size: 20px;
}


/* ==========================================
   ANIMATIONS
========================================== */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes podiumRise {
    from {
        opacity: 0;
        transform: translateY(45px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes medalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes crownFloat {
    0%, 100% { transform: translate(-50%, 0) rotate(-5deg); }
    50% { transform: translate(-50%, -6px) rotate(5deg); }
}

@keyframes floatingCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes slowRotate {
    to { transform: rotate(360deg); }
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(25,197,139,.13); }
    50% { box-shadow: 0 0 0 9px rgba(25,197,139,.03); }
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 900px) {
    .partner-hero {
        padding: 32px;
    }

    .hero-metric {
        width: 110px;
    }

    .apply-visual {
        flex-basis: 230px;
        transform: scale(.9);
    }

    .podium-card {
        padding-inline: 12px;
    }
}

@media (max-width: 700px) {
    .partner-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 27px 22px;
        margin-bottom: 35px;
    }

    .hero-metrics {
        width: 100%;
    }

    .hero-metric {
        flex: 1;
        width: auto;
    }

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

    .apply-visual {
        align-self: center;
        width: 100%;
        max-width: 290px;
        flex-basis: 250px;
        margin-top: 5px;
    }

    .podium-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .podium-card,
    .podium-card.rank-1 {
        min-height: 310px;
        order: initial;
    }

    .podium-card.rank-1 {
        min-height: 335px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-section,
    .top-agents-section {
        padding: 17px;
    }

    .ranking-search {
        width: 100%;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .apply-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .apply-intro {
        padding: 10px 2px;
    }

    .apply-intro h2 {
        font-size: 26px;
    }

    .apply-form-card {
        padding: 23px 18px;
    }

    .mini-agents-grid {
        grid-template-columns: 1fr;
    }

    .competition-tag {
        align-self: flex-start;
    }
}

@media (max-width: 400px) {
    .hero-copy h1 {
        font-size: 26px;
    }

    .hero-copy p {
        font-size: 13px;
    }

    .hero-actions {
        width: 100%;
    }

    .apply-main-btn,
    .apply-secondary-btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 11px;
    }

    .podium-points strong {
        font-size: 27px;
    }
}


/* Respect reduced-motion preferences */

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}







































/* ==========================================
   PARTNERS PAGE — MOMENI WHOLESALE
   Charcoal / Black / Gold
========================================== */

.partners-page {
    --p-bg: #1a1a1a;
    --p-panel: #171717;
    --p-panel-2: #202020;
    --p-border: #383838;
    --p-text: #eee;
    --p-muted: #999;
    --p-gold: #f0d000;

    width: 100%;
    max-width: 1080px;
    margin: 0 auto 40px;
    color: var(--p-text);
    font-family: inherit;
    line-height: 1.8;
}

.partners-page,
.partners-page * {
    box-sizing: border-box;
}

.partners-page a {
    text-decoration: none;
}

.partners-page button,
.partners-page input {
    font: inherit;
}

/* Hero */

.partners-page .partner-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 24px;
    min-height: 300px;
    margin: 12px 0 25px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid #514514;
    border-radius: 19px;
    background:
        radial-gradient(circle at 80% 20%, rgba(240,208,0,.14), transparent 35%),
        linear-gradient(125deg, #242113, #171717 58%, #111);
    box-shadow: 0 13px 35px rgba(0,0,0,.22);
}

.partners-page .hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.partners-page .partner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p-gold);
    font-size: 11px;
    font-weight: 800;
}

.partners-page .partner-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--p-gold);
    box-shadow: 0 0 10px rgba(240,208,0,.7);
}

.partners-page .hero-copy h1 {
    margin: 12px 0;
    color: #fff;
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.5;
    font-weight: 900;
}

.partners-page .hero-copy h1 span {
    display: block;
    color: var(--p-gold);
}

.partners-page .hero-copy p {
    max-width: 600px;
    margin: 0;
    color: #bcbcbc;
    font-size: 13px;
    line-height: 2;
}

.partners-page .hero-decoration {
    position: absolute;
    border: 1px solid rgba(240,208,0,.12);
    border-radius: 50%;
    pointer-events: none;
}

.partners-page .hero-decoration-one {
    width: 250px;
    height: 250px;
    left: -90px;
    top: -130px;
}

.partners-page .hero-decoration-two {
    width: 180px;
    height: 180px;
    left: 40px;
    bottom: -130px;
}

/* Application hero */

.partners-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}

.partners-page .apply-main-btn,
.partners-page .apply-secondary-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    transition: .2s ease;
}

.partners-page .apply-main-btn {
    border: 1px solid var(--p-gold);
    color: #161300;
    background: var(--p-gold);
}

.partners-page .apply-main-btn:hover {
    transform: translateY(-2px);
    background: #ffe64a;
}

.partners-page .apply-secondary-btn {
    border: 1px solid #62551c;
    color: var(--p-gold);
    background: rgba(240,208,0,.06);
}

.partners-page .apply-secondary-btn:hover {
    border-color: var(--p-gold);
    background: rgba(240,208,0,.12);
}

.partners-page .apply-visual {
    position: relative;
    min-height: 225px;
    display: grid;
    place-items: center;
}

.partners-page .visual-circle {
    position: absolute;
    border: 1px solid rgba(240,208,0,.2);
    border-radius: 50%;
}

.partners-page .visual-circle-one {
    width: 210px;
    height: 210px;
}

.partners-page .visual-circle-two {
    width: 155px;
    height: 155px;
    border-style: dashed;
}

.partners-page .visual-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid #5e5017;
    border-radius: 11px;
    color: #eee;
    background: rgba(29,29,24,.96);
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
    font-size: 11px;
}

.partners-page .visual-card strong {
    color: var(--p-gold);
}

.partners-page .visual-card-main {
    width: 170px;
    min-height: 110px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.partners-page .visual-trophy {
    font-size: 27px;
}

.partners-page .visual-card-main strong {
    font-size: 17px;
}

.partners-page .visual-card-main > span:last-child {
    color: #aaa;
    font-size: 10px;
}

.partners-page .visual-card-small {
    top: 14px;
    right: 0;
}

.partners-page .visual-card-bottom {
    bottom: 8px;
    left: 0;
}

/* Section headings */

.partners-page .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.partners-page .section-kicker {
    color: #ac9638;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.partners-page .section-heading h2 {
    margin: 3px 0;
    color: #f2f2f2;
    font-size: 19px;
    font-weight: 900;
}

.partners-page .section-heading p {
    margin: 0;
    color: #999;
    font-size: 11px;
}

/* Benefits */

.partners-page .benefits-section {
    margin: 25px 0;
}

.partners-page .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.partners-page .benefit-card {
    min-width: 0;
    padding: 20px 17px;
    border: 1px solid var(--p-border);
    border-radius: 13px;
    background: linear-gradient(145deg, #202020, #151515);
    transition: .2s ease;
}

.partners-page .benefit-card:hover {
    transform: translateY(-4px);
    border-color: #756214;
}

.partners-page .benefit-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    margin-bottom: 11px;
    border: 1px solid rgba(240,208,0,.25);
    border-radius: 11px;
    background: rgba(240,208,0,.08);
    font-size: 21px;
}

.partners-page .benefit-card h3 {
    margin: 0 0 7px;
    color: var(--p-gold);
    font-size: 14px;
}

.partners-page .benefit-card p {
    margin: 0;
    color: #aaa;
    font-size: 11px;
    line-height: 1.9;
}

/* Application layout */

.partners-page .apply-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
    margin: 28px 0;
    scroll-margin-top: 25px;
}

.partners-page .apply-intro {
    padding: 22px;
    border: 1px solid #393323;
    border-radius: 14px;
    background: linear-gradient(145deg, #211f17, #151515);
}

.partners-page .apply-intro h2 {
    margin: 7px 0;
    color: var(--p-gold);
    font-size: 23px;
}

.partners-page .apply-intro > p {
    margin: 0;
    color: #bbb;
    font-size: 12px;
    line-height: 2;
}

.partners-page .apply-checklist {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.partners-page .apply-checklist div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ddd;
    font-size: 11px;
}

.partners-page .apply-checklist span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #151300;
    background: var(--p-gold);
    font-weight: 900;
}

.partners-page .apply-contact-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 21px;
    padding: 12px;
    border: 1px solid #45401f;
    border-radius: 9px;
    background: rgba(240,208,0,.05);
}

.partners-page .apply-contact-note > span {
    font-size: 20px;
}

.partners-page .apply-contact-note p {
    margin: 0;
    color: #bbb;
    font-size: 10px;
    line-height: 1.9;
}

/* Form */

.partners-page .apply-form-card {
    padding: 22px;
    border: 1px solid var(--p-border);
    border-radius: 14px;
    background: linear-gradient(145deg, #202020, #151515);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.partners-page .form-card-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.partners-page .form-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(240,208,0,.3);
    border-radius: 10px;
    color: var(--p-gold);
    background: rgba(240,208,0,.08);
    font-size: 20px;
}

.partners-page .form-card-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.partners-page .form-card-heading p {
    margin: 2px 0 0;
    color: #999;
    font-size: 10px;
}

.partners-page .apply-form-card .form-group {
    margin-bottom: 14px;
}

.partners-page .apply-form-card label {
    display: block;
    margin-bottom: 6px;
    color: #ddd;
    font-size: 11px;
    font-weight: 700;
}

.partners-page .apply-form-card .form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #424242;
    border-radius: 9px;
    outline: none;
    color: #f4f4f4;
    background: #111;
    font-size: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.partners-page .apply-form-card .form-control::placeholder {
    color: #777;
}

.partners-page .apply-form-card .form-control:focus {
    border-color: var(--p-gold);
    box-shadow: 0 0 0 3px rgba(240,208,0,.09);
}

.partners-page .apply-submit-btn {
    width: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    border: 1px solid var(--p-gold);
    border-radius: 9px;
    color: #171400;
    background: linear-gradient(135deg, #f6dc20, #d8b800);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.partners-page .apply-submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.partners-page .apply-submit-btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.partners-page .form-note {
    margin: 10px 0 0;
    color: #888;
    font-size: 9px;
    text-align: center;
}

/* Top agents */

.partners-page .top-agents-section {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--p-border);
    border-radius: 14px;
    background: #171717;
}

.partners-page .mini-agents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.partners-page .mini-agent-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #363636;
    border-radius: 10px;
    background: #202020;
}

.partners-page .mini-agent-rank {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 9px;
    background: #30290f;
    font-size: 19px;
}

.partners-page .mini-agent-info {
    min-width: 0;
    flex: 1;
}

.partners-page .mini-agent-info strong {
    display: block;
    overflow: hidden;
    color: #eee;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partners-page .mini-agent-info span {
    color: var(--p-gold);
    font-size: 10px;
}

.partners-page .mini-agent-star {
    color: var(--p-gold);
    font-size: 19px;
}

.partners-page .view-all-link {
    color: var(--p-gold);
    font-size: 11px;
    font-weight: 800;
}

.partners-page .view-all-link:hover {
    color: #fff09a;
}

/* Reveal: content stays visible when JS is unavailable */

.partners-page .reveal {
    opacity: 1;
    transform: none;
}

.partners-page.js-ready .reveal {
    opacity: 0;
    transform: translateY(13px);
    transition: opacity .5s ease, transform .5s ease;
}

.partners-page.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 800px) {
    .partners-page .partner-hero {
        grid-template-columns: minmax(0, 1fr) 230px;
        padding: 25px;
    }

    .partners-page .apply-layout {
        grid-template-columns: 1fr 1fr;
    }

    .partners-page .mini-agents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .partners-page .partner-hero {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 21px 17px;
    }

    .partners-page .apply-visual {
        min-height: 185px;
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
    }

    .partners-page .hero-copy h1 {
        font-size: 27px;
    }

    .partners-page .hero-copy p {
        font-size: 11px;
    }

    .partners-page .benefits-grid {
        grid-template-columns: 1fr;
    }

    .partners-page .benefit-card {
        display: grid;
        grid-template-columns: 43px minmax(0, 1fr);
        column-gap: 11px;
        align-items: center;
        padding: 13px;
    }

    .partners-page .benefit-icon {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .partners-page .benefit-card h3 {
        margin: 0;
    }

    .partners-page .apply-layout {
        grid-template-columns: 1fr;
    }

    .partners-page .apply-intro,
    .partners-page .apply-form-card {
        padding: 17px;
    }

    .partners-page .mini-agents-grid {
        grid-template-columns: 1fr;
    }

    .partners-page .section-heading h2 {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-page *,
    .partners-page *::before,
    .partners-page *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    .partners-page.js-ready .reveal {
        opacity: 1;
        transform: none;
    }
}













/* ==========================================
   LEADERBOARD — MOMENI WHOLESALE
   Charcoal / Black / Gold
========================================== */

.leaderboard-page {
    --l-bg: #1a1a1a;
    --l-panel: #171717;
    --l-border: #383838;
    --l-text: #eee;
    --l-muted: #999;
    --l-gold: #f0d000;

    width: 100%;
    max-width: 1080px;
    margin: 0 auto 40px;
    color: var(--l-text);
    font-family: inherit;
    line-height: 1.8;
}

.leaderboard-page,
.leaderboard-page * {
    box-sizing: border-box;
}

.leaderboard-page a {
    text-decoration: none;
}

/* Hero */

.leaderboard-page .partner-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 20px;
    min-height: 230px;
    margin: 12px 0 27px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid #514514;
    border-radius: 18px;
    background:
        radial-gradient(circle at 80% 20%, rgba(240,208,0,.14), transparent 35%),
        linear-gradient(125deg, #242113, #171717 58%, #111);
}

.leaderboard-page .hero-copy {
    position: relative;
    z-index: 2;
}

.leaderboard-page .partner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--l-gold);
    font-size: 11px;
    font-weight: 800;
}

.leaderboard-page .partner-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--l-gold);
    box-shadow: 0 0 10px rgba(240,208,0,.7);
}

.leaderboard-page .hero-copy h1 {
    margin: 10px 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 37px);
    line-height: 1.5;
    font-weight: 900;
}

.leaderboard-page .hero-copy h1 span {
    display: block;
    color: var(--l-gold);
}

.leaderboard-page .hero-copy p {
    max-width: 590px;
    margin: 0;
    color: #bbb;
    font-size: 12px;
    line-height: 2;
}

.leaderboard-page .hero-decoration {
    position: absolute;
    border: 1px solid rgba(240,208,0,.12);
    border-radius: 50%;
    pointer-events: none;
}

.leaderboard-page .hero-decoration-one {
    width: 230px;
    height: 230px;
    left: -80px;
    top: -130px;
}

.leaderboard-page .hero-decoration-two {
    width: 160px;
    height: 160px;
    left: 50px;
    bottom: -120px;
}

.leaderboard-page .hero-metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.leaderboard-page .hero-metric {
    padding: 13px 16px;
    border: 1px solid rgba(240,208,0,.24);
    border-radius: 11px;
    background: rgba(10,10,10,.35);
}

.leaderboard-page .hero-metric span {
    display: block;
    color: #aaa;
    font-size: 10px;
}

.leaderboard-page .hero-metric strong {
    display: block;
    margin-top: 3px;
    color: var(--l-gold);
    font-size: 25px;
    font-weight: 900;
}

/* Section headings */

.leaderboard-page .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.leaderboard-page .section-kicker {
    color: #ac9638;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.leaderboard-page .section-heading h2 {
    margin: 3px 0;
    color: #f2f2f2;
    font-size: 19px;
    font-weight: 900;
}

.leaderboard-page .section-heading p {
    margin: 0;
    color: #999;
    font-size: 11px;
}

.leaderboard-page .competition-tag {
    padding: 7px 11px;
    border: 1px solid #61541b;
    border-radius: 30px;
    color: var(--l-gold);
    background: rgba(240,208,0,.06);
    font-size: 10px;
    white-space: nowrap;
}

/* Top 3 Podium */

.leaderboard-page .podium-section {
    margin: 24px 0;
}

.leaderboard-page .podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 13px;
}

.leaderboard-page .podium-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px 15px;
    overflow: hidden;
    border: 1px solid #454545;
    border-radius: 15px;
    background: linear-gradient(145deg, #242424, #151515);
    text-align: center;
    transition: transform .2s ease, border-color .2s ease;
}

.leaderboard-page .podium-card:hover {
    transform: translateY(-4px);
}

.leaderboard-page .podium-card.rank-1 {
    border-color: #a68b18;
    background: linear-gradient(145deg, #302912, #171717 75%);
}

.leaderboard-page .podium-card.rank-2 {
    border-color: #777;
}

.leaderboard-page .podium-card.rank-3 {
    border-color: #895b38;
}

.leaderboard-page .podium-glow {
    position: absolute;
    top: -75px;
    width: 170px;
    height: 150px;
    border-radius: 50%;
    background: rgba(240,208,0,.09);
    filter: blur(35px);
    pointer-events: none;
}

.leaderboard-page .rank-2 .podium-glow {
    background: rgba(190,190,190,.08);
}

.leaderboard-page .rank-3 .podium-glow {
    background: rgba(181,112,60,.10);
}

.leaderboard-page .podium-medal {
    position: relative;
    z-index: 1;
    min-height: 53px;
}

.leaderboard-page .medal-icon {
    display: block;
    font-size: 36px;
    line-height: 1.3;
}

.leaderboard-page .crown {
    position: absolute;
    top: -12px;
    right: -14px;
    font-size: 19px;
}

.leaderboard-page .podium-rank {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--l-gold);
    background: rgba(240,208,0,.09);
    font-size: 9px;
    font-weight: 800;
}

.leaderboard-page .rank-2 .podium-rank {
    color: #ccc;
    background: rgba(200,200,200,.09);
}

.leaderboard-page .rank-3 .podium-rank {
    color: #d99a6b;
    background: rgba(181,112,60,.10);
}

.leaderboard-page .podium-card h3 {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 12px 0 5px;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.leaderboard-page .podium-points {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--l-gold);
}

.leaderboard-page .podium-points strong {
    font-size: 27px;
    font-weight: 900;
}

.leaderboard-page .podium-points span {
    color: #aaa;
    font-size: 10px;
}

.leaderboard-page .podium-divider {
    width: 100%;
    height: 1px;
    margin: 14px 0;
    background: #393939;
}

.leaderboard-page .podium-details {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.leaderboard-page .podium-details div {
    min-width: 0;
}

.leaderboard-page .podium-details span {
    display: block;
    color: #999;
    font-size: 9px;
}

.leaderboard-page .podium-details strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #eee;
    font-size: 11px;
}

.leaderboard-page .podium-base {
    width: calc(100% + 32px);
    margin: 17px -16px -15px;
    padding: 8px;
    border-top: 1px solid #393939;
    color: #b7a04a;
    background: rgba(0,0,0,.17);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}

.leaderboard-page .rank-1 .podium-base {
    color: var(--l-gold);
}

.leaderboard-page .rank-2 .podium-base {
    color: #ccc;
}

.leaderboard-page .rank-3 .podium-base {
    color: #d99a6b;
}

.leaderboard-page .podium-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed #514514;
    border-radius: 13px;
    color: #bbb;
    background: #171717;
    text-align: center;
}

.leaderboard-page .podium-empty > span {
    font-size: 34px;
}

.leaderboard-page .podium-empty h3 {
    margin: 7px 0;
    color: var(--l-gold);
}

.leaderboard-page .podium-empty p {
    margin: 0;
    font-size: 11px;
}

/* Ranking table */

.leaderboard-page .ranking-section {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid var(--l-border);
    border-radius: 14px;
    background: #171717;
}

.leaderboard-page .ranking-heading {
    margin-bottom: 16px;
}

.leaderboard-page .ranking-search {
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #414141;
    border-radius: 9px;
    background: #111;
}

.leaderboard-page .ranking-search > span {
    color: var(--l-gold);
    font-size: 22px;
}

.leaderboard-page .ranking-search input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: 0;
    color: #eee;
    background: transparent;
    font-size: 11px;
}

.leaderboard-page .ranking-search input::placeholder {
    color: #777;
}

.leaderboard-page .ranking-search:focus-within {
    border-color: var(--l-gold);
    box-shadow: 0 0 0 3px rgba(240,208,0,.08);
}

.leaderboard-page .ranking-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #333;
    border-radius: 10px;
}

.leaderboard-page .ranking-table {
    width: 100%;
    min-width: 690px;
    border-collapse: collapse;
    text-align: right;
}

.leaderboard-page .ranking-table thead {
    background: #25220f;
}

.leaderboard-page .ranking-table th {
    padding: 13px 12px;
    color: var(--l-gold);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.leaderboard-page .ranking-table td {
    padding: 12px;
    border-top: 1px solid #303030;
    color: #ccc;
    font-size: 11px;
    white-space: nowrap;
}

.leaderboard-page .ranking-table tbody tr {
    background: #1a1a1a;
    transition: background .15s ease;
}

.leaderboard-page .ranking-table tbody tr:nth-child(even) {
    background: #202020;
}

.leaderboard-page .ranking-table tbody tr:hover {
    background: #2a2718;
}

.leaderboard-page .ranking-table tr[hidden] {
    display: none !important;
}

.leaderboard-page .visitor-name {
    display: flex;
    align-items: center;
    gap: 9px;
}

.leaderboard-page .visitor-name strong {
    color: #eee;
    font-size: 11px;
}

.leaderboard-page .visitor-avatar {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex: 0 0 29px;
    border: 1px solid #68591a;
    border-radius: 50%;
    color: var(--l-gold);
    background: #302a10;
    font-size: 11px;
    font-weight: 900;
}

.leaderboard-page .ranking-table code {
    padding: 4px 7px;
    border: 1px solid #414141;
    border-radius: 6px;
    color: #ddd;
    background: #111;
    font-size: 10px;
}

.leaderboard-page .points-value {
    color: var(--l-gold);
    font-size: 12px;
    font-weight: 900;
}

.leaderboard-page .rank-number {
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #414141;
    border-radius: 8px;
    color: #bbb;
    background: #252525;
    font-weight: 900;
}

.leaderboard-page .gold-rank {
    border-color: #b89b16;
    color: #171300;
    background: linear-gradient(145deg, #ffe75a, #c9a900);
}

.leaderboard-page .silver-rank {
    border-color: #aaa;
    color: #171717;
    background: linear-gradient(145deg, #eee, #999);
}

.leaderboard-page .bronze-rank {
    border-color: #aa7147;
    color: #1b1009;
    background: linear-gradient(145deg, #e9ad7c, #a9683d);
}

.leaderboard-page .table-empty {
    padding: 20px;
    color: #999;
    text-align: center;
}

.leaderboard-page .search-empty {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #514514;
    border-radius: 8px;
    color: var(--l-gold);
    background: rgba(240,208,0,.04);
    font-size: 11px;
    text-align: center;
}

.leaderboard-page .search-empty[hidden] {
    display: none !important;
}

/* Back button */

.leaderboard-page .leaderboard-footer {
    display: flex;
    justify-content: center;
    margin: 23px 0;
}

.leaderboard-page .back-to-partners {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    border: 1px solid #61541b;
    border-radius: 9px;
    color: var(--l-gold);
    background: rgba(240,208,0,.05);
    font-size: 11px;
    font-weight: 800;
    transition: .2s ease;
}

.leaderboard-page .back-to-partners:hover {
    color: #111;
    background: var(--l-gold);
    transform: translateY(-2px);
}

/* Reveal */

.leaderboard-page .reveal {
    opacity: 1;
    transform: none;
}

.leaderboard-page.js-ready .reveal {
    opacity: 0;
    transform: translateY(13px);
    transition: opacity .5s ease, transform .5s ease;
}

.leaderboard-page.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 760px) {
    .leaderboard-page .partner-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
    }

    .leaderboard-page .hero-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .leaderboard-page .podium-grid {
        gap: 8px;
    }

    .leaderboard-page .podium-card {
        padding: 17px 9px 12px;
    }

    .leaderboard-page .podium-card h3 {
        font-size: 12px;
    }

    .leaderboard-page .podium-details {
        grid-template-columns: 1fr;
    }

    .leaderboard-page .podium-base {
        width: calc(100% + 18px);
        margin-right: -9px;
        margin-left: -9px;
    }
}

@media (max-width: 540px) {
    .leaderboard-page .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .leaderboard-page .ranking-section {
        padding: 13px;
    }

    .leaderboard-page .ranking-heading {
        align-items: stretch;
    }

    .leaderboard-page .ranking-search {
        width: 100%;
        min-width: 0;
    }

    .leaderboard-page .podium-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-page .podium-card {
        padding: 18px 15px 14px;
    }

    .leaderboard-page .podium-details {
        grid-template-columns: 1fr 1fr;
    }

    .leaderboard-page .podium-base {
        width: calc(100% + 30px);
        margin-right: -15px;
        margin-left: -15px;
    }

    .leaderboard-page .hero-copy h1 {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leaderboard-page *,
    .leaderboard-page *::before,
    .leaderboard-page *::after {
        transition-duration: .01ms !important;
        animation: none !important;
    }

    .leaderboard-page.js-ready .reveal {
        opacity: 1;
        transform: none;
    }
}











































/* Header Footer TAG SubTAG */
/* =========================================================
   MOMENI WHOLESALE
   GLOBAL UI POLISH — HEADER / FOOTER / TAGS / SUBTAGS
   Add this block at the VERY END of style.css
========================================================= */


/* =========================================================
   1. HEADER
========================================================= */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 999;


    padding: 9px 0;

    background: rgba(17, 17, 17, .94);
    border-bottom: 1px solid rgba(240, 208, 0, .18);

    box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition: background .25s ease, box-shadow .25s ease;
}

/* خط طلایی بالای هدر */
.top-bar::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(240, 208, 0, .8),
        #f0d000,
        rgba(240, 208, 0, .8),
        transparent
    );
}

.top-bar .container {
    max-width: 1240px;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* لوگو */

.top-bar .logo {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;

    color: #f0d000;
    font-size: 1.18rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;

    transition: filter .2s ease, transform .2s ease;
}

.top-bar .logo::before {
    content: "M";

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(240, 208, 0, .55);
    border-radius: 12px;

    color: #171400;
    background: linear-gradient(145deg, #ffe94b, #d4b300);

    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 900;

    box-shadow:
        0 4px 15px rgba(240, 208, 0, .14),
        inset 0 1px 0 rgba(255, 255, 255, .35);
}

.top-bar .logo:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}


/* منوی دسکتاپ */

.top-bar .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;

    margin-right: auto;

    flex-wrap: nowrap;
}

.top-bar .desktop-nav > a:not(.btn-primary):not(.btn-outline) {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 8px 12px;

    border-radius: 9px;

    color: #d5d5d5 !important;
    background: transparent;

    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

/* خط کوچک زیر لینک هنگام Hover */

.top-bar .desktop-nav > a:not(.btn-primary):not(.btn-outline)::after {
    content: "";

    position: absolute;
    right: 12px;
    bottom: 5px;

    width: 0;
    height: 2px;

    border-radius: 5px;
    background: #f0d000;

    transition: width .22s ease;
}

.top-bar .desktop-nav > a:not(.btn-primary):not(.btn-outline):not(.nav-deals-btn):hover {
    color: #f0d000;
    background: rgba(240, 208, 0, .07);

    transform: translateY(-1px);
}

.top-bar .desktop-nav > .nav-deals-btn:hover {
    color: #000 !important;
    background: rgba(240, 208, 0, .07);

    transform: translateY(-1px);
}

.top-bar .desktop-nav > a:not(.btn-primary):not(.btn-outline):not(.nav-deals-btn):hover::after {
    width: calc(100% - 24px);
}


/* لینک تخفیفات ویژه */

.top-bar .desktop-nav > a:first-child {
    color: #f0d000 !important;
    background: rgba(240, 208, 0, .075) !important;
}

.top-bar .desktop-nav > a:first-child:hover {
    color: #171400 !important;
    background: #f0d000 !important;
}


/* دکمه ثبت‌نام */

.top-bar .desktop-nav > a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 39px;
    padding: 8px 16px;

    border: 1px solid #f0d000;
    border-radius: 9px;

    color: #171400;
    background: linear-gradient(135deg, #ffe94b, #dfbd00);

    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;

    box-shadow: 0 4px 13px rgba(240, 208, 0, .12);
    transition: .2s ease;
}

.top-bar .desktop-nav > a.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffeb55;
    box-shadow: 0 7px 19px rgba(240, 208, 0, .2);
}


/* دکمه خروج */

.top-bar .desktop-nav > a.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 7px 13px;

    border: 1px solid #494949;
    border-radius: 9px;

    color: #ccc;
    background: #202020;

    font-size: .8rem;
    white-space: nowrap;

    transition: .2s ease;
}

.top-bar .desktop-nav > a.btn-outline:hover {
    border-color: #d8b900;
    color: #f0d000;
    background: #29240f;
}


/* نام کاربر */

.top-bar .desktop-nav .user-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 34px;
    padding: 5px 11px;

    border: 1px solid #353535;
    border-radius: 30px;

    color: #ccc;
    background: #202020;

    font-size: .76rem;
    white-space: nowrap;
}

.top-bar .desktop-nav .user-name::before {
    content: "●";
    color: #f0d000;
    font-size: 9px;
}


/* Badge سبد خرید */

.top-bar .badge {
    min-width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: 5px;
    padding: 0 5px;

    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 20px;

    color: #171400;
    background: #f0d000;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}


/* =========================================================
   2. MOBILE MENU BUTTON
========================================================= */

.nav-toggle {
    width: 44px;
    height: 44px;

    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    padding: 9px;

    border: 1px solid rgba(240, 208, 0, .35);
    border-radius: 11px;

    background: linear-gradient(145deg, #242424, #151515);

    box-shadow: 0 4px 13px rgba(0, 0, 0, .2);

    transition: .2s ease;
}

.nav-toggle span {
    width: 21px;
    height: 2px;

    display: block;

    border-radius: 5px;
    background: #f0d000;

    transition: .2s ease;
}

.nav-toggle:hover {
    border-color: #f0d000;
    background: #29240f;
    transform: translateY(-1px);
}


/* =========================================================
   3. MOBILE DRAWER
========================================================= */

.nav-backdrop {
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.drawer-nav {
    width: min(330px, 88vw);

    padding: 0 0 25px;

    border-left: 1px solid rgba(240, 208, 0, .2);

    background:
        radial-gradient(circle at 90% 0%, rgba(240, 208, 0, .08), transparent 30%),
        linear-gradient(180deg, #1d1d1d, #111);

    box-shadow: -15px 0 40px rgba(0, 0, 0, .5);
}

/* سربرگ منوی موبایل */

.drawer-nav .drawer-header {
    height: 76px !important;

    display: flex;
    align-items: center;

    padding-right: 19px;

    border-bottom: 1px solid rgba(240, 208, 0, .16) !important;
}

.drawer-nav .drawer-header::before {
    content: "بنک‌داری مومنی";

    color: #f0d000;
    font-size: 16px;
    font-weight: 900;
}

.drawer-nav .drawer-header::after {
    content: "منوی دسترسی سریع";

    position: absolute;
    right: 20px;
    bottom: 5px;

    color: #777;
    font-size: 9px;
}

/* دکمه بستن */

.drawer-nav .drawer-close {


    width: 38px !important;
    height: 38px !important;

    border: 1px solid #494949 !important;
    border-radius: 10px !important;

    color: #f0d000 !important;
    background: #252525 !important;

    font-size: 23px !important;

    transition: .2s ease;
}

.drawer-nav .drawer-close:hover {
    border-color: #f0d000 !important;
    color: #111 !important;
    background: #f0d000 !important;
}


/* لینک‌های موبایل */

.drawer-nav > a:not(.btn-primary):not(.btn-outline) {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 49px;
    margin: 3px 10px;
    padding: 11px 15px;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #ddd;
    background: transparent;

    font-size: 12px;
    font-weight: 600;

    transition: .2s ease;
}

.drawer-nav > a:not(.btn-primary):not(.btn-outline)::before {
    content: "›";

    margin-left: 9px;

    color: #a58d23;
    font-size: 17px;
    font-weight: 900;
}

.drawer-nav > a:not(.btn-primary):not(.btn-outline):hover {
    border-color: rgba(240, 208, 0, .2);
    color: #f0d000;
    background: rgba(240, 208, 0, .06);
}


/* نام کاربر در منوی موبایل */

.drawer-nav > .user-name {
    display: block;

    margin: 14px 13px 8px;
    padding: 11px 13px;

    border: 1px solid #3d3518;
    border-radius: 10px;

    color: #f0d000;
    background: rgba(240, 208, 0, .07);

    font-size: 12px;
    font-weight: 800;
}


/* دکمه‌های ثبت‌نام و خروج موبایل */

.drawer-nav .btn-primary,
.drawer-nav .btn-outline {
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 10px 14px 0;
    padding: 9px 13px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   4. FOOTER
========================================================= */

.footer {
    position: relative;

    margin-top: 55px;
    padding: 48px 0 18px;

    overflow: hidden;

    border-top: 1px solid rgba(240, 208, 0, .25);

    background:
        radial-gradient(ellipse at 50% 0%, rgba(240, 208, 0, .075), transparent 48%),
        linear-gradient(180deg, #191919 0%, #111 100%);
}

/* خط بالایی فوتر */

.footer::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #6e5a0b,
        #f0d000,
        #6e5a0b,
        transparent
    );
}

.footer .footer-inner {
    max-width: 1240px;
}


/* چیدمان ستون‌ها */

.footer .footer-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.25fr)
        minmax(145px, .8fr)
        minmax(180px, 1fr)
        minmax(210px, 1.1fr);

    gap: 13px;

    margin-bottom: 27px;
}


/* کارت هر ستون */

.footer .footer-col {
    min-width: 0;

    padding: 20px 17px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 13px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, .035),
        rgba(255, 255, 255, .012)
    );

    text-align: right !important;

    transition: border-color .2s ease, background .2s ease;
}

.footer .footer-col:hover {
    border-color: rgba(240, 208, 0, .2);

    background: linear-gradient(
        145deg,
        rgba(240, 208, 0, .045),
        rgba(255, 255, 255, .012)
    );
}


/* عنوان هر ستون */

.footer .footer-col h4 {
    position: relative;

    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 17px;
    padding-bottom: 11px;

    border-bottom: 1px solid rgba(240, 208, 0, .16);

    color: #f0d000;
    font-size: 13px;
    font-weight: 900;
}

.footer .footer-col h4::before {
    content: "";

    width: 5px;
    height: 17px;

    display: inline-block;
    flex: 0 0 5px;

    border-radius: 5px;
    background: linear-gradient(180deg, #ffe95a, #b99800);

    box-shadow: 0 0 9px rgba(240, 208, 0, .2);
}


/* متن‌های فوتر */

.footer .footer-text {
    color: #999;
    font-size: 11px;
    line-height: 2;
    margin: 0 0 9px;
}


/* لینک‌های عمومی فوتر */

.footer .footer-col a:not(.footer-social-icon):not(.footer-branch-links a) {
    position: relative;

    display: flex;
    align-items: center;
    gap: 7px;

    width: fit-content;
    max-width: 100%;

    margin: 0 0 10px;
    padding: 3px 0;

    color: #bdbdbd;
    font-size: 11px;
    line-height: 1.8;
    text-decoration: none;

    transition: color .18s ease, transform .18s ease;
}

.footer .footer-col a:not(.footer-social-icon):not(.footer-branch-links a)::before {
    content: "‹";

    color: #8e7820;
    font-size: 16px;
    line-height: 1;
    transition: color .18s ease;
}

.footer .footer-col a:not(.footer-social-icon):not(.footer-branch-links a):hover {
    color: #f0d000;
    transform: translateX(-3px);
}

.footer .footer-col a:not(.footer-social-icon):not(.footer-branch-links a):hover::before {
    color: #f0d000;
}


/* توضیح کانال‌های ارتباطی */

.footer .footer-channel {
    margin: 0 0 13px;
    padding: 0 0 10px;

    border-bottom: 1px dashed rgba(255, 255, 255, .08);
}

.footer .footer-channel:last-child {
    border-bottom: 0;
}

.footer .footer-channel-label {
    display: block;
    margin-bottom: 3px;

    color: #8f8f8f;
    font-size: 9px;
}

.footer .footer-channel a,
.footer .footer-channel > span.footer-text {
    color: #ddd;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.footer .footer-channel a:hover {
    color: #f0d000;
}


/* آیکون‌های شبکه‌های اجتماعی */

.footer .footer-social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 9px;
    width: 100%;

    margin-top: 17px;
}

.footer .footer-col .footer-social-icon {
    width: 41px !important;
    height: 41px !important;
    min-width: 41px;
    min-height: 41px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    border: 1px solid #414141;
    border-radius: 11px;

    background: #222;

    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.footer .footer-col .footer-social-icon:hover {
    transform: translateY(-4px);

    border-color: #f0d000;
    background: #30290f;
}

.footer .footer-social-icon img {
    width: 23px !important;
    height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;

    display: block !important;
    object-fit: contain !important;
}


/* کارت شعب */

.footer .footer-branch {
    margin: 0 0 11px;
    padding: 11px;

    border: 1px solid #343434;
    border-radius: 9px;

    background: rgba(0, 0, 0, .16);

    text-align: right !important;
}

.footer .footer-branch strong {
    display: block;
    margin-bottom: 5px;

    color: #e8d36a;
    font-size: 11px;
    font-weight: 800;
}

.footer .footer-branch .footer-text {
    color: #999;
    font-size: 10px;
    line-height: 1.8;
    text-align: right !important;
}


/* لینک‌های نقشه */

.footer .footer-branch-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 7px;
    flex-wrap: wrap;

    width: 100%;
    margin-top: 7px;
}

.footer .footer-branch-links a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 4px 9px;

    border: 1px solid #514514;
    border-radius: 7px;

    color: #e1c83c !important;
    background: rgba(240, 208, 0, .055);

    font-size: 9px !important;
    text-decoration: none;

    transition: .2s ease;
}

.footer .footer-branch-links a:hover {
    border-color: #f0d000;
    color: #151300 !important;
    background: #f0d000;
}


/* نوار پایانی فوتر */

.footer .footer-bottom {
    position: relative;

    margin-top: 23px;
    padding: 17px 10px 0;

    border-top: 1px solid rgba(255, 255, 255, .09);

    color: #777;
    font-size: 10px;
    text-align: center;
}

.footer .footer-bottom::before {
    content: "✦";

    display: block;
    margin: 0 auto 7px;

    color: rgba(240, 208, 0, .6);
    font-size: 13px;
}


/* =========================================================
   5. PRODUCT CATEGORY TAGS
========================================================= */

.menu-tags-wrap {
    position: relative;

    display: flex;
    align-items: stretch;
    gap: 9px;

    margin: 12px 0 14px;
    padding: 9px;

    border: 1px solid rgba(240, 208, 0, .13);
    border-radius: 14px;

    background: linear-gradient(145deg, #202020, #141414);

    box-shadow: 0 5px 17px rgba(0, 0, 0, .15);
}


/* نوار دسته‌بندی‌ها */

.menu-tags {
    border: 1px solid #343434 !important;
    border-radius: 10px !important;

    background: #141414 !important;

    gap: 8px !important;
    padding: 9px !important;

    scrollbar-width: none;
}

.menu-tags::-webkit-scrollbar {
    display: none;
}


/* دکمه فلش دسته‌بندی */

.menu-tags-arrow {
    min-width: 43px !important;
    width: 43px !important;
    flex: 0 0 43px !important;

    border: 1px solid #514514 !important;
    border-radius: 10px !important;

    color: #f0d000 !important;
    background: linear-gradient(145deg, #29240f, #171717) !important;

    font-size: 23px !important;

    transition: .2s ease;
}

.menu-tags-arrow:hover {
    border-color: #f0d000 !important;
    color: #171400 !important;
    background: #f0d000 !important;
    transform: translateY(-1px);
}


/* خود Tag */

.menu-tags .menu-tag {
    min-width: 88px !important;
    min-height: 88px;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px !important;

    padding: 9px 11px !important;

    border: 1px solid #373737 !important;
    border-radius: 11px !important;

    color: #ccc !important;
    background: linear-gradient(145deg, #252525, #191919) !important;

    transition:
        transform .2s ease,
        border-color .2s ease,
        color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.menu-tags .menu-tag:hover {
    transform: translateY(-3px);

    border-color: #8e7820 !important;
    color: #f0d000 !important;

    background: linear-gradient(145deg, #30290f, #1c1a12) !important;

    box-shadow: 0 5px 13px rgba(0, 0, 0, .22);
}

.menu-tags .menu-tag.active {
    transform: translateY(-2px);

    border-color: #f0d000 !important;
    color: #171400 !important;

    background: linear-gradient(145deg, #ffe94b, #d9b800) !important;

    box-shadow: 0 5px 15px rgba(240, 208, 0, .15);
}


/* آیکون Tag */

.menu-tags .menu-tag-icon {
    width: 39px !important;
    height: 39px !important;

    display: block;
    object-fit: contain;

    transition: transform .2s ease;
}

.menu-tags .menu-tag:hover .menu-tag-icon {
    transform: scale(1.07);
}

.menu-tags .menu-tag-label {
    display: block;

    max-width: 100%;
    overflow: hidden;

    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.5;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-tags .menu-tag.active .menu-tag-label {
    color: #171400;
}


/* تگ همه محصولات */

.menu-tags .menu-tag-all:not(.active) {
    border: 1px dashed #8a7020 !important;
    color: #e5c943 !important;
    background: #1c190d !important;
}

.menu-tags .menu-tag-all.active {
    border-style: solid !important;
    border-color: #f0d000 !important;
    color: #171400 !important;
    background: #f0d000 !important;
}


/* =========================================================
   6. PRODUCT SUBTAGS
========================================================= */

.menu-subtags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px !important;

    margin: 11px 0 17px;
    padding: 13px 14px !important;

    border: 1px solid rgba(240, 208, 0, .16);
    border-radius: 13px;

    background:
        radial-gradient(ellipse at 10% 0%, rgba(240, 208, 0, .07), transparent 55%),
        linear-gradient(145deg, #1e1c14, #151515);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}


/* خود Subtag */

.menu-subtag {
    min-height: 35px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 7px 14px !important;

    border: 1px solid #514514 !important;
    border-radius: 9px !important;

    color: #d9c45b !important;
    background: linear-gradient(145deg, #29240f, #1a1914) !important;

    font-family: inherit;
    font-size: 10px !important;
    font-weight: 700;

    cursor: pointer;

    box-shadow: none !important;

    transition:
        transform .18s ease,
        border-color .18s ease,
        color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.menu-subtag:hover {
    transform: translateY(-2px);

    border-color: #f0d000 !important;
    color: #fff2a0 !important;

    background: #30290f !important;

    box-shadow: 0 4px 12px rgba(240, 208, 0, .12) !important;
}

.menu-subtag.active,
.menu-subtag.is-active {
    transform: none;

    border-color: #f0d000 !important;
    color: #171400 !important;

    background: linear-gradient(135deg, #ffe94b, #d9b800) !important;

    font-weight: 900;

    box-shadow: 0 3px 10px rgba(240, 208, 0, .12) !important;
}


/* فوکوس کیبورد */

.top-bar a:focus-visible,
.top-bar button:focus-visible,
.drawer-nav a:focus-visible,
.drawer-nav button:focus-visible,
.menu-tag:focus-visible,
.menu-subtag:focus-visible,
.footer a:focus-visible {
    outline: 2px solid #f0d000;
    outline-offset: 3px;
}


/* =========================================================
   7. RESPONSIVE
========================================================= */

/* لپ‌تاپ‌های کوچک */

@media (min-width: 769px) and (max-width: 1000px) {
    .top-bar .container {
        gap: 10px;
    }

    .top-bar .logo {
        font-size: 1rem;
        gap: 8px;
    }

    .top-bar .logo::before {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .top-bar .desktop-nav {
        gap: 2px;
    }

    .top-bar .desktop-nav > a:not(.btn-primary):not(.btn-outline) {
        padding: 7px 8px;
        font-size: 10px;
    }

    .footer .footer-grid {
        gap: 9px;
    }

    .footer .footer-col {
        padding: 16px 12px;
    }
}


/* تبلت */

@media (max-width: 900px) {
    .footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }
}


/* موبایل */

@media (max-width: 768px) {
    .top-bar {
        margin-bottom: 15px;
        padding: 7px 0;
    }

    .top-bar .container {
        min-height: 51px;
        gap: 10px;
    }

    .top-bar .logo {
        font-size: 1.05rem;
    }

    .top-bar .logo::before {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 22px;
    }

    .nav-toggle {
        display: flex !important;
    }

    .drawer-nav {
        display: flex;
    }

    .footer {
        margin-top: 35px;
        padding: 32px 0 16px;
    }

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

    .footer .footer-col {
        padding: 15px 12px;
    }

    .footer .footer-col h4 {
        font-size: 11px;
    }

    .footer .footer-text,
    .footer .footer-col a:not(.footer-social-icon) {
        font-size: 10px;
    }

    .menu-tags-wrap {
        gap: 6px;
        padding: 6px;
    }

    .menu-tags .menu-tag {
        min-width: 76px !important;
        min-height: 77px;
        padding: 7px !important;
    }

    .menu-tags .menu-tag-icon {
        width: 33px !important;
        height: 33px !important;
    }

    .menu-tags .menu-tag-label {
        font-size: 9px !important;
    }

    .menu-tags-arrow {
        min-width: 36px !important;
        width: 36px !important;
        flex-basis: 36px !important;
        font-size: 19px !important;
    }

    .menu-subtags {
        gap: 7px !important;
        padding: 10px !important;
    }

    .menu-subtag {
        min-height: 32px;
        padding: 6px 11px !important;
        font-size: 9px !important;
    }
}


/* موبایل باریک */

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

    .footer .footer-col {
        padding: 16px;
    }

    .footer .footer-col h4 {
        font-size: 12px;
    }

    .footer .footer-text,
    .footer .footer-col a:not(.footer-social-icon) {
        font-size: 11px;
    }

    .footer .footer-social-icons {
        justify-content: flex-start;
    }

    .menu-tags .menu-tag {
        min-width: 70px !important;
        min-height: 72px;
    }
}


/* کاهش حرکت برای افرادی که انیمیشن را غیرفعال کرده‌اند */

@media (prefers-reduced-motion: reduce) {
    .top-bar *,
    .drawer-nav *,
    .footer *,
    .menu-tags *,
    .menu-subtags * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


.menu-tags-wrap {
    display: flex;
    align-items: center;   /* وسط عمودی فلش‌ها نسبت به ردیف تگ‌ها */
    gap: 8px;
    width: 100%;
}

.menu-tags {
    flex: 1;
    min-width: 0;          /* برای اسکرول افقی داخل flex ضروری */
    /* بقیه استایل خودت برای اسکرول/grid */
}

.menu-tags-arrow {
    flex-shrink: 0;
    align-self: center;    /* اگر هنوز بالا بود، این را هم بگذار */
    width: 40px;
    height: 40px;          /* یا 48px — مربع یکدست */
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
} 





/* Bundle */
.bundle-slider-wrap {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 20px; padding: 8px 0;
}
.bundle-track {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; flex: 1;
  -webkit-overflow-scrolling: touch;
}
.bundle-card {
  flex: 0 0 160px; height: 96px; border-radius: 14px;
  border: 2px solid #3a1a1a; background: #b00000;
  overflow: hidden; cursor: pointer; scroll-snap-align: start;
  padding: 0;
}
.bundle-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bundle-card-fallback {
  color: #fff; font-weight: 700; display:flex; align-items:center; justify-content:center;
  height: 100%;
}
.bundle-nav {
  background: transparent; border: none; color: #e74c3c;
  font-size: 1.6rem; cursor: pointer; flex-shrink: 0;
}
.bundle-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.88);
  z-index: 100000; display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.bundle-modal-box {
  background: #1a1a1a; border: 1px solid #444; border-radius: 14px;
  max-width: 520px; width: 100%; max-height: 90vh; overflow: auto;
  padding: 16px; position: relative;
}
.bundle-modal-close {
  position: absolute; top: 10px; left: 10px;
  background: #333; color: #fff; border: none; border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.bundle-hero-img {
  width: 100%; max-height: 250px; object-fit: cover; border-radius: 12px; margin-bottom: 10px;
}
.bundle-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.bundle-thumb {
  width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  background: #111; border: 1px solid #333; flex-shrink: 0;
}
.bundle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bundle-modal-title { color: var(--accent); margin: 0 0 6px; }
.bundle-modal-sub { color: var(--muted); margin: 0 0 12px; font-size: .9rem; }
.bundle-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .9rem; }
.bundle-table th, .bundle-table td {
  border-bottom: 1px solid #333; padding: 8px 6px; text-align: right;
}
.bundle-table tr.is-hero td { color: #f0d000; }
.hero-tag {
  background: #c0392b; color: #fff; font-size: .65rem;
  padding: 1px 6px; border-radius: 4px; margin-right: 4px;
}
.bundle-add-btn { width: 100%; padding: 14px; font-size: 1rem; }

@media (max-width: 640px) {
  .bundle-card { flex-basis: 140px; height: 84px; }
}




.bundle-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 22px;
  padding: 8px 0;
}

.bundle-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
}

.bundle-card {
  flex: 0 0 260px;          /* عرض بیشتر */
  height: 150px;            /* ارتفاع بیشتر */
  border-radius: 16px;
  border: 2px solid #5c1a1a;
  background: #b00000;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.bundle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bundle-card-fallback {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px;
  text-align: center;
}

.bundle-nav {
  background: transparent;
  border: none;
  color: #e74c3c;
  font-size: 1.8rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0 4px;
}

@media (max-width: 640px) {
  .bundle-card {
    flex-basis: 200px;
    height: 120px;
  }
}

.bundle-fold {
  margin: 18px 0 24px;
}

.bundle-fold-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.bundle-fold-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ff4d4d;
}

.bundle-fold-hint {
  font-size: 0.85rem;
  color: var(--muted, #888);
} 





/* Tooltip */

/* =========================================
   PRODUCT SPEC TOOLTIP — PREMIUM DARK/GOLD
========================================= */

.product-row-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
    position: relative;
}

.product-row-title-wrap .product-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

/* Tooltip Wrapper */
.spec-tip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 30;
}

/* Trigger Button */
.spec-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    height: 27px;
    padding: 0 10px;

    border: 1px solid rgba(240, 208, 0, 0.28);
    border-radius: 8px;

    background: rgba(240, 208, 0, 0.07);
    color: #e5c95c;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.spec-tip-btn:hover {
    background: rgba(240, 208, 0, 0.16);
    border-color: rgba(240, 208, 0, 0.65);
    color: #ffe36b;
    transform: translateY(-1px);
}

.spec-tip-btn:active {
    transform: scale(.96);
}

.spec-tip-btn svg {
    flex-shrink: 0;
}

/* Main Tooltip Panel */
.spec-tooltip {
    position: absolute;

    top: calc(100% + 11px);
    right: 0;

    width: 290px;
    max-width: calc(100vw - 32px);
    max-height: 340px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 15px;

    direction: rtl;
    text-align: right;

    background: #191b21;
    border: 1px solid rgba(240, 208, 0, 0.24);
    border-radius: 13px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.48),
        0 2px 8px rgba(0, 0, 0, 0.2);

    z-index: 9999;

    animation: specTooltipIn .18s ease;
}

/* Respect HTML hidden attribute */
.spec-tooltip[hidden] {
    display: none !important;
}

/* Small Arrow */
.spec-tooltip::before {
    content: "";

    position: absolute;
    top: -6px;
    right: 22px;

    width: 10px;
    height: 10px;

    background: #191b21;

    border-top: 1px solid rgba(240, 208, 0, 0.24);
    border-right: 1px solid rgba(240, 208, 0, 0.24);

    transform: rotate(-45deg);
}

/* Tooltip Header */
.spec-tooltip-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding-bottom: 13px;
    margin-bottom: 5px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: #f0d000;
}

.spec-tooltip-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.spec-tooltip-heading > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-tooltip-heading strong {
    color: #f5f5f5;
    font-size: 13px;
    font-weight: 800;
}

.spec-tooltip-heading small {
    color: #858995;
    font-size: 10px;
    font-weight: 400;
}

.spec-tooltip-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background: rgba(240, 208, 0, 0.12);
    color: #f0d000;

    font-size: 17px;
}

.spec-tooltip-count {
    flex-shrink: 0;

    padding: 4px 8px;

    border-radius: 20px;

    background: rgba(240, 208, 0, 0.09);
    color: #e5c95c;

    font-size: 10px;
    font-weight: 700;
}

/* Specifications List */
.spec-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-tooltip li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    padding: 10px 3px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.065);

    font-size: 12px;
    line-height: 1.8;
}

.spec-tooltip li:last-child {
    border-bottom: 0;
    padding-bottom: 3px;
}

.spec-tooltip li span {
    color: #9297a3;
    flex-shrink: 0;
}

.spec-tooltip li b {
    color: #f0f0f0;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
}

/* Entry Animation */
@keyframes specTooltipIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .spec-tooltip {
        width: min(280px, calc(100vw - 32px));
        max-height: 300px;
    }

    .spec-tip-btn {
        height: 25px;
        padding: 0 8px;
        font-size: 10px;
    }
}





/* Specifications beside stock information */
.stock-with-spec {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-with-spec .spec-tip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.stock-with-spec .spec-tip-btn {
    height: 25px;
    padding: 0 9px;
    font-size: 10px;
}

.stock-with-spec .spec-tooltip {
    top: auto !important;
    bottom: calc(100% + 11px);
    right: 0;
    left: auto;
    z-index: 9999;
}











/* Top Header - NAV */
/* =====================================================
   MOMENI BONAK — CLEAN & CONSISTENT HEADER
   Dark / Charcoal / Yellow
===================================================== */

/* هدر اصلی */
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--bg, #111);
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    border-bottom: 1px solid var(--border, #303030);
}

/* =====================================================
   TOP BAR — LOGO & ACCOUNT
===================================================== */

.site-header .top-bar {
    background: var(--bg, #111);
    border-bottom: 1px solid var(--border, #303030);
}

.site-header .top-bar::before {
    content: none !important;
}

.site-header .top-bar-inner {
    width: min(1200px, calc(100% - 32px));
    min-height: 70px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* لوگو */
.site-header .logo {
    display: inline-flex;
    align-items: center;
    color: var(--text, #eee) !important;
    font-size: 1.18rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.site-header .logo::before {
    content: none !important;
    display: none !important;
}

.site-header .logo:hover {
    color: var(--accent, #f0d000) !important;
}

/* بخش حساب کاربری */
.site-header .top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

/* نام کاربر */
.site-header .top-actions .user-name {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--card, #1b1b1b);
    border: 1px solid var(--border, #303030);
    color: var(--muted, #aaa);
    font-size: .83rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* لینک‌های بالای هدر */
.site-header .top-actions .top-link,
.site-header .top-actions .top-cart {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: var(--text, #eee) !important;
    background: var(--card, #1b1b1b);
    border: 1px solid var(--border, #303030);
    border-radius: 8px;
    font-size: .82rem;
    text-decoration: none;
    transition: .2s ease;
}

.site-header .top-actions .top-link:hover,
.site-header .top-actions .top-cart:hover {
    border-color: var(--accent, #f0d000);
    color: var(--accent, #f0d000) !important;
}

/* دکمه‌های ورود، ثبت‌نام و خروج */
.site-header .top-actions .btn-sm {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.site-header .top-actions .btn-primary.btn-sm {
    background: var(--accent, #f0d000);
    border: 1px solid var(--accent, #f0d000);
    color: #151515 !important;
}

.site-header .top-actions .btn-primary.btn-sm:hover {
    background: var(--accent-hover, #d8bd00);
}

.site-header .top-actions .btn-outline.btn-sm {
    background: transparent;
    border: 1px solid var(--border, #303030);
    color: var(--text, #eee) !important;
}

.site-header .top-actions .btn-outline.btn-sm:hover {
    border-color: var(--accent, #f0d000);
    color: var(--accent, #f0d000) !important;
}

/* شمارنده سبد */
.site-header .top-actions .badge {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent, #f0d000);
    color: #111;
    font-size: .7rem;
    font-weight: 800;
}

/* =====================================================
   MAIN NAV — SEPARATE MENU
===================================================== */

.site-header .main-nav-bar {
    display: block;
    background: var(--card, #1a1a1a);
    border-bottom: 1px solid var(--border, #303030);
}

.site-header .main-nav-bar > .container {
    width: min(1200px, calc(100% - 32px));
    margin: auto;
}

.site-header .desktop-nav {
    min-height: 49px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-header .desktop-nav::-webkit-scrollbar {
    display: none;
}

.site-header .desktop-nav > a {
    flex: 0 0 auto;
    min-height: 35px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: transparent;
    color: var(--muted, #aaa) !important;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s ease;
}

.site-header .desktop-nav > a:hover {
    background: rgba(240, 208, 0, .07);
    color: var(--accent, #f0d000) !important;
}

/* فقط تخفیفات ویژه برجسته باشد */
.site-header .desktop-nav > a.nav-deals-btn {
    background: rgba(240, 208, 0, .11);
    border: 1px solid rgba(240, 208, 0, .25);
    color: var(--accent, #f0d000) !important;
    font-weight: 800;
}

.site-header .desktop-nav > a.nav-deals-btn:hover {
    background: var(--accent, #f0d000);
    color: #111 !important;
}

/* =====================================================
   HAMBURGER BUTTON
===================================================== */

.site-header .nav-toggle {
    width: 38px;
    height: 36px;
    padding: 7px;
    display: none !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #303030);
    border-radius: 8px;
    cursor: pointer;
    transition: .2s ease;
}

.site-header .nav-toggle:hover {
    border-color: var(--accent, #f0d000);
}

.site-header .nav-toggle span {
    width: 19px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: var(--text, #eee);
    transition: .2s ease;
}

.site-header .nav-toggle:hover span {
    background: var(--accent, #f0d000);
}

/* =====================================================
   MOBILE DRAWER
===================================================== */

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0,0,0,.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .22s ease;
}

.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer-nav {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1100 !important;
    width: min(320px, 85vw);
    max-height: 100dvh;
    padding: 16px;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    overflow-y: auto;
    background: var(--card, #1a1a1a);
    border-left: 1px solid var(--border, #333);
    box-shadow: -8px 0 25px rgba(0,0,0,.25);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, visibility .25s ease;
}

.drawer-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* سربرگ Drawer */
.drawer-nav .drawer-header {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border, #333);
}

/* دکمه بستن */
.drawer-nav .drawer-close {
        top: 17px !important;
    left: 150px !important;
    right: auto !important;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid var(--border, #333);
    background: transparent;
    color: var(--text, #eee);
    font-size: 23px;
    cursor: pointer;
    transition: .2s ease;
}

.drawer-nav .drawer-close:hover {
    color: var(--accent, #f0d000);
    border-color: var(--accent, #f0d000);
}


.drawer-nav .drawer-header {
    position: relative;
    height: 56px;
    border-bottom: 1px solid #444;
}

.drawer-nav .drawer-close {
    position: absolute !important;  /* نه static */
    top: 8px !important;
    left: 10px !important;   /* در RTL اگر خواستی سمت راست: right: 10px; left: auto; */
    right: auto !important;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

/* نام کاربر در Drawer */
.drawer-nav > .user-name {
    padding: 11px 12px;
    margin-bottom: 6px;
    border: 1px solid var(--border, #333);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: var(--accent, #f0d000);
    font-size: .85rem;
}

/* لینک‌های منو */
.drawer-nav > a {
    min-height: 43px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--text, #eee) !important;
    font-size: .87rem;
    font-weight: 600;
    text-decoration: none;
    transition: .18s ease;
}

.drawer-nav > a:not(.btn-primary):not(.btn-outline):hover {
    background: rgba(240,208,0,.06);
    border-color: rgba(240,208,0,.16);
    color: var(--accent, #f0d000) !important;
}

/* تخفیفات ویژه */
.drawer-nav > a.nav-deals-btn {
    background: rgba(240,208,0,.10);
    border-color: rgba(240,208,0,.2);
    color: var(--accent, #f0d000) !important;
    font-weight: 800;
}

.drawer-nav > a.nav-deals-btn:hover {
    background: var(--accent, #f0d000);
    color: #111 !important;
}

/* دکمه‌های خروج و ثبت‌نام */
.drawer-nav > a.btn-primary,
.drawer-nav > a.btn-outline {
    justify-content: center;
    margin-top: 4px;
}

.drawer-nav > a.btn-primary {
    background: var(--accent, #f0d000);
    color: #111 !important;
}

.drawer-nav > a.btn-outline {
    border-color: var(--border, #333);
}

/* شمارنده سبد داخل موبایل */
.drawer-nav .badge {
    margin-right: auto;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent, #f0d000);
    color: #111;
    font-size: .72rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 850px) {

    .site-header .main-nav-bar {
        display: none !important;
    }

    .site-header .nav-toggle {
        display: inline-flex !important;
    }

    .site-header .top-bar-inner {
        min-height: 62px;
    }
}

@media (max-width: 520px) {

    .site-header .top-bar-inner {
        width: calc(100% - 20px);
        gap: 7px;
    }

    .site-header .logo {
        font-size: .98rem;
    }

    .site-header .top-actions {
        gap: 5px;
    }

    .site-header .top-actions .user-name {
        max-width: 105px;
        padding: 6px 8px;
        font-size: .72rem;
    }

    .site-header .top-actions .top-link,
    .site-header .top-actions .top-cart,
    .site-header .top-actions .btn-sm {
        min-height: 33px;
        padding: 0 8px;
        font-size: .75rem;
    }
}

@media (max-width: 390px) {
    .site-header .top-actions .user-name {
        display: none;
    }

    .site-header .logo {
        font-size: .9rem;
    }
}

/* جلوگیری از حرکت ناخواسته هنگام فوکوس */
.site-header a:focus-visible,
.site-header button:focus-visible,
.drawer-nav a:focus-visible {
    outline: 2px solid var(--accent, #f0d000);
    outline-offset: 2px;
}







/* CART OverView */
/* مینی سبد */
.mini-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10040;
}
.mini-cart {
    position: fixed;
    top: 0;
    left: 0;              /* در RTL از چپ باز می‌شود؛ اگر خواستی right:0 */
    width: min(380px, 100vw);
    height: 100vh;
    background: #1a1a1a;
    border-left: 1px solid #333;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 8px 0 32px rgba(0,0,0,.4);
}
.mini-cart.is-open {
    transform: translateX(0);
}
.mini-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #333;
    color: #f0d000;
}
.mini-cart-close {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
}
.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.mini-cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}
.mini-cart-item .title {
    font-size: 0.92rem;
    color: #eee;
}
.mini-cart-item .meta {
    font-size: 0.8rem;
    color: #888;
}
.mini-cart-item .line {
    font-weight: 700;
    color: #f0d000;
    white-space: nowrap;
}
.mini-cart-empty {
    color: #888;
    text-align: center;
    padding: 32px 8px;
}
.mini-cart-foot {
    padding: 14px 16px 20px;
    border-top: 1px solid #333;
    background: #141414;
}
.mini-cart-total {
    margin-bottom: 12px;
    font-size: 1rem;
}
.mini-cart-actions {
    display: flex;
    gap: 8px;
}
.mini-cart-actions a {
    flex: 1;
    text-align: center;
}

/* دکمه شناور */
.cart-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0d000;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 10030;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.cart-fab-icon { font-size: 1.4rem; line-height: 1; }
.cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 5px;
}
@media (min-width: 901px) {
    /* اگر فقط موبایل می‌خواهی شناور باشد: */
    /* .cart-fab { display: none; } */
}









/* Pop UP Suggest */
.reorder-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.reorder-modal.is-open { display: flex !important; }
.reorder-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}
.reorder-box {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(80vh, 560px);
    overflow: auto;
    background: #1c1c1c;
    border: 1px solid #f0d000;
    border-radius: 14px;
    padding: 20px 18px 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.reorder-box h3 {
    color: #f0d000;
    margin: 0 0 6px;
    font-size: 1.15rem;
}
.reorder-sub {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.reorder-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.reorder-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.reorder-item .t { color: #eee; font-size: 0.95rem; }
.reorder-item .m { color: #888; font-size: 0.8rem; margin-top: 2px; }
.reorder-item .price { color: #f0d000; font-weight: 700; }
.reorder-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.reorder-controls input {
    width: 56px;
    text-align: center;
    background: #111;
    border: 1px solid #444;
    color: #eee;
    border-radius: 6px;
    padding: 6px;
}
.reorder-later {
    width: 100%;
    margin-top: 12px;
}



/* Guide PAGE Style */
.guide-page {
    direction: rtl;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 60px;
    color: var(--text);
}

/* Hero */
.guide-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a12 0%, #252510 45%, #1e1a0a 100%);
    border: 1px solid rgba(240, 208, 0, .22);
    border-radius: 18px;
    padding: 36px 32px;
    margin-bottom: 32px;
    margin-top: 20px;
    overflow: hidden;

}
.guide-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(240,208,0,.12) 0%, transparent 70%);
    pointer-events: none;
}
.guide-hero-kicker {
    display: inline-block;
    background: rgba(240,208,0,.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.guide-hero h1 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    color: #f5f5f0;
    line-height: 1.4;
}
.guide-hero h1 span { color: var(--accent); }
.guide-hero p {
    margin: 0;
    color: #b8b8a8;
    font-size: 14.5px;
    line-height: 1.85;
    max-width: 640px;
}
.guide-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}
.guide-stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 110px;
}
.guide-stat strong {
    display: block;
    font-size: 20px;
    color: var(--accent);
    font-weight: 800;
}
.guide-stat span {
    font-size: 12px;
    color: #999;
}

/* Section */
.guide-section { margin-bottom: 42px; }
.guide-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.guide-section-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}
.guide-section-head h2 .num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(240,208,0,.15);
    color: var(--accent);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.guide-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Chart */
.chart-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 18px 14px;
    margin-bottom: 18px;
}
.chart-card h3 {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}
.chart-wrap {
    position: relative;
    height: 280px;
}
.chart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Rank cards */
.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.rank-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    transition: border-color .2s, transform .2s;
}
.rank-card:hover {
    border-color: rgba(240,208,0,.4);
    transform: translateY(-2px);
}
.rank-num {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(240,208,0,.12);
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rank-num.gold { background: linear-gradient(135deg, #f0d000, #c9a227); color: #111; }
.rank-num.silver { background: #c0c0c0; color: #111; }
.rank-num.bronze { background: #cd7f32; color: #fff; }
.rank-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: #222;
}
.rank-info { flex: 1; min-width: 0; }
.rank-info h4 {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}
.rank-meta strong { color: var(--accent); }
.rank-profit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    background: rgba(46, 204, 113, .12);
    color: #2ecc71;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
}
.rank-note {
    font-size: 11.5px;
    color: #aaa;
    margin-top: 4px;
}

/* Tabs for sections */
.sec-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.sec-tab {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.sec-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.sec-tab.active {
    background: rgba(240,208,0,.15);
    border-color: var(--accent);
    color: var(--accent);
}
.sec-panel { display: none; }
.sec-panel.active { display: block; }

/* Profit table */
.profit-table-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.profit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.profit-table thead { background: rgba(240,208,0,.08); }
.profit-table th {
    padding: 13px 14px;
    text-align: right;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.profit-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.profit-table tbody tr:last-child td { border-bottom: none; }
.profit-table tbody tr:hover { background: rgba(240,208,0,.04); }
.profit-name { font-weight: 700; max-width: 220px; }
.profit-price {
    font-variant-numeric: tabular-nums;
    direction: ltr;
    text-align: left;
}
.profit-green { color: #2ecc71; font-weight: 800; }
.profit-pct-badge {
    display: inline-block;
    background: rgba(46,204,113,.15);
    color: #2ecc71;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
}
.profit-note {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
}

/* Store slider */
.store-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.store-slider::-webkit-scrollbar { height: 6px; }
.store-slider::-webkit-scrollbar-thumb {
    background: rgba(240,208,0,.35);
    border-radius: 4px;
}
.store-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.store-card:hover {
    border-color: rgba(240,208,0,.45);
    transform: translateY(-3px);
}
.store-photo {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #1a1a1a;
    display: block;
}
.store-photo-placeholder {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #2a2a1a, #1a1a12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 42px;
}
.store-body { padding: 14px 16px 16px; }
.store-badge {
    display: inline-block;
    background: rgba(240,208,0,.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.store-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
}
.store-owner {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
}
.store-address {
    font-size: 12.5px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-maps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.store-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all .2s;
}
.store-map-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(240,208,0,.08);
}
.store-desc {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    line-height: 1.6;
}

/* CTA */
.guide-cta {
    background: linear-gradient(135deg, rgba(240,208,0,.12), rgba(240,208,0,.04));
    border: 1px solid rgba(240,208,0,.28);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.guide-cta h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--accent);
}
.guide-cta p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}
.guide-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.guide-cta-btns a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
}
.cta-primary {
    background: var(--accent);
    color: #111;
}
.cta-primary:hover { background: #ffea00; }
.cta-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 700px) {
    .guide-hero { padding: 24px 18px; }
    .guide-hero h1 { font-size: 20px; }
    .chart-wrap { height: 240px; }
    .rank-grid { grid-template-columns: 1fr; }
    .store-card { flex: 0 0 270px; }
    .profit-table { font-size: 12px; }
    .profit-table th, .profit-table td { padding: 10px 8px; }
}














/* =========================================================
   DISCOUNT CARD — ANIMATED CHAMPAGNE NEON BORDER
   Moving light around product card
========================================================= */

/* Animated angle */
@property --discount-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes discount-border-orbit {
    to {
        --discount-angle: 360deg;
    }
}


/* =========================================================
   BASE CARD
========================================================= */

.product-row.has-discount {
    position: relative;
    isolation: isolate;

    border: 1px solid rgba(190, 160, 105, 0.45) !important;

    box-shadow:
        0 0 0 1px rgba(190, 160, 105, 0.10),
        0 0 12px rgba(190, 160, 105, 0.08);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   MOVING NEON LIGHT
========================================================= */

.product-row.has-discount::before {
    content: "";

    position: absolute;
    inset: 0;

    padding: 1px;
    border-radius: inherit;

    pointer-events: none;
    z-index: 2;

    background: conic-gradient(
        from var(--discount-angle),

        transparent 0deg 285deg,

        rgba(190, 160, 105, 0.14) 295deg,
        rgba(210, 185, 135, 0.55) 305deg,
        rgba(242, 225, 190, 0.95) 318deg,
        rgba(190, 160, 105, 0.42) 331deg,

        transparent 345deg 360deg
    );

    /* نمایش گرادیان فقط روی حاشیه */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    mask-composite: exclude;

    animation: discount-border-orbit 5.5s linear infinite;
}


/* =========================================================
   HOVER
========================================================= */

.product-row.has-discount:hover {
    border-color: rgba(210, 185, 135, 0.70) !important;

    box-shadow:
        0 0 0 1px rgba(190, 160, 105, 0.18),
        0 0 14px rgba(190, 160, 105, 0.16);
}


/* =========================================================
   DISCOUNT BADGE
========================================================= */

.product-row.has-discount::after {
    /* content: "تخفیف"; */

    position: absolute;
    top: 9px;
    left: 9px;

    z-index: 5;

    font-size: 10px;
    font-weight: 800;

    padding: 3px 9px;
    border-radius: 6px;

    background: rgba(205, 178, 125, 0.95);
    color: #171717;

    box-shadow: 0 0 8px rgba(190, 160, 105, 0.22);

    pointer-events: none;
}


/* GRID */
.product-results.view-grid .product-row.has-discount::after {
    top: 10px;
    left: 10px;
}


/* =========================================================
   LIGHT THEME
========================================================= */

html[data-theme="light"] .product-row.has-discount {
    border-color: rgba(155, 120, 60, 0.45) !important;

    box-shadow:
        0 0 0 1px rgba(155, 120, 60, 0.10),
        0 0 10px rgba(155, 120, 60, 0.09);
}

html[data-theme="light"] .product-row.has-discount::before {
    background: conic-gradient(
        from var(--discount-angle),

        transparent 0deg 285deg,

        rgba(155, 120, 60, 0.13) 295deg,
        rgba(175, 140, 80, 0.50) 305deg,
        rgba(215, 190, 140, 0.95) 318deg,
        rgba(155, 120, 60, 0.40) 331deg,

        transparent 345deg 360deg
    );
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .product-row.has-discount::before {
        animation: none;
    }

    .product-row.has-discount,
    .product-row.has-discount:hover {
        transition: none;
    }
}










/* TOP HEADER */
/* =========================================================
   SITE CONTACT STRIP — TOP HEADER
========================================================= */

.site-contact-strip {
    width: 100%;

    background: #121417;

    border-bottom: 1px solid rgba(240, 208, 0, 0.12);

    color: #aaaeb5;

    font-size: 0.78rem;
}

.site-contact-strip__inner {
    min-height: 39px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 6px;
    padding-bottom: 6px;
}

.site-contact-strip__item {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    color: inherit;
    text-decoration: none;

    transition: color 0.2s ease;
}

.site-contact-strip__item:hover {
    color: #e5cd78;
}

.site-contact-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    flex-shrink: 0;

    color: rgba(225, 195, 110, 0.85);
}

.site-contact-strip__icon svg {
    width: 16px;
    height: 16px;
}

.site-contact-strip__label {
    color: #777d86;
    white-space: nowrap;
}

.site-contact-strip__address {
    flex: 1;
    overflow: hidden;
}

.site-contact-strip__value {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-contact-strip__phones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 16px;

    flex-shrink: 0;
}

.site-contact-strip__phone {
    color: #d1d3d7;

    direction: ltr;
    unicode-bidi: isolate;

    text-decoration: none;

    font-weight: 600;
    letter-spacing: 0.3px;

    transition: color 0.2s ease;
}

.site-contact-strip__phone:hover {
    color: var(--accent, #f0d000);
}


/* LIGHT THEME */

html[data-theme="light"] .site-contact-strip {
    background: #f5f4ef;

    border-bottom-color: rgba(160, 130, 65, 0.18);

    color: #555;
}

html[data-theme="light"] .site-contact-strip__phone {
    color: #444;
}

html[data-theme="light"] .site-contact-strip__label {
    color: #888;
}

html[data-theme="light"] .site-contact-strip__item:hover {
    color: #97752d;
}


/* MOBILE */

@media (max-width: 650px) {

    .site-contact-strip__inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 7px;

        padding-top: 9px;
        padding-bottom: 9px;
    }

    .site-contact-strip__address {
        width: 100%;
    }

    .site-contact-strip__phones {
        width: 100%;
        gap: 14px;
    }

    .site-contact-strip {
        font-size: 0.72rem;
    }
}




















/* ===============================
   Orders Page
================================ */
.orders-page {
    direction: rtl;
    max-width: 1150px;
    margin: 0 auto;
    padding-bottom: 35px;
    color: var(--text);
}

/* Header */
.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.orders-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.orders-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(240, 208, 0, .10);
    color: var(--accent);
    font-size: 23px;
}

.orders-heading h2 {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 21px;
    font-weight: 800;
}

.orders-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.orders-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.orders-count strong {
    color: var(--accent);
    font-size: 16px;
}

/* Table Container */
.orders-table-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.orders-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: right;
    margin: 0;
}

.orders-table thead {
    background: rgba(255, 255, 255, .025);
}

.orders-table th {
    padding: 16px 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.orders-table td {
    padding: 17px 18px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.orders-table tbody tr {
    transition: background .2s ease;
}

.orders-table tbody tr:hover {
    background: rgba(240, 208, 0, .035);
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.order-number {
    color: var(--accent);
    font-weight: 800;
    direction: ltr;
    display: inline-block;
}

.order-date {
    color: var(--muted);
    white-space: nowrap;
}

.order-amount {
    font-weight: 800;
    white-space: nowrap;
}

.order-amount small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    margin-right: 3px;
}

/* Action Buttons */
.order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.order-action-btn {
    min-height: 34px;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.order-print-btn {
    background: rgba(240, 208, 0, .10);
    border: 1px solid rgba(240, 208, 0, .25);
    color: var(--accent);
}

.order-print-btn:hover {
    background: var(--accent);
    color: #171717;
    border-color: var(--accent);
}

.order-detail-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.order-detail-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Empty State */
.orders-empty {
    padding: 65px 20px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.orders-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(240, 208, 0, .09);
    color: var(--accent);
    font-size: 28px;
}

.orders-empty h3 {
    margin: 0 0 9px;
    font-size: 17px;
    color: var(--text);
}

.orders-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    .orders-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .orders-heading h2 {
        font-size: 18px;
    }

    .orders-icon {
        width: 43px;
        height: 43px;
        font-size: 20px;
    }

    .orders-count {
        margin-right: 56px;
        padding: 7px 11px;
    }

    .orders-table th,
    .orders-table td {
        padding: 14px 12px;
    }

    .orders-empty {
        padding: 45px 15px;
    }
}



























/* =========================================================
POLL SLIDER — نظرسنجی
========================================================= */
.poll-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 50px;
    font-size: .8rem;
    color: var(--accent);
    background: rgba(240,208,0,.08);
    border: 1px solid rgba(240,208,0,.17);
    white-space: nowrap;
}
.poll-counter-badge strong {
    font-size: 1rem;
    font-weight: 900;
}

/* Slider wrapper */
.poll-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.poll-slider {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}

.poll-track {
    display: flex;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

/* هر اسلاید — ارتفاع ثابت */
.poll-slide {
    min-width: 100%;
    min-height: 440px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.poll-slide-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-slide-num {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(240,208,0,.08);
    border: 1px solid rgba(240,208,0,.18);
}

.poll-title {
    color: #f5f5f5;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.7;
    margin: 0;
}

.poll-desc {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.9;
    margin: 0;
}

.poll-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- فرم رأی ---------- */
.poll-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255,255,255,.02);
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}

.poll-option:hover {
    border-color: rgba(240,208,0,.4);
    background: rgba(240,208,0,.04);
    transform: translateX(-3px);
}

.poll-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.poll-option-text {
    flex: 1;
    color: #eee;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.7;
}

.poll-option-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 50%;
    position: relative;
    transition: .2s;
}

.poll-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(240,208,0,.08);
}

.poll-option:has(input:checked) .poll-option-radio {
    border-color: var(--accent);
}

.poll-option:has(input:checked) .poll-option-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent);
    animation: pollRadioPop .3s ease;
}

@keyframes pollRadioPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.poll-submit-btn {
    align-self: flex-start;
    min-height: 46px;
    padding: 11px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #171717;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 10px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
    margin-top: 8px;
}

.poll-submit-btn:hover {
    background: #ffea00;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(240,208,0,.2);
}

.poll-submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ---------- نتایج ---------- */
.poll-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poll-results-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.poll-result-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poll-result-bar {
    position: relative;
    height: 38px;
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    overflow: hidden;
    border: 1px solid var(--border);
}

.poll-result-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #ffe96a);
    border-radius: 9px;
    transition: width 1s cubic-bezier(.2,.8,.2,1);
}

.poll-result-row.is-user .poll-result-fill {
    background: linear-gradient(90deg, #2ecc71, #58d68d);
}

.poll-result-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: .85rem;
    font-weight: 700;
    color: #f1f1f1;
}

.poll-result-text strong {
    color: var(--accent);
    font-size: .95rem;
    font-weight: 900;
}

.poll-result-row.is-user .poll-result-text strong {
    color: #2ecc71;
}

.poll-your-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 800;
    color: #171717;
    background: #2ecc71;
}

.poll-result-meta {
    padding: 0 4px;
    color: var(--muted);
    font-size: .73rem;
}

.poll-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-top: 6px;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: .82rem;
}

.poll-total-line strong {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 900;
}

/* ---------- فلش‌ها ---------- */
.poll-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
    display: grid;
    place-items: center;
}

.poll-arrow:hover {
    background: var(--accent);
    color: #171717;
    border-color: var(--accent);
    transform: scale(1.08);
}

.poll-arrow:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* ---------- dots ---------- */
.poll-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.poll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    cursor: pointer;
    transition: .25s;
    padding: 0;
}

.poll-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* ---------- موبایل ---------- */
@media (max-width: 700px) {
    .poll-slide {
        min-height: 480px;
        padding: 20px 18px;
    }
    .poll-title {
        font-size: 1.08rem;
    }
    .poll-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    .poll-option {
        padding: 12px 14px;
    }
    .poll-result-bar {
        height: 36px;
    }
    .poll-result-text {
        font-size: .78rem;
        padding: 0 10px;
    }
}
























/* ==========================================================
FIX: پوشش کامل عکس در حالت CARD (گرید)
========================================================== */

/* ۱) باکس عکس در حالت گرید — ارتفاع ثابت و برش اضافی */
.product-results.view-grid .img-box {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;   /* نسبت ۱:۱ — مربع کامل */
    /* اگر می‌خواهی مستطیل باشد: padding-bottom: 75%; (۴:۳) یا 66.66%; (۳:۲) */
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #1a1a1a !important;    /* رنگ پس‌زمینه یکدست */
    position: relative !important;
    display: block !important;
}

/* ۲) خود عکس — پر کردن کامل باکس */
.product-results.view-grid .img-box img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;      /* کل کادر را پر می‌کند */
    object-position: center center !important;
    display: block !important;
    border-radius: 12px !important;
}

/* ۳) placeholder (وقتی عکس ندارد) */
.product-results.view-grid .img-box .img-placeholder {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #666 !important;
    font-size: 0.85rem !important;
    background: #1a1a1a !important;
}

/* ۴) حالت موبایل در گرید — کمی کوچک‌تر */
@media (max-width: 640px) {
    .product-results.view-grid .img-box {
        padding-bottom: 100% !important;
        border-radius: 10px !important;
    }
    .product-results.view-grid .img-box img {
        border-radius: 10px !important;
    }
}

============================
   PRODUCT SPEC TOOLTIP — PREMIUM DARK/GOLD
========================================= */

.product-row-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
    position: relative;
}

.product-row-title-wrap .product-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

/* Tooltip Wrapper */
.spec-tip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 30;
}

/* Trigger Button */
.spec-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    height: 27px;
    padding: 0 10px;

    border: 1px solid rgba(240, 208, 0, 0.28);
    border-radius: 8px;

    background: rgba(240, 208, 0, 0.07);
    color: #e5c95c;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.spec-tip-btn:hover {
    background: rgba(240, 208, 0, 0.16);
    border-color: rgba(240, 208, 0, 0.65);
    color: #ffe36b;
    transform: translateY(-1px);
}

.spec-tip-btn:active {
    transform: scale(.96);
}

.spec-tip-btn svg {
    flex-shrink: 0;
}

/* Main Tooltip Panel */
.spec-tooltip {
    position: absolute;

    top: calc(100% + 11px);
    right: 0;

    width: 290px;
    max-width: calc(100vw - 32px);
    max-height: 340px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 15px;

    direction: rtl;
    text-align: right;

    background: #191b21;
    border: 1px solid rgba(240, 208, 0, 0.24);
    border-radius: 13px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.48),
        0 2px 8px rgba(0, 0, 0, 0.2);

    z-index: 9999;

    animation: specTooltipIn .18s ease;
}

/* Respect HTML hidden attribute */
.spec-tooltip[hidden] {
    display: none !important;
}

/* Small Arrow */
.spec-tooltip::before {
    content: "";

    position: absolute;
    top: -6px;
    right: 22px;

    width: 10px;
    height: 10px;

    background: #191b21;

    border-top: 1px solid rgba(240, 208, 0, 0.24);
    border-right: 1px solid rgba(240, 208, 0, 0.24);

    transform: rotate(-45deg);
}

/* Tooltip Header */
.spec-tooltip-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding-bottom: 13px;
    margin-bottom: 5px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: #f0d000;
}

.spec-tooltip-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.spec-tooltip-heading > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-tooltip-heading strong {
    color: #f5f5f5;
    font-size: 13px;
    font-weight: 800;
}

.spec-tooltip-heading small {
    color: #858995;
    font-size: 10px;
    font-weight: 400;
}

.spec-tooltip-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background: rgba(240, 208, 0, 0.12);
    color: #f0d000;

    font-size: 17px;
}

.spec-tooltip-count {
    flex-shrink: 0;

    padding: 4px 8px;

    border-radius: 20px;

    background: rgba(240, 208, 0, 0.09);
    color: #e5c95c;

    font-size: 10px;
    font-weight: 700;
}

/* Specifications List */
.spec-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-tooltip li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    padding: 10px 3px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.065);

    font-size: 12px;
    line-height: 1.8;
}

.spec-tooltip li:last-child {
    border-bottom: 0;
    padding-bottom: 3px;
}

.spec-tooltip li span {
    color: #9297a3;
    flex-shrink: 0;
}

.spec-tooltip li b {
    color: #f0f0f0;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
}

/* Entry Animation */
@keyframes specTooltipIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .spec-tooltip {
        width: min(280px, calc(100vw - 32px));
        max-height: 300px;
    }

    .spec-tip-btn {
        height: 25px;
        padding: 0 8px;
        font-size: 10px;
    }
}





/* Specifications beside stock information */
.stock-with-spec {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-with-spec .spec-tip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.stock-with-spec .spec-tip-btn {
    height: 25px;
    padding: 0 9px;
    font-size: 10px;
}

.stock-with-spec .spec-tooltip {
    top: auto !important;
    bottom: calc(100% + 11px);
    right: 0;
    left: auto;
    z-index: 9999;
}











/* Top Header - NAV */
/* =====================================================
   MOMENI BONAK — CLEAN & CONSISTENT HEADER
   Dark / Charcoal / Yellow
===================================================== */

/* هدر اصلی */
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--bg, #111);
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    border-bottom: 1px solid var(--border, #303030);
}

/* =====================================================
   TOP BAR — LOGO & ACCOUNT
===================================================== */

.site-header .top-bar {
    background: var(--bg, #111);
    border-bottom: 1px solid var(--border, #303030);
}

.site-header .top-bar::before {
    content: none !important;
}

.site-header .top-bar-inner {
    width: min(1200px, calc(100% - 32px));
    min-height: 70px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* لوگو */
.site-header .logo {
    display: inline-flex;
    align-items: center;
    color: var(--text, #eee) !important;
    font-size: 1.18rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.site-header .logo::before {
    content: none !important;
    display: none !important;
}

.site-header .logo:hover {
    color: var(--accent, #f0d000) !important;
}

/* بخش حساب کاربری */
.site-header .top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

/* نام کاربر */
.site-header .top-actions .user-name {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--card, #1b1b1b);
    border: 1px solid var(--border, #303030);
    color: var(--muted, #aaa);
    font-size: .83rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* لینک‌های بالای هدر */
.site-header .top-actions .top-link,
.site-header .top-actions .top-cart {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: var(--text, #eee) !important;
    background: var(--card, #1b1b1b);
    border: 1px solid var(--border, #303030);
    border-radius: 8px;
    font-size: .82rem;
    text-decoration: none;
    transition: .2s ease;
}

.site-header .top-actions .top-link:hover,
.site-header .top-actions .top-cart:hover {
    border-color: var(--accent, #f0d000);
    color: var(--accent, #f0d000) !important;
}

/* دکمه‌های ورود، ثبت‌نام و خروج */
.site-header .top-actions .btn-sm {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.site-header .top-actions .btn-primary.btn-sm {
    background: var(--accent, #f0d000);
    border: 1px solid var(--accent, #f0d000);
    color: #151515 !important;
}

.site-header .top-actions .btn-primary.btn-sm:hover {
    background: var(--accent-hover, #d8bd00);
}

.site-header .top-actions .btn-outline.btn-sm {
    background: transparent;
    border: 1px solid var(--border, #303030);
    color: var(--text, #eee) !important;
}

.site-header .top-actions .btn-outline.btn-sm:hover {
    border-color: var(--accent, #f0d000);
    color: var(--accent, #f0d000) !important;
}

/* شمارنده سبد */
.site-header .top-actions .badge {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent, #f0d000);
    color: #111;
    font-size: .7rem;
    font-weight: 800;
}

/* =====================================================
   MAIN NAV — SEPARATE MENU
===================================================== */

.site-header .main-nav-bar {
    display: block;
    background: var(--card, #1a1a1a);
    border-bottom: 1px solid var(--border, #303030);
}

.site-header .main-nav-bar > .container {
    width: min(1200px, calc(100% - 32px));
    margin: auto;
}

.site-header .desktop-nav {
    min-height: 49px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-header .desktop-nav::-webkit-scrollbar {
    display: none;
}

.site-header .desktop-nav > a {
    flex: 0 0 auto;
    min-height: 35px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: transparent;
    color: var(--muted, #aaa) !important;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s ease;
}

.site-header .desktop-nav > a:hover {
    background: rgba(240, 208, 0, .07);
    color: var(--accent, #f0d000) !important;
}

/* فقط تخفیفات ویژه برجسته باشد */
.site-header .desktop-nav > a.nav-deals-btn {
    background: rgba(240, 208, 0, .11);
    border: 1px solid rgba(240, 208, 0, .25);
    color: var(--accent, #f0d000) !important;
    font-weight: 800;
}

.site-header .desktop-nav > a.nav-deals-btn:hover {
    background: var(--accent, #f0d000);
    color: #111 !important;
}

/* =====================================================
   HAMBURGER BUTTON
===================================================== */

.site-header .nav-toggle {
    width: 38px;
    height: 36px;
    padding: 7px;
    display: none !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #303030);
    border-radius: 8px;
    cursor: pointer;
    transition: .2s ease;
}

.site-header .nav-toggle:hover {
    border-color: var(--accent, #f0d000);
}

.site-header .nav-toggle span {
    width: 19px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: var(--text, #eee);
    transition: .2s ease;
}

.site-header .nav-toggle:hover span {
    background: var(--accent, #f0d000);
}

/* =====================================================
   MOBILE DRAWER
===================================================== */

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0,0,0,.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .22s ease;
}

.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer-nav {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1100 !important;
    width: min(320px, 85vw);
    max-height: 100dvh;
    padding: 16px;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    overflow-y: auto;
    background: var(--card, #1a1a1a);
    border-left: 1px solid var(--border, #333);
    box-shadow: -8px 0 25px rgba(0,0,0,.25);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, visibility .25s ease;
}

.drawer-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* سربرگ Drawer */
.drawer-nav .drawer-header {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border, #333);
}

/* دکمه بستن */
.drawer-nav .drawer-close {
        top: 17px !important;
    left: 150px !important;
    right: auto !important;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid var(--border, #333);
    background: transparent;
    color: var(--text, #eee);
    font-size: 23px;
    cursor: pointer;
    transition: .2s ease;
}

.drawer-nav .drawer-close:hover {
    color: var(--accent, #f0d000);
    border-color: var(--accent, #f0d000);
}


.drawer-nav .drawer-header {
    position: relative;
    height: 56px;
    border-bottom: 1px solid #444;
}

.drawer-nav .drawer-close {
    position: absolute !important;  /* نه static */
    top: 8px !important;
    left: 10px !important;   /* در RTL اگر خواستی سمت راست: right: 10px; left: auto; */
    right: auto !important;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

/* نام کاربر در Drawer */
.drawer-nav > .user-name {
    padding: 11px 12px;
    margin-bottom: 6px;
    border: 1px solid var(--border, #333);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: var(--accent, #f0d000);
    font-size: .85rem;
}

/* لینک‌های منو */
.drawer-nav > a {
    min-height: 43px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--text, #eee) !important;
    font-size: .87rem;
    font-weight: 600;
    text-decoration: none;
    transition: .18s ease;
}

.drawer-nav > a:not(.btn-primary):not(.btn-outline):hover {
    background: rgba(240,208,0,.06);
    border-color: rgba(240,208,0,.16);
    color: var(--accent, #f0d000) !important;
}

/* تخفیفات ویژه */
.drawer-nav > a.nav-deals-btn {
    background: rgba(240,208,0,.10);
    border-color: rgba(240,208,0,.2);
    color: var(--accent, #f0d000) !important;
    font-weight: 800;
}

.drawer-nav > a.nav-deals-btn:hover {
    background: var(--accent, #f0d000);
    color: #111 !important;
}

/* دکمه‌های خروج و ثبت‌نام */
.drawer-nav > a.btn-primary,
.drawer-nav > a.btn-outline {
    justify-content: center;
    margin-top: 4px;
}

.drawer-nav > a.btn-primary {
    background: var(--accent, #f0d000);
    color: #111 !important;
}

.drawer-nav > a.btn-outline {
    border-color: var(--border, #333);
}

/* شمارنده سبد داخل موبایل */
.drawer-nav .badge {
    margin-right: auto;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent, #f0d000);
    color: #111;
    font-size: .72rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 850px) {

    .site-header .main-nav-bar {
        display: none !important;
    }

    .site-header .nav-toggle {
        display: inline-flex !important;
    }

    .site-header .top-bar-inner {
        min-height: 62px;
    }
}

@media (max-width: 520px) {

    .site-header .top-bar-inner {
        width: calc(100% - 20px);
        gap: 7px;
    }

    .site-header .logo {
        font-size: .98rem;
    }

    .site-header .top-actions {
        gap: 5px;
    }

    .site-header .top-actions .user-name {
        max-width: 105px;
        padding: 6px 8px;
        font-size: .72rem;
    }

    .site-header .top-actions .top-link,
    .site-header .top-actions .top-cart,
    .site-header .top-actions .btn-sm {
        min-height: 33px;
        padding: 0 8px;
        font-size: .75rem;
    }
}

@media (max-width: 390px) {
    .site-header .top-actions .user-name {
        display: none;
    }

    .site-header .logo {
        font-size: .9rem;
    }
}

/* جلوگیری از حرکت ناخواسته هنگام فوکوس */
.site-header a:focus-visible,
.site-header button:focus-visible,
.drawer-nav a:focus-visible {
    outline: 2px solid var(--accent, #f0d000);
    outline-offset: 2px;
}







/* CART OverView */
/* مینی سبد */
.mini-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10040;
}
.mini-cart {
    position: fixed;
    top: 0;
    left: 0;              /* در RTL از چپ باز می‌شود؛ اگر خواستی right:0 */
    width: min(380px, 100vw);
    height: 100vh;
    background: #1a1a1a;
    border-left: 1px solid #333;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 8px 0 32px rgba(0,0,0,.4);
}
.mini-cart.is-open {
    transform: translateX(0);
}
.mini-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #333;
    color: #f0d000;
}
.mini-cart-close {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
}
.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.mini-cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}
.mini-cart-item .title {
    font-size: 0.92rem;
    color: #eee;
}
.mini-cart-item .meta {
    font-size: 0.8rem;
    color: #888;
}
.mini-cart-item .line {
    font-weight: 700;
    color: #f0d000;
    white-space: nowrap;
}
.mini-cart-empty {
    color: #888;
    text-align: center;
    padding: 32px 8px;
}
.mini-cart-foot {
    padding: 14px 16px 20px;
    border-top: 1px solid #333;
    background: #141414;
}
.mini-cart-total {
    margin-bottom: 12px;
    font-size: 1rem;
}
.mini-cart-actions {
    display: flex;
    gap: 8px;
}
.mini-cart-actions a {
    flex: 1;
    text-align: center;
}

/* دکمه شناور */
.cart-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0d000;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 10030;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.cart-fab-icon { font-size: 1.4rem; line-height: 1; }
.cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 5px;
}
@media (min-width: 901px) {
    /* اگر فقط موبایل می‌خواهی شناور باشد: */
    /* .cart-fab { display: none; } */
}









/* Pop UP Suggest */
.reorder-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.reorder-modal.is-open { display: flex !important; }
.reorder-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}
.reorder-box {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(80vh, 560px);
    overflow: auto;
    background: #1c1c1c;
    border: 1px solid #f0d000;
    border-radius: 14px;
    padding: 20px 18px 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.reorder-box h3 {
    color: #f0d000;
    margin: 0 0 6px;
    font-size: 1.15rem;
}
.reorder-sub {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.reorder-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.reorder-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.reorder-item .t { color: #eee; font-size: 0.95rem; }
.reorder-item .m { color: #888; font-size: 0.8rem; margin-top: 2px; }
.reorder-item .price { color: #f0d000; font-weight: 700; }
.reorder-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.reorder-controls input {
    width: 56px;
    text-align: center;
    background: #111;
    border: 1px solid #444;
    color: #eee;
    border-radius: 6px;
    padding: 6px;
}
.reorder-later {
    width: 100%;
    margin-top: 12px;
}



/* Guide PAGE Style */
.guide-page {
    direction: rtl;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 60px;
    color: var(--text);
}

/* Hero */
.guide-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a12 0%, #252510 45%, #1e1a0a 100%);
    border: 1px solid rgba(240, 208, 0, .22);
    border-radius: 18px;
    padding: 36px 32px;
    margin-bottom: 32px;
    margin-top: 20px;
    overflow: hidden;

}
.guide-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(240,208,0,.12) 0%, transparent 70%);
    pointer-events: none;
}
.guide-hero-kicker {
    display: inline-block;
    background: rgba(240,208,0,.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.guide-hero h1 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    color: #f5f5f0;
    line-height: 1.4;
}
.guide-hero h1 span { color: var(--accent); }
.guide-hero p {
    margin: 0;
    color: #b8b8a8;
    font-size: 14.5px;
    line-height: 1.85;
    max-width: 640px;
}
.guide-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}
.guide-stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 110px;
}
.guide-stat strong {
    display: block;
    font-size: 20px;
    color: var(--accent);
    font-weight: 800;
}
.guide-stat span {
    font-size: 12px;
    color: #999;
}

/* Section */
.guide-section { margin-bottom: 42px; }
.guide-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.guide-section-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}
.guide-section-head h2 .num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(240,208,0,.15);
    color: var(--accent);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.guide-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Chart */
.chart-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 18px 14px;
    margin-bottom: 18px;
}
.chart-card h3 {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}
.chart-wrap {
    position: relative;
    height: 280px;
}
.chart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Rank cards */
.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.rank-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    transition: border-color .2s, transform .2s;
}
.rank-card:hover {
    border-color: rgba(240,208,0,.4);
    transform: translateY(-2px);
}
.rank-num {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(240,208,0,.12);
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rank-num.gold { background: linear-gradient(135deg, #f0d000, #c9a227); color: #111; }
.rank-num.silver { background: #c0c0c0; color: #111; }
.rank-num.bronze { background: #cd7f32; color: #fff; }
.rank-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: #222;
}
.rank-info { flex: 1; min-width: 0; }
.rank-info h4 {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}
.rank-meta strong { color: var(--accent); }
.rank-profit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    background: rgba(46, 204, 113, .12);
    color: #2ecc71;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
}
.rank-note {
    font-size: 11.5px;
    color: #aaa;
    margin-top: 4px;
}

/* Tabs for sections */
.sec-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.sec-tab {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.sec-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.sec-tab.active {
    background: rgba(240,208,0,.15);
    border-color: var(--accent);
    color: var(--accent);
}
.sec-panel { display: none; }
.sec-panel.active { display: block; }

/* Profit table */
.profit-table-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.profit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.profit-table thead { background: rgba(240,208,0,.08); }
.profit-table th {
    padding: 13px 14px;
    text-align: right;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.profit-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.profit-table tbody tr:last-child td { border-bottom: none; }
.profit-table tbody tr:hover { background: rgba(240,208,0,.04); }
.profit-name { font-weight: 700; max-width: 220px; }
.profit-price {
    font-variant-numeric: tabular-nums;
    direction: rtl;
    text-align: right;
}
.profit-green { color: #2ecc71; font-weight: 800; }
.profit-pct-badge {
    display: inline-block;
    background: rgba(46,204,113,.15);
    color: #2ecc71;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
}
.profit-note {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
}

/* Store slider */
.store-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.store-slider::-webkit-scrollbar { height: 6px; }
.store-slider::-webkit-scrollbar-thumb {
    background: rgba(240,208,0,.35);
    border-radius: 4px;
}
.store-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.store-card:hover {
    border-color: rgba(240,208,0,.45);
    transform: translateY(-3px);
}
.store-photo {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #1a1a1a;
    display: block;
}
.store-photo-placeholder {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #2a2a1a, #1a1a12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 42px;
}
.store-body { padding: 14px 16px 16px; }
.store-badge {
    display: inline-block;
    background: rgba(240,208,0,.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.store-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
}
.store-owner {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
}
.store-address {
    font-size: 12.5px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-maps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.store-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all .2s;
}
.store-map-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(240,208,0,.08);
}
.store-desc {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    line-height: 1.6;
}

/* CTA */
.guide-cta {
    background: linear-gradient(135deg, rgba(240,208,0,.12), rgba(240,208,0,.04));
    border: 1px solid rgba(240,208,0,.28);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.guide-cta h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--accent);
}
.guide-cta p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}
.guide-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.guide-cta-btns a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
}
.cta-primary {
    background: var(--accent);
    color: #111;
}
.cta-primary:hover { background: #ffea00; }
.cta-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 700px) {
    .guide-hero { padding: 24px 18px; }
    .guide-hero h1 { font-size: 20px; }
    .chart-wrap { height: 240px; }
    .rank-grid { grid-template-columns: 1fr; }
    .store-card { flex: 0 0 270px; }
    .profit-table { font-size: 12px; }
    .profit-table th, .profit-table td { padding: 10px 8px; }
}














/* =========================================================
   DISCOUNT CARD — ANIMATED CHAMPAGNE NEON BORDER
   Moving light around product card
========================================================= */

/* Animated angle */
@property --discount-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes discount-border-orbit {
    to {
        --discount-angle: 360deg;
    }
}


/* =========================================================
   BASE CARD
========================================================= */

.product-row.has-discount {
    position: relative;
    isolation: isolate;

    border: 1px solid rgba(190, 160, 105, 0.45) !important;

    box-shadow:
        0 0 0 1px rgba(190, 160, 105, 0.10),
        0 0 12px rgba(190, 160, 105, 0.08);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   MOVING NEON LIGHT
========================================================= */

.product-row.has-discount::before {
    content: "";

    position: absolute;
    inset: 0;

    padding: 1px;
    border-radius: inherit;

    pointer-events: none;
    z-index: 2;

    background: conic-gradient(
        from var(--discount-angle),

        transparent 0deg 285deg,

        rgba(190, 160, 105, 0.14) 295deg,
        rgba(210, 185, 135, 0.55) 305deg,
        rgba(242, 225, 190, 0.95) 318deg,
        rgba(190, 160, 105, 0.42) 331deg,

        transparent 345deg 360deg
    );

    /* نمایش گرادیان فقط روی حاشیه */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    mask-composite: exclude;

    animation: discount-border-orbit 5.5s linear infinite;
}


/* =========================================================
   HOVER
========================================================= */

.product-row.has-discount:hover {
    border-color: rgba(210, 185, 135, 0.70) !important;

    box-shadow:
        0 0 0 1px rgba(190, 160, 105, 0.18),
        0 0 14px rgba(190, 160, 105, 0.16);
}


/* =========================================================
   DISCOUNT BADGE
========================================================= */

.product-row.has-discount::after {
    /* content: "";  */

    position: absolute;
    top: 9px;
    left: 9px;

    z-index: 5;

    font-size: 10px;
    font-weight: 800;

    padding: 3px 9px;
    border-radius: 6px;

    background: rgba(205, 178, 125, 0.95);
    color: #171717;

    box-shadow: 0 0 8px rgba(190, 160, 105, 0.22);

    pointer-events: none;
}


/* GRID */
.product-results.view-grid .product-row.has-discount::after {
    top: 10px;
    left: 10px;
}


/* =========================================================
   LIGHT THEME
========================================================= */

html[data-theme="light"] .product-row.has-discount {
    border-color: rgba(155, 120, 60, 0.45) !important;

    box-shadow:
        0 0 0 1px rgba(155, 120, 60, 0.10),
        0 0 10px rgba(155, 120, 60, 0.09);
}

html[data-theme="light"] .product-row.has-discount::before {
    background: conic-gradient(
        from var(--discount-angle),

        transparent 0deg 285deg,

        rgba(155, 120, 60, 0.13) 295deg,
        rgba(175, 140, 80, 0.50) 305deg,
        rgba(215, 190, 140, 0.95) 318deg,
        rgba(155, 120, 60, 0.40) 331deg,

        transparent 345deg 360deg
    );
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .product-row.has-discount::before {
        animation: none;
    }

    .product-row.has-discount,
    .product-row.has-discount:hover {
        transition: none;
    }
}










/* TOP HEADER */
/* =========================================================
   SITE CONTACT STRIP — TOP HEADER
========================================================= */

.site-contact-strip {
    width: 100%;

    background: #121417;

    border-bottom: 1px solid rgba(240, 208, 0, 0.12);

    color: #aaaeb5;

    font-size: 0.78rem;
}

.site-contact-strip__inner {
    min-height: 39px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 6px;
    padding-bottom: 6px;
}

.site-contact-strip__item {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    color: inherit;
    text-decoration: none;

    transition: color 0.2s ease;
}

.site-contact-strip__item:hover {
    color: #e5cd78;
}

.site-contact-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    flex-shrink: 0;

    color: rgba(225, 195, 110, 0.85);
}

.site-contact-strip__icon svg {
    width: 16px;
    height: 16px;
}

.site-contact-strip__label {
    color: #777d86;
    white-space: nowrap;
}

.site-contact-strip__address {
    flex: 1;
    overflow: hidden;
}

.site-contact-strip__value {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-contact-strip__phones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 16px;

    flex-shrink: 0;
}

.site-contact-strip__phone {
    color: #d1d3d7;

    direction: ltr;
    unicode-bidi: isolate;

    text-decoration: none;

    font-weight: 600;
    letter-spacing: 0.3px;

    transition: color 0.2s ease;
}

.site-contact-strip__phone:hover {
    color: var(--accent, #f0d000);
}


/* LIGHT THEME */

html[data-theme="light"] .site-contact-strip {
    background: #f5f4ef;

    border-bottom-color: rgba(160, 130, 65, 0.18);

    color: #555;
}

html[data-theme="light"] .site-contact-strip__phone {
    color: #444;
}

html[data-theme="light"] .site-contact-strip__label {
    color: #888;
}

html[data-theme="light"] .site-contact-strip__item:hover {
    color: #97752d;
}


/* MOBILE */

@media (max-width: 650px) {

    .site-contact-strip__inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 7px;

        padding-top: 9px;
        padding-bottom: 9px;
    }

    .site-contact-strip__address {
        width: 100%;
    }

    .site-contact-strip__phones {
        width: 100%;
        gap: 14px;
    }

    .site-contact-strip {
        font-size: 0.72rem;
    }
}




















/* ===============================
   Orders Page
================================ */
.orders-page {
    direction: rtl;
    max-width: 1150px;
    margin: 0 auto;
    padding-bottom: 35px;
    color: var(--text);
}

/* Header */
.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.orders-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.orders-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(240, 208, 0, .10);
    color: var(--accent);
    font-size: 23px;
}

.orders-heading h2 {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 21px;
    font-weight: 800;
}

.orders-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.orders-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.orders-count strong {
    color: var(--accent);
    font-size: 16px;
}

/* Table Container */
.orders-table-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.orders-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: right;
    margin: 0;
}

.orders-table thead {
    background: rgba(255, 255, 255, .025);
}

.orders-table th {
    padding: 16px 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.orders-table td {
    padding: 17px 18px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.orders-table tbody tr {
    transition: background .2s ease;
}

.orders-table tbody tr:hover {
    background: rgba(240, 208, 0, .035);
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.order-number {
    color: var(--accent);
    font-weight: 800;
    direction: ltr;
    display: inline-block;
}

.order-date {
    color: var(--muted);
    white-space: nowrap;
}

.order-amount {
    font-weight: 800;
    white-space: nowrap;
}

.order-amount small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    margin-right: 3px;
}

/* Action Buttons */
.order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.order-action-btn {
    min-height: 34px;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.order-print-btn {
    background: rgba(240, 208, 0, .10);
    border: 1px solid rgba(240, 208, 0, .25);
    color: var(--accent);
}

.order-print-btn:hover {
    background: var(--accent);
    color: #171717;
    border-color: var(--accent);
}

.order-detail-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.order-detail-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Empty State */
.orders-empty {
    padding: 65px 20px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.orders-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(240, 208, 0, .09);
    color: var(--accent);
    font-size: 28px;
}

.orders-empty h3 {
    margin: 0 0 9px;
    font-size: 17px;
    color: var(--text);
}

.orders-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    .orders-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .orders-heading h2 {
        font-size: 18px;
    }

    .orders-icon {
        width: 43px;
        height: 43px;
        font-size: 20px;
    }

    .orders-count {
        margin-right: 56px;
        padding: 7px 11px;
    }

    .orders-table th,
    .orders-table td {
        padding: 14px 12px;
    }

    .orders-empty {
        padding: 45px 15px;
    }
}



























/* =========================================================
POLL SLIDER — نظرسنجی
========================================================= */
.poll-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 50px;
    font-size: .8rem;
    color: var(--accent);
    background: rgba(240,208,0,.08);
    border: 1px solid rgba(240,208,0,.17);
    white-space: nowrap;
}
.poll-counter-badge strong {
    font-size: 1rem;
    font-weight: 900;
}

/* Slider wrapper */
.poll-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.poll-slider {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}

.poll-track {
    display: flex;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

/* هر اسلاید — ارتفاع ثابت */
.poll-slide {
    min-width: 100%;
    min-height: 440px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.poll-slide-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-slide-num {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(240,208,0,.08);
    border: 1px solid rgba(240,208,0,.18);
}

.poll-title {
    color: #f5f5f5;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.7;
    margin: 0;
}

.poll-desc {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.9;
    margin: 0;
}

.poll-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- فرم رأی ---------- */
.poll-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255,255,255,.02);
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}

.poll-option:hover {
    border-color: rgba(240,208,0,.4);
    background: rgba(240,208,0,.04);
    transform: translateX(-3px);
}

.poll-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.poll-option-text {
    flex: 1;
    color: #eee;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.7;
}

.poll-option-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 50%;
    position: relative;
    transition: .2s;
}

.poll-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(240,208,0,.08);
}

.poll-option:has(input:checked) .poll-option-radio {
    border-color: var(--accent);
}

.poll-option:has(input:checked) .poll-option-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent);
    animation: pollRadioPop .3s ease;
}

@keyframes pollRadioPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.poll-submit-btn {
    align-self: flex-start;
    min-height: 46px;
    padding: 11px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #171717;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 10px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
    margin-top: 8px;
}

.poll-submit-btn:hover {
    background: #ffea00;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(240,208,0,.2);
}

.poll-submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ---------- نتایج ---------- */
.poll-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poll-results-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.poll-result-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poll-result-bar {
    position: relative;
    height: 38px;
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    overflow: hidden;
    border: 1px solid var(--border);
}

.poll-result-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #ffe96a);
    border-radius: 9px;
    transition: width 1s cubic-bezier(.2,.8,.2,1);
}

.poll-result-row.is-user .poll-result-fill {
    background: linear-gradient(90deg, #2ecc71, #58d68d);
}

.poll-result-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: .85rem;
    font-weight: 700;
    color: #f1f1f1;
}

.poll-result-text strong {
    color: var(--accent);
    font-size: .95rem;
    font-weight: 900;
}

.poll-result-row.is-user .poll-result-text strong {
    color: #2ecc71;
}

.poll-your-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 800;
    color: #171717;
    background: #2ecc71;
}

.poll-result-meta {
    padding: 0 4px;
    color: var(--muted);
    font-size: .73rem;
}

.poll-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-top: 6px;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: .82rem;
}

.poll-total-line strong {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 900;
}

/* ---------- فلش‌ها ---------- */
.poll-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
    display: grid;
    place-items: center;
}

.poll-arrow:hover {
    background: var(--accent);
    color: #171717;
    border-color: var(--accent);
    transform: scale(1.08);
}

.poll-arrow:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* ---------- dots ---------- */
.poll-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.poll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    cursor: pointer;
    transition: .25s;
    padding: 0;
}

.poll-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* ---------- موبایل ---------- */
@media (max-width: 700px) {
    .poll-slide {
        min-height: 480px;
        padding: 20px 18px;
    }
    .poll-title {
        font-size: 1.08rem;
    }
    .poll-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    .poll-option {
        padding: 12px 14px;
    }
    .poll-result-bar {
        height: 36px;
    }
    .poll-result-text {
        font-size: .78rem;
        padding: 0 10px;
    }
}
























/* ==========================================================
FIX: پوشش کامل عکس در حالت CARD (گرید)
========================================================== */

/* ۱) باکس عکس در حالت گرید — ارتفاع ثابت و برش اضافی */
.product-results.view-grid .img-box {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;   /* نسبت ۱:۱ — مربع کامل */
    /* اگر می‌خواهی مستطیل باشد: padding-bottom: 75%; (۴:۳) یا 66.66%; (۳:۲) */
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #1a1a1a !important;    /* رنگ پس‌زمینه یکدست */
    position: relative !important;
    display: block !important;
}

/* ۲) خود عکس — پر کردن کامل باکس */
.product-results.view-grid .img-box img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;      /* کل کادر را پر می‌کند */
    object-position: center center !important;
    display: block !important;
    border-radius: 12px !important;
}

/* ۳) placeholder (وقتی عکس ندارد) */
.product-results.view-grid .img-box .img-placeholder {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #666 !important;
    font-size: 0.85rem !important;
    background: #1a1a1a !important;
}

/* ۴) حالت موبایل در گرید — کمی کوچک‌تر */
@media (max-width: 640px) {
    .product-results.view-grid .img-box {
        padding-bottom: 100% !important;
        border-radius: 10px !important;
    }
    .product-results.view-grid .img-box img {
        border-radius: 10px !important;
    }
}

/* ۵) حالت لیست — دست نزن (همان contain بماند) */
.product-results.view-list .img-box img {
    object-fit: contain !important;
}

























/* =========================================================
   PRODUCT SPEC TOOLTIP — FIX STACKING BETWEEN CARDS
   بالا آمدن خود کارت فعال مهم‌تر از z-index خود tooltip است.
========================================================= */

.product-results,
.product-results.view-list,
.product-results.view-grid {
    position: relative;
    overflow: visible !important;
}

.product-results .product-row {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

/* کارت زیر نشانگر یا دارای focus بالای کارت‌های مجاور قرار می‌گیرد */
.product-results .product-row:hover,
.product-results .product-row:focus-within {
    z-index: 100000 !important;
}

.product-results .product-row .title,
.product-results .product-row .stock,
.product-results .product-row .stock-with-spec {
    overflow: visible !important;
}

.product-results .stock-with-spec .spec-tip-wrap {
    position: relative;
    z-index: 100001;
}

.product-results .stock-with-spec .spec-tooltip {
    position: absolute;
    top: auto !important;
    bottom: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 100002 !important;
    width: 290px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

.product-results .stock-with-spec .spec-tooltip[hidden] {
    display: none !important;
}

.product-results .stock-with-spec .spec-tooltip:not([hidden]) {
    display: block;
}

/* Tooltip در حالت روشن هم خوانا بماند */
html[data-theme="light"] .product-results .stock-with-spec .spec-tooltip {
    background: #fff;
    border-color: rgba(155, 120, 40, .28);
    color: #222;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .20);
}

html[data-theme="light"] .product-results .stock-with-spec .spec-tooltip-heading strong,
html[data-theme="light"] .product-results .stock-with-spec .spec-tooltip li b {
    color: #222;
}


/* =========================================================
   PRODUCT ROW — SINGLE SOURCE OF TRUTH
   Desktop: img | title | price | actions
   Tablet/Mobile: stack; actions always COLUMN
   actions: stepper → total → add button
========================================================= */

.product-row {
    direction: rtl;
    display: grid !important;
    grid-template-columns: 130px minmax(0, 1fr) auto minmax(150px, 200px) !important;
    grid-template-areas: "img title price actions" !important;
    align-items: center;
    gap: 12px 14px;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.product-row:hover,
.product-row:focus-within {
    z-index: 50;
}

.product-row .img-box {
    grid-area: img !important;
    width: 130px;
    height: 130px;
    min-width: 72px;
    min-height: 72px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #111;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-row .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-row .title {
    grid-area: title !important;
    min-width: 0;
    text-align: right;
}

.product-row .title strong,
.product-row .product-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.product-row .stock {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--muted);
}

.product-row .price {
    grid-area: price !important;

    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

/* actions column — ALWAYS stacked */
.product-row .product-actions {
    grid-area: actions !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 200px;
    justify-self: stretch;
}

.product-row .qty-control-group {
    order: 1;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px;
    width: 100%;
}

.product-row .add-btn,
.product-row .add-btn-cart {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px;
    padding: 8px 10px;
    box-sizing: border-box;
    white-space: nowrap;
}

.product-row .qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    height: 40px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #151515;
    box-sizing: border-box;
    width: 100%;
}

.product-row .qty-stepper .qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.product-row .qty-stepper .qty-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.product-row .qty-stepper .qty-input {
    width: 40px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.product-row .qty-stepper .qty-unit {
    max-width: 64px;
    font-size: 0.7rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-row .qty-total-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 6px;
    border-radius: 7px;
    border: 1px solid rgba(240, 208, 0, 0.15);
    background: rgba(240, 208, 0, 0.06);
    font-size: 0.72rem;
    color: #ccc;
    width: 100%;
    box-sizing: border-box;
}

.product-row .qty-total-display .qty-total-value {
    color: var(--accent);
    font-weight: 900;
}

/* Tablet */
@media (max-width: 900px) {
    .product-row {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        grid-template-areas:
            "img title"
            "img price"
            "actions actions" !important;
        gap: 10px 12px;
    }

    .product-row .product-actions {
        max-width: none !important;
        width: 100% !important;
        flex-direction: column !important;
    }

    .product-row .title strong,
    .product-row .product-title {
        white-space: normal;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .product-row {
        grid-template-columns: minmax(0, 1fr) 72px !important;
        grid-template-areas:
            "title img"
            "price img"
            "actions actions" !important;
        gap: 8px 10px;
        padding: 12px;
    }

    .product-row .img-box {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
    }

    .product-row .product-actions {
        max-width: none !important;
        width: 100% !important;
        flex-direction: column !important;
    }

    .product-row .add-btn,
    .product-row .add-btn-cart {
        min-height: 44px;
        font-size: 0.9rem;
    }

    .product-row .qty-stepper {
        height: 42px;
    }
}

/* Card / grid view */
.product-results.view-grid .product-row {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
}

.product-results.view-grid .product-row .img-box {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
}

.product-results.view-grid .product-row .product-actions {
    max-width: none !important;
    margin-top: auto;
}

.product-results {
    overflow: visible;
}









/* =========================================================
   PRODUCT ACTIONS — wireframe Tablet / Mobile
   children: .qty-total-display | .qty-control-group | .add-btn
========================================================= */

/* دسکتاپ: ستونی مثل قبل */
@media (min-width: 901px) {
    .product-results.view-list .product-row .product-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        max-width: 200px;
    }
}

/* تبلت */
@media (max-width: 900px) {
    .product-results.view-list .product-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 124px !important;
        grid-template-areas:
            "title img"
            "price img"
            "actions actions" !important;
        gap: 10px 12px !important;
        align-items: start !important;
    }

    .product-results.view-list .product-row .img-box {
        grid-area: img !important;
        width: 88px !important;
        height: 88px !important;
        min-width: 88px !important;
        min-height: 88px !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        padding-bottom: 0 !important;
    }

    .product-results.view-list .product-row .img-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .product-results.view-list .product-row .title { grid-area: title !important; }
    .product-results.view-list .product-row .price { grid-area: price !important; }

    /* یک ردیف: تعداد | جمع | افزودن */
    .product-results.view-list .product-row .product-actions {
        grid-area: actions !important;
        display: grid !important;
        grid-template-columns: minmax(110px, 1.2fr) minmax(70px, 0.85fr) minmax(100px, 1fr) !important;
        grid-template-areas: "qty total add" !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: none !important;
        align-items: stretch !important;
    }

    .product-results.view-list .product-row .qty-total-display {
        grid-area: total !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2px !important;
        min-height: 44px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 6px 4px !important;
        text-align: center !important;
        font-size: 0.68rem !important;
    }

    .product-results.view-list .product-row .qty-control-group {
        grid-area: qty !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .product-results.view-list .product-row .qty-stepper {
        width: 100% !important;
        height: 44px !important;
    }

    .product-results.view-list .product-row .add-btn,
    .product-results.view-list .product-row .add-btn-cart {
        grid-area: add !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 44px !important;
        margin: 0 !important;
    }
}

/* موبایل */
@media (max-width: 600px) {
    .product-results.view-list .product-row {
        grid-template-columns: minmax(0, 1fr) 120px !important;
        grid-template-areas:
            "title img"
            "price img"
            "actions actions" !important;
        gap: 8px 10px !important;
    }

    .product-results.view-list .product-row .img-box {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
    }

    /* ردیف۱: تعداد | جمع — ردیف۲: افزودن تمام‌عرض */
    .product-results.view-list .product-row .product-actions {
        grid-template-columns: minmax(0, 1.3fr) minmax(80px, 0.9fr) !important;
        grid-template-areas:
            "qty total"
            "add add" !important;
        gap: 8px !important;
    }

    .product-results.view-list .product-row .qty-total-display {
        min-height: 44px !important;
    }

    .product-results.view-list .product-row .qty-stepper {
        height: 44px !important;
    }

    .product-results.view-list .product-row .add-btn,
    .product-results.view-list .product-row .add-btn-cart {
        min-height: 46px !important;
        width: 100% !important;
    }
}
























/* Tooltip FIX in Mobile */
/* Tooltip moved to body by JavaScript */
.spec-tooltip.spec-tooltip-floating {
    position: fixed !important;
    z-index: 999999 !important;

    box-sizing: border-box;
    margin: 0 !important;

    direction: rtl;
    text-align: right;

    animation: none !important;
    transform: none !important;
}

.spec-tooltip.spec-tooltip-floating::before {
    right: auto !important;
    left: var(--spec-arrow-x, 22px) !important;
    top: -6px !important;
    bottom: auto !important;
    transform: rotate(-45deg);
}

.spec-tooltip.spec-tooltip-floating.is-above::before {
    top: auto !important;
    bottom: -6px !important;
    transform: rotate(135deg);
}












/* گالری همیشه بالاتر از کارت‌ها و tooltip */
#gallery-modal {
    z-index: 2000000 !important;
}

#gallery-modal #gallery-stage,
#gallery-modal #gallery-img,
#gallery-modal #gallery-prev,
#gallery-modal #gallery-next,
#gallery-modal #gallery-close,
#gallery-modal #gallery-counter {
    z-index: 2000001;
}

/* وقتی گالری باز است، کارت‌ها نپرند بالا */
body.gallery-open .product-row,
body.gallery-open .product-row:hover,
body.gallery-open .product-row:focus-within {
    z-index: 1 !important;
}

body.gallery-open .spec-tooltip,
body.gallery-open .spec-tooltip.spec-tooltip-floating {
    display: none !important;
}


/* —— باکس عکس محصول: همیشه داخل کادر —— */
.product-row .img-box {
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #111 !important;
}

.product-row .img-box img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* لیست دسکتاپ */
.product-results.view-list .product-row .img-box {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    padding-bottom: 0 !important;
}

/* تبلت */
@media (max-width: 900px) {
    .product-results.view-list .product-row .img-box {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        padding-bottom: 0 !important;
    }
}

/* موبایل */
@media (max-width: 600px) {
    .product-results.view-list .product-row .img-box {
        width: 110px !important;
        height: 110px !important;
        min-width: 110px !important;
        min-height: 110px !important;
        padding-bottom: 0 !important;
    }
}

/* گرید / کارت */
.product-results.view-grid .product-row .img-box {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    padding-bottom: 0 !important;
}

.product-results.view-grid .product-row .img-box img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}





/* BIG IMAGE IN ROW */
/* لیست افقی (دسکتاپ) */
.product-row .img-box {
    width: 110px;
    min-width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #222;
}

.product-row .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* گرید موبایل / view-grid */
.product-results.view-grid .product-row .img-box {
    width: 100%;
    min-width: 0;
    height: 160px;
}

.product-row .img-box .gallery-count {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    pointer-events: none;
}







































/* =====================================================
   PRODUCT GALLERY — STABLE ARROWS
===================================================== */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
    padding: 12px;
    box-sizing: border-box;
}

#gallery-modal[aria-hidden="true"] {
    display: none !important;
    pointer-events: none !important;
}

#gallery-modal[aria-hidden="false"],
.gallery-modal.is-open {
    display: flex !important;
    pointer-events: auto !important;
}

/* Close */

.gallery-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #222;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* ثابت نگه داشتن فضای گالری */

.gallery-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: min(96vw, 820px);
    height: min(82vh, 760px);
    min-height: 240px;

    z-index: 2;
}

/* Stage مستقل از ابعاد عکس */

.gallery-stage {
    position: relative;

    width: calc(100% - 112px);
    max-width: 720px;
    height: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 1;
}

/* تصویر */

.gallery-stage img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(100% - 38px);

    object-fit: contain;
    object-position: center;

    border-radius: 10px;
    background: #111;

    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Counter */

.gallery-counter {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    padding: 5px 13px;

    color: #ddd;
    background: rgba(20,20,20,.8);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;

    font-size: 13px;
    direction: ltr;
    white-space: nowrap;
}

/* Arrows */

.gallery-nav {
    position: relative;
    z-index: 5;

    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #f0d000;
    color: #111;

    font-size: 26px;
    line-height: 1;

    cursor: pointer;

    transform: none;
    transform-origin: center;

    transition:
        background-color .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        transform .12s ease;

    box-shadow: 0 2px 10px rgba(0,0,0,.3);

    -webkit-tap-highlight-color: transparent;
}

.gallery-nav:hover {
    background: #ffea00;
    box-shadow: 0 4px 14px rgba(240,208,0,.2);
}

/* فقط یک افکت کوچک؛ بدون جابه‌جایی */

.gallery-nav:active {
    transform: scale(.95);
}

.gallery-nav[hidden] {
    display: none !important;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 640px) {

    .gallery-modal {
        padding: 10px;
    }

    .gallery-inner {
        display: block;

        width: 100%;
        height: min(76vh, 650px);

        min-height: 220px;
        margin: auto;
    }

    .gallery-stage {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
    }

    .gallery-stage img {
        max-width: 100%;
        max-height: calc(100% - 38px);
    }

    /* موقعیت فلش‌ها فقط به کادر ثابت وابسته است */

    .gallery-nav {
        position: absolute;

        top: 50%;
        z-index: 5;

        width: 40px;
        height: 40px;
        min-width: 40px;

        transform: translateY(-50%);
    }

    .gallery-prev {
        right: 8px;
        left: auto;
    }

    .gallery-next {
        left: 8px;
        right: auto;
    }

    /* جلوگیری از پرش هنگام لمس */
    .gallery-nav:active {
        transform: translateY(-50%) scale(.95);
    }

    .gallery-counter {
        bottom: 0;
    }

    .gallery-close {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
    }
}






























/* =========================================================
SHELF DISPLAY SLIDER
========================================================= */
.shelf-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

/* اسلایدر اصلی */
.shelf-slider {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);

    /* مهم: جهت حرکت اسلایدر */
    direction: ltr;
}

/* مسیر حرکت اسلایدها */
.shelf-track {
    display: flex;
    width: 100%;
    direction: ltr;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

/* هر اسلاید دقیقاً به اندازه اسلایدر */
.shelf-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;

    /* محتوای فارسی همچنان RTL */
    direction: rtl;
}


.shelf-image-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    overflow: hidden;
}

.shelf-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shelf-slide:hover .shelf-image-wrap img {
    transform: scale(1.03);
}

.shelf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
}

.shelf-overlay h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 4px;
}

.shelf-overlay p {
    font-size: 0.85rem;
    color: #ddd;
    margin: 0;
}

.shelf-products {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #161616;
}

.shelf-products h4 {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.shelf-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shelf-tag {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(240,208,0,.08);
    border: 1px solid rgba(240,208,0,.2);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.shelf-tag:hover {
    background: var(--accent);
    color: #111;
}

/* Arrow Buttons */
.shelf-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
    display: grid;
    place-items: center;
    z-index: 2;
}

.shelf-arrow:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Dots */
.shelf-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.shelf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    cursor: pointer;
    transition: .25s;
    padding: 0;
}

.shelf-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* Mobile */
@media (max-width: 700px) {
    .shelf-slider-wrap { gap: 8px; }
    .shelf-arrow { width: 38px; height: 38px; font-size: 1.2rem; }
    .shelf-overlay h3 { font-size: 1rem; }
    .shelf-overlay { padding: 12px; }
}


