
:root {
    color-scheme: light;
    /* ── Theme variables – defaults (overridden by active theme via <style> in <head>) ── */
    --t-primary:        #f97316;
    --t-primary-dark:   #ea580c;
    --t-primary-light:  #fff7ed;
    --t-header-bg:      #111827;
    --t-footer-bg:      #111827;
    --t-body-bg:        #f5f4f2;
    --t-card-bg:        #ffffff;
    --t-nav-text:       #d1d5db;
    --t-text-base:      #1a1a1a;
    --t-text-muted:     #9ca3af;
    --t-border:         #e5e7eb;
    --t-price:          #ea580c;

    /* ── Legacy aliases → theme vars ── */
    --dark:    var(--t-header-bg);
    --dark2:   #1f2937;
    --dark3:   #374151;
    --orange:  var(--t-primary);
    --orange2: var(--t-primary-dark);
    --bg:      var(--t-body-bg);
    --card-bg: var(--t-card-bg);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--t-body-bg);
    color: var(--t-text-base);
}

h1, h2, h3, h4, h5, h6 { color: var(--t-text-base); }
p { color: inherit; }

/* ── HEADER ── */
.site-header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

    .site-logo .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--orange);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        color: #fff;
        flex-shrink: 0;
    }

    .site-logo .logo-text {
        font-size: 1.15rem;
        font-weight: 800;
        color: #fff;
        letter-spacing: -.02em;
    }

        .site-logo .logo-text span {
            color: var(--orange);
        }

/* Nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .header-nav .nav-item {
        position: relative;
    }

    .header-nav .h-link {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px;
        border-radius: 8px;
        color: var(--t-nav-text);
        font-size: .88rem;
        font-weight: 500;
        text-decoration: none;
        transition: all .18s;
        white-space: nowrap;
    }

        .header-nav .h-link:hover {
            color: #fff;
            background: rgba(255,255,255,.07);
        }

        .header-nav .h-link.active {
            color: var(--orange);
        }

/* Dropdown */
.h-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .2s;
    z-index: 100;
}

.header-nav .nav-item:hover .h-dropdown,
.header-nav .nav-item:focus-within .h-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.h-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #374151;
    font-size: .87rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
}

    .h-dropdown a:hover {
        background: var(--t-primary-light);
        color: var(--t-primary-dark);
    }

.h-dropdown .divider {
    height: 1px;
    background: #f3f4f6;
    margin: 6px 0;
}

/* Dropdown - mega with groups */
.h-dropdown--mega { min-width: 240px; }
.h-dropdown-all { font-weight: 600 !important; }
.h-dropdown-group { position: relative; }
.h-dropdown-parent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #374151;
    font-size: .87rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}
.h-dropdown-parent:hover { background: var(--t-primary-light); color: var(--t-primary); }
.h-dropdown-arrow { margin-right: auto !important; font-size: .6rem !important; color: #9ca3af; transition: transform .2s; }
.h-dropdown-children {
    display: none;
    padding: 2px 0 4px 0;
    border-right: 2px solid var(--t-primary-light);
    margin-right: 20px;
    margin-bottom: 4px;
}
.h-dropdown-group:hover .h-dropdown-children { display: block; }
.h-dropdown-group:hover .h-dropdown-arrow { transform: rotate(-90deg); }
.h-dropdown-child {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 6px;
    color: #6b7280;
    font-size: .83rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
}
.h-dropdown-child:hover { background: var(--t-primary-light); color: var(--t-primary); }

/* Search */
.header-search-wrap {
    flex: 1;
    max-width: 320px;
    position: relative;
}
.header-search {
    width: 100%;
}

/* Autocomplete dropdown */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 1200;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.search-dropdown.is-open { display: block; }

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    cursor: pointer;
}
.search-item:hover,
.search-item.is-active { background: #f5f3ff; }

.search-item__img {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}
.search-item__img-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: .9rem;
    flex-shrink: 0;
}
.search-item__info { flex: 1; min-width: 0; }
.search-item__title {
    font-size: .84rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item__title mark {
    background: none;
    color: var(--t-primary, #f97316);
    font-weight: 700;
    padding: 0;
}
.search-item__price {
    font-size: .75rem;
    color: #6b7280;
    margin-top: 2px;
}
.search-item--all {
    border-top: 1px solid #f3f4f6;
    font-size: .8rem;
    color: var(--t-primary, #f97316);
    font-weight: 600;
    justify-content: center;
    padding: 10px;
}
.search-item--all:hover { background: #fff8f0; }

@media (max-width: 767px) {
    .header-search-wrap { max-width: 100%; }
    .search-dropdown { border-radius: 0 0 12px 12px; }
}

    .header-search .search-wrap {
        display: flex;
        align-items: center;
        background: rgba(255,255,255,.07);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 10px;
        overflow: hidden;
        transition: all .2s;
    }

        .header-search .search-wrap:focus-within {
            background: rgba(255,255,255,.12);
            border-color: var(--orange);
        }

    .header-search input {
        background: transparent;
        border: none;
        outline: none;
        padding: 8px 12px;
        color: #fff;
        font-family: 'Vazirmatn', sans-serif;
        font-size: .87rem;
        flex: 1;
        min-width: 0;
    }

        .header-search input::placeholder {
            color: #9ca3af;
        }

    .header-search button {
        background: none;
        border: none;
        padding: 8px 14px;
        color: #9ca3af;
        cursor: pointer;
        transition: color .15s;
    }

        .header-search button:hover {
            color: var(--orange);
        }

    .header-search .search-ai-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
        color: var(--orange);
        opacity: 0.6;
    }


/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.h-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #d1d5db;
    text-decoration: none;
    position: relative;
    transition: all .18s;
}

    .h-icon-btn:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
        border-color: rgba(255,255,255,.18);
    }

    .h-icon-btn .cart-badge {
        position: absolute;
        top: -5px;
        left: -5px;
        width: 18px;
        height: 18px;
        background: var(--orange);
        color: #fff;
        border-radius: 50%;
        font-size: .6rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.h-btn-login {
    padding: 7px 16px;
    border-radius: 9px;
    border: 1.5px solid rgba(255,255,255,.2);
    background: transparent;
    color: #d1d5db;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    transition: all .18s;
    white-space: nowrap;
}

    .h-btn-login:hover {
        border-color: var(--orange);
        color: var(--orange);
    }

.h-btn-register {
    padding: 7px 18px;
    border-radius: 9px;
    background: var(--orange);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    transition: all .18s;
    white-space: nowrap;
    border: 1.5px solid var(--orange);
}

    .h-btn-register:hover {
        background: var(--orange2);
        border-color: var(--orange2);
        color: #fff;
    }

/* User dropdown */
.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #d1d5db;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    transition: all .18s;
}

    .user-trigger:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

    .user-trigger .avatar {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        background: var(--orange);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .75rem;
        color: #fff;
        font-weight: 700;
    }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .2s;
    z-index: 100;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a, .user-dropdown button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    color: #374151;
    font-size: .87rem;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    text-align: right;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: all .15s;
}

    .user-dropdown a:hover {
        background: #f9fafb;
        color: #111827;
    }

    .user-dropdown button:hover {
        background: #fef2f2;
        color: #dc2626;
    }

.user-dropdown .divider {
    height: 1px;
    background: #f3f4f6;
    margin: 6px 0;
}

.user-dropdown .icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    color: #d1d5db;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .site-header {
        position: relative;
        z-index: 1050;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-nav, .header-search-wrap {
        display: none !important;
    }

    .header-nav.open {
        display: flex !important;
    }

    .header-search-wrap.open {
        display: block !important;
    }

    .header-inner {
        flex-wrap: nowrap;
        height: 68px;
        padding: 0;
        gap: 10px;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 16px 40px rgba(0,0,0,.35);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
        z-index: 1050;
    }

    .header-search-wrap {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 12px 16px;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 16px 40px rgba(0,0,0,.35);
        z-index: 1050;
    }

    .header-search {
        max-width: 100%;
        width: 100%;
    }

    /* Hamburger alignment in RTL */
    .mobile-toggle {
        margin-right: auto;
    }

    /* Full-width nav items */
    .header-nav .nav-item { width: 100%; }

    .header-nav .h-link {
        width: 100%;
        padding: 10px 14px;
        border-radius: 8px;
        justify-content: space-between;
    }

    /* Override desktop hover/focus trigger */
    .header-nav .nav-item:hover .h-dropdown:not(.mob-open),
    .header-nav .nav-item:focus-within .h-dropdown:not(.mob-open) {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
    }

    /* Mobile dropdown: collapsed by default, expand via .mob-open */
    .header-nav .h-dropdown {
        position: static !important;
        box-shadow: none !important;
        min-width: unset;
        width: 100%;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background: rgba(255,255,255,.05);
        border-radius: 8px;
        transition: max-height .28s ease, opacity .2s, visibility .2s, padding .2s, margin .2s;
        padding: 0 !important;
        margin-top: 0 !important;
    }

    .header-nav .h-dropdown.mob-open {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 800px !important;
        padding: 6px !important;
        margin-top: 3px !important;
    }

    /* Sub-categories always visible on mobile */
    .header-nav .h-dropdown-children {
        display: block !important;
        border-right: 2px solid rgba(255,255,255,.1);
        margin-right: 12px;
        padding-right: 0;
    }

    .header-nav .h-dropdown-arrow { display: none !important; }

    /* Mobile dropdown link colors */
    .header-nav .h-dropdown a,
    .header-nav .h-dropdown .h-dropdown-parent,
    .header-nav .h-dropdown .h-dropdown-child {
        color: #d1d5db;
    }

    .header-nav .h-dropdown a:hover,
    .header-nav .h-dropdown .h-dropdown-parent:hover,
    .header-nav .h-dropdown .h-dropdown-child:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

    /* User dropdown fix for mobile */
    .user-dropdown {
        left: 0;
        right: auto;
        z-index: 1060;
    }
}

/* ── MAIN ── */
main {
    padding: 32px 0;
    min-height: calc(100vh - 68px - 300px);
}

.alert-success {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
    border-radius: 10px;
}

.alert-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    border-radius: 10px;
}

/* ── PRODUCT CARDS ── */
.pc-wrap {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: transform .22s, box-shadow .22s, border-color .22s;
    position: relative;
}
.pc-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    border-color: color-mix(in srgb, var(--t-primary) 40%, white);
}

/* تصویر */
.pc-img-link {
    position: relative;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
}
.pc-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f8fafc;
    transition: transform .38s ease;
    display: block;
}
.pc-wrap:hover .pc-img {
    transform: scale(1.04);
}
.pc-img-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 3rem;
}

/* badge تخفیف */
.pc-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    top: auto;
    right: auto;
    background: var(--orange);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 20px;
    line-height: 1.4;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* body */
.pc-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* عنوان */
.pc-title {
    font-size: .93rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}
.pc-title:hover { color: var(--t-primary); text-decoration: none; }

/* قیمت */
.pc-price-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
}
.pc-old {
    font-size: .76rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.pc-final {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--orange2);
    letter-spacing: -.01em;
}
.pc-final small {
    font-size: .73rem;
    font-weight: 500;
    color: #64748b;
    margin-right: 2px;
}

/* دکمه سبد */
.pc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 11px;
    background: var(--t-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    font-family: inherit;
    letter-spacing: .01em;
}
.pc-btn:hover {
    background: var(--t-primary-dark, var(--orange2));
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* دکمه مقایسه */
.pc-compare-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.93);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 600;
    padding: 5px 9px;
    cursor: pointer;
    transition: all .2s;
    z-index: 2;
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 6px rgba(0,0,0,.1);
    font-family: inherit;
    white-space: nowrap;
}
.pc-compare-btn i { font-size: .65rem; }
.pc-compare-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59,130,246,.2);
}
.pc-compare-btn.active {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,.25);
}

/* دکمه علاقه‌مندی */
.pc-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,.93);
    border: 1.5px solid #fecaca;
    color: #f43f5e;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .8rem;
    transition: all .2s;
    backdrop-filter: blur(6px);
    padding: 0;
    z-index: 2;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.pc-wishlist-btn:hover {
    background: #fff1f2;
    border-color: #f43f5e;
    box-shadow: 0 2px 10px rgba(244,63,94,.25);
    transform: scale(1.1);
}
.pc-wishlist-btn.active {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border-color: #f43f5e;
    color: #e11d48;
    box-shadow: 0 2px 10px rgba(244,63,94,.3);
}

/* Stock badges on product card */
.pc-stock-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    top: auto;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}
.pc-stock-badge--out {
    background: rgba(220,38,38,.85);
    color: #fff;
    backdrop-filter: blur(4px);
}
.pc-wrap--out .pc-img { filter: grayscale(30%) opacity(.8); }
.pc-btn--out {
    background: #94a3b8 !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: .8;
}
.pc-low-stock {
    font-size: 11px;
    color: #d97706;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* legacy compat */
.price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: .82rem;
}

.price-final {
    color: var(--orange2);
    font-weight: 700;
}

.discount-badge {
    background: var(--orange);
    color: #fff;
    font-size: .68rem;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 700;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--dark);
    color: #9ca3af;
    margin-top: 64px;
}

.footer-top {
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

    .footer-brand .brand-logo .logo-icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
        background: var(--orange);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        color: #fff;
    }

    .footer-brand .brand-logo span {
        font-size: 1.15rem;
        font-weight: 800;
        color: #fff;
    }

        .footer-brand .brand-logo span em {
            color: var(--orange);
            font-style: normal;
        }

.footer-brand p {
    font-size: .87rem;
    line-height: 1.8;
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

    .footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: rgba(255,255,255,.06);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        font-size: .85rem;
        transition: all .18s;
        text-decoration: none;
    }

        .footer-social a:hover {
            background: var(--orange);
            color: #fff;
        }

.footer-col h6 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--orange);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-col ul li {
        margin-bottom: 10px;
    }

        .footer-col ul li a {
            color: #9ca3af;
            text-decoration: none;
            font-size: .88rem;
            transition: color .15s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

            .footer-col ul li a:hover {
                color: var(--orange);
            }

            .footer-col ul li a i {
                font-size: .72rem;
                opacity: .6;
            }

.footer-trust {
    margin-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: .82rem;
}

    .trust-item .t-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: color-mix(in srgb, var(--t-primary) 15%, transparent);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--orange);
        font-size: .8rem;
        flex-shrink: 0;
    }

.footer-bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

    .footer-bottom .copy {
        font-size: .82rem;
    }

    .footer-bottom .f-links {
        display: flex;
        gap: 16px;
    }

        .footer-bottom .f-links a {
            color: #6b7280;
            font-size: .82rem;
            text-decoration: none;
            transition: color .15s;
        }

            .footer-bottom .f-links a:hover {
                color: var(--orange);
            }

/* ── MISC + Firefox color-scheme fix ── */
:root, html { color-scheme: light; }
select, select.form-select, select.form-control {
    color-scheme: light;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    padding-left: .75rem !important;
    color: var(--t-text-base) !important;
    background-color: var(--t-card-bg) !important;
}
select option {
    color-scheme: light;
    color: #212529 !important;
    background-color: #ffffff !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-primary) 12%, transparent);
}

.btn-primary {
    background: var(--orange);
    border-color: var(--orange);
}

    .btn-primary:hover {
        background: var(--orange2);
        border-color: var(--orange2);
    }

.btn-outline-primary {
    color: var(--orange);
    border-color: var(--orange);
}

    .btn-outline-primary:hover {
        background: var(--orange);
        border-color: var(--orange);
    }

.text-primary {
    color: var(--orange) !important;
}

.bg-primary {
    background: var(--orange) !important;
}

a.text-primary:hover {
    color: var(--orange2) !important;
}

/* ── Star rating ─────────────────────────────────────────────────── */
.stars-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
    direction: ltr;
}
.star-icon {
    font-size: .82rem;
    color: #f59e0b;
}
.far.star-icon { color: #d1d5db; }
.stars-count {
    font-size: .75rem;
    color: #9ca3af;
    margin-right: 4px;
    direction: rtl;
}

/* Product card stars */
.pc-body .stars-wrap { margin-bottom: 4px; }

/* Product details stars */
.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
    flex-wrap: wrap;
}
.pd-rating-row .stars-wrap { gap: 3px; }
.pd-rating-row .star-icon { font-size: 1.1rem; }
.pd-rating-row .stars-count { font-size: .82rem; }
.pd-rating-login {
    font-size: .78rem;
    color: var(--t-primary, #f97316);
    text-decoration: none;
}
.pd-rating-login:hover { text-decoration: underline; }

/* Interactive stars */
.stars-interactive .star-btn {
    cursor: pointer;
    transition: transform .1s, color .1s;
    border: none;
    background: none;
    padding: 0;
}
.stars-interactive .star-btn:hover { transform: scale(1.25); color: #f59e0b; }
.stars-interactive .star-btn:hover ~ .star-btn { color: #d1d5db; }
.stars-interactive.is-rated .star-icon { color: #f59e0b; }
.stars-interactive .star-icon.active { color: #f59e0b; }

/* Rating toast */
.rating-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: .84rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.rating-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


