@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/Vazirmatn/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f7f4ef;
    --surface: #fffdfa;
    --surface-2: #f0ebe2;
    --ink: #191713;
    --muted: #746e63;
    --line: #e2dbcf;
    --brand: #8a6f45;
    --brand-dark: #4d3f2a;
    --accent: #c97952;
    --success: #2f7d5b;
    --danger: #b94b45;
    --warning: #b98022;
    --info: #386f85;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 55px rgba(39, 31, 20, .09);
    --shadow-soft: 0 10px 30px rgba(39, 31, 20, .06);
    --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(201, 121, 82, .15), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(138, 111, 69, .16), transparent 24rem),
        linear-gradient(180deg, #fbf8f3 0%, var(--bg) 42%, #f4efe7 100%);
    font-size: 15px;
    line-height: 1.85;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color .2s ease, transform .2s ease, border-color .2s ease, background .2s ease; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }

.btn, .btn-view, .view-all, .view-all-link, .read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
    box-shadow: none;
}
.btn:hover, .btn-view:hover, .view-all:hover, .view-all-link:hover, .read-more:hover { transform: translateY(-2px); }
.btn-primary, .btn-add-cart {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-primary:hover, .btn-add-cart:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary { background: var(--surface-2); color: var(--brand-dark); border-color: var(--line); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger, .remove-btn { background: rgba(185, 75, 69, .1); color: var(--danger); border-color: rgba(185, 75, 69, .2); }
.btn-warning { background: rgba(185, 128, 34, .12); color: var(--warning); }
.btn-info { background: rgba(56, 111, 133, .12); color: var(--info); }
.btn-block { width: 100%; display: flex; }
.btn-large { min-height: 52px; padding-inline: 26px; font-size: 16px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn-disabled, button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 250, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 219, 207, .75);
}
.site-alert-banner {
    background:
        linear-gradient(135deg, rgba(255, 246, 217, .96), rgba(255, 235, 214, .94)),
        radial-gradient(circle at 12% 0%, rgba(185, 128, 34, .2), transparent 14rem);
    border-bottom: 1px solid rgba(185, 128, 34, .22);
    color: #5f3d11;
}
.site-alert-banner .container {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding-block: 6px;
}
.site-alert-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #b98022;
    color: #fff8e6;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
}
.site-alert-banner p {
    margin: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.65;
}
.header-top { background: transparent; border-bottom: 1px solid rgba(226, 219, 207, .6); color: var(--muted); font-size: 13px; }
.header-top-content, .header-main-content, .header-contact, .header-social, .header-actions { display: flex; align-items: center; }
.header-top-content { justify-content: space-between; gap: 16px; min-height: 38px; }
.header-contact, .header-social { gap: 16px; flex-wrap: wrap; }
.header-contact i, .header-social a:hover { color: var(--brand); }
.header-main { padding: 14px 0; }
.header-main-content { justify-content: space-between; gap: 24px; }
.header-logo a, .header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img { width: 64px; height: 64px; max-height: 64px; object-fit: cover; border-radius: 16px; }
.site-name { font-size: 21px; font-weight: 900; letter-spacing: -.4px; color: var(--ink); }
.header-nav ul { display: flex; align-items: center; gap: 8px; }
.header-nav a { display: block; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.header-nav a:hover { background: var(--surface-2); color: var(--ink); }
.header-actions { gap: 10px; }
.search-toggle, .user-icon, .cart-icon, .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: var(--ink);
    cursor: pointer;
    position: relative;
}
.cart-count { position: absolute; top: -6px; left: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 11px; }
.search-box-wrapper { position: relative; }
.search-box { position: absolute; left: 0; top: calc(100% + 12px); width: min(360px, 86vw); display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); }
.search-box.active { display: block; animation: reveal .18s ease; }
.search-input { width: 100%; min-height: 44px; border: 0; background: var(--surface-2); border-radius: 999px; padding: 0 16px; outline: none; }
.search-results { max-height: 360px; overflow: auto; }
.header-search { width: clamp(220px, 26vw, 360px); position: relative; }
.header-search-box {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 12px;
    border-radius: 999px;
    box-shadow: none;
    background: rgba(255,255,255,.72);
}
.header-search-box .search-input {
    min-height: 42px;
    padding: 0;
    background: transparent;
}
.header-search-box .search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 20;
}
.mobile-menu-toggle { display: none; }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(25, 23, 19, .34); z-index: 1001; opacity: 0; visibility: hidden; transition: .2s; }
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav { position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); z-index: 1002; background: var(--surface); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .25s ease; padding: 20px; box-shadow: var(--shadow); }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-weight: 900; }
.mobile-nav-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); }
.mobile-nav a { display: flex; gap: 10px; align-items: center; padding: 13px 10px; border-radius: 14px; color: var(--muted); font-weight: 700; }
.mobile-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-content { min-height: 55vh; }

.page-header, .section-header { margin: 34px 0 24px; }
.page-header .container, .page-header { text-align: center; }
.page-header h1, .section-title, .admin-content h1, .panel-content h1 { font-size: clamp(26px, 4vw, 46px); line-height: 1.25; letter-spacing: -.8px; font-weight: 950; color: var(--ink); }
.page-header p { color: var(--muted); margin-top: 8px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title { font-size: clamp(24px, 3vw, 36px); }

.hero-banner { padding: 22px 0 12px; }
.banner-slider { width: min(1480px, calc(100% - 20px)); margin: 0 auto; display: grid; gap: 18px; }
.banner-slide { position: relative; min-height: clamp(430px, 58vw, 680px); border-radius: 38px; overflow: hidden; background: #ddd4c7; box-shadow: var(--shadow); isolation: isolate; }
.banner-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,23,19,.08), rgba(25,23,19,.58)); z-index: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.banner-content { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; color: #fff; }
.banner-content .container { width: min(900px, calc(100% - 48px)); margin-right: clamp(24px, 7vw, 80px); }
.banner-content h2 { max-width: 680px; font-size: clamp(34px, 6vw, 74px); line-height: 1.12; letter-spacing: -1.4px; margin-bottom: 14px; }
.banner-content p { max-width: 520px; color: rgba(255,255,255,.86); font-size: 18px; margin-bottom: 22px; }
.banner-content .banner-btn { position: relative; z-index: 3; background: #fff; color: var(--ink); border-color: rgba(255,255,255,.72); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.banner-content .banner-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.categories-section, .products-section, .brands-section, .trust-boxes, .page-content, .search-results-section { padding: 34px 0; }
.categories-grid, .products-grid, .articles-grid, .about-features, .why-us-grid, .trust-grid, .info-grid, .stats-grid { display: grid; gap: 18px; }
.categories-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.category-card, .brand-box, .trust-box, .feature-card, .why-item, .info-box, .stat-box, .welcome-box, .content-box, .success-box, .empty-state, .no-results-message, .no-products, .no-data, .no-articles, .login-box, .auth-wrapper, .contact-form-wrapper, .contact-info, .cart-summary, .checkout-summary, .panel-sidebar, .panel-content, .sidebar-box, .filter-box, .card {
    background: rgba(255, 253, 250, .84);
    border: 1px solid rgba(226, 219, 207, .9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.category-card { min-height: 170px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.category-card img { width: 70px; height: 70px; object-fit: cover; border-radius: 18px; background: var(--surface-2); }
.category-card h3 { font-size: 17px; }
.category-card:hover, .product-card:hover, .article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-grid, .about-features, .why-us-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-boxes .trust-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.trust-box, .feature-card, .why-item, .info-box { padding: 24px; }
.trust-box {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 253, 250, .58), rgba(255, 255, 255, .24)),
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .82), transparent 8rem);
    border-color: rgba(255, 255, 255, .7);
    box-shadow: 0 18px 45px rgba(39, 31, 20, .08), inset 0 1px 0 rgba(255,255,255,.64);
    backdrop-filter: blur(16px);
}
.trust-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.54), transparent 48%);
    pointer-events: none;
}
.trust-box > * { position: relative; z-index: 1; }
.trust-box h4 { font-weight: 950; }
.trust-box p { font-weight: 400; }
.trust-box i, .feature-card i, .why-icon, .info-box i, .success-icon { color: var(--brand); font-size: 28px; margin-bottom: 12px; }
.trust-box p, .feature-card p, .why-item p, .info-box p { color: var(--muted); }

@media (max-width: 1180px) {
    .trust-boxes .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.why-us { margin: 36px 0; }
.why-us h2 { font-size: 30px; margin-bottom: 18px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }

.products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: .25s ease; box-shadow: var(--shadow-soft); }
.product-image { position: relative; display: block; aspect-ratio: 1/1.05; background: var(--surface-2); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.discount-badge, .article-category-badge { position: absolute; top: 14px; right: 14px; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 900; font-size: 12px; }
.product-info { padding: 16px; }
.product-name { display: block; min-height: 52px; font-weight: 850; color: var(--ink); }
.product-rating, .product-rating-large, .star-rating { color: #d2a13a; font-size: 13px; margin: 8px 0; }
.product-price, .product-price-large { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.original-price, .original-price-large { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.current-price, .discount-price, .current-price-large, .discount-price-large { color: var(--brand-dark); font-weight: 950; font-size: 18px; }

.shop-page, .product-page, .magazine-page, .article-page, .cart-page, .checkout-page, .login-page, .contact-page, .about-page, .user-panel, .success-page { padding: 20px 0 54px; }
.shop-layout, .magazine-layout, .cart-layout, .checkout-layout, .contact-layout, .product-main, .panel-layout { display: grid; gap: 22px; align-items: start; }
.shop-layout { grid-template-columns: 280px 1fr; }
.magazine-layout { grid-template-columns: 1fr 300px; }
.cart-layout, .checkout-layout, .contact-layout, .product-main, .panel-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.panel-layout { grid-template-columns: 280px 1fr; }
.shop-sidebar, .magazine-sidebar { position: sticky; top: 112px; display: grid; gap: 16px; }
.sidebar-box, .filter-box { padding: 20px; }
.sidebar-box h3, .filter-box h3, .cart-summary h3, .checkout-summary h3, .form-section h3 { margin-bottom: 14px; font-size: 19px; }
.filter-list a, .category-list a, .panel-nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; color: var(--muted); font-weight: 700; }
.filter-list a:hover, .category-list a:hover, .panel-nav a:hover, .panel-nav a.active { background: var(--surface-2); color: var(--ink); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.results-count { color: var(--muted); }
.shop-sort select, .form-control, input, textarea, select { width: 100%; min-height: 44px; border: 1px solid var(--line); background: rgba(255,255,255,.78); color: var(--ink); border-radius: 14px; padding: 10px 13px; outline: none; }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(138, 111, 69, .12); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 800; color: var(--brand-dark); }
.form-note, small { color: var(--muted); }
.auth-tabs { display: flex; gap: 8px; padding: 6px; background: var(--surface-2); border-radius: 999px; margin-bottom: 18px; }
.auth-tab { flex: 1; border: 0; border-radius: 999px; padding: 10px; background: transparent; cursor: pointer; font-weight: 800; }
.auth-tab.active { background: var(--surface); box-shadow: var(--shadow-soft); }
.auth-form { display: none; }
.auth-form.active { display: block; }

.product-gallery, .product-details, .article-single, .cart-items, .checkout-details, .contact-form-wrapper, .panel-content, .content-box, .success-box { padding: 24px; }
.main-image { aspect-ratio: 1/1; background: var(--surface-2); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-images { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.thumbnail { aspect-ratio: 1; border-radius: 14px; object-fit: cover; border: 2px solid transparent; cursor: pointer; }
.thumbnail.active { border-color: var(--brand); }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); margin-bottom: 14px; }
.product-details h1, .article-header h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.25; margin-bottom: 12px; }
.product-short-desc, .article-summary { color: var(--muted); font-size: 16px; margin: 16px 0; }
.stock-info, .shipping-notice { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(47, 125, 91, .1); color: var(--success); font-weight: 800; margin: 10px 0; }
.stock-info.out-of-stock { background: rgba(185,75,69,.1); color: var(--danger); }
.color-options, .payment-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.color-option input, .payment-option input { display: none; }
.color-box, .payment-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 13px; cursor: pointer; background: var(--surface); }
.color-option input:checked + .color-box, .payment-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25, 23, 19, .08); }
.quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.quantity-selector button { width: 42px; height: 42px; border: 0; background: var(--surface-2); cursor: pointer; }
.quantity-selector input { width: 62px; border: 0; text-align: center; border-radius: 0; }
.tab-buttons { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: 32px; }
.tab-btn { border: 0; background: transparent; padding: 14px 18px; cursor: pointer; font-weight: 900; color: var(--muted); border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--ink); border-color: var(--ink); }
.tab-content { display: none; padding: 22px 0; }
.tab-content.active { display: block; }
.ingredients-table-wrapper { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft); }
.ingredients-table { min-width: 520px; }
.ingredients-table th, .ingredients-table td { text-align: right; }
.ingredients-table tbody tr:last-child td { border-bottom: 0; }
.ingredients-table td:first-child { width: 88px; }
.ingredient-logo { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); display: block; }
.ingredients-table td:nth-child(2) { width: 30%; font-weight: 900; color: var(--ink); }

.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: .25s ease; box-shadow: var(--shadow-soft); }
.article-image { display: block; aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; position: relative; }
.article-image img, .article-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.article-content { padding: 18px; }
.article-meta, .article-date, .article-views, .review-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.article-content h2, .article-content h3 { margin: 10px 0; line-height: 1.45; }
.article-featured-image { border-radius: 28px; overflow: hidden; margin: 20px 0; }
.article-body { color: #2b2822; }
.article-body p, .content-box p { margin-bottom: 14px; }
.article-body h2, .content-box h2, .content-box h3 { margin: 24px 0 10px; }
.article-share, .share-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }

.cart-items, .checkout-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow-x: auto; }
table, .table, .data-table, .cart-table, .orders-table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 13px; font-weight: 900; background: rgba(240, 235, 226, .55); }
.cart-product { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.cart-product img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; background: var(--surface-2); }
.color-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line); vertical-align: middle; margin-left: 5px; }
.cart-summary, .checkout-summary { position: sticky; top: 112px; padding: 22px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary-total { font-size: 20px; font-weight: 950; border-bottom: 0; }
.cart-actions, .success-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.alert { padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); margin-bottom: 18px; background: var(--surface); font-weight: 700; }
.alert-success { color: var(--success); background: rgba(47, 125, 91, .09); border-color: rgba(47, 125, 91, .2); }
.alert-error, .alert-danger { color: var(--danger); background: rgba(185, 75, 69, .09); border-color: rgba(185, 75, 69, .22); }
.alert-warning { color: var(--warning); background: rgba(185, 128, 34, .1); border-color: rgba(185, 128, 34, .22); }
.status-badge, .badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: var(--surface-2); color: var(--muted); }
.status-paid, .status-delivered, .badge-success { background: rgba(47,125,91,.12); color: var(--success); }
.status-pending, .status-processing, .badge-warning { background: rgba(185,128,34,.12); color: var(--warning); }
.status-failed, .status-cancelled, .badge-danger { background: rgba(185,75,69,.12); color: var(--danger); }
.status-shipped, .badge-info { background: rgba(56,111,133,.12); color: var(--info); }

.user-info { text-align: center; padding: 24px; border-bottom: 1px solid var(--line); }
.user-avatar { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 24px; background: var(--surface-2); color: var(--brand); font-size: 42px; }
.panel-sidebar { overflow: hidden; position: sticky; top: 112px; }
.panel-nav { padding: 12px; }
.welcome-box { padding: 24px; margin-bottom: 18px; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 18px 0; }
.stat-box { padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat-box i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 17px; background: var(--surface-2); color: var(--brand); font-size: 22px; }
.stat-info h3 { font-size: 28px; line-height: 1.2; }
.stat-info p { color: var(--muted); }
.form-section { padding: 20px; border: 1px solid var(--line); border-radius: 22px; margin-bottom: 18px; background: rgba(255,255,255,.45); }

.site-footer { margin-top: 44px; background: #191713; color: #f4efe7; border-radius: 42px 42px 0 0; overflow: hidden; }
.footer-main { padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; }
.footer-col h4, .footer-logo h3 { margin-bottom: 12px; color: #fff; }
.footer-col p, .footer-col a, .footer-contact li { color: rgba(244,239,231,.72); }
.footer-col a:hover { color: #fff; }
.footer-col li { margin-bottom: 9px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom-content { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(244,239,231,.65); }
.footer-links { display: flex; gap: 16px; }

.empty-state, .no-results-message, .no-products, .no-data, .no-articles, .success-box { padding: 46px 24px; text-align: center; }
.empty-state i, .no-results-message i, .success-icon i { font-size: 54px; color: var(--brand); margin-bottom: 14px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.page-link { min-width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.page-link.active, .page-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.text-center { text-align: center; } .text-left { text-align: left; }
.mt-2 { margin-top: 12px; } .mb-2 { margin-bottom: 12px; } .full-width { grid-column: 1 / -1; }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
    .desktop-nav, .header-top { display: none; }
    .mobile-menu-toggle { display: inline-flex; }
    .header-main-content { flex-wrap: wrap; gap: 12px; }
    .header-search { order: 3; width: 100%; }
    .shop-layout, .magazine-layout, .cart-layout, .checkout-layout, .contact-layout, .product-main, .panel-layout { grid-template-columns: 1fr; }
    .shop-sidebar, .magazine-sidebar, .cart-summary, .checkout-summary, .panel-sidebar { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    body { font-size: 14px; }
    .container { width: min(100% - 22px, var(--container)); }
    .site-name { font-size: 16px; }
    .header-actions { gap: 6px; }
    .search-toggle, .user-icon, .cart-icon, .mobile-menu-toggle { width: 38px; height: 38px; }
    .banner-slide { border-radius: 24px; min-height: 420px; }
    .banner-content .container { margin: 0 auto; }
    .section-header, .shop-toolbar, .footer-bottom-content { align-items: flex-start; flex-direction: column; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 13px; min-height: 48px; }
    .btn-add-cart { width: 100%; font-size: 12px; padding-inline: 8px; }
    .form-row, .footer-grid { grid-template-columns: 1fr; }
    .cart-items, .checkout-details, .product-gallery, .product-details, .article-single, .panel-content { padding: 16px; border-radius: 22px; }
    th, td { padding: 11px 8px; font-size: 13px; }
    .footer-main { padding-top: 34px; }
}

.filter-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; color: var(--muted); cursor: pointer; font-weight: 750; }
.filter-item:hover { background: var(--surface-2); color: var(--ink); }
.filter-item input { width: 18px; min-height: 18px; accent-color: var(--brand); }
.price-filter { display: grid; gap: 10px; }
.filter-toggle-mobile { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
.product-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.feature-item { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 16px; background: var(--surface-2); color: var(--brand-dark); font-weight: 750; }
.discount-badge-large { position: absolute; top: 18px; right: 18px; padding: 8px 13px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 950; }
.review-form, .review-item, .login-prompt { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.56); margin-bottom: 14px; }
.review-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.no-reviews { color: var(--muted); }
@media (max-width: 980px) { .filter-toggle-mobile { display: inline-flex; align-items: center; gap: 8px; } }
@media (max-width: 680px) { .product-features { grid-template-columns: 1fr; } }

/* Lightweight icon fallback: removes the render-blocking Font Awesome request. */
.fas, .fab { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; font-style: normal; line-height: 1; }
.fas::before, .fab::before { font-size: .95em; }
.fa-phone::before, .fa-mobile-alt::before { content: '☎'; }
.fa-clock::before { content: '◷'; }
.fa-instagram::before { content: '◎'; }
.fa-telegram::before { content: '✈'; }
.fa-whatsapp::before { content: '☏'; }
.fa-search::before { content: '⌕'; }
.fa-user::before, .fa-user-circle::before { content: '◉'; }
.fa-shopping-bag::before, .fa-store::before { content: '▣'; }
.fa-bars::before { content: '☰'; }
.fa-times::before { content: '×'; }
.fa-home::before { content: '⌂'; }
.fa-newspaper::before { content: '▤'; }
.fa-info-circle::before { content: 'i'; }
.fa-envelope::before { content: '✉'; }
.fa-sign-in-alt::before { content: '↪'; }
.fa-sign-out-alt::before { content: '↩'; }
.fa-certificate::before, .fa-check-circle::before { content: '✓'; }
.fa-headset::before { content: '☊'; }
.fa-undo::before { content: '↺'; }
.fa-shipping-fast::before, .fa-truck::before { content: '▰'; }
.fa-smile::before { content: '☺'; }
.fa-lock::before { content: '◆'; }
.fa-gift::before { content: '◇'; }
.fa-tags::before, .fa-tag::before { content: '#'; }
.fa-map-marker-alt::before { content: '⌖'; }
.fa-arrow-left::before, .fa-chevron-left::before { content: '←'; }
.fa-chevron-right::before { content: '→'; }
.fa-box-open::before, .fa-box::before { content: '□'; }
.fa-star::before, .fa-star-o::before { content: '★'; }
.fa-star-o { opacity: .35; }
.fa-heart::before { content: '♡'; }
.fa-shield-alt::before { content: '⬠'; }
.fa-spa::before { content: '✦'; }
.fa-credit-card::before { content: '▭'; }
.fa-truck-loading::before { content: '▰'; }
.fa-leaf::before { content: '⌁'; }
.fa-comments::before { content: '☷'; }

.header-promise { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.52); color: var(--brand-dark); font-weight: 900; white-space: nowrap; }
.header-promise span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }
.header-promise small { color: var(--muted); font-weight: 800; }

.hero-empty, .page-hero, .auth-hero, .contact-hero, .magazine-hero, .about-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 219, 207, .9);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 10%, rgba(201,121,82,.18), transparent 20rem),
        linear-gradient(135deg, rgba(255,253,250,.92), rgba(240,235,226,.74));
    box-shadow: var(--shadow-soft);
}
.hero-empty { padding: clamp(30px, 6vw, 72px); margin: 30px auto 8px; }
.hero-empty h1, .page-hero h1 { font-size: clamp(34px, 6vw, 72px); line-height: 1.12; letter-spacing: -1.5px; max-width: 720px; }
.hero-empty p, .page-hero p { max-width: 620px; color: var(--muted); font-size: 17px; margin: 14px 0 24px; }
.hero-actions, .hero-badges, .mini-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-badges span, .active-filter, .mini-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 800; }
.home-editorial, .routine-section, .faq-section, .newsletter-strip { padding: 34px 0; }
.editorial-grid, .routine-grid, .faq-grid, .auth-perks { display: grid; gap: 16px; }
.editorial-grid { grid-template-columns: 1.1fr .9fr; }
.editorial-card, .routine-card, .faq-card, .auth-perk, .timeline-card, .contact-card, .shop-intro-card {
    padding: 22px;
    background: rgba(255,253,250,.82);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.editorial-card.featured { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #191713, #4d3f2a); color: #fff; }
.editorial-card.featured p { color: rgba(255,255,255,.74); }
.editorial-card p, .routine-card p, .faq-card p, .timeline-card p, .shop-intro-card p { color: var(--muted); }
.gender-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .25s ease, box-shadow .25s ease;
}
.gender-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gender-card h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.2; margin: 8px 0 12px; }
.gender-card-men {
    background:
        radial-gradient(circle at 16% 10%, rgba(56, 111, 133, .16), transparent 15rem),
        rgba(255,253,250,.82);
}
.gender-card-men .btn-secondary { width: max-content; }
.routine-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.routine-card strong { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; background: var(--surface-2); color: var(--brand-dark); margin-bottom: 12px; }
.brands-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.brand-box { min-height: 96px; display: grid; place-items: center; padding: 18px; }
.brand-box img { max-height: 56px; object-fit: contain; filter: saturate(.85); }

.shop-intro { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.shop-intro-card:first-child { background: #191713; color: #fff; }
.shop-intro-card:first-child p { color: rgba(255,255,255,.72); }
.shop-toolbar { padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,250,.66); }
.search-form-sidebar { display: flex; gap: 8px; }
.search-form-sidebar button { width: 44px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; cursor: pointer; }
.articles-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.magazine-feature { margin-bottom: 20px; }
.magazine-feature .article-card { display: grid; grid-template-columns: 1fr 1.15fr; }
.magazine-feature .article-image { aspect-ratio: 4/3; }

.about-content { display: grid; gap: 18px; }
.about-text { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,253,250,.82); box-shadow: var(--shadow-soft); color: #2b2822; }
.timeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.contact-info { display: grid; gap: 14px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; }
.contact-card i { width: 44px; height: 44px; border-radius: 16px; background: var(--surface-2); color: var(--brand); }
.auth-wrapper { width: min(980px, 100%); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; padding: 12px; }
.auth-wrapper-single { width: min(560px, 100%); grid-template-columns: 1fr; }
.auth-hero { padding: 28px; background: linear-gradient(145deg, #191713, #4d3f2a); color: #fff; }
.auth-hero p { color: rgba(255,255,255,.74); margin: 12px 0 20px; }
.auth-perks { margin-top: 22px; }
.auth-perk { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); box-shadow: none; }
.auth-panel { padding: 22px; }
.auth-form h2 { margin-bottom: 14px; }
.simple-page-title {
    margin: 18px 0 20px;
    text-align: right;
}
.simple-page-title h1 {
    display: inline-block;
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0;
    font-weight: 900;
}
.simple-page-title p {
    max-width: 680px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}
.shop-title-complete { margin-bottom: 14px; }

.newsletter-strip .newsletter-box { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px; border-radius: 28px; background: var(--ink); color: #fff; }
.newsletter-box p { color: rgba(255,255,255,.72); }
.newsletter-form { display: flex; gap: 8px; min-width: min(420px, 100%); }
.newsletter-form input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }

@media (max-width: 980px) {
    .desktop-promise { display: none; }
    .editorial-grid, .magazine-feature .article-card, .auth-wrapper, .newsletter-strip .newsletter-box { grid-template-columns: 1fr; }
    .routine-grid, .shop-intro, .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .hero-empty, .page-hero, .auth-hero { border-radius: 24px; padding: 24px; }
    .routine-grid, .shop-intro, .timeline-grid { grid-template-columns: 1fr; }
    .auth-wrapper { padding: 8px; border-radius: 24px; }
    .newsletter-form { flex-direction: column; min-width: 0; }
    .footer-links { flex-wrap: wrap; }
}

/* Compact polish requested: smaller cards, tighter copy, faster scanning. */
.products-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.product-card, .article-card { border-radius: 22px; }
.product-info { padding: 13px; }
.product-name { min-height: 46px; font-size: 14px; line-height: 1.65; }
.current-price, .discount-price, .current-price-large, .discount-price-large { font-size: 16px; }
.btn, .btn-view, .view-all, .view-all-link, .read-more { min-height: 38px; padding: 8px 15px; font-size: 14px; }
.btn-large { min-height: 46px; padding-inline: 22px; }
.category-card { min-height: 148px; border-radius: 22px; }
.trust-box, .feature-card, .why-item, .info-box, .editorial-card, .routine-card, .faq-card, .auth-perk, .timeline-card, .contact-card, .shop-intro-card { border-radius: 22px; padding: 18px; }
.contact-layout { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 680px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fa-arrow-right::before { content: '→'; } .fa-calendar::before { content: '▦'; } .fa-check::before { content: '✓'; }
.fa-edit::before, .fa-user-edit::before { content: '✎'; } .fa-facebook::before { content: 'f'; } .fa-filter::before { content: '▾'; }
.fa-link::before { content: '↗'; } .fa-money-bill::before { content: '▤'; } .fa-print::before { content: '⎙'; }
.fa-save::before { content: '▣'; } .fa-sync::before { content: '↻'; } .fa-toggle-on::before { content: '●'; }
.fa-trash::before { content: '×'; } .fa-twitter::before { content: 't'; }

/* Pink minimal theme + local icon fallback fix. */
:root {
    --bg: #fff6fa;
    --surface: #fffafb;
    --surface-2: #fdebf2;
    --ink: #24161c;
    --muted: #7c6670;
    --line: #f3d8e3;
    --brand: #e85d9a;
    --brand-dark: #b92f6e;
    --accent: #ff8ab7;
    --shadow: 0 18px 48px rgba(185, 47, 110, .10);
    --shadow-soft: 0 10px 26px rgba(185, 47, 110, .07);
}
body {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 138, 183, .22), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(232, 93, 154, .16), transparent 24rem),
        linear-gradient(180deg, #fffafb 0%, var(--bg) 46%, #fff1f7 100%);
}
.site-header { background: rgba(255, 250, 251, .9); border-bottom-color: rgba(243, 216, 227, .86); }
.btn-primary, .btn-add-cart { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:hover, .btn-add-cart:hover { background: #982558; border-color: #982558; }
.header-promise span, .page-link.active, .page-link:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.banner-slide, .hero-empty, .page-hero, .auth-hero, .contact-hero, .magazine-hero, .about-hero { box-shadow: var(--shadow-soft); }
.banner-slide::after { background: linear-gradient(90deg, rgba(36,22,28,.06), rgba(185,47,110,.46)); }
.editorial-card.featured, .auth-hero, .newsletter-box { background: linear-gradient(135deg, #2d1722, #b92f6e); }
.site-footer { background: #24161c; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232, 93, 154, .14); }

.fas, .fab, .far {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.25em !important;
    min-width: 1.25em !important;
    height: 1.25em !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: currentColor;
}
.fas::before, .fab::before, .far::before { content: '•' !important; display: inline-block !important; font-size: 1em !important; line-height: 1 !important; }
.fa-phone::before, .fa-mobile-alt::before { content: '☎' !important; }
.fa-clock::before { content: '◷' !important; }
.fa-instagram::before { content: '◎' !important; }
.fa-telegram::before { content: '✈' !important; }
.fa-whatsapp::before { content: '☏' !important; }
.fa-search::before { content: '⌕' !important; }
.fa-user::before, .fa-user-circle::before { content: '●' !important; }
.fa-shopping-bag::before, .fa-shopping-cart::before, .fa-store::before { content: '▣' !important; }
.fa-bars::before { content: '☰' !important; }
.fa-times::before, .fa-trash::before { content: '×' !important; }
.fa-home::before { content: '⌂' !important; }
.fa-newspaper::before { content: '▤' !important; }
.fa-info-circle::before { content: 'i' !important; }
.fa-envelope::before { content: '✉' !important; }
.fa-sign-in-alt::before { content: '↪' !important; }
.fa-sign-out-alt::before { content: '↩' !important; }
.fa-certificate::before, .fa-check-circle::before, .fa-check::before { content: '✓' !important; }
.fa-headset::before { content: '☊' !important; }
.fa-undo::before, .fa-sync::before { content: '↻' !important; }
.fa-shipping-fast::before, .fa-truck::before { content: '▰' !important; }
.fa-smile::before { content: '☺' !important; }
.fa-lock::before { content: '◆' !important; }
.fa-gift::before { content: '◇' !important; }
.fa-tags::before, .fa-tag::before { content: '#' !important; }
.fa-map-marker-alt::before { content: '⌖' !important; }
.fa-arrow-left::before, .fa-chevron-left::before { content: '←' !important; }
.fa-arrow-right::before, .fa-chevron-right::before { content: '→' !important; }
.fa-box-open::before, .fa-box::before { content: '□' !important; }
.fa-star::before, .fa-star-o::before { content: '★' !important; }
.fa-filter::before { content: '▾' !important; }
.fa-calendar::before { content: '▦' !important; }
.fa-edit::before, .fa-user-edit::before { content: '✎' !important; }
.fa-save::before { content: '▣' !important; }
.fa-spa::before { content: '✦' !important; }
.fa-shield-alt::before { content: '⬠' !important; }
.fa-comments::before { content: '☷' !important; }
.fa-credit-card::before, .fa-money-bill::before { content: '▭' !important; }
.fa-link::before, .fa-external-link-alt::before { content: '↗' !important; }
.fa-print::before { content: '⎙' !important; }
.fa-toggle-on::before { content: '●' !important; }
.fa-facebook::before { content: 'f' !important; }
.fa-twitter::before { content: 't' !important; }
.fa-bell::before { content: '◔' !important; }
.fa-chart-line::before { content: '↗' !important; }
.fa-cog::before { content: '⚙' !important; }
.fa-dollar-sign::before { content: '$' !important; }
.fa-eye::before { content: '◉' !important; }
.fa-folder::before { content: '▱' !important; }
.fa-heart::before { content: '♡' !important; }
.fa-image::before { content: '▧' !important; }
.fa-leaf::before { content: '⌁' !important; }
.fa-list::before { content: '☰' !important; }
.fa-plus::before { content: '+' !important; }
.fa-truck-loading::before { content: '▰' !important; }
.fa-users::before { content: '●●' !important; }
.icon-fallback-ready::before { content: none !important; display: none !important; }
.icon-fallback-ready svg {
    display: block;
    width: 1em;
    height: 1em;
}

/* Premium storefront upgrades */
.banner-slider.auto-slider { position: relative; }
.auto-slider .banner-slide { display: none; }
.auto-slider .banner-slide.active { display: block; animation: reveal .35s ease; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(255,255,255,.72); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.12); backdrop-filter: blur(10px); transition: .2s ease; }
.banner-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.banner-arrow-prev { right: 18px; }
.banner-arrow-next { left: 18px; }
.banner-dots { position: absolute; right: 50%; bottom: 18px; transform: translateX(50%); z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.26); backdrop-filter: blur(12px); }
.banner-dot { width: 7px; height: 7px; border: 0; border-radius: 999px; background: rgba(255,255,255,.68); cursor: pointer; padding: 0; transition: .2s ease; }
.banner-dot.active { width: 18px; background: #fff; }
.banner-slide::after { background: linear-gradient(90deg, rgba(0,0,0,.02), rgba(0,0,0,.28)) !important; }
.product-slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.product-slider .product-card { scroll-snap-align: start; }
.product-slider::-webkit-scrollbar, .premium-brand-slider::-webkit-scrollbar { height: 7px; }
.product-slider::-webkit-scrollbar-thumb, .premium-brand-slider::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.slider-arrows { display: inline-flex; gap: 8px; margin-inline-start: auto; }
.slider-arrows button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 900; }
.premium-category-grid .category-card { position: relative; min-height: 190px; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(253,235,242,.75)); }
.premium-category-grid .category-card::after { content: ''; position: absolute; left: -35px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: rgba(232,93,154,.13); }
.premium-category-grid .category-card h3 { position: relative; z-index: 1; font-size: 18px; }
.premium-brand-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; grid-template-columns: none; overflow-x: auto; padding-bottom: 10px; }
.brand-box { background: linear-gradient(145deg, #fff, var(--surface-2)); }
.favorite-btn { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.86); color: var(--brand-dark); display: grid; place-items: center; cursor: pointer; z-index: 3; }
.favorite-btn.active, .favorite-btn:hover { background: var(--brand-dark); color: #fff; }
.product-main { align-items: stretch; }
.product-gallery, .product-details { background: rgba(255,253,250,.9); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow-soft); }
.product-details { position: relative; overflow: hidden; }
.product-details::before { content: ''; position: absolute; left: -70px; top: -70px; width: 180px; height: 180px; background: rgba(232,93,154,.12); border-radius: 50%; }
.product-details > * { position: relative; z-index: 1; }
.product-action-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.product-features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.feature-item { padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; align-items: center; gap: 8px; }
.product-tabs { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,253,250,.78); box-shadow: var(--shadow-soft); }
.review-form, .review-item { border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: var(--surface); margin-bottom: 14px; }
.review-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-admin-grid, .tickets-list { display: grid; gap: 16px; }
.ticket-admin-card, .ticket-compose, .ticket-card { padding: 20px; }
.ticket-admin-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.ticket-message, .ticket-reply { border-radius: 16px; padding: 14px; background: var(--surface-2); margin: 12px 0; }
@media (max-width: 680px) { .product-features { grid-template-columns: 1fr; } .product-slider { grid-auto-columns: minmax(170px, 76vw); } }

/* Professional ticket center */
.ticket-page .ticket-hero { padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 18px; }
.ticket-page .ticket-hero h1 { font-size: 28px; margin: 8px 0; }
.ticket-page .ticket-hero p { color: var(--muted); max-width: 680px; }
.ticket-stats-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-width: 280px; }
.ticket-stats-mini span { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 10px; text-align: center; color: var(--muted); }
.ticket-stats-mini strong { display: block; font-size: 20px; color: var(--brand-dark); }
.ticket-layout { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.pro-ticket-form { position: sticky; top: 112px; padding: 20px; }
.pro-ticket-form h2 { margin-bottom: 14px; font-size: 20px; }
.pro-ticket-list { gap: 14px; }
.ticket-card { padding: 18px; border-right: 4px solid var(--brand); }
.ticket-card.status-answered { border-right-color: var(--success); }
.ticket-card.status-closed { border-right-color: var(--muted); opacity: .88; }
.ticket-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ticket-code { color: var(--muted); font-size: 12px; font-weight: 900; }
.ticket-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ticket-meta-row span { padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; }
.ticket-bubble { border-radius: 18px; padding: 14px; margin-top: 12px; line-height: 1.9; }
.user-bubble { background: #fff; border: 1px solid var(--line); }
.admin-bubble { background: linear-gradient(135deg, rgba(185,47,110,.1), rgba(255,138,183,.12)); border: 1px solid rgba(185,47,110,.18); }
.ticket-waiting { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(185,128,34,.1); color: var(--warning); font-weight: 850; }
.panel-menu-toggle { display: none; align-items: center; gap: 8px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 12px; font-weight: 900; }
.panel-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(36,22,28,.32); z-index: 1001; }
.panel-sidebar-overlay.active { display: block; }

/* Mobile ultra-compact responsive pass */
@media (max-width: 680px) {
    body { font-size: 12px; line-height: 1.65; }
    .container { width: min(100% - 16px, var(--container)); }
    .site-header { position: sticky; }
    .site-alert-banner .container { min-height: 28px; gap: 6px; padding-block: 5px; }
    .site-alert-banner p { font-size: 10.5px; line-height: 1.55; }
    .site-alert-icon { width: 16px; height: 16px; flex-basis: 16px; font-size: 10px; }
    .header-main { padding: 8px 0; }
    .header-main-content { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
    .header-logo img { width: 42px; height: 42px; max-height: 42px; border-radius: 12px; }
    .site-name { font-size: 13px; max-width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .header-actions { gap: 5px; justify-content: flex-end; }
    .user-icon, .cart-icon, .mobile-menu-toggle { width: 34px; height: 34px; }
    .header-search { order: 0; width: 34px; }
    .header-search-box { width: 34px; height: 34px; padding: 0; justify-content: center; }
    .header-search-box .search-input { display: none; }
    .header-search.mobile-open { position: absolute; right: 8px; left: 8px; top: calc(100% + 6px); width: auto; z-index: 1200; }
    .header-search.mobile-open .header-search-box { width: 100%; padding: 0 12px; justify-content: flex-start; box-shadow: var(--shadow-soft); }
    .header-search.mobile-open .search-input { display: block; min-height: 38px; }

    .hero-banner { padding: 12px 0 4px; }
    .banner-slider { width: min(100% - 10px, var(--container)); gap: 8px; }
    .banner-arrow { width: 30px; height: 30px; font-size: 20px; }
    .banner-arrow-prev { right: 10px; }
    .banner-arrow-next { left: 10px; }
    .banner-dots { bottom: 12px; padding: 5px 8px; gap: 5px; }
    .banner-dot { width: 6px; height: 6px; }
    .banner-dot.active { width: 16px; }
    .banner-slide { min-height: 220px; border-radius: 18px; }
    .banner-content .container { width: calc(100% - 28px); margin: 0 auto; }
    .banner-content h2 { font-size: 20px; margin-bottom: 6px; max-width: 80%; }
    .banner-content p { font-size: 12px; margin-bottom: 10px; max-width: 78%; line-height: 1.7; }
    .btn-large, .btn, .btn-view, .view-all, .view-all-link, .read-more { min-height: 32px; padding: 6px 10px; font-size: 11px; }

    .categories-section, .products-section, .brands-section, .trust-boxes, .home-editorial, .routine-section, .faq-section { padding: 16px 0; }
    .section-header { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 10px; }
    .section-title { font-size: 18px; letter-spacing: -.2px; }
    .premium-category-grid, .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .premium-category-grid .category-card, .category-card { min-height: 92px; padding: 10px; border-radius: 14px; }
    .category-card img { width: 38px; height: 38px; border-radius: 12px; }
    .premium-category-grid .category-card h3, .category-card h3 { font-size: 11px; line-height: 1.45; }
    .premium-category-grid .category-card::after { width: 58px; height: 58px; left: -22px; bottom: -22px; }
    .premium-brand-slider { grid-auto-columns: 82px; gap: 8px; }
    .brand-box { min-height: 56px; padding: 8px; border-radius: 14px; }
    .brand-box img { max-height: 34px; }

    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .product-slider { grid-auto-columns: calc((100vw - 34px) / 3); gap: 7px; }
    .product-card { border-radius: 14px; }
    .product-image { aspect-ratio: 1 / 1.05; }
    .product-info { padding: 7px; }
    .product-name { min-height: 34px; font-size: 10px; line-height: 1.55; }
    .product-price { margin: 5px 0 8px; gap: 3px; }
    .current-price, .discount-price, .current-price-large, .discount-price-large { font-size: 11px; }
    .original-price { font-size: 9px; }
    .discount-badge { top: 6px; right: 6px; padding: 3px 6px; font-size: 9px; }
    .favorite-btn { top: 6px; left: 6px; width: 26px; height: 26px; font-size: 10px; }
    .btn-add-cart { min-height: 28px; width: 100%; font-size: 9px; padding: 4px 5px; gap: 3px; }
    .slider-arrows button { width: 30px; height: 30px; font-size: 11px; }

    .trust-grid, .routine-grid, .about-features, .why-us-grid, .info-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .trust-box, .feature-card, .why-item, .info-box, .routine-card, .editorial-card, .faq-card, .timeline-card, .contact-card, .shop-intro-card, .stat-box { padding: 10px; border-radius: 14px; }
    .gender-card { min-height: 170px; }
    .trust-box i, .feature-card i, .info-box i { font-size: 18px; margin-bottom: 4px; }
    .trust-box h4, .routine-card h3, .shop-intro-card h3 { font-size: 12px; }
    .trust-box p, .routine-card p, .shop-intro-card p, .feature-card p, .info-box p { font-size: 10px; line-height: 1.55; }
    .routine-card strong { width: 28px; height: 28px; border-radius: 10px; font-size: 11px; margin-bottom: 6px; }

    .shop-page, .product-page, .magazine-page, .article-page, .cart-page, .checkout-page, .login-page, .contact-page, .about-page, .user-panel, .success-page { padding: 8px 0 24px; }
    .simple-page-title { margin: 10px 0 12px; }
    .simple-page-title h1, .page-header h1, .panel-content h1 { font-size: 18px; }
    .simple-page-title p, .page-header p { font-size: 11px; }
    .shop-layout, .magazine-layout, .contact-layout, .product-main, .panel-layout { gap: 10px; }
    .filter-box, .sidebar-box, .contact-form-wrapper, .contact-info, .about-text, .content-box, .panel-content, .panel-sidebar, .cart-summary, .checkout-summary { padding: 12px; border-radius: 16px; }
    .shop-toolbar { padding: 8px; border-radius: 14px; gap: 8px; }
    input, textarea, select, .form-control { min-height: 34px; padding: 7px 9px; border-radius: 10px; font-size: 12px; }
    .form-group { margin-bottom: 10px; }
    .form-group label { font-size: 11px; margin-bottom: 4px; }
    .form-row { grid-template-columns: 1fr 1fr; gap: 8px; }

    .product-gallery, .product-details, .product-tabs { padding: 12px; border-radius: 18px; }
    .product-details h1 { font-size: 19px; }
    .product-short-desc, .article-summary { font-size: 12px; margin: 8px 0; }
    .product-features { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .feature-item { padding: 8px; border-radius: 12px; font-size: 10px; }
    .thumbnail-images { gap: 6px; }
    .tab-btn { padding: 8px 10px; font-size: 11px; }
    .review-form, .review-item { padding: 10px; border-radius: 14px; }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .site-footer { font-size: 11px; }
    .footer-main { padding: 22px 0; }
    .footer-logo img { width: 34px; height: 34px; }
    .footer-logo h3, .footer-col h4 { font-size: 13px; }
    .footer-bottom-content { gap: 8px; }

    .panel-layout { grid-template-columns: 1fr; }
    .panel-menu-toggle { display: inline-flex; }
    .panel-sidebar { position: fixed !important; top: 0; bottom: 0; right: 0; width: min(280px, 84vw); transform: translateX(105%); transition: transform .25s ease; z-index: 1002; overflow-y: auto; border-radius: 0; }
    .panel-sidebar.active { transform: translateX(0); }
    .panel-content { padding: 12px; }
    .welcome-box.page-hero { padding: 12px; border-radius: 16px; }
    .welcome-box h2 { font-size: 16px; }
    .orders-table, table { font-size: 10px; }
    th, td { padding: 7px 5px; }

    .ticket-page .ticket-hero { grid-template-columns: 1fr; padding: 12px; }
    .ticket-page .ticket-hero h1 { font-size: 18px; }
    .ticket-stats-mini { min-width: 0; grid-template-columns: repeat(3,1fr); }
    .ticket-layout { grid-template-columns: 1fr; gap: 10px; }
    .pro-ticket-form { position: static; padding: 12px; }
    .ticket-card { padding: 12px; border-radius: 16px; }
    .ticket-bubble { padding: 10px; border-radius: 12px; }
}

@media (max-width: 390px) {
    .products-grid { gap: 6px; }
    .product-slider { grid-auto-columns: calc((100vw - 30px) / 3); }
    .product-name { font-size: 9px; }
    .btn-add-cart { font-size: 0; }
    .btn-add-cart i { font-size: 12px; }
}

/* Final mobile-density pass: compact storefront, shop, pages and user panel. */
.ticket-flow-hint { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; margin-bottom: 14px; }
.ticket-flow-hint span { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border-radius: 999px; background: var(--surface-2); color: var(--brand-dark); font-weight: 900; font-size: 12px; }
.ticket-card h3, .ticket-admin-card h3 { line-height: 1.45; }

@media (max-width: 680px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    .header-main-content { grid-template-columns: minmax(0, 1fr) auto; }
    .header-logo a, .header-logo { gap: 7px; min-width: 0; }
    .header-actions { min-width: max-content; }
    .header-search-box .fas { font-size: 14px; }
    .mobile-nav { width: min(285px, 82vw); padding: 14px; }
    .mobile-nav a { padding: 10px 8px; border-radius: 11px; font-size: 12px; }

    .hero-empty, .page-hero, .contact-hero, .magazine-hero, .about-hero { padding: 16px; border-radius: 18px; margin: 12px 0 4px; }
    .hero-empty h1, .page-hero h1 { font-size: 22px; letter-spacing: -.5px; }
    .hero-empty p, .page-hero p { font-size: 11px; margin: 8px 0 12px; }
    .hero-badges span, .active-filter, .mini-badge { min-height: 28px; padding: 4px 8px; font-size: 10px; }

    .banner-slide { min-height: 190px !important; border-radius: 14px; }
    .banner-content h2 { font-size: 17px; max-width: 74%; line-height: 1.28; }
    .banner-content p { font-size: 10px; max-width: 72%; margin-bottom: 7px; }

    .categories-section, .products-section, .brands-section, .trust-boxes, .home-editorial, .routine-section, .faq-section, .newsletter-strip, .page-content, .search-results-section { padding: 12px 0; }
    .premium-category-grid, .categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .premium-category-grid .category-card, .category-card { min-height: 76px; padding: 7px; border-radius: 12px; }
    .category-card img { width: 30px; height: 30px; border-radius: 9px; }
    .premium-category-grid .category-card h3, .category-card h3 { font-size: 9px; }
    .premium-brand-slider { grid-auto-columns: 70px; gap: 6px; }
    .brand-box { min-height: 48px; padding: 6px; border-radius: 12px; }
    .brand-box img { max-height: 28px; }

    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; }
    .product-slider { grid-auto-columns: calc((100vw - 30px) / 3) !important; gap: 6px; }
    .product-card { border-radius: 12px; min-width: 0; }
    .product-info { padding: 6px; }
    .product-name { min-height: 31px; font-size: 9px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .product-rating { display: none; }
    .product-price { margin: 4px 0 6px; line-height: 1.25; }
    .current-price, .discount-price { font-size: 10px; }
    .original-price { font-size: 8px; }
    .btn-add-cart { min-height: 25px; font-size: 0; padding: 4px; }
    .btn-add-cart i { font-size: 12px; }

    .trust-grid, .routine-grid, .about-features, .why-us-grid, .info-grid, .stats-grid, .shop-intro, .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px; }
    .trust-box, .feature-card, .why-item, .info-box, .routine-card, .editorial-card, .faq-card, .timeline-card, .contact-card, .shop-intro-card, .stat-box, .about-text, .content-box { padding: 8px; border-radius: 12px; }
    .trust-box i, .feature-card i, .info-box i, .contact-card i { width: 28px; height: 28px; font-size: 14px; margin-bottom: 2px; border-radius: 10px; }
    .trust-box h4, .feature-card h3, .info-box h3, .why-item h3, .contact-card h3 { font-size: 11px; line-height: 1.45; }
    .trust-box p, .feature-card p, .info-box p, .why-item p, .contact-card p, .about-text, .content-box p, .article-body { font-size: 10px; line-height: 1.55; }

    .shop-layout { grid-template-columns: 1fr; gap: 8px; }
    .shop-sidebar { display: none; position: fixed !important; top: 0; right: 0; bottom: 0; width: min(285px, 84vw); z-index: 1205; overflow-y: auto; padding: 10px; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); }
    .shop-sidebar.mobile-open { display: grid !important; align-content: start; gap: 8px; }
    .shop-filter-overlay { position: fixed; inset: 0; background: rgba(36,22,28,.32); z-index: 1204; opacity: 0; visibility: hidden; transition: .2s; }
    .shop-filter-overlay.active { opacity: 1; visibility: visible; }
    .filter-box, .sidebar-box { padding: 9px; border-radius: 12px; }
    .filter-box h3, .sidebar-box h3 { font-size: 12px; margin-bottom: 7px; }
    .filter-item, .filter-list a, .category-list a, .panel-nav a { padding: 7px 8px; border-radius: 10px; font-size: 11px; }
    .shop-toolbar { flex-direction: row; align-items: center; padding: 7px; border-radius: 12px; margin-bottom: 8px; }
    .shop-sort { display: flex; align-items: center; gap: 5px; font-size: 10px; }
    .shop-sort select { width: 100px; min-height: 30px; padding: 4px 6px; font-size: 10px; }
    .results-count { font-size: 10px; }
    .filter-toggle-mobile { min-height: 30px; padding: 5px 8px; font-size: 10px; }

    .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .article-card { border-radius: 14px; }
    .article-content { padding: 9px; }
    .article-content h2, .article-content h3 { font-size: 12px; margin: 6px 0; }
    .article-meta, .article-date, .article-views { font-size: 9px; gap: 6px; }

    .contact-layout, .magazine-layout, .cart-layout, .checkout-layout, .product-main, .panel-layout { grid-template-columns: 1fr !important; }
    .contact-form-wrapper, .product-gallery, .product-details, .article-single, .cart-items, .checkout-details, .panel-content, .cart-summary, .checkout-summary { padding: 10px !important; border-radius: 14px !important; }
    .page-header, .section-header { margin: 12px 0 9px; }
    .page-header h1, .section-title, .panel-content h1 { font-size: 16px !important; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
    .site-footer { margin-top: 22px; border-radius: 24px 24px 0 0; }
    .footer-main { padding: 18px 0 12px; }
    .footer-col li { margin-bottom: 5px; }
    .footer-social a { width: 30px; height: 30px; }

    .user-info { padding: 14px; }
    .user-avatar { width: 52px; height: 52px; border-radius: 16px; font-size: 28px; }
    .panel-sidebar { padding: 0; }
    .panel-nav { padding: 8px; }
    .panel-menu-toggle { min-height: 32px; padding: 6px 10px; font-size: 11px; }
    .ticket-flow-hint { grid-template-columns: 1fr; gap: 5px; padding: 8px; }
    .ticket-flow-hint span { min-height: 30px; font-size: 10px; }
    .ticket-card-head { gap: 7px; margin-bottom: 6px; }
    .ticket-card-head h3 { font-size: 13px; }
    .ticket-meta-row { gap: 5px; margin: 6px 0; }
    .ticket-meta-row span, .status-badge, .badge { min-height: 23px; padding: 3px 7px; font-size: 9px; }
    .ticket-bubble, .ticket-waiting { margin-top: 7px; padding: 8px; font-size: 10px; }
}

@media (max-width: 420px) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .product-slider { grid-auto-columns: calc((100vw - 25px) / 2) !important; }
    .premium-category-grid, .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.fa-database::before { content: '▦' !important; }

/* Royal navy theme + desktop compact pass. */
:root {
    --bg: #071323;
    --surface: #0f2138;
    --surface-2: #172b45;
    --ink: #f7f9fc;
    --muted: #c5cfdd;
    --line: rgba(216, 226, 240, .16);
    --brand: #b89650;
    --brand-dark: #9f7f3e;
    --accent: #a9823d;
    --success: #6fb68f;
    --danger: #d77a74;
    --warning: #c79b52;
    --info: #8ab8cf;
    --shadow: 0 18px 48px rgba(0, 0, 0, .34);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, .24);
}

html { background: var(--bg); }
body {
    color: var(--ink);
    background:
        radial-gradient(circle at 8% -8%, rgba(184, 150, 80, .20), transparent 25rem),
        radial-gradient(circle at 92% 3%, rgba(33, 72, 121, .48), transparent 31rem),
        linear-gradient(180deg, #071323 0%, #0a1829 48%, #06101d 100%) !important;
    font-size: 14px;
    line-height: 1.75;
}

.site-header {
    background: rgba(7, 19, 35, .88) !important;
    border-bottom-color: rgba(216, 226, 240, .13) !important;
}
.header-top { border-bottom-color: rgba(216, 226, 240, .10); }
.site-name, .page-header h1, .section-title, .admin-content h1, .panel-content h1,
.product-name, .tab-btn.active, .footer-col h4, .footer-logo h3 { color: var(--ink); }
.header-nav a, .header-top, .page-header p, .results-count, .form-note, small,
.trust-box p, .feature-card p, .why-item p, .info-box p, .editorial-card p,
.routine-card p, .faq-card p, .timeline-card p, .shop-intro-card p,
.article-meta, .article-date, .article-views, .review-meta, .breadcrumb,
.footer-col p, .footer-col a, .footer-contact li { color: var(--muted); }
.header-nav a:hover, .filter-list a:hover, .category-list a:hover, .panel-nav a:hover,
.panel-nav a.active { background: rgba(184, 150, 80, .12); color: var(--ink); }

.btn, .btn-view, .view-all, .view-all-link, .read-more,
.search-toggle, .user-icon, .cart-icon, .mobile-menu-toggle, .mobile-nav-close,
.page-link, .slider-arrows button, .filter-toggle-mobile, .panel-menu-toggle {
    background: rgba(15, 33, 56, .82);
    border-color: var(--line);
    color: var(--ink);
}
.btn-primary, .btn-add-cart, .search-form-sidebar button,
.header-promise span, .page-link.active, .page-link:hover, .favorite-btn.active,
.favorite-btn:hover {
    background: linear-gradient(135deg, #b89650, #8f7136) !important;
    border-color: #8f7136 !important;
    color: #08111e !important;
    box-shadow: 0 10px 24px rgba(184, 150, 80, .18);
}
.btn-primary:hover, .btn-add-cart:hover {
    background: linear-gradient(135deg, #c2a05d, #96763a) !important;
    border-color: #96763a !important;
}
.btn-secondary { background: rgba(184, 150, 80, .13); color: #e7d6ad; border-color: rgba(184,150,80,.24); }
.btn-outline { color: #e7d6ad; border-color: rgba(184,150,80,.58); }
.btn-outline:hover { background: rgba(184,150,80,.16); color: var(--ink); }
.cart-count, .discount-badge, .article-category-badge, .discount-badge-large { background: #9f7f3e; color: #08111e; }

.category-card, .brand-box, .trust-box, .feature-card, .why-item, .info-box, .stat-box,
.welcome-box, .content-box, .success-box, .empty-state, .no-results-message,
.no-products, .no-data, .no-articles, .login-box, .auth-wrapper,
.contact-form-wrapper, .contact-info, .cart-summary, .checkout-summary,
.panel-sidebar, .panel-content, .sidebar-box, .filter-box, .card,
.product-card, .article-card, .product-gallery, .product-details, .cart-items,
.checkout-details, .article-single, .editorial-card, .routine-card, .faq-card,
.auth-perk, .timeline-card, .contact-card, .shop-intro-card, .review-form,
.review-item, .login-prompt, .product-tabs, .form-section, .shop-toolbar,
.hero-empty, .page-hero, .contact-hero, .magazine-hero, .about-hero, .about-text,
.mobile-nav, .search-box, .header-search-box .search-results {
    background: rgba(15, 33, 56, .84) !important;
    border-color: var(--line) !important;
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}
.trust-box, .premium-category-grid .category-card, .brand-box {
    background: linear-gradient(145deg, rgba(18, 42, 70, .92), rgba(10, 24, 41, .88)) !important;
}
.hero-empty, .page-hero, .contact-hero, .magazine-hero, .about-hero {
    background:
        radial-gradient(circle at 14% 0%, rgba(184, 150, 80, .18), transparent 18rem),
        linear-gradient(135deg, rgba(14, 37, 65, .95), rgba(6, 16, 29, .92)) !important;
}
.editorial-card.featured, .auth-hero, .newsletter-strip .newsletter-box,
.newsletter-box, .shop-intro-card:first-child {
    background: linear-gradient(135deg, #081426, #16365d) !important;
    color: var(--ink);
}
.banner-slide { background: #0f2138; box-shadow: var(--shadow); }
.banner-slide::after {
    background: linear-gradient(90deg, rgba(5, 12, 22, .16), rgba(5, 12, 22, .70)) !important;
}

.product-image, .main-image, .stat-box i, .user-avatar, .feature-item,
.ticket-message, .ticket-reply, .ticket-meta-row span, .status-badge, .badge,
.hero-badges span, .active-filter, .mini-badge, .auth-tabs,
.quantity-selector button, .header-promise, .color-box, .payment-option,
.share-btn, .ticket-flow-hint span {
    background: rgba(23, 43, 69, .88) !important;
    border-color: var(--line) !important;
    color: var(--ink);
}
input, textarea, select, .form-control, .search-input,
.newsletter-form input {
    background: rgba(7, 19, 35, .72) !important;
    border-color: rgba(216, 226, 240, .20) !important;
    color: var(--ink) !important;
}
input::placeholder, textarea::placeholder { color: rgba(197, 207, 221, .68); }
input:focus, textarea:focus, select:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(184, 150, 80, .18) !important;
}
.form-group label, .current-price, .discount-price, .current-price-large,
.discount-price-large, .trust-box i, .feature-card i, .why-icon, .info-box i,
.success-icon, .contact-card i, .favorite-btn, .header-contact i,
.header-social a:hover, .stat-info h3, .ticket-stats-mini strong {
    color: #d3b46a !important;
}
.article-body, .about-text, .content-box, .article-body p, .content-box p { color: #e7edf6; }
th { background: rgba(23, 43, 69, .82); color: #d8e2f0; }
.site-footer { background: #050c16 !important; }
.mobile-nav-overlay, .panel-sidebar-overlay.active, .shop-filter-overlay.active { background: rgba(2, 7, 13, .62); }

@media (min-width: 981px) {
    :root { --container: 1120px; }
    body { font-size: 13px; line-height: 1.68; }
    .container { width: min(var(--container), calc(100% - 36px)); }
    .site-alert-banner .container { min-height: 30px; padding-block: 5px; }
    .site-alert-banner p { font-size: 12px; }
    .site-alert-icon { width: 18px; height: 18px; flex-basis: 18px; font-size: 12px; }
    .header-top-content { min-height: 32px; }
    .header-main { padding: 9px 0; }
    .header-logo img { width: 50px; height: 50px; max-height: 50px; border-radius: 13px; }
    .site-name { font-size: 17px; }
    .header-main-content { gap: 18px; }
    .header-nav a { padding: 7px 11px; font-size: 13px; }
    .header-search { width: clamp(190px, 22vw, 300px); }
    .header-search-box .search-input { min-height: 36px; }
    .search-toggle, .user-icon, .cart-icon, .mobile-menu-toggle { width: 36px; height: 36px; }

    .page-header, .section-header { margin: 24px 0 16px; }
    .page-header h1, .section-title, .admin-content h1, .panel-content h1 { font-size: clamp(22px, 3vw, 34px); }
    .section-title { font-size: clamp(20px, 2.4vw, 28px); }
    .banner-slide { min-height: clamp(320px, 42vw, 520px); border-radius: 28px; }
    .banner-content h2 { font-size: clamp(28px, 4.8vw, 56px); }
    .banner-content p { font-size: 15px; margin-bottom: 16px; }
    .hero-empty h1, .page-hero h1 { font-size: clamp(28px, 4.6vw, 52px); }
    .hero-empty p, .page-hero p { font-size: 14px; }

    .categories-section, .products-section, .brands-section, .trust-boxes,
    .home-editorial, .routine-section, .faq-section, .newsletter-strip,
    .page-content, .search-results-section { padding: 24px 0; }
    .categories-grid, .products-grid, .articles-grid, .about-features,
    .why-us-grid, .trust-grid, .info-grid, .stats-grid { gap: 12px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .product-slider { grid-auto-columns: minmax(180px, 220px); }
    .product-card, .article-card { border-radius: 18px; }
    .product-info, .article-content { padding: 11px; }
    .product-name { min-height: 40px; font-size: 12.5px; line-height: 1.55; }
    .product-price { margin: 7px 0 10px; }
    .current-price, .discount-price, .current-price-large, .discount-price-large { font-size: 14px; }
    .original-price { font-size: 11px; }

    .btn, .btn-view, .view-all, .view-all-link, .read-more { min-height: 34px; padding: 7px 13px; font-size: 12.5px; }
    .btn-large { min-height: 40px; padding-inline: 18px; font-size: 13px; }
    .category-card { min-height: 126px; padding: 14px; border-radius: 18px; }
    .premium-category-grid .category-card { min-height: 150px; }
    .category-card img { width: 56px; height: 56px; border-radius: 14px; }
    .category-card h3, .premium-category-grid .category-card h3 { font-size: 14px; }
    .trust-box, .feature-card, .why-item, .info-box, .editorial-card, .routine-card,
    .faq-card, .auth-perk, .timeline-card, .contact-card, .shop-intro-card,
    .sidebar-box, .filter-box, .stat-box { padding: 15px; border-radius: 18px; }

    .shop-layout { grid-template-columns: 240px 1fr; }
    .magazine-layout { grid-template-columns: 1fr 260px; }
    .cart-layout, .checkout-layout, .contact-layout, .product-main { grid-template-columns: minmax(0, 1fr) 300px; }
    .panel-layout { grid-template-columns: 240px 1fr; }
    .shop-sidebar, .magazine-sidebar, .cart-summary, .checkout-summary, .panel-sidebar { top: 92px; }
    .product-gallery, .product-details, .article-single, .cart-items,
    .checkout-details, .contact-form-wrapper, .panel-content, .content-box,
    .success-box, .product-tabs { padding: 18px; border-radius: 22px; }
    .product-details h1, .article-header h1 { font-size: clamp(22px, 3vw, 34px); }
    .product-short-desc, .article-summary { font-size: 14px; }
    input, textarea, select, .form-control { min-height: 38px; padding: 8px 11px; border-radius: 12px; font-size: 13px; }
    textarea { min-height: 96px; }
    .form-group { margin-bottom: 12px; }
    .form-row { gap: 12px; }
    th, td { padding: 10px 9px; }
}

/* Floating online support chat. */
.live-chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 1500; font-family: inherit; }
.live-chat-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid rgba(184,150,80,.42);
    border-radius: 999px; background: linear-gradient(135deg, #b89650, #8f7136); color: #08111e; font-weight: 950; cursor: pointer;
    box-shadow: 0 16px 38px rgba(0,0,0,.30), 0 8px 22px rgba(184,150,80,.18);
}
.live-chat-toggle b { width: 9px; height: 9px; border-radius: 50%; background: #68d391; box-shadow: 0 0 0 5px rgba(104,211,145,.18); }
.live-chat-panel {
    position: absolute; right: 0; bottom: calc(100% + 12px); width: min(370px, calc(100vw - 28px)); height: 520px; max-height: calc(100vh - 110px);
    display: none; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid rgba(216,226,240,.16); border-radius: 24px;
    background: rgba(10,24,41,.98); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.live-chat-widget.open .live-chat-panel { display: grid; animation: reveal .18s ease; }
.live-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; background: linear-gradient(135deg, #081426, #173963); border-bottom: 1px solid rgba(216,226,240,.12); }
.live-chat-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-chat-brand img, .live-chat-brand span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; object-fit: cover; background: rgba(184,150,80,.18); color: #d3b46a; }
.live-chat-brand strong { display: block; color: #fff; font-size: 14px; }
.live-chat-brand small { color: rgba(231,237,246,.72); font-size: 11px; }
.live-chat-head button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.live-chat-messages { padding: 14px; overflow-y: auto; display: grid; align-content: start; gap: 10px; background: radial-gradient(circle at top left, rgba(184,150,80,.10), transparent 13rem); }
.live-chat-empty { padding: 14px; border: 1px dashed rgba(216,226,240,.18); border-radius: 18px; color: var(--muted); text-align: center; }
.live-chat-message { max-width: 84%; padding: 10px 12px; border-radius: 17px; line-height: 1.7; }
.live-chat-message small { display: block; margin-top: 4px; font-size: 10px; opacity: .66; }
.live-chat-message.user { margin-right: auto; background: linear-gradient(135deg, #b89650, #8f7136); color: #08111e; border-bottom-left-radius: 6px; }
.live-chat-message.admin { margin-left: auto; background: rgba(23,43,69,.95); color: #f7f9fc; border: 1px solid rgba(216,226,240,.12); border-bottom-right-radius: 6px; }
.live-chat-form { padding: 12px; border-top: 1px solid rgba(216,226,240,.12); background: rgba(7,19,35,.96); }
.live-chat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.live-chat-send-row { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: end; }
.live-chat-form input, .live-chat-form textarea { min-height: 38px !important; border-radius: 13px !important; font-size: 12px !important; }
.live-chat-form textarea { min-height: 48px !important; resize: none; }
.live-chat-form button[type="submit"] { width: 42px; height: 42px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #b89650, #8f7136); color: #08111e; cursor: pointer; }
@media (max-width: 680px) {
    .live-chat-widget { right: 10px; bottom: 10px; }
    .live-chat-toggle { min-height: 42px; padding: 8px 12px; font-size: 12px; }
    .live-chat-panel { height: min(500px, calc(100vh - 74px)); border-radius: 18px; }
}
.fa-paper-plane::before { content: '➤' !important; }

/* Final global theme sweep: cover user panel and older page fragments. */
body .user-panel, body .panel-layout, body .panel-sidebar, body .panel-content,
body .dashboard-card, body .order-card, body .profile-card, body .favorite-card,
body .ticket-card, body .ticket-compose, body .ticket-admin-card,
body .login-box, body .auth-panel, body .auth-wrapper, body .cart-items,
body .checkout-details, body .contact-form-wrapper, body .contact-card,
body .content-box, body .article-single, body .about-text, body .filter-box,
body .sidebar-box, body .card, body .table-responsive, body .welcome-box,
body .stat-box, body .empty-state, body .no-data, body .success-box {
    background: rgba(15, 33, 56, .86) !important;
    border-color: rgba(216, 226, 240, .16) !important;
    color: #f7f9fc !important;
}
body .panel-nav a, body .filter-list a, body .category-list a,
body .article-body, body .content-box p, body .about-text p,
body .order-card p, body .ticket-bubble, body .review-item,
body .review-form, body .login-prompt { color: #e7edf6; }
body .panel-nav a:hover, body .panel-nav a.active,
body .filter-list a:hover, body .category-list a:hover {
    background: rgba(184,150,80,.13) !important;
    color: #fff !important;
}
body table, body .table, body .orders-table, body .cart-table { color: #f7f9fc; }
body th { background: rgba(23,43,69,.86) !important; color: #d8e2f0 !important; }
body td { color: #f7f9fc; }
body .auth-tab.active, body .tab-btn.active { color: #d3b46a !important; }
body .alert { background: rgba(15,33,56,.92) !important; border-color: rgba(216,226,240,.16) !important; }

/* Premium support launcher upgrade. */
.live-chat-toggle {
    position: relative;
    min-width: 62px;
    width: 62px;
    height: 62px;
    padding: 0;
    border-radius: 22px;
    justify-content: center;
    overflow: visible;
}
.live-chat-toggle::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 28px;
    background: conic-gradient(from 140deg, rgba(184,150,80,.08), rgba(184,150,80,.55), rgba(33,72,121,.12), rgba(184,150,80,.08));
    z-index: -1;
    animation: liveChatGlow 4s linear infinite;
}
.live-chat-toggle::after {
    content: 'پشتیبانی آنلاین';
    position: absolute;
    right: calc(100% + 10px);
    bottom: 9px;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(5,12,22,.92);
    border: 1px solid rgba(184,150,80,.32);
    color: #f7f9fc;
    font-size: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.live-chat-toggle i { font-size: 25px; }
.live-chat-toggle span { display: none; }
.live-chat-toggle b { position: absolute; left: 8px; top: 8px; }
.live-chat-widget.open .live-chat-toggle::after { display: none; }
.live-chat-panel { border-radius: 28px; backdrop-filter: blur(18px); }
.live-chat-head { padding: 16px; }
.live-chat-brand img, .live-chat-brand span { width: 48px; height: 48px; border-radius: 17px; }
.live-chat-message { box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.live-chat-message.pending { opacity: .72; }
@keyframes liveChatGlow { to { transform: rotate(360deg); } }
@media (max-width: 680px) {
    .live-chat-toggle { width: 52px; height: 52px; border-radius: 18px; }
    .live-chat-toggle::after { display: none; }
    .live-chat-toggle i { font-size: 21px; }
}

@media (max-width: 767px) {
    .trust-boxes .trust-grid {
        grid-template-columns: repeat(6, minmax(112px, 1fr)) !important;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
    }

    .trust-boxes .trust-box { scroll-snap-align: start; }
}
