/* ══════════ RESET & BASE ══════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #1e1e2a;
    --bg-nav: rgba(14, 14, 22, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --accent-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    --pink: #e840e0;
    --purple: #8b5cf6;
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f59e0b;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --nav-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ══════════ SCROLLBAR ══════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }

/* ══════════ BOTTOM NAV ══════════ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    padding-bottom: var(--safe-bottom);
    z-index: 1000;
    border-top: 1px solid var(--border);
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-muted);
    position: relative;
    user-select: none;
}

.nav-item span:not(.badge) {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-item.active {
    color: var(--accent-light);
    background: rgba(59, 130, 246, 0.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-item .badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.hidden { display: none !important; }

/* ══════════ PAGE CONTAINER ══════════ */
.page {
    padding: 16px;
    animation: fadeIn 0.25s ease;
}

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

/* ══════════ SEARCH BAR ══════════ */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.search-bar .logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar .logo svg {
    width: 36px;
    height: 36px;
    color: var(--text-primary);
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--accent);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

/* ══════════ CATEGORIES ══════════ */
.categories-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.categories-row::-webkit-scrollbar { display: none; }

.cat-chip {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.cat-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ══════════ PRODUCT GRID ══════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid var(--border);
}

.product-card:active {
    transform: scale(0.97);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-img .no-img {
    color: var(--text-muted);
    font-size: 40px;
}

.product-card-info {
    padding: 10px 12px;
}

.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-card-price .old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.product-card-price .currency {
    color: var(--accent-light);
}

.product-card-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-btn {
    width: 100%;
    padding: 8px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-card-btn:active { opacity: 0.8; }

.product-card-btn.out-of-stock {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    cursor: default;
}

/* ══════════ PRODUCT DETAIL ══════════ */
.product-detail {
    padding: 0;
}

.product-detail-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-body {
    padding: 20px 16px;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.product-detail-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.product-category-badge {
    padding: 4px 12px;
    background: rgba(232, 64, 224, 0.15);
    color: var(--pink);
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.product-detail-price .currency {
    color: var(--accent-light);
}

.product-quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.qty-btn:active { background: var(--bg-card-hover); }

.qty-value {
    width: 48px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-btn {
    flex: 1;
    padding: 12px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.add-to-cart-btn:active { opacity: 0.8; }

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
}

.product-description {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
}

/* ══════════ CART ══════════ */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.clear-cart-btn {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-input);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-qty button {
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}

.cart-item-qty span {
    width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
}

.promo-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
    max-width: 100%;
    overflow: hidden;
}

.promo-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.promo-row input::placeholder { color: var(--text-muted); }

.promo-row input:focus { border-color: var(--accent); }

.promo-apply-btn {
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.cart-total-label {
    font-size: 20px;
    font-weight: 700;
}

.cart-total-value {
    font-size: 24px;
    font-weight: 800;
}

.cart-total-value .currency { color: var(--accent-light); }

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: opacity 0.2s;
}

.checkout-btn:active { opacity: 0.8; }

/* Empty cart */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-state-icon svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.empty-state-btn {
    padding: 12px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ══════════ CHECKOUT ══════════ */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

.form-group {
    margin-bottom: 12px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Delivery type toggle */
.delivery-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.delivery-toggle-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.delivery-toggle-btn.active {
    background: var(--pink);
    color: white;
}

.delivery-info-box {
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.delivery-option {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.delivery-option.selected {
    border-color: var(--accent);
}

.delivery-option-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-option-details {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Payment methods */
.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-option.selected {
    border-color: var(--accent);
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.payment-option-name {
    font-size: 14px;
    font-weight: 500;
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
    position: relative;
}

.selected .radio-circle {
    border-color: var(--pink);
}

.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 12px; height: 12px;
    background: var(--pink);
    border-radius: 50%;
}

/* Checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-row.checked .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-row.checked .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 700;
}

.checkout-total-value {
    font-size: 22px;
    font-weight: 800;
}

/* ══════════ PROFILE ══════════ */
.profile-hero {
    text-align: center;
    padding: 24px 0 20px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-username {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.profile-menu-item:active {
    transform: scale(0.98);
    background: var(--bg-input);
}

.profile-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-menu-item:nth-child(2) .profile-menu-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.profile-menu-item:nth-child(3) .profile-menu-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.profile-menu-item:nth-child(4) .profile-menu-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

.profile-menu-text {
    flex: 1;
    min-width: 0;
}

.profile-menu-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-menu-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.profile-menu-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ══════════ ORDERS LIST ══════════ */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-number {
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
}

.order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending { background: rgba(245, 158, 11, 0.15); color: var(--orange); }
.order-status.paid { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.order-status.processing { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.order-status.shipped { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.order-status.delivered { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.order-status.cancelled { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.order-items-list {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.order-date {
    font-size: 12px;
    color: var(--text-muted);
}

.order-total {
    font-size: 16px;
    font-weight: 700;
}

/* ══════════ NEWS ══════════ */
.news-header {
    margin-bottom: 16px;
}

.news-header h2 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.news-count-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-light);
    margin-top: 10px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.news-card:active { transform: scale(0.98); }

.news-card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    overflow: hidden;
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 14px;
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.news-card-author {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.read-more-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* News article */
.article-page {
    padding: 16px;
}

.article-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
}

.article-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.article-content a {
    color: var(--accent-light);
}

/* ══════════ STOCK BADGE ══════════ */
.stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stock-badge.low {
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
}

.stock-badge.medium {
    background: rgba(245, 158, 11, 0.85);
    color: #fff;
}

.product-detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-detail-stock.in-stock {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.product-detail-stock.low-stock {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

.product-detail-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

/* ══════════ BUTTON STATES ══════════ */
.product-card-btn.added {
    background: var(--green);
    pointer-events: none;
}

.add-to-cart-btn.added {
    background: var(--green);
    pointer-events: none;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ══════════ LOADING ══════════ */
.loader {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Skeleton loading */
.skeleton {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(110deg, var(--bg-secondary) 8%, var(--bg-card-hover) 18%, var(--bg-secondary) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

.skeleton-text {
    height: 14px;
    margin: 10px 12px 6px;
    background: linear-gradient(110deg, var(--bg-secondary) 8%, var(--bg-card-hover) 18%, var(--bg-secondary) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: 4px;
}

.skeleton-text.short { width: 60%; }

.skeleton-btn {
    height: 36px;
    margin: 8px 12px 12px;
    background: linear-gradient(110deg, var(--bg-secondary) 8%, var(--bg-card-hover) 18%, var(--bg-secondary) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    to { background-position-x: -200%; }
}

/* Staggered card entrance */
.product-card {
    animation: cardIn 0.3s ease both;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════ TOAST ══════════ */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 9999;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* ══════════ TEST MODE ══════════ */
.test-mode-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    text-align: center;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

body:has(.test-mode-banner) {
    padding-top: 28px;
}

body:has(.test-mode-banner) .bottom-nav {
    bottom: 0;
}


/* ══════════ CHECKOUT V2 ══════════ */
.city-results {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
}
.city-suggest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}
.city-suggest:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.35);
}
.city-region {
    color: var(--text-muted);
    font-size: 11px;
}

.delivery-loading {
    padding: 14px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}
.delivery-loading.error {
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.3);
}

.delivery-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
}
.delivery-option:hover { background: var(--bg-card-hover); }
.delivery-option.selected {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
    box-shadow: 0 0 0 1px var(--accent), 0 4px 20px rgba(59, 130, 246, 0.12);
}
.delivery-option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.delivery-option-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.delivery-option-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-light);
    white-space: nowrap;
}
.delivery-option-details {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-summary {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checkout-summary .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}
.checkout-summary .row.total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.checkout-total-value {
    color: var(--accent-light);
    font-weight: 800;
}


/* ══════════ HERO CARD ══════════ */
.hero-card {
    position: relative;
    margin: 12px 0 16px;
    padding: 24px 22px 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #141425 0%, #1a1030 50%, #0c1028 100%);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-card-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 20% 10%, rgba(139, 92, 246, 0.25), transparent 60%),
        radial-gradient(600px circle at 90% 80%, rgba(59, 130, 246, 0.3), transparent 60%);
    z-index: -1;
    animation: heroDrift 20s ease-in-out infinite alternate;
}
.hero-glow {
    position: absolute;
    right: -40px; top: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(232, 64, 224, 0.35) 0%, transparent 70%);
    z-index: -1;
    filter: blur(10px);
}
@keyframes heroDrift {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -6px, 0); }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    color: #e2e2f0;
    margin-bottom: 14px;
}
.hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.hero-accent {
    background: linear-gradient(90deg, #a78bfa 0%, #60a5fa 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 80%;
}

/* ══════════ STICKY SEARCH ══════════ */
.search-bar.sticky-search {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, var(--bg-primary) 80%, transparent);
    padding: 8px 0 12px;
    margin-top: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.filter-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.filter-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.filter-btn .filter-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
}
.filter-btn .filter-badge.hidden { display: none; }

/* ══════════ PRODUCT CARD v2 ══════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.catalog-summary {
    margin: 4px 2px 0;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}
.product-card:active { transform: scale(0.98); }
.product-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.product-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
    overflow: hidden;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img .no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    opacity: 0.4;
}
.discount-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #e11d48);
    color: #fff;
    border-radius: 100px;
    letter-spacing: 0.3px;
    z-index: 2;
}
.discount-badge.big { font-size: 13px; padding: 5px 11px; top: 12px; left: 12px; }
.stock-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 100px;
    z-index: 2;
}
.stock-badge.low   { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.stock-badge.out   { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.discount-badge + .stock-badge { left: auto; right: 8px; }
.fav-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.18s ease;
}
.fav-btn:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.05); }
.fav-btn.active { color: #ef4444; border-color: rgba(239, 68, 68, 0.5); }
.fav-btn svg { transition: transform 0.2s ease; }
.fav-btn.active svg { transform: scale(1.1); }

.product-card-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}
.card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-secondary);
}
.card-rating.dim { color: var(--text-muted); }
.card-rating .star {
    fill: var(--text-muted);
    transition: fill 0.15s ease;
}
.card-rating .star.filled, .stars-row .star.filled { fill: #fbbf24; }
.card-rating .star.half, .stars-row .star.half {
    fill: url(#halfStarGrad);
}
.reviews-count { color: var(--text-muted); font-size: 10px; }
.product-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 33px;
}
.product-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 6px;
}
.product-card-prices { display: flex; flex-direction: column; gap: 0; }
.product-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}
.product-card-price .currency { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.old-price {
    font-size: 11px;
    text-decoration: line-through;
    color: var(--text-muted);
}
.product-card-btn {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.product-card-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.product-card-btn.added { background: var(--green); }
.product-card-btn.out-of-stock {
    width: auto; padding: 0 10px; height: 34px;
    font-size: 11px; font-weight: 700;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

/* ══════════ BOTTOM SHEET ══════════ */
.bottom-sheet-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 2000;
    transition: background 0.22s ease;
    pointer-events: none;
}
.bottom-sheet-overlay.open {
    background: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}
.bottom-sheet {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-height: 88vh;
    background: var(--bg-secondary);
    border-radius: 22px 22px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid var(--border);
}
.bottom-sheet-overlay.open .bottom-sheet { transform: translateY(0); }
.bottom-sheet-grip {
    width: 44px; height: 4px;
    background: var(--text-muted);
    border-radius: 4px;
    margin: 10px auto 4px;
    opacity: 0.5;
}
.bottom-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 18px 14px;
    border-bottom: 1px solid var(--border);
}
.bottom-sheet-head h3 { font-size: 17px; font-weight: 700; }
.bottom-sheet-close {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}
.bottom-sheet-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
}
.bottom-sheet-foot {
    display: flex; gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.bottom-sheet-foot .checkout-btn { flex: 2; margin: 0; }
.btn-ghost-full {
    flex: 1;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.filter-group { margin-bottom: 22px; }
.filter-group-title {
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 700;
}
.sort-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sort-chip {
    padding: 9px 14px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.sort-chip.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.price-range-inputs {
    display: flex; align-items: center; gap: 8px;
}
.price-range-inputs .form-input { flex: 1; }
.price-range-inputs .dash { color: var(--text-muted); }
.price-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.switch-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    cursor: pointer;
}
.switch {
    width: 46px; height: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    position: relative;
    transition: all 0.2s ease;
}
.switch::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}
.switch.on { background: var(--accent-gradient); border-color: transparent; }
.switch.on::after { transform: translateX(20px); background: #fff; }

/* ══════════ PRODUCT DETAIL v2 ══════════ */
.product-detail-head {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95), transparent);
    pointer-events: none;
}
.product-detail-head .circle-btn {
    pointer-events: auto;
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}
.product-detail-head .circle-btn.active-fav { color: #ef4444; }
.product-detail-img {
    position: relative;
    margin-top: -52px;
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
}
.product-detail-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-detail-body { padding: 20px 16px 32px; }
.product-detail-header { margin-bottom: 10px; }
.product-category-badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}
.product-detail-name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.product-rating-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.product-rating-row.dim { color: var(--text-muted); }
.stars-row { display: inline-flex; gap: 2px; }
.stars-row .star { fill: var(--text-muted); }
.rating-value { font-weight: 700; color: var(--text-primary); }
.product-detail-prices {
    margin-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.product-detail-price {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.product-detail-old {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.reviews-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.reviews-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.reviews-head h3 { font-size: 16px; font-weight: 700; }
.link-btn {
    background: none; border: none;
    color: var(--accent-light);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}
.review-item {
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.review-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; margin-bottom: 4px;
}
.review-author { font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.verified-badge {
    font-size: 10px;
    padding: 1px 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-radius: 100px;
    font-weight: 600;
}
.review-stars { display: inline-flex; gap: 1px; }
.review-stars .star { fill: var(--text-muted); }
.review-stars .star.filled { fill: #fbbf24; }
.review-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 4px;
}
.review-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.reviews-empty {
    text-align: center;
    padding: 18px;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

/* Рейтинг-пикер в модалке */
.rating-picker {
    display: flex;
    gap: 6px;
    padding: 8px 0;
}
.rating-pick-btn {
    flex: 1;
    height: 52px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}
.rating-pick-btn svg { fill: var(--text-muted); }
.rating-pick-btn.active svg { fill: #fbbf24; }
.rating-pick-btn.active { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.review-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* ══════════ PAGE HEAD ══════════ */
.page-head {
    padding: 16px 0 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.page-head h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.page-head-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ══════════ CATALOG EMPTY ══════════ */
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.catalog-empty svg { margin-bottom: 10px; opacity: 0.5; }
.catalog-empty h3 { font-size: 16px; color: var(--text-primary); margin-bottom: 4px; }
.catalog-empty p { font-size: 13px; margin-bottom: 14px; }

/* ══════════ SKELETON v2 ══════════ */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.skeleton-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-text {
    height: 12px;
    margin: 10px 12px;
    border-radius: 6px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-text.short { width: 60%; }
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ══════════ CATEGORY ICONS ══════════ */
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cat-chip .cat-ico,
.cat-chip .cat-ico-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
    line-height: 1;
}


/* ══════════ DELIVERY v3 (оценка "от") ══════════ */
.delivery-estimate { margin-top: 12px; }
.delivery-card {
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.delivery-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.delivery-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.delivery-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-light);
    white-space: nowrap;
}
.delivery-card-sub {
    font-size: 12px;
    color: var(--text-secondary);
}
.delivery-card-note {
    font-size: 11px;
    color: var(--green);
    font-weight: 600;
}
.delivery-card-foot {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.delivery-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 11px 13px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.5;
}
.delivery-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.delivery-notice div { color: #e9d4a7; }
.delivery-notice b { color: #fbbf24; }
