/* Root variables for Premium Royal Navy & Ice White Theme */
:root {
    --bg-color: #ffffff;
    --text-color: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --border-color: #e2e8f0; /* Slate 200 */
    --border-hover: #cbd5e1; /* Slate 300 */
    --accent-color: #1e3a8a; /* Deep Royal Navy */
    --accent-hover: #1d4ed8; /* Brighter Blue */
    --accent-inverse: #ffffff;
    --card-bg: #ffffff;
    --hover-bg: #f8fafc; /* Slate 50 */
    
    /* Layout properties */
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    --font-sans: 'Inter', sans-serif;
    --font-khmer: 'Hanuman', serif;
    --transition-speed: 0.25s;
    
    /* Soft shadows */
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 10px 30px rgba(15, 23, 42, 0.1);
}

/* Dark Mode Variables Override */
[data-theme="dark"] {
    --bg-color: #0f172a; /* Slate 900 */
    --text-color: #f8fafc;
    --text-muted: #94a3b8; /* Slate 400 */
    --border-color: #1e293b; /* Slate 800 */
    --border-hover: #334155;
    --accent-color: #38bdf8; /* Sky Blue */
    --accent-hover: #7dd3fc;
    --accent-inverse: #0f172a;
    --card-bg: #1e293b; /* Slate 800 */
    --hover-bg: #0f172a;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    -webkit-font-smoothing: antialiased;
}

/* Apply Khmer font specifically when Khmer elements are active */
body.lang-kh, 
body.lang-kh *,
body.lang-kh button,
body.lang-kh input {
    font-family: var(--font-khmer), var(--font-sans) !important;
}

/* ----------------------------------------------------
   Khmer Font Sizing Adjustments (+4-6px to prevent shrinkage)
   ---------------------------------------------------- */
body.lang-kh .logo-subtitle {
    font-size: 13px !important;
    letter-spacing: 0.05em;
    font-weight: 700;
}

body.lang-kh .material-btn {
    font-size: 17px !important;
    font-weight: 700;
}

.lang-btn,
.lang-text {
    font-family: var(--font-khmer), var(--font-sans) !important;
    font-size: 16px !important;
    font-weight: 700;
}

body.lang-kh .lang-text {
    font-size: 18px !important;
    font-weight: 700;
}

body.lang-kh .bag-btn-label {
    font-size: 18px !important;
    font-weight: 700;
}

.bag-trigger-btn {
    padding: 10px 18px !important;
}

body.lang-kh .tab-btn {
    font-size: 17px !important;
    font-weight: 700;
}

body.lang-kh .filter-label {
    font-size: 15px !important;
    font-weight: 700;
}

body.lang-kh .btn-primary, 
body.lang-kh .btn-outline,
body.lang-kh .btn {
    font-size: 18px !important;
    font-weight: 700;
}

body.lang-kh .modal-price, 
body.lang-kh .product-price {
    font-size: 18px !important;
}

body.lang-kh #add-to-bag-btn {
    font-size: 19px !important;
    font-weight: 700;
    padding: 12px 24px;
}

/* Common UI Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--accent-inverse);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--hover-bg);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.icon-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed) ease;
}

.icon-btn:hover {
    border-color: var(--border-hover);
    background: var(--hover-bg);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

[data-theme="dark"] .header {
    background-color: rgba(15, 23, 42, 0.85);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    cursor: default;
}

.logo-accent {
    font-family: var(--font-khmer), var(--font-sans) !important;
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-family: var(--font-khmer), var(--font-sans) !important;
    font-size: 13px !important;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 4px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Badge */
.badge {
    background-color: var(--accent-color);
    color: var(--accent-inverse);
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    margin-left: 6px;
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 50px auto 35px auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Controls (Filters/Search) */
.controls-section {
    max-width: 1200px;
    margin: 0 auto 35px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.search-bar-container input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 14.5px;
    outline: none;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed) ease;
}

.search-bar-container input:focus {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

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

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
    padding: 8px 18px;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed) ease;
}

.tab-btn:hover {
    color: var(--text-color);
    border-color: var(--border-hover);
}

.tab-btn.active {
    background: var(--accent-color);
    color: var(--accent-inverse);
    border-color: var(--accent-color);
}

.material-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12.5px;
}

.filter-label {
    color: var(--text-muted);
    margin-right: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.material-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.material-btn:hover {
    color: var(--text-color);
    background: var(--hover-bg);
}

.material-btn.active {
    color: var(--accent-color);
    background: var(--hover-bg);
    border-color: var(--border-color);
}

/* Products Grid */
.products-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Product Card */
.product-card {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-image-container {
    aspect-ratio: 1.1;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.placeholder-vector {
    width: 32%;
    height: 32%;
    color: var(--accent-color);
    opacity: 0.7;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-sku {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
    color: var(--text-color);
}

.product-price {
    font-weight: 800;
    font-size: 15.5px;
    margin-top: auto;
    color: var(--text-color);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    box-shadow: var(--shadow-hover);
    animation: modalSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 26px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-image-wrapper {
    aspect-ratio: 1;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .modal-image-wrapper {
        border-right: 1px solid var(--border-color);
    }
}

.modal-info {
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.modal-sku {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.modal-price {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.modal-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-specs-container h4 {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.specs-table td {
    padding: 9px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--border-color);
}

.specs-table td:first-child {
    font-weight: 700;
    color: var(--text-muted);
    width: 40%;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: transparent;
    color: var(--text-color);
    width: 38px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
}

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

.quantity-selector input {
    width: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-weight: 600;
    outline: none;
}

/* Drawers (Inquiry Bag) */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.drawer.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--card-bg);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0px 40px rgba(15, 23, 42, 0.08);
}

.drawer.active .drawer-content {
    transform: translateX(0);
}

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

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

.drawer-close {
    font-size: 26px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.drawer-close:hover {
    color: var(--text-color);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 14.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.drawer-total-price {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    color: var(--accent-color);
}

.inquiry-btn {
    display: flex;
    gap: 10px;
    border-radius: var(--border-radius-md);
}

/* Inquiry Bag Item Card */
.bag-item {
    display: flex;
    gap: 14px;
    border: 1px solid var(--border-color);
    padding: 12px;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
}

.bag-item-img {
    width: 60px;
    height: 60px;
    background: var(--hover-bg);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.bag-item-img svg {
    color: var(--accent-color);
    width: 45%;
    height: 45%;
}

.bag-item-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bag-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.bag-item-price {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}

.bag-item-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12.5px;
}

.bag-item-qty-control span {
    font-weight: 700;
}

.bag-item-qty-btn {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 11px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bag-item-qty-btn:hover {
    background: var(--hover-bg);
}

.bag-item-remove {
    background: none;
    border: none;
    color: #b91c1c; /* Red 700 */
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 700;
    align-self: flex-start;
}

/* Empty Bag State */
.empty-bag-text {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
    font-size: 14px;
}

/* Empty State Styling */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
}

.empty-state svg {
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 700;
}

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

.hidden {
    display: none !important;
}

/* Footer Styling */
.footer {
    background-color: var(--hover-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: 80px;
    color: var(--text-muted);
    font-size: 13.5px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand-name {
    font-family: var(--font-khmer), var(--font-sans) !important;
    font-weight: 800;
    font-size: 16px !important;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.footer-brand-hours {
    font-family: var(--font-khmer), var(--font-sans) !important;
    font-size: 13px !important;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-info {
        align-items: flex-end;
    }
}

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

.footer-social-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-speed) ease;
}

.footer-social-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 40px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    animation: toastFade 0.25s ease-out forwards;
}

@keyframes toastFade {
    from {
        bottom: 14px;
        opacity: 0;
    }
    to {
        bottom: 24px;
        opacity: 1;
    }
}

/* Sun/Moon Display classes */
.system-theme .sun-icon {
    display: block;
}
.system-theme .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}
[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}
[data-theme="light"] .moon-icon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    .system-theme:not([data-theme="light"]) .sun-icon {
        display: block;
    }
    .system-theme:not([data-theme="light"]) .moon-icon {
        display: none;
    }
}

/* Mobile responsive grid supporting 2 items per column */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        border-radius: var(--border-radius-md);
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-sku {
        font-size: 9px;
    }
    
    .product-name {
        font-size: 13.5px;
        margin-bottom: 4px;
        line-height: 1.25;
    }
    
    .product-price {
        font-size: 13px;
    }

    body.lang-kh .product-name {
        font-size: 14.5px;
    }

    body.lang-kh .product-price {
        font-size: 14px;
    }
}

/* Visual Receipt Card Styling */
.receipt-card {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    font-family: var(--font-sans);
}

body.lang-kh .receipt-card {
    font-family: var(--font-khmer), var(--font-sans);
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-brand {
    font-family: var(--font-khmer), var(--font-sans) !important;
    font-size: 26px !important;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.2;
}

.receipt-subtitle {
    font-family: var(--font-khmer), var(--font-sans) !important;
    font-size: 13px !important;
    font-weight: 700;
    color: #475569;
    margin-top: 4px;
}

.receipt-dashed-line {
    border-top: 2px dashed #cbd5e1;
    margin: 15px 0;
}

.receipt-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
}

body.lang-kh .receipt-item {
    font-size: 15px;
}

.receipt-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.receipt-item-thumb {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.receipt-item-thumb svg {
    width: 50%;
    height: 50%;
    color: #1e3a8a;
}

.receipt-item-info {
    display: flex;
    flex-direction: column;
}

.receipt-item-name {
    font-weight: 700;
    font-family: var(--font-khmer), var(--font-sans) !important;
}

.receipt-item-qty {
    font-size: 11px;
    color: #64748b;
}

.receipt-item-price {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.receipt-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
}

body.lang-kh .receipt-row {
    font-size: 15px;
}

.receipt-grand-total {
    font-weight: 800;
    font-size: 15px;
    color: #1e3a8a;
}

body.lang-kh .receipt-grand-total {
    font-size: 17px;
}

.variants-container {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variant-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.variant-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.variant-select:focus {
    border-color: var(--accent-color);
}

