:root { color-scheme: light dark; --primary: #6a346a; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
body { margin: 0; font-family: Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; direction: rtl; }
button, input, select, textarea { font-family: inherit; }
a, a:hover { text-decoration: none; }
.app-header { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--primary); color: white; }
main { padding: 16px; padding-bottom: 76px; }
button { padding: 8px 12px; border: 0; border-radius: 6px; background: var(--primary); color: white; cursor: pointer; }
button[hidden] { display: none; }
pre { background: rgba(0,0,0,0.06); padding: 12px; border-radius: 6px; overflow: auto; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: #ffffff; border-top: 1px solid rgba(0,0,0,0.1); display: flex; justify-content: center; }
.bottom-nav a { display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; text-decoration: none; color: #0f172a; font-weight: 600; flex: 0 0 calc(min(480px, 100vw) / 5); }
.bottom-nav a { position: relative; }
.badge { position: absolute; top: 4px; inset-inline-end: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.bottom-nav a .icon { width: 22px; height: 22px; }
.bottom-nav a span { font-size: 12px; line-height: 1; }
.bottom-nav a.active { color: var(--primary); }

.view-container { max-width: 480px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; }

.search-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 16px; }
.input-with-icon { position: relative; }
.input-with-icon .icon { position: absolute; inset-inline-end: 10px; inset-block-start: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #64748b; pointer-events: none; }
.search-bar input { padding: 10px 36px 10px 12px; border: 1px solid rgba(0,0,0,0.15); border-radius: 8px; background: #fff; width: 100%; }
.search-bar button { white-space: nowrap; }
.suggestions { position: absolute; inset-inline-start: -16px; inset-inline-end: -16px; top: 100%; margin-top: 4px; background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); z-index: 20; max-height: 280px; overflow: auto; }
.suggestion-item { display: block; padding: 8px 12px; color: #0f172a; cursor: pointer; }
.suggestion-item:hover { background: #f8fafc; }
.suggestion-item + .suggestion-item { border-top: 1px solid rgba(0,0,0,0.06); }

.banner { width: 100%; margin: 0 0 12px 0; }
.banner img { width: 100%; height: auto; display: block; border-radius: 8px; }

.section-special { background: var(--primary); color: #fff; padding: 12px; border-radius: 10px; margin-bottom: 12px; }
.section-special .section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.section-special h3 { margin: 0; font-size: 16px; }
.section-special .see-all { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 12px; opacity: 0.9; }
.section-special .see-all .arrow { width: 16px; height: 16px; }
.products-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 56%; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 6px; }
.products-slider { align-items: stretch; }
.product-card { background: #fff; color: #0f172a; border-radius: 10px; overflow: hidden; min-height: 160px; display: flex; flex-direction: column; text-decoration: none; }
.product-card img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 1 / 1; }
.product-card .info { padding: 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .title { font-size: 13px; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.3em * 2); }
.product-card .price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 36px; }
.product-card .prices { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.product-card .current-price { font-weight: 700; color: var(--primary); font-size: 14px; }
.product-card .old-price { color: #64748b; text-decoration: line-through; font-size: 12px; }
.product-card .discount { background: #ef4444; color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.product-card .add-to-cart { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 8px 10px; font-size: 13px; cursor: pointer; margin-top: auto; }

.section-cats { background: #fff; padding: 0; margin: 12px 0; }
.section-cats .section-head { padding: 0 4px 8px 4px; }
.section-cats h3 { margin: 0; font-size: 16px; }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 8px; border: 1px solid rgba(0,0,0,0.08); text-align: center; color: #0f172a; }
.cat-card img { width: 100%; height: auto; border-radius: 8px; }
.cat-card .title { font-size: 12px; }

.section-triple { margin: 12px 0; }
.triple-grid { display: flex; gap: 10px; align-items: stretch; }
.triple-grid .vertical-img { flex: 1 1 0; max-width: 50%; width: 100%; height: auto; border-radius: 10px; display: block; object-fit: cover; }
.triple-left { flex: 1 1 0; max-width: 50%; display: flex; flex-direction: column; gap: 10px; }
.triple-left .horizontal-img { width: 100%; height: 100%; border-radius: 10px; display: block; object-fit: cover; }

.section-banner { margin: 12px 0; }
.section-banner img { width: 100%; height: auto; border-radius: 10px; display: block; }

.section-daily { background: #fff; color: #0f172a; padding: 12px; border-radius: 10px; margin: 12px 0; }
.section-daily .section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.section-daily h3 { margin: 0; font-size: 16px; }
.section-daily .see-all { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; font-size: 12px; opacity: 0.9; }

.section-two { margin: 12px 0; }
.two-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-grid img { width: 100%; height: auto; border-radius: 10px; display: block; }

.section-seasonal { background: #fff; color: #0f172a; padding: 12px; border-radius: 10px; margin: 12px 0; }
.section-seasonal .section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.section-seasonal h3 { margin: 0; font-size: 16px; }
.section-seasonal .see-all { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; font-size: 12px; opacity: 0.9; }

/* Profile */
.view-title { margin: 0 0 12px 0; font-size: 18px; }
.profile-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.profile-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; color: #0f172a; background: #fff; }
.profile-item .icon { width: 22px; height: 22px; color: var(--primary); }
.profile-item span { font-weight: 600; }
.profile-social { margin-top: 16px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 12px; text-align: center; }
.profile-social-title { margin: 0 0 10px 0; font-size: 14px; }
.social-icons { display: flex; gap: 10px; justify-content: center; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); background: #fff; color: #0f172a; }
.social-btn[aria-label="Instagram"] { color: #E1306C; }
.social-btn[aria-label="Telegram"] { color: #229ED9; }
.social-btn[aria-label="WhatsApp"] { color: #25D366; }
.social-btn[aria-label="Twitter"] { color: #1DA1F2; }
.social-btn .icon { width: 28px; height: 28px; }

/* Search page */
.search-layout { display: grid; grid-template-columns: 30% 70%; grid-template-areas: 'cats filters'; gap: 12px; align-items: start; }
.filters { grid-area: filters; position: sticky; top: 8px; display: flex; flex-direction: column; gap: 10px; padding: 0; border-radius: 0; }
.accordion { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; }
.accordion-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #f8fafc; border: 0; cursor: pointer; color: #0f172a; font-weight: 700; }
.accordion-header .chev { width: 18px; height: 18px; color: #334155; }
.accordion-content { padding: 10px 12px; display: grid; gap: 8px; }
.filter-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #0f172a; }
.filter-item:hover { color: var(--primary); }
.filter-item .fs-brand-img { width: 100%; max-width: 120px; height: auto; border-radius: 8px; display: block; }
.filter-item .fs-brand-title { text-align: center; font-weight: 700; margin-top: 4px; }
/* Stack brand image and title vertically in Fast Search brands list */
#fs-brands .filter-item { flex-direction: column; align-items: center; gap: 6px; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 8px; background: #fff; }
.search-results { grid-area: cats; min-height: 200px; padding: 0; border-radius: 0; }
.view-container#fastsearch-page .search-layout { grid-template-columns: 25% 75%; grid-template-areas: 'filters cats'; }
.cats-vertical { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fast-item { display: block; padding: 8px 10px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; color: #0f172a; margin-top: 8px; }
.cats-vertical .cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cats-vertical .cat-card img { width: 100%; max-width: 180px; height: auto; object-fit: cover; }
.cats-vertical .cat-card .title { font-size: 14px; font-weight: 700; }

/* Removed stacking on small screens to keep columns side-by-side at all widths */
/* Product standalone page */
.product-page { display: block; }
.product-hero { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; margin-bottom: 16px; }
.product-hero img { width: 100%; height: auto; border-radius: 10px; background: #fff; }
.product-main h2 { margin: 0 0 8px 0; font-size: 18px; }
.product-description { background: #fff; border-radius: 10px; padding: 12px; line-height: 1.8; }
/* Single-column product layout at all widths */

/* Color swatches on product page */
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px 0; }
.color-swatch { width: auto; height: auto; padding: 6px 10px; border-radius: 999px; border: 2px solid #e5e7eb; box-shadow: 0 0 0 2px rgba(0,0,0,0.02) inset; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; }
.color-swatch[aria-checked="true"] { outline: 2px solid var(--primary); outline-offset: 2px; }
.color-swatch.is-image { background-size: cover; background-position: center; }
.color-swatch .tooltip { position: absolute; bottom: 110%; inset-inline-start: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 11px; white-space: nowrap; display: none; }
.color-swatch .color-label { color: #fff; font-weight: 800; font-size: 13px; line-height: 1; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,0.6); pointer-events: none; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,0.45); }
.color-swatch:hover .tooltip { display: block; }
/* Visible color name chip next to swatch */
.color-name { display: none; }

/* Product tabs */
.product-tabs { margin: 8px 0 12px 0; background: #fff; border-radius: 10px; border: 1px solid rgba(0,0,0,0.06); }
.product-tabs .tab-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; background: #f8fafc; border-bottom: 1px solid rgba(0,0,0,0.06); }
.product-tabs .tab-btn { background: #e2e8f0; color: #0f172a; border: 0; border-radius: 999px; padding: 6px 10px; font-weight: 700; cursor: pointer; width: 100%; }
.product-tabs .tab-btn.active { background: var(--primary); color: #fff; }
.product-tabs .tab-panels { padding: 10px; }
.product-tabs .tab-panel { line-height: 1.8; }
.product-tabs #tab-desc-content { text-align: justify; }
/* Specs table borders inside product tabs */
.product-tabs .tab-panel table { width: 100%; border-collapse: collapse; }
.product-tabs .tab-panel th,
.product-tabs .tab-panel td { border: 1px solid rgba(0,0,0,0.12); padding: 8px 10px; text-align: start; }
.product-tabs .tab-panel th { background: #f8fafc; font-weight: 800; }

/* Comment form */
.comment-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-weight: 600; color: #0f172a; }
.form-group input, .form-group select, .form-group textarea { padding: 8px 12px; border: 1px solid rgba(0,0,0,0.15); border-radius: 6px; font-family: inherit; }
.form-group textarea { resize: vertical; min-height: 80px; }
.submit-comment { background: var(--primary); color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; font-weight: 600; cursor: pointer; align-self: flex-start; }
.comments-list { margin-top: 16px; }
.comment-item { background: #f8fafc; border: 1px solid rgba(0,0,0,0.06); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comment-rate { color: #fbbf24; font-size: 14px; }
.comment-date { color: #64748b; font-size: 12px; }
.comment-text { line-height: 1.6; }

/* Fixed buy bar on product page */
.product-buybar { position: fixed; bottom: 64px; left: 50%; right: auto; transform: translateX(-50%); width: min(100%, 480px); background: #ffffff; border-top: 1px solid rgba(0,0,0,0.1); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 900; flex-direction: row; }
.product-buybar .buybar-price { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; direction: ltr; }
.product-buybar .current-price { font-weight: 800; color: var(--primary); font-size: 16px; }
.product-buybar .old-price { color: #64748b; text-decoration: line-through; font-size: 13px; }
.product-buybar .add-to-cart { padding: 10px 16px; font-size: 14px; border-radius: 8px; }

/* Ensure content not hidden behind buy bar */
main { padding-bottom: 120px; }

/* Filter page */
.filter-layout { display: grid; grid-template-columns: 25% 75%; gap: 12px; align-items: stretch; min-height: calc(100vh - 76px - 32px); }
.filter-col { border-radius: 10px; height: auto; }
.filter-col--green { background: transparent; display: flex; flex-direction: column; overflow: hidden; }
.filter-col--blue { background: transparent; }
/* Subcategories */
.subcats-grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 10px; align-content: start; grid-auto-rows: max-content; }
/* Products */
.products-grid { max-height: calc(100vh - 160px); overflow: auto; padding: 10px; display: grid; grid-template-columns: 1fr; gap: 10px; align-content: start; justify-content: start; grid-auto-rows: min-content; }
.fs-table-wrap { overflow: auto; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; }
.fs-table { width: 100%; border-collapse: collapse; }
.fs-table th, .fs-table td { padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,0.06); text-align: start; }
.fs-table th { background: #f8fafc; font-weight: 800; text-align: center;}
.fs-table a { color: inherit; text-decoration: none; }
.fs-table a:hover { text-decoration: underline; }
.fs-price { color: var(--primary); font-weight: 800; }
.fs-cat-head { text-align: center; font-size: 16px; }
.products-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; padding: 10px 10px 0 10px; }
.btn-light { background: #f8fafc; color: #0f172a; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 600; width: 100%; text-align: center; }
.product-card--compact { background: #fff; color: #0f172a; border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; border: 1px solid rgba(0,0,0,0.08); text-decoration: none; height: 120px; }
.product-card--compact img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: #fff; }
.product-card--compact .title { font-size: 14px; font-weight: 700; margin: 0 0 6px 0; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: grid; place-items: center; z-index: 1000; }
.modal-overlay[hidden] { display: none !important; }
.modal-dialog { width: min(92vw, 520px); max-height: 80vh; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; background: #f8fafc; border-bottom: 1px solid rgba(0,0,0,0.06); }
.modal-title { margin: 0; font-size: 18px; font-weight: 800; color: #0f172a; }
.btn-close { background: transparent; border: 0; font-size: 20px; line-height: 1; cursor: pointer; }
.modal-content { padding: 12px; overflow: auto; }

/* Add-to-cart success modal */
#addtocart-overlay .reserve-head { display: flex; align-items: center; gap: 10px; padding: 12px; }
#addtocart-overlay .reserve-check { width: 40px; height: 40px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; }
#addtocart-overlay .reserve-title { font-weight: 800; color: #0f172a; }
#addtocart-overlay .reserve-body { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; align-items: center; padding: 12px; }
#addtocart-overlay .reserve-body img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: #fff; }
#addtocart-overlay .reserve-body .p-title { font-weight: 700; color: #0f172a; margin: 0 0 6px 0; }
#addtocart-overlay .reserve-qty { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(0,0,0,0.1); border-radius: 999px; padding: 6px 10px; }
#addtocart-overlay .reserve-qty button { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; border: 0; cursor: pointer; color: #0f172a; }
#addtocart-overlay .reserve-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
#addtocart-overlay .btn-primary { background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 10px; font-weight: 800; cursor: pointer; }
#addtocart-overlay .btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; padding: 10px; font-weight: 800; cursor: pointer; }

/* Accordion inside modal */
.modal-accordion { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.modal-acc-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #e2e8f0; border: 0; cursor: pointer; font-weight: 800; font-size: 15px; color: #0f172a; }
.modal-acc-content { padding: 10px 12px; display: grid; gap: 10px; }
.filter-field { display: grid; gap: 8px; }
.modal-acc-content .filter-field { display: flex; align-items: center; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #f1f5f9; border-radius: 999px; font-size: 13px; }
.product-card--compact .price { font-size: 13px; color: var(--primary); font-weight: 700; }
.subcat-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 10px; color: #0f172a; text-decoration: none; }
.subcat-card img { width: 100%; height: auto; border-radius: 8px; background: #fff; }
.subcat-card .title { font-size: 14px; font-weight: 700; text-align: center; }

/* Profile detail rows */
.profile-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.profile-field label { margin: 0; font-weight: 600; }
.profile-field .value { }
.profile-field .right { display: flex; align-items: center; gap: 8px; }
/* Extra spacing for profile edit form */
#profile-root .form-group { margin-bottom: 14px; }

/* Orders */
.orders-list { display: grid; gap: 10px; }
.order-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 12px; display: grid; gap: 6px; color: #0f172a; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-price { color: var(--primary); }
/* Address */
.address-list { display: grid; gap: 10px; }
.address-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 12px; display: grid; gap: 6px; color: #0f172a; }
.address-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.addr-actions { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn { background: #f1f5f9; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 6px; cursor: pointer; color: #0f172a; }
.icon-btn svg, .icon-btn i { display: block; }
.supervisor-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.supervisor-name { font-weight: 800; }
.btn-choose { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; }

/* Order details status */
.order-status { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.status-steps { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px; }
.status-steps::before { content: ""; position: absolute; inset-inline: 16px; top: 15px; height: 2px; background: #e5e7eb; }
.status-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 0; }
.status-step .dot { width: 14px; height: 14px; border-radius: 999px; background: #e5e7eb; outline: 2px solid #cbd5e1; z-index: 1; }
.status-step.active .dot { background: var(--primary); outline-color: var(--primary); }
.status-step .label { font-size: 12px; color: #0f172a; font-weight: 700; }

/* Order details products */
.order-products { margin-top: 12px; }
.order-products-title { margin: 0 0 8px 0; font-size: 16px; font-weight: 800; }
.order-products-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.order-product-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center; }
.order-product-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; background: #fff; }
.order-product-info { display: flex; flex-direction: column; gap: 6px; }
.order-product-title { font-size: 14px; font-weight: 700; margin: 0; color: #0f172a; }
.order-product-price { color: var(--primary); font-weight: 800; }

/* Invoice title spacing */
.invoice-title { margin-top: 16px; }

/* By-label page two-column grid */
.products-grid--two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Light border for product cards on label search */
#labelsearch-page .product-card { border: 1px solid rgba(0,0,0,0.08); }
/* Simple banner slider */
.banner-slider { position: relative; width: 100%; overflow: hidden; border-radius: 10px; margin-bottom: 16px; }
.banner-slider img { width: 100%; height: 100%; object-fit: cover; display: none; border-radius: 10px; }
.banner-slider img.active { display: block; }
.banner-slider-controls { margin-top: 6px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.2); cursor: pointer; }
.banner-dot.active { background: var(--primary); }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.banner-arrow[hidden] { display: none; }
.banner-arrow.prev { inset-inline-start: 8px; }
.banner-arrow.next { inset-inline-end: 8px; }

/* Header constrained content wrapper */
.header-inner { max-width: 480px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; position: relative; }
.header-title-full { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; pointer-events: none; }