/* ========== RESET & VARIABLES ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --gray-light: #f5f5f7;
    --gray-mid: #e8e8ed;
    --gray-dark: #86868b;
    --border: #d2d2d7;
    --accent: #1d1d1f;
    --accent-hover: #333;
    --sidebar-width: 300px;
    --sidebar-bg: #fafafa;
    --sidebar-active: #e8e8ed;
    --sidebar-hover: #f0f0f4;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.18);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --red: #e53935;
    --green: #2e7d32;
    --profile-popover-width: 300px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinning {
    animation: spin 0.9s linear infinite;
}

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

/* ========== LOADING OVERLAY ========== */
#loadingOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ========== HEADER ========== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;  /* for popover */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;  /* for popover positioning */
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.brand-name {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.4px;
}

/* Menu button */
.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: var(--text);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button:hover { background: var(--gray-light); }

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    background: var(--gray-light);
    border: 1px solid transparent;
    padding: 9px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.nav-btn:hover {
    background: var(--gray-mid);
    border-color: var(--border);
}

.notification-btn {
    padding: 9px 12px;
}

.notification-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px; height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ========== SEARCH ========== */
.search-container { display: flex; justify-content: center; }

.search-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 48px;
    background: white;
    padding-left: 14px;
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
    max-width: 48dvw;
    margin: 30px 20px 0px 20px;
    flex: 1 1 auto;
    min-width: 200px;
}

.search-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

.search-icon { color: var(--gray-dark); font-size: 20px; }

.search-input {
    border: none;
    padding: 11px 8px 11px 6px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
    color: var(--text);
    flex: 1;
    min-width: 0;
}

.search-input::placeholder { color: var(--gray-dark); }

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 48px 48px 0;
    transition: background 0.2s;
}

.search-btn:hover { background: var(--accent-hover); }

.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 320px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.search-suggestions.visible { display: block; }

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.suggestion-item:hover { background: var(--gray-light); }

.suggestion-icon {
    font-size: 20px;
    color: var(--gray-dark);
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text);
}

.suggestion-type {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-left: auto;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-bar {
    border-bottom: 1px solid var(--gray-mid);
    background: var(--bg);
    padding: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
}

.breadcrumb-item {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.2s;
}

.breadcrumb-item:hover { background: var(--gray-light); }

.breadcrumb-item.active {
    font-weight: 600;
    color: #000;
    pointer-events: none;
}

.breadcrumb-separator {
    color: var(--gray-dark);
    font-weight: 300;
}

/* ========== APP CONTAINER ========== */
.app-container {
    display: flex;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* ========== LEFT SIDEBAR (CATALOG) ========== */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    height: calc(100vh - 73px);
    position: sticky;
    top: 73px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    display: flex;
    flex-direction: column;
}

/* Mobile profile inside sidebar */
.sidebar-profile-section {
    display: none;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: white;
}

.sidebar-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.sidebar-profile-avatar { font-size: 40px; color: var(--gray-dark); }

.sidebar-profile-info { display: flex; flex-direction: column; }
.sidebar-profile-name { font-weight: 600; font-size: 1rem; }
.sidebar-profile-role { font-size: 0.8rem; color: var(--gray-dark); }

.sidebar-profile-actions {
    display: flex;
    flex-direction: column;
    padding: 4px 0 8px;
}

.sidebar-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s;
    text-align: left;
    width: 100%;
}

.sidebar-profile-btn:hover { background: var(--sidebar-hover); }
.sidebar-logout-btn { color: var(--red); }
.sidebar-profile-divider { height: 1px; background: var(--border); margin: 4px 0; }

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

.sidebar-title { font-size: 1.15rem; font-weight: 700; }

.sidebar-close {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    color: var(--gray-dark);
}

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

.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--gray-mid); border-radius: 10px; }

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

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    border-left: 3px solid transparent;
    transition: background 0.15s;
    user-select: none;
}

.sidebar-item:hover { background: var(--sidebar-hover); }

.sidebar-item.active {
    background: var(--sidebar-active);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-item-icon { font-size: 20px; color: var(--gray-dark); }
.sidebar-item.active .sidebar-item-icon { color: var(--accent); }

.sidebar-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-dark);
    background: var(--gray-mid);
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

.sidebar-item.active .sidebar-item-count {
    background: var(--accent);
    color: #fff;
}

.expand-icon {
    font-size: 18px;
    transition: transform 0.2s;
}

.sidebar-category.expanded .expand-icon { transform: rotate(90deg); }

.sidebar-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.sidebar-sub-list.expanded {
    max-height: 2000px;
    opacity: 1;
}

.sidebar-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px 9px 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-sub-item:hover { background: var(--sidebar-hover); }

.sidebar-sub-item.active {
    background: var(--sidebar-active);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-sub-item-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gray-dark);
}

.sidebar-sub-item.active .sidebar-sub-item-dot { background: var(--accent); }

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 85;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ========== DESKTOP PROFILE POPOVER (dropdown) ========== */
.profile-sidebar-popover {
    position: absolute;
    top: 100%;
    left: 0;
    width: var(--profile-popover-width);
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 110;
    transform: translateY(-8px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    overflow: hidden;
}

.profile-sidebar-popover.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.profile-popover-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    background: var(--gray-light);
}

.profile-popover-avatar { font-size: 44px; color: var(--gray-dark); }

.profile-popover-info { display: flex; flex-direction: column; }
.profile-popover-name { font-weight: 600; font-size: 1rem; }
.profile-popover-role { font-size: 0.8rem; color: var(--gray-dark); }

.profile-popover-actions { padding: 6px 0; }

.profile-popover-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s;
    text-align: left;
    width: 100%;
    position: relative;
}

.profile-popover-btn:hover { background: var(--gray-light); }

.profile-popover-badge {
    position: absolute;
    right: 16px;
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px; height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.profile-popover-footer {
    border-top: 1px solid var(--border);
    padding: 4px 0;
}

.logout-popover-btn { color: var(--red); }

/* ========== CONTENT ========== */
.content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 24px 28px 40px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px;
    font-size: 1.2rem;
    color: var(--gray-dark);
}

/* ========== PRODUCT GRID ========== */
.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    aspect-ratio: 1 / 1;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.installment-hint {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

/* ========== PRODUCT PAGE ========== */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 90px;
}

.main-image-container {
    background: #fbfbfb;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.main-image {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: white;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail.active {
    border-color: var(--accent);
    border-width: 2px;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details { padding-top: 4px; }
.product-title { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }

.product-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--gray-dark);
}

.price-block { margin: 26px 0 22px; }
.current-price { font-size: 2.6rem; font-weight: 700; }

.installment-section {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin: 26px 0;
}

.installment-title {
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.installment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.installment-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px 6px;
    text-align: center;
    border: 1px solid var(--border);
}

.installment-months { font-weight: 600; font-size: 0.9rem; }
.installment-value { font-size: 1.2rem; font-weight: 700; }

.product-description {
    margin-top: 26px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.description-title { font-weight: 600; margin-bottom: 12px; }
.description-text {
    color: var(--gray-dark);
    line-height: 1.7;
    white-space: pre-line;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-container { transform: translateY(0); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h2 { font-size: 1.3rem; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: var(--gray-dark);
    transition: background 0.2s;
}

.modal-close:hover { background: var(--gray-light); }

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========== PRICING LIST ITEMS ========== */
.pricing-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.pricing-list-item:hover {
    background: var(--gray-light);
    box-shadow: var(--shadow-sm);
}

.pricing-list-item.selected {
    border-color: var(--accent);
    background: var(--gray-light);
}

.pricing-list-img {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #fbfbfb;
    border: 1px solid var(--gray-mid);
    flex-shrink: 0;
}

.pricing-list-info { flex: 1; min-width: 0; }
.pricing-list-name { font-weight: 600; font-size: 0.9rem; }
.pricing-list-cost { font-size: 0.8rem; color: var(--gray-dark); }

.pricing-list-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.pricing-list-status.priced { background: #e8f5e9; color: var(--green); }
.pricing-list-status.unpriced { background: #ffebee; color: var(--red); }

/* ========== PRICING FORM ========== */
.pricing-form { display: flex; flex-direction: column; gap: 16px; }

.pricing-form-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
}

.pricing-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pricing-form-field label { font-weight: 600; font-size: 0.85rem; color: var(--gray-dark); }
.pricing-form-field input {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.pricing-form-field input:focus { border-color: var(--accent); }

.currency-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(20px); }

.pricing-summary {
    background: var(--gray-light);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.9rem;
}

.pricing-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.btn {
    padding: 11px 22px;
    border-radius: 40px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--gray-light); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--gray-mid); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #c62828; }

/* ========== UNPRICED LIST ========== */
.unpriced-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-mid);
    cursor: pointer;
    transition: background 0.15s;
}
.unpriced-list-item:hover { background: var(--gray-light); }
.unpriced-list-img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: contain; background: #fbfbfb; border: 1px solid var(--gray-mid); }
.unpriced-list-info { flex: 1; }
.unpriced-list-name { font-weight: 500; font-size: 0.9rem; }
.unpriced-list-cat { font-size: 0.78rem; color: var(--gray-dark); }
.unpriced-list-arrow { color: var(--gray-dark); font-size: 20px; }

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    bottom: 24px; left: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #1d1d1f;
    color: white;
    padding: 13px 22px;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    font-size: 0.95rem;
    max-width: 420px;
    animation: slideIn 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.error { background: #d32f2f; }
.toast.success { background: #1b5e20; }

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* ========== PWA ========== */
.pwa-install-btn {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(46,125,50,0.4);
    cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .product-page { gap: 28px; }
    .installment-grid { grid-template-columns: repeat(2, 1fr); }
    .search-wrapper { max-width: 70dvw; }
}

@media (min-width: 769px) {
    .profile-sidebar-popover { display: block; }   /* managed by .open */
    .sidebar-profile-section { display: none !important; }
}

@media (max-width: 768px) {
    .header { padding: 10px 14px; }
    .brand-name { font-size: 1.3rem; }
    .nav-btn { padding: 9px; }
    .search-wrapper {
        width: 100dvw !important;
        max-width: 100dvw !important;
        margin: 16px 12px 0px 12px;
    }
    .search-input { min-width: 0; }
    .breadcrumb-bar .breadcrumb { padding: 10px 14px; font-size: 0.82rem; }

    .sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        z-index: 95;
        transform: translateX(-100%);
        width: 85vw;
        max-width: 320px;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: flex; }
    .sidebar-overlay { display: block; }
    .sidebar-profile-section { display: block; }
    .profile-sidebar-popover { display: none !important; }

    .main-content { padding: 16px 14px 30px; }
    .product-page { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .main-image-container { min-height: 260px; }
    .installment-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-container { width: 95%; max-height: 90vh; border-radius: var(--radius-lg); }
    .pricing-form-row { flex-direction: column; }
    .search-wrapper { margin: 16px 8px 0px 8px; }
}