/* ═══════════════════════════════════════════
   MARKET — STYLE SHEET
   ═══════════════════════════════════════════ */

/* ── Reset & Variables ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --transition: .2s ease;

    --header-h: 64px;
    --sidebar-w: 280px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── HEADER ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: var(--header-h);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i { font-size: 1.3rem; }

.search-box {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: .9rem;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: .95rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}

.search-box input:focus {
    border-color: var(--primary);
    background: #fff;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: .85rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-btn i { font-size: 1rem; }

/* ── MAIN LAYOUT ── */
.main {
    padding: 24px 0;
    min-height: calc(100vh - var(--header-h));
}

.main__inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.sidebar h4 {
    font-size: .9rem;
    margin-bottom: 10px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.category-list {
    list-style: none;
    margin-bottom: 20px;
}

.category-list li {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list li:hover,
.category-list li.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.category-list li i {
    width: 18px;
    text-align: center;
    font-size: .85rem;
}

.filter-section {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

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

.filter-group label {
    display: block;
    font-size: .8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    outline: none;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
}

/* ── CONTENT ── */
.content {
    flex: 1;
    min-width: 0;
}

/* ── PRODUCT GRID ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    position: relative;
}

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

.product-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg);
    display: block;
}

.product-card__img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    color: var(--text-secondary);
    font-size: 3rem;
}

.product-card__body {
    padding: 16px;
}

.product-card__title {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.product-card__price-original {
    font-size: .8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.product-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .78rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.product-card__meta i {
    margin-right: 3px;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-new { background: #dcfce7; color: #16a34a; }
.badge-ideal { background: #dbeafe; color: #2563eb; }
.badge-good { background: #fef9c3; color: #ca8a04; }
.badge-normal { background: #fce7f3; color: #db2777; }

.product-card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.product-card__fav:hover,
.product-card__fav.active {
    color: var(--danger);
    background: #fff;
}

/* ── PRODUCT DETAIL ── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.product-detail__gallery {
    position: relative;
}

.product-detail__main-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.product-detail__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.product-detail__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.product-detail__thumb:hover,
.product-detail__thumb.active {
    border-color: var(--primary);
}

.product-detail__info h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.product-detail__info .category-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.price-block {
    background: linear-gradient(135deg, var(--primary-light), #f5f3ff);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.price-block__main {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.price-block__detail {
    font-size: .85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.price-block__tax {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--primary);
    font-size: .82rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-specs {
    margin: 16px 0;
}

.detail-specs dt {
    font-size: .8rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.detail-specs dd {
    font-size: .95rem;
    font-weight: 500;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.product-detail__description {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-detail__description h3 {
    margin-bottom: 8px;
}

/* Seller card in detail */
.seller-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.seller-card:hover {
    background: var(--primary-light);
}

.seller-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.seller-card__name {
    font-weight: 600;
    font-size: .95rem;
}

.seller-card__rating {
    font-size: .82rem;
    color: var(--warning);
}

/* ── BREADCRUMB / BACK ── */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: .85rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: var(--success-dark); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #dc2626; }

.btn-warning {
    background: var(--warning);
    color: #fff;
}
.btn-warning:hover { background: #d97706; }

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

.btn-block { width: 100%; }

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

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn .25s ease;
}

.modal-lg { max-width: 740px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: #fff;
}

.modal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: .9rem;
    transition: var(--transition);
    color: var(--text-secondary);
}

.tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.modal h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── FORMS ── */
.modal-form,
#addProductForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.form-group label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.form-row {
    display: flex;
    gap: 14px;
}

.flex-2 { flex: 2; }

.attr-fields {
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    background: #fafafe;
}

.attr-fields h4 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: .9rem;
}

/* Size checkboxes (clothing/shoes) */
.size-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    transition: all .15s ease;
    user-select: none;
    background: var(--bg-card);
}

.size-check:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.size-check input[type="checkbox"] {
    display: none;
}

.size-check:has(input:checked) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Size badges (product detail) */
.size-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .8rem;
    font-weight: 600;
    margin: 1px 0;
}

/* Price preview */
.price-preview {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    border: 1px solid #bbf7d0;
}

.price-preview__row {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    padding: 2px 0;
}

.price-preview__total {
    border-top: 1px dashed var(--success);
    margin-top: 6px;
    padding-top: 6px;
    font-size: .95rem;
    color: var(--success-dark);
}

/* File upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.file-upload i { font-size: 2rem; margin-bottom: 8px; }

.image-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

/* ── TOAST ── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 500;
    color: #fff;
    z-index: 300;
    opacity: 0;
    transition: .35s ease;
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    text-align: center;
}

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

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }

/* ── FAB ── */
.fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ── LOADER ── */
.loader {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: .3;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* ── ORDERS TABLE ── */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-card__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--bg);
}

.order-card__info { flex: 1; }

.order-card__title { font-weight: 600; margin-bottom: 4px; }

.order-card__meta {
    font-size: .82rem;
    color: var(--text-secondary);
}

.order-card__actions { display: flex; gap: 8px; }

/* ── Status badges ── */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-agreed { background: #dbeafe; color: #1e40af; }
.status-completed { background: #dcfce7; color: #166534; }
.status-canceled { background: #fee2e2; color: #991b1b; }
.status-active { background: #dcfce7; color: #166534; }
.status-moderation { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-sold { background: #e0e7ff; color: #3730a3; }
.status-archived { background: #f1f5f9; color: #475569; }

/* ── PROFILE ── */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 600px;
}

.profile-card__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.profile-card__name { font-size: 1.3rem; font-weight: 700; }
.profile-card__role { color: var(--text-secondary); font-size: .85rem; }

.profile-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.profile-stat {
    text-align: center;
    flex: 1;
}

.profile-stat__num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat__label {
    font-size: .78rem;
    color: var(--text-secondary);
}

/* ── Seller detail page ── */
.seller-page__header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.seller-page__logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg);
}

.seller-page__name { font-size: 1.3rem; font-weight: 700; }
.seller-page__meta { font-size: .85rem; color: var(--text-secondary); }

/* ── REVIEWS ── */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-card__stars {
    color: var(--warning);
    font-size: .85rem;
}

.review-card__author {
    font-weight: 600;
    font-size: .9rem;
}

.review-card__date {
    font-size: .78rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.review-card__text {
    font-size: .9rem;
    color: var(--text);
}

/* ── PAGINATION ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .85rem;
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ── ADDRESS OPTIONS ── */
.address-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}

.radio-option:hover {
    border-color: var(--primary-light);
}

.radio-option input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--primary);
}

.radio-option input[type="radio"]:checked + span {
    color: var(--primary);
}

.radio-option span {
    font-size: .9rem;
    line-height: 1.4;
}

/* ── ORDER ADDRESS ── */
.order-address {
    font-size: .85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    padding: 6px 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.order-address i {
    color: var(--danger);
    margin-right: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .main__inner { flex-direction: column; }
    .sidebar {
        width: 100%;
        min-width: 100%;
        position: static;
    }
    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header__inner { gap: 10px; }
    .nav-btn span { display: none; }
    .search-box { max-width: none; }
    .form-row { flex-direction: column; gap: 10px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-card__img,
    .product-card__img-placeholder { height: 150px; }
    .detail-actions { flex-direction: column; }
    .modal { padding: 20px; }
}

