@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ─── FoodDash Design Tokens ─── */
:root {
    --primary: #DC2626;
    --primary-hover: #B91C1C;
    --primary-light: #FEF2F2;
    --secondary: #EA580C;
    --secondary-light: #FFFBEB;
    --tertiary: #16A34A;
    --tertiary-light: #DCFCE7;
    --info: #2563EB;
    --info-light: #DBEAFE;
    --bg-body: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-muted: #F5F5F5;
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    --text-muted: #737373;
    --text-inverse: #FFFFFF;
    --border-color: #E5E5E5;
    --border-hover: #A3A3A3;
    --neutral: #D4D4D4;
    --success: #16A34A;
    --success-light: #DCFCE7;
    --warning: #D97706;
    --warning-light: #FFFBEB;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --font-display: 'Vazirmatn', sans-serif;
    --font-body: 'Vazirmatn', sans-serif;
    --font-code: 'Vazirmatn', monospace;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.20);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
}

html, body {
    height: 100%;
    margin: 0;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ─── Headings ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

h1 {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 18px;
    line-height: 24px;
}

h4 {
    font-size: 15px;
    line-height: 20px;
}

/* ─── Navbar ─── */
.navbar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
}

.navbar .navbar-brand {
    color: var(--text-primary) !important;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .site-logo {
        height: 34px;
    }
    .navbar .navbar-brand {
        font-size: 16px;
        gap: 8px;
    }
}

.navbar .navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: color 200ms ease;
    padding: 8px 12px;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    filter: none;
}

.dropdown-menu {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg) !important;
    padding: 8px 0;
}

.dropdown-item {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 16px;
    transition: background-color 150ms ease;
}

.dropdown-item:hover {
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
}

/* ─── Search Bar ─── */
.search-form {
    max-width: 100%;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar-inner {
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border: 1.5px solid transparent;
    border-radius: 20px;
    padding: 0 12px;
    height: 46px;
    transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
    gap: 8px;
}

.search-bar-inner:focus-within {
    background: #fff;
    border-color: #EF4056;
    box-shadow: 0 0 0 3px rgba(239, 64, 86, 0.12);
}

.search-bar-icon {
    flex-shrink: 0;
    color: #999;
    pointer-events: none;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    padding: 8px 0;
    min-width: 0;
}

.search-input::placeholder {
    color: #999;
    font-size: 13px;
}

.search-clear {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: #D4D4D4;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background 200ms ease;
}

.search-clear:hover {
    background: #A3A3A3;
}

/* ─── Search Dropdown ─── */
.search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    display: none;
    max-height: 480px;
    overflow-y: auto;
}

.search-dropdown.show {
    display: block;
}

.search-dropdown-inner {
    padding: 8px;
}

.search-suggest-group {
    margin-bottom: 4px;
}

.search-suggest-group:last-child {
    margin-bottom: 0;
}

.search-suggest-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 6px 10px 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 150ms ease;
    cursor: pointer;
}

.suggest-item:hover,
.suggest-item.active {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.suggest-item-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--bg-muted);
    flex-shrink: 0;
}

.suggest-item-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral);
}

.suggest-item-img-placeholder svg {
    width: 20px;
    height: 20px;
}

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

.suggest-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-item-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 1px;
}

.suggest-item-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

.suggest-price-new {
    color: var(--primary);
}

.suggest-price-old {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 4px;
}

.suggest-item-icon {
    flex-shrink: 0;
    color: var(--neutral);
    display: flex;
    align-items: center;
}

.suggest-item-history .suggest-item-title {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.suggest-item-history .suggest-item-icon {
    color: var(--neutral);
}

/* Mobile search */
.search-bar-mobile .search-bar-inner {
    height: 40px;
    border-radius: 16px;
}

.search-bar-mobile .search-input {
    font-size: 13px;
}

@media (min-width: 992px) {
    .search-bar-inner {
        height: 48px;
        border-radius: 24px;
    }
    .search-input {
        font-size: 14px;
    }
}

/* ─── Account Button (Header) ─── */
.btn-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #EF4056;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 20px;
    height: 44px;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 64, 86, 0.25);
    transition: background-color 250ms ease, box-shadow 250ms ease, transform 200ms ease;
}

.btn-account .btn-account-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.btn-account .btn-account-text {
    line-height: 1;
}

.btn-account:hover {
    background-color: #E53950;
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 64, 86, 0.35);
    transform: translateY(-1px);
}

.btn-account:active {
    background-color: #D72E46;
    color: #fff;
    box-shadow: 0 1px 4px rgba(239, 64, 86, 0.2);
    transform: translateY(0) scale(0.98);
}

.btn-account:focus-visible {
    outline: 3px solid rgba(239, 64, 86, 0.45);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .btn-account {
        height: 40px;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 18px;
    }
    .btn-account .btn-account-icon {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .btn-account {
        height: 38px;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 16px;
        gap: 4px;
    }
    .btn-account .btn-account-icon {
        font-size: 15px;
    }
}

/* ─── Buttons ─── */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    height: 42px;
    border-radius: var(--radius-md) !important;
    transition: all 150ms ease;
    letter-spacing: 0;
}

.btn-primary {
    background-color: var(--primary) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    box-shadow: 0 4px 12px rgba(255,90,95,0.35);
}

.btn-primary:active {
    box-shadow: 0 2px 6px rgba(255,90,95,0.4);
    transform: translateY(1px);
}

.btn-success {
    background-color: var(--primary) !important;
    border: none !important;
    color: #FFFFFF !important;
}

.btn-success:hover {
    background-color: var(--primary-hover) !important;
    box-shadow: 0 4px 12px rgba(255,90,95,0.35);
}

.btn-secondary {
    background-color: var(--bg-surface) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.btn-secondary:hover {
    border-color: var(--text-primary) !important;
    background-color: var(--bg-elevated) !important;
}

.btn-outline-secondary {
    border: 1px solid var(--border-color) !important;
    background: transparent !important;
    color: var(--text-primary) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-hover) !important;
}

.btn-outline-danger {
    border: 1.5px solid var(--error) !important;
    color: var(--error) !important;
    background: transparent !important;
}

.btn-outline-danger:hover {
    background-color: var(--error-light) !important;
}

.btn-sm {
    height: 32px;
    padding: 6px 14px;
    font-size: 12px;
}

.btn-lg {
    height: 48px;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: var(--radius-md) !important;
}

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

.btn-group .btn:not(:last-child) {
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

.btn-group .btn:not(:first-child) {
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

/* ─── Cards ─── */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 200ms ease, transform 200ms ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-body {
    padding: 16px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--text-primary);
}

.card-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 22px;
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 400;
}

.price-discount {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

/* ─── Badges / Chips ─── */
.badge {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0;
}

.badge.bg-danger,
.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-success {
    background-color: var(--success-light) !important;
    color: var(--success) !important;
}

.badge.bg-warning {
    background-color: var(--warning-light) !important;
    color: var(--warning) !important;
}

.badge.bg-info {
    background-color: var(--info-light) !important;
    color: var(--info) !important;
}

.chip-filter {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
}

.chip-filter:hover {
    border-color: var(--text-primary);
}

.chip-filter.active {
    background: var(--text-primary);
    color: var(--text-inverse);
    border-color: var(--text-primary);
}

/* ─── Pagination ─── */
.page-link {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    transition: all 200ms ease;
}

.page-link:hover {
    background-color: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.page-item.disabled .page-link {
    background-color: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* ─── Inputs ─── */
.form-control,
.form-select {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    font-size: 14px;
    height: 48px;
    padding: 12px;
    box-shadow: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--border-hover) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--text-primary) !important;
    box-shadow: 0 0 0 2px var(--text-primary) !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255,90,95,0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255,90,95,0.25);
}

/* ─── Tables ─── */
.table {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
}

.table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #F5F5F5;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--bg-muted);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ─── Alerts ─── */
.alert {
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: var(--success-light) !important;
    color: var(--success) !important;
    border: 1px solid var(--success) !important;
}

.alert-danger {
    background-color: var(--error-light) !important;
    color: var(--error) !important;
    border: 1px solid var(--error) !important;
}

.alert-warning {
    background-color: var(--warning-light) !important;
    color: var(--warning) !important;
    border: 1px solid var(--warning) !important;
}

/* ─── Footer ─── */
.footer {
    background-color: var(--text-primary);
    border-top: none;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-display);
    font-size: 14px;
    flex-shrink: 0;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col {
    min-width: 0;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.footer-text {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 200ms ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255,255,255,0.4);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    transition: all 200ms ease;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    text-decoration: none;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 200ms ease;
}

.footer-legal a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ─── Text utilities ─── */
.text-muted {
    color: var(--text-muted) !important;
}

/* ─── Links ─── */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover {
    color: var(--primary-hover);
}

/* ─── Section spacing ─── */
.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

/* ─── Bottom mobile nav ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1030;
    direction: rtl;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    padding: 0 env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex: 1;
    height: 100%;
    padding: 4px 0;
    color: var(--text-tertiary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 500;
    transition: color 200ms ease;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bottom-nav-item:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active .bottom-nav-icon {
    color: var(--primary);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
    display: block;
    margin-bottom: 1px;
    transition: transform 200ms ease;
}

.bottom-nav-item:active .bottom-nav-icon {
    transform: scale(0.9);
}

.bottom-nav-label {
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
}

body {
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 68px;
    }
}

/* ─── Hero section ─── */
.hero {
    padding: 64px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 64px;
        line-height: 72px;
    }
}

.hero p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ─── Product cards ─── */
.product-card .card-img-top {
    aspect-ratio: 4/3;
    object-fit: contain;
    background: var(--bg-muted);
    padding: 8px;
}

/* ─── Discount tag ─── */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    z-index: 2;
}

/* ─── Focus ring ─── */
:focus-visible {
    outline: 3px solid rgba(255,90,95,0.25);
    outline-offset: 2px;
}

/* ─── Mega Menu ─── */
.mega-dropdown {
    position: static;
}

.mega-dropdown .dropdown-menu.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    box-shadow: var(--shadow-lg);
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
}

.mega-menu-wrapper {
    padding: 24px 8px;
}

.mega-col {
    border-left: 1px solid var(--border-color);
    padding: 0 16px;
}

.mega-col:last-child {
    border-left: none;
}

.mega-col-inner {
    padding: 0 4px;
}

.mega-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
    transition: color 200ms ease;
}

.mega-heading:hover {
    color: var(--primary);
    text-decoration: none;
}

.mega-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.mega-subnav li {
    margin-bottom: 2px;
}

.mega-link {
    display: block;
    padding: 5px 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 150ms ease;
}

.mega-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.mega-link .mega-subnav {
    padding-right: 12px;
    margin-top: 2px;
}

.mega-link .mega-subnav .mega-link {
    font-size: 12px;
    padding: 3px 8px;
    color: var(--text-tertiary);
}

.mega-count {
    color: var(--text-muted);
    font-size: 11px;
}

@media (min-width: 992px) {
    .mega-dropdown:hover .dropdown-menu.mega-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .mega-menu-wrapper .row {
        flex-direction: column;
    }
    .mega-col {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: 8px 0;
    }
    .mega-col:last-child {
        border-bottom: none;
    }
}

/* ─── Mobile Offcanvas Category Menu ─── */
#mobileCategoryMenu .accordion-button {
    font-size: 14px;
    border-radius: 0 !important;
}

#mobileCategoryMenu .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
}

#mobileCategoryMenu .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

#mobileCategoryMenu .accordion-body {
    background: var(--bg-muted);
}

/* ─── Breadcrumb ─── */
.breadcrumb {
    font-size: 13px;
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   User Panel Styles
   ═══════════════════════════════════════════ */

.user-panel-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-muted);
}

/* ─── Panel Sidebar ─── */
.panel-sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    transition: transform 0.3s ease;
}

@media (max-width: 767.98px) {
    .panel-sidebar {
        transform: translateX(100%);
        width: 280px;
    }
    .panel-sidebar.show {
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-logo:hover {
    color: var(--primary);
    text-decoration: none;
}

.sidebar-user {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.sidebar-user-email {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.sidebar-menu-item a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-menu-item.active a {
    background: var(--primary-light);
    color: var(--primary);
    border-right-color: var(--primary);
    font-weight: 600;
}

.sidebar-menu-item a i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-footer-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ─── Panel Main Content ─── */
.panel-main {
    flex: 1;
    margin-right: 260px;
    padding: 24px;
    padding-top: 80px;
    padding-bottom: 80px;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .panel-main {
        margin-right: 0;
        padding: 16px;
        padding-top: 68px;
        padding-bottom: 80px;
    }
}

/* ─── Panel Top Bar (Desktop) ─── */
.panel-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 260px;
    height: 56px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1030;
}

@media (max-width: 767.98px) {
    .panel-topbar {
        display: none;
    }
}

.topbar-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.topbar-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.topbar-start, .topbar-end {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ─── Panel Mobile Header ─── */
.panel-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
    display: none;
}

@media (max-width: 767.98px) {
    .panel-header {
        display: block;
    }
}

.panel-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 12px;
}

.panel-menu-btn {
    color: var(--text-primary);
    font-size: 24px;
    padding: 4px;
    text-decoration: none;
}

.panel-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
}

.panel-cart-btn {
    color: var(--text-secondary);
    font-size: 22px;
    position: relative;
}

/* ─── Page Header ─── */
.panel-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.panel-page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 4px 0 0;
}

/* ─── Panel Cards ─── */
.panel-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.panel-card:hover {
    box-shadow: var(--shadow-md);
}

.panel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 8px;
}

.panel-card-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0;
}

.panel-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.panel-card-body {
    padding: 20px;
}

/* ─── Stat Cards ─── */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    height: 100%;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon-orders {
    background: var(--info-light);
    color: var(--info);
}

.stat-icon-pending {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-icon-completed {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon-wishlist {
    background: #FCE7F3;
    color: #DB2777;
}

.stat-icon-wallet {
    background: var(--secondary-light);
    color: var(--secondary);
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── Panel Table ─── */
.panel-table {
    margin: 0;
}

.panel-table thead th {
    background: var(--bg-muted);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}

.panel-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 13px;
}

/* ─── Order Status Badges ─── */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.order-status-badge.status-pendingpayment {
    background: var(--warning-light);
    color: var(--warning);
}

.order-status-badge.status-paid,
.order-status-badge.status-processing,
.order-status-badge.status-readytoship {
    background: var(--info-light);
    color: var(--info);
}

.order-status-badge.status-shipped {
    background: #DBEAFE;
    color: #1D4ED8;
}

.order-status-badge.status-delivered,
.order-status-badge.status-completed {
    background: var(--success-light);
    color: var(--success);
}

.order-status-badge.status-cancelled,
.order-status-badge.status-returned {
    background: var(--error-light);
    color: var(--error);
}

/* ─── Profile Avatar ─── */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-muted);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
    overflow: hidden;
    margin: 0 auto;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    border: 3px solid var(--bg-surface);
    transition: background 0.2s;
}

.avatar-upload-btn:hover {
    background: var(--primary-hover);
}

/* ─── Address Card ─── */
.address-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
    transition: all 0.2s;
    height: 100%;
}

.address-card:hover {
    box-shadow: var(--shadow-md);
}

.address-card-default {
    border-color: var(--primary);
    border-width: 2px;
}

.address-badge {
    position: absolute;
    top: -8px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}

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

.address-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.address-actions {
    display: flex;
    gap: 4px;
}

.address-card-body p {
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.address-location {
    font-weight: 600;
    color: var(--text-primary);
}

.address-location i {
    color: var(--primary);
    margin-left: 4px;
}

.address-text {
    line-height: 1.6;
}

.address-detail {
    color: var(--text-tertiary);
    font-size: 12px;
}

.address-phone {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* ─── Wishlist Card ─── */
.wishlist-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    height: 100%;
}

.wishlist-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wishlist-card-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wishlist-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.wishlist-img-placeholder {
    color: var(--neutral);
    font-size: 36px;
}

.wishlist-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.wishlist-card-body {
    padding: 12px;
}

.wishlist-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-price {
    margin-bottom: 6px;
}

.wishlist-status {
    font-size: 12px;
}

.wishlist-actions {
    display: flex;
    gap: 6px;
}

/* ─── Notifications ─── */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.notification-item.unread {
    background: var(--primary-light);
    border-color: var(--primary);
    border-right: 3px solid var(--primary);
}

.notification-item:hover {
    box-shadow: var(--shadow-sm);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.5;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
}

.notification-mark-read {
    opacity: 0;
    transition: opacity 0.2s;
}

.notification-item:hover .notification-mark-read {
    opacity: 1;
}

/* ─── Wallet ─── */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--text-primary) 0%, #404040 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #fff;
    text-align: center;
}

.wallet-balance-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.wallet-balance-label {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.wallet-balance-amount {
    display: block;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wallet-balance-currency {
    display: block;
    font-size: 13px;
    opacity: 0.6;
    margin-top: 4px;
}

/* ─── Tickets ─── */
.ticket-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ticket-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-info {
    flex: 1;
}

.ticket-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.ticket-status-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
}

.ticket-status.status-open {
    background: var(--success-light);
    color: var(--success);
}

.ticket-status.status-answered {
    background: var(--warning-light);
    color: var(--warning);
}

.ticket-status.status-closed {
    background: var(--bg-muted);
    color: var(--text-muted);
}

.ticket-card-body {
    padding: 16px 20px;
}

.ticket-message {
    margin-bottom: 8px;
}

.ticket-msg-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    max-width: 85%;
}

.ticket-msg-bubble.user-msg {
    background: var(--bg-muted);
    margin-left: auto;
}

.ticket-msg-bubble.admin-msg {
    background: var(--primary-light);
    margin-right: auto;
}

.ticket-msg-bubble p {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.ticket-msg-header {
    margin-bottom: 6px;
    font-size: 12px;
}

.ticket-msg-time {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-align: left;
}

.ticket-replies {
    padding-right: 20px;
    border-right: 2px solid var(--border-color);
}

.ticket-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-muted);
}

.ticket-reply-form .input-group {
    gap: 8px;
}

.ticket-reply-form .form-control {
    height: 42px;
    font-size: 13px;
}

/* ─── Session Device Icon ─── */
.session-device-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ─── Offcanvas Sidebar Fix ─── */
.offcanvas.panel-sidebar {
    visibility: visible;
}

@media (min-width: 768px) {
    .offcanvas.panel-sidebar {
        position: fixed;
        transform: none;
    }
}

/* ─── Panel Alert Overrides ─── */
.panel-main .alert {
    margin-bottom: 20px;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--neutral);
    margin-bottom: 16px;
}

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

/* ─── RTL Sidebar tweaks ─── */
.sidebar-menu-item a i:first-child {
    margin-left: 0;
}

/* ─── Responsive table scroll ─── */
@media (max-width: 575.98px) {
    .table-responsive-sm {
        overflow-x: auto;
    }
}

/* ═══════════════════════════════════════════
   Product Detail Page
   ═══════════════════════════════════════════ */

.product-detail-image-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    padding: 24px;
    transition: transform 0.3s ease;
}

.product-detail-image:hover {
    transform: scale(1.03);
}

.product-detail-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral);
    font-size: 64px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-pill);
}

.product-detail-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.product-price-section {
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.product-discount-badge {
    display: inline-flex;
    padding: 4px 14px;
    background: var(--secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
}

.product-stock-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: var(--success-light);
    color: var(--success);
}

.stock-badge.low-stock {
    background: var(--warning-light);
    color: var(--warning);
}

.stock-badge.out-of-stock {
    background: var(--error-light);
    color: var(--error);
}

.product-brief-desc {
    background: var(--bg-muted);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.product-brief-desc p {
    margin: 0;
}

.qty-label {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 40px;
    border: none;
    background: var(--bg-muted);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--border-color);
}

.qty-input {
    width: 56px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    padding: 0;
}

.qty-input:focus {
    outline: none;
}

.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-to-cart:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Product Tabs ─── */
.product-tabs-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-tabs {
    border-bottom: 2px solid var(--border-color);
    padding: 0 4px;
    background: var(--bg-muted);
}

.product-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 22px;
    border-radius: 0;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-tabs .nav-link i {
    font-size: 16px;
}

.product-tabs .nav-link:hover {
    color: var(--text-primary);
    background: transparent;
}

.product-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
}

.product-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.review-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
}

.product-tab-content {
    padding: 24px;
}

@media (max-width: 575.98px) {
    .product-tabs .nav-link {
        padding: 12px 14px;
        font-size: 12px;
    }
    .product-tab-content {
        padding: 16px;
    }
}

/* ─── Description Tab ─── */
.product-desc-content {
    line-height: 2;
    font-size: 14px;
    color: var(--text-secondary);
}

.desc-html img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

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

.empty-tab-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    color: var(--neutral);
}

.empty-tab-state p {
    font-size: 14px;
    margin: 0;
}

/* ─── Specs Tab ─── */
.specs-table-wrapper {
    max-width: 600px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 16px;
    font-size: 14px;
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
    width: 40%;
    background: var(--bg-muted);
}

.spec-value {
    color: var(--text-secondary);
}

/* ─── Rating Display ─── */
.stars-display {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 2px;
    unicode-bidi: bidi-override;
}

.stars-display .star-empty {
    color: #d1d5db;
}

.stars-display .star-half {
    position: relative;
    color: #d1d5db;
}

.stars-display .star-half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #f59e0b;
}

.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-average {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Reviews Summary ─── */
.reviews-summary-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.rating-big {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.stars-big {
    font-size: 22px;
    margin: 8px 0;
}

.rating-total-text {
    font-size: 14px;
    color: var(--text-muted);
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 36px;
}

.rating-progress {
    flex: 1;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--border-color);
}

.rating-progress .progress-bar {
    background: #f59e0b;
    border-radius: var(--radius-pill);
}

.rating-bar-count {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 20px;
    text-align: left;
}

/* ─── Review Items ─── */
.review-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.review-item:hover {
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

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

.review-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
}

.review-stars .star-empty {
    color: #d1d5db;
}

.review-body {
    padding-right: 54px;
}

.review-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.review-comment {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ─── Star Rating Input ─── */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 32px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f59e0b !important;
    transform: scale(1.1);
}

.star-rating input:checked ~ label {
    color: #f59e0b;
}

/* ─── Review Form ─── */
.review-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.review-form-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.review-login-prompt {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.review-login-prompt i {
    font-size: 40px;
    color: var(--neutral);
    display: block;
    margin-bottom: 12px;
}

.review-login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ─── Mobile tab fixes ─── */
@media (max-width: 575.98px) {
    .review-body {
        padding-right: 0;
    }
    .rating-big {
        font-size: 36px;
    }
    .stars-big {
        font-size: 18px;
    }
    .star-rating label {
        font-size: 28px;
    }
}

/* ─── Hero Slider ─── */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 24px auto 40px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-muted);
    direction: ltr;
}

.hero-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1600 / 420;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 40px;
    max-width: 700px;
    margin: 0 auto;
    pointer-events: none;
}

.hero-slide-title {
    font-size: clamp(18px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin: 0 0 8px;
    line-height: 1.3;
}

.hero-slide-subtitle {
    font-size: clamp(13px, 1.5vw, 18px);
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    margin: 0 0 16px;
    line-height: 1.5;
}

.hero-slide-btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(220,38,38,0.35);
    border: none;
    cursor: pointer;
}

.hero-slide-btn:hover {
    background: var(--primary-dark, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220,38,38,0.45);
    color: #fff;
}

/* Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 0;
}

.hero-slider:hover .hero-slider-arrow {
    opacity: 1;
}

.hero-slider-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.hero-slider-arrow svg {
    width: 22px;
    height: 22px;
    color: #333;
}

.hero-slider-prev {
    right: 12px;
}

.hero-slider-next {
    left: 12px;
}

/* Indicators */
.hero-slider-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
    width: 28px;
    border-radius: 5px;
}

/* Tablet */
@media (max-width: 991.98px) {
    .hero-slider {
        margin-top: 20px;
        margin-bottom: 32px;
    }
    .hero-slide {
        aspect-ratio: 1600 / 360;
    }
    .hero-slider-arrow {
        width: 36px;
        height: 36px;
    }
    .hero-slider-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .hero-slider {
        margin-top: 12px;
        margin-bottom: 24px;
        border-radius: 0;
    }
    .hero-slide {
        aspect-ratio: 1600 / 260;
    }
    .hero-slider-arrow {
        width: 32px;
        height: 32px;
        opacity: 1;
    }
    .hero-slider-arrow svg {
        width: 16px;
        height: 16px;
    }
    .hero-slider-prev {
        right: 6px;
    }
    .hero-slider-next {
        left: 6px;
    }
    .hero-slide-content {
        padding: 16px 20px;
    }
    .hero-indicator {
        width: 8px;
        height: 8px;
    }
    .hero-indicator.active {
        width: 20px;
    }
}

.hero-slider-placeholder {
    height: 20px;
}

/* ─── Admin Product Specifications ─── */
.spec-row {
    transition: all 0.2s ease;
}

.spec-row:hover {
    box-shadow: var(--shadow-sm);
}

.spec-row .form-control {
    font-size: 13px;
}

.spec-row .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
}

.spec-row input.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 0.2rem var(--error-light);
}

.spec-row .remove-spec:hover {
    background-color: var(--error-light);
    color: var(--error);
    border-color: var(--error);
}

#specsContainer {
    min-height: 100px;
}

#specsContainer .text-center {
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

/* Tab styling */
.nav-tabs.card-header-tabs {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-muted);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.nav-tabs.card-header-tabs .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-tabs.card-header-tabs .nav-link:hover {
    color: var(--primary);
    background: transparent;
}

.nav-tabs.card-header-tabs .nav-link.active {
    color: var(--primary);
    background: #fff;
    border-bottom-color: var(--primary);
}

.nav-tabs.card-header-tabs .nav-link i {
    font-size: 14px;
}

/* Card styling for tabs */
.card.border.rounded-3 {
    border-radius: var(--radius-lg) !important;
}

.card.border.rounded-3 .card-header {
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.card.border.rounded-3 .card-body {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Responsive */
@media (max-width: 767.98px) {
    .spec-row .col-md-5,
    .spec-row .col-md-2 {
        width: 100%;
    }
    
    .spec-row .row.g-3 {
        flex-direction: column;
    }
    
    .spec-row .remove-spec {
        width: auto !important;
        align-self: flex-start;
    }
}

/* ─── Special Offers Section ─── */
.special-offers-section {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0F0 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid #FECACA;
}

.special-offers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.special-offers-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.special-offers-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.special-offers-badge {
    background: linear-gradient(135deg, #DC2626, #EA580C);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.special-offers-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.special-offers-track-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.special-offers-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.special-offers-track::-webkit-scrollbar {
    display: none;
}

.special-offer-card {
    flex: 0 0 calc(20% - 10px);
    min-width: 180px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.special-offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.special-offer-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.special-offer-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.special-offer-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 300ms ease;
}

.special-offer-card:hover .special-offer-img {
    transform: scale(1.08);
}

.special-offer-img-placeholder {
    font-size: 48px;
    opacity: 0.4;
}

.special-offer-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #DC2626, #EA580C);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    z-index: 2;
    direction: ltr;
}

.special-offer-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.special-offer-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.special-offer-brand {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.special-offer-prices {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.special-offer-original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.special-offer-special-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.special-offers-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: var(--shadow-sm);
    padding: 0;
    z-index: 2;
}

.special-offers-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.special-offers-arrow svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 576px) {
    .special-offers-section {
        padding: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    .special-offer-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 140px;
    }

    .special-offers-arrow {
        display: none;
    }

    .special-offers-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .special-offer-card {
        flex: 0 0 calc(33.33% - 8px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .special-offer-card {
        flex: 0 0 calc(25% - 9px);
    }
}

/* ─── Special Offers Timer ─── */
.special-offers-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

.timer-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.timer-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    min-width: 70px;
    text-align: center;
}

/* ─── Out of Stock Overlay ─── */
.special-offer-out-of-stock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    z-index: 3;
    white-space: nowrap;
}

/* ─── Star Rating (Interactive) ─── */
.star-rating {
    direction: ltr;
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}
.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.star-rating label {
    cursor: pointer;
    font-size: 28px;
    color: #d1d5db;
    transition: color 0.2s;
    line-height: 1;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b;
}

/* ─── Stars Display (Read-only) ─── */
.stars-display {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 1px;
}
.stars-display .star-empty {
    color: #d1d5db;
}
.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rating-average {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.rating-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ─── Review Items ─── */
.review-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-sm);
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.review-meta {
    flex: 1;
}
.review-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.review-date {
    font-size: 11px;
    color: var(--text-muted);
}
.review-stars {
    font-size: 14px;
    color: #f59e0b;
}
.review-body {
    margin-bottom: var(--space-sm);
}
.review-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.review-comment {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.review-footer {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}
.review-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
}
.vote-helpful .bi-hand-thumbs-up,
.vote-helpful .bi-hand-thumbs-down {
    font-size: 16px;
}
.helpful-count, .not-helpful-count {
    font-size: 12px;
}
.review-login-prompt {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
}
.review-login-prompt .bi {
    font-size: 48px;
    display: block;
    margin-bottom: var(--space-sm);
}
.review-tab-count {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-right: 4px;
}
.reviews-summary-card {
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}
.rating-big {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}
.rating-big + .stars-display {
    font-size: 18px;
}
.rating-total-text {
    font-size: 12px;
    color: var(--text-muted);
}
.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.rating-bar-label {
    font-size: 12px;
    width: 60px;
    text-align: left;
}
.rating-progress {
    flex: 1;
    height: 6px;
}
.rating-bar-count {
    font-size: 12px;
    width: 30px;
    text-align: right;
    color: var(--text-muted);
}
.rating-bars {
    max-width: 300px;
}

/* ─── Admin Review Reply ─── */
.admin-reply {
    border-right: 3px solid var(--primary);
    padding-right: var(--space-md);
    margin-top: var(--space-sm);
}
.admin-reply .admin-name {
    font-weight: 600;
    font-size: 13px;
}
.admin-reply .admin-date {
    font-size: 11px;
    color: var(--text-muted);
}
.admin-reply .reply-text {
    font-size: 14px;
    margin-top: 4px;
}

/* ─── Motorcycle Selection Pages ─── */
.search-bar-wrapper {
    max-width: 600px;
    margin: 0 auto;
}
.search-form-mc {
    flex-wrap: nowrap;
}
.mc-filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    min-width: 108px;
    padding: 12px 20px;
    font-weight: 600;
    transition: background-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
.mc-filter-btn:hover {
    transform: translateY(-1px);
}
.mc-filter-btn:active {
    transform: translateY(1px);
}
.mc-filter-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25);
}
.mc-filter-btn:disabled {
    background-color: #adb5bd !important;
    border: none !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 1;
    transform: none !important;
    box-shadow: none !important;
}
.mc-brand-logo {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 4px;
    background: #fff;
}
.mc-brand-section h5 {
    font-size: 18px;
}
.mc-model-card {
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fff;
}
.mc-model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}
.mc-model-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
}
.mc-model-placeholder {
    font-size: 56px;
    line-height: 1;
}
.mc-model-link:hover .mc-model-card {
    border-color: var(--primary) !important;
}
.mc-detail-hero {
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
}
.mc-category-group {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mc-category-group:last-of-type {
    border-bottom: none;
}
.mc-brand-logo img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .search-bar-wrapper { max-width: 100%; }
    .search-form-mc { flex-wrap: wrap; }
    .mc-filter-btn {
        width: 100%;
        min-width: 0;
    }
    .mc-brand-section h5 { font-size: 16px; }
    .mc-model-placeholder { font-size: 40px; }
}

/* ════════════════════════════════════════
   Product Reviews — Digikala Style Cards
   ════════════════════════════════════════ */
.digi-review-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}

.digi-review-card:hover {
    box-shadow: var(--shadow-sm);
}

.digi-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.digi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9f7ee;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}

.digi-review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.digi-review-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.digi-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e9f7ee;
    color: #16a34a;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.digi-review-date {
    font-size: 11px;
    color: var(--text-muted);
}

.digi-review-body {
    padding-right: 56px;
}

.digi-review-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.digi-pros,
.digi-cons {
    background: #f6fdf8;
    border: 1px solid #d5f1df;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
}

.digi-cons {
    background: #fdf6f6;
    border-color: #f6d5d5;
}

.digi-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.digi-label-positive {
    color: #16a34a;
}

.digi-label-negative {
    color: #dc2626;
}

.digi-pros p,
.digi-cons p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.digi-review-comment {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 8px 0 0;
}

/* ─── Admin Reply — Pastel Green Box ─── */
.digi-admin-reply {
    margin-top: 16px;
    margin-right: 56px;
    background: #effcf4;
    border: 1px solid #c8f0d8;
    border-right: 4px solid #16a34a;
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.digi-admin-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.digi-admin-reply-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    color: #16a34a;
}

.digi-admin-reply-name i {
    font-size: 15px;
}

.digi-official-badge {
    background: #16a34a;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.digi-admin-reply-date {
    font-size: 11px;
    color: var(--text-muted);
}

.digi-admin-reply-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ─── Vote Buttons ─── */
.digi-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.digi-vote-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.digi-vote-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

.digi-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.digi-vote-btn i {
    font-size: 15px;
}

.digi-vote-btn:hover {
    border-color: #16a34a;
    color: #16a34a;
}

.digi-vote-btn.voted {
    background: #e9f7ee;
    border-color: #16a34a;
    color: #16a34a;
    font-weight: 600;
}

.digi-vote-btn[data-vote-type="2"]:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.digi-vote-btn[data-vote-type="2"].voted {
    background: #fdeeee;
    border-color: #dc2626;
    color: #dc2626;
}

.digi-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.15s;
}

.digi-report-btn:hover {
    color: #dc2626;
}

@media (max-width: 575.98px) {
    .digi-review-body {
        padding-right: 0;
    }
    .digi-admin-reply {
        margin-right: 0;
    }
    .digi-vote-label {
        display: none;
    }
}

