
/* =====================================
   HOANGDZ STORE - MAIN STYLESHEET
===================================== */

:root {
    --primary: #1769ff;
    --primary-dark: #0953d9;
    --dark: #101828;
    --text: #344054;
    --muted: #667085;
    --background: #f7f9fc;
    --white: #ffffff;
    --border: #eaecf0;
    --radius: 18px;
    --shadow: 0 12px 35px rgba(16, 24, 40, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

.section-padding {
    padding: 90px 0;
}

/* TOP BAR */

.top-bar {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 9px 15px;
    font-size: 12px;
    letter-spacing: 1px;
}

/* HEADER */

.header {
    background: rgba(255,255,255,0.96);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(15px);
}

.navbar {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.admin-analytics-source {
    display: inline-flex;
    margin: 0.4rem 0 0;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: #e9f2ff;
    color: #174ea6;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-analytics-source[hidden] {
    display: none;
}

.admin-analytics-source[data-mode="demo"] {
    background: #fff3cd;
    color: #765500;
}

.admin-analytics-source[data-mode="local"] {
    background: #e9ecef;
    color: #41464b;
}

.logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-actions button {
    border: 0;
    background: none;
    font-size: 19px;
    color: var(--dark);
    position: relative;
}

.nav-actions .account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.account-toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-toggle:hover {
    background: #f9fafb;
}

.nav-actions .admin-orders-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.nav-actions .customer-orders-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.customer-orders-toggle:hover {
    background: #f9fafb;
}

.admin-orders-toggle:hover,
.admin-refresh:hover,
.admin-pagination button:hover:not(:disabled) {
    background: #f0f5ff;
    border-color: #b2ccff;
}

#cart-count {
    position: absolute;
    top: -11px;
    right: -12px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
}

.menu-toggle {
    display: none;
}

.search-box {
    display: block;
    padding: 0 0 14px;
}

.catalog-search {
    width: min(680px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
}

.catalog-search:focus-within {
    border-color: #9bbcff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, .1);
}

.catalog-search input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--dark);
}

.catalog-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

/* HERO */

.hero {
    background: linear-gradient(120deg, #f4f7ff, #e9f0ff);
    overflow: hidden;
    padding: 65px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.2;
    letter-spacing: -3px;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text p {
    color: var(--muted);
    max-width: 480px;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 9px;
    padding: 14px 23px;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(23,105,255,.22);
}

.hero-image {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: #f5f5f3;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-tag {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: white;
    padding: 15px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.hero-tag span {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
}

.hero-tag strong {
    font-size: 25px;
}

/* SECTION HEADING */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 35px;
}

.section-heading h2,
.about h2 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -1.3px;
    line-height: 1.3;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
    max-width: 350px;
}

.section-heading select {
    border: 1px solid var(--border);
    padding: 12px 15px;
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: white;
}

/* CATEGORIES */

.categories {
    background: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 17px;
}

.category-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px 10px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    transition: .3s;
    color: var(--text);
}

.category-card i {
    font-size: 25px;
    color: var(--primary);
}

.category-card span {
    font-size: 12px;
    font-weight: 700;
}

.category-card:hover,
.category-card.active {
    border-color: var(--primary);
    background: #f0f5ff;
    transform: translateY(-4px);
}

/* BRANDS AND CATALOG SHELVES */

.brand-showcase {
    background: #f7f9fc;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.brand-card {
    min-width: 0;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    color: var(--dark);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.brand-card:hover,
.brand-card.active {
    transform: translateY(-4px);
    border-color: #a9c5ff;
    box-shadow: var(--shadow);
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #f0f5ff;
    color: var(--primary);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-card[data-brand="Samsung"] .brand-mark {
    border-radius: 50%;
    background: #eaf5ff;
    color: #1428a0;
    font-size: 17px;
}

.brand-card[data-brand="ASUS"] .brand-mark {
    background: #f0f5ff;
}

.brand-card[data-brand="LG"] .brand-mark {
    border-radius: 50%;
    background: #fff0f4;
    color: #a50034;
}

.brand-card[data-brand="Lenovo"] .brand-mark {
    background: #fff1f0;
    color: #e2231a;
}

.brand-name {
    font-size: 14px;
    font-weight: 800;
}

.brand-product-count {
    color: var(--muted);
    font-size: 11px;
}

.catalog-shelf {
    background: white;
}

.catalog-shelf:nth-of-type(even) {
    background: #f7f9fc;
}

.product-shelf {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.text-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.text-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* PRODUCTS */

.products {
    background: var(--background);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    min-width: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 225px;
    background: #f2f4f7;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .4s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e8f1ff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 5px;
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--dark);
    font-size: 11px;
    font-weight: 800;
    margin-top: 9px;
}

.product-brand-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.product-info h3 {
    font-size: 14px;
    line-height: 1.5;
    margin: 5px 0 9px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.product-price-row {
    min-height: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 9px;
    margin: 0 0 8px;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.product-original-price {
    color: var(--muted);
    font-size: 11px;
}

.product-discount {
    padding: 2px 6px;
    border-radius: 5px;
    background: #fff0f0;
    color: #c62828;
    font-size: 10px;
    font-weight: 800;
}

.product-stock {
    margin: auto 0 12px;
    min-height: 18px;
    color: #16794b;
    font-size: 11px;
    font-weight: 700;
}

.product-stock.out-of-stock {
    color: #b42318;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
}

.product-details-button,
.add-cart {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--dark);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    transition: .2s;
}

.product-details-button {
    background: white;
    color: var(--dark);
}

.product-details-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.add-cart {
    background: var(--dark);
    color: white;
}

.add-cart:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.add-cart:disabled {
    background: #e4e7ec;
    border-color: #e4e7ec;
    color: #667085;
    cursor: not-allowed;
}

.products-heading {
    align-items: center;
}

.product-results-count {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.product-filter-panel {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.4fr) minmax(150px, 1fr) auto;
    align-items: end;
    gap: 13px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.product-filter-panel label,
.price-range-filter {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-filter-panel label > span,
.price-range-filter > span {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.product-filter-panel select,
.price-range-filter input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    outline: none;
}

.product-filter-panel select:focus,
.price-range-filter input:focus {
    border-color: #9bbcff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, .1);
}

.price-range-filter > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.clear-filters-button,
.secondary-button,
.load-more-button {
    border: 1px solid #c7d7fe;
    border-radius: 8px;
    background: #f0f5ff;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 11px 14px;
}

.clear-filters-button:hover,
.secondary-button:hover,
.load-more-button:hover {
    background: #e0eaff;
}

.brand-filter-status {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 13px;
}

.empty-message {
    display: grid;
    justify-items: center;
    gap: 13px;
}

.load-more-button {
    display: block;
    margin: 28px auto 0;
    min-width: 190px;
}

.product-detail-modal-box {
    position: relative;
    width: min(820px, 100%);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}

.product-detail-modal-box > .modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f2f4f7;
}

.product-detail-content {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 28px;
}

.product-detail-image {
    min-height: 300px;
    padding: 20px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f7f9fc;
}

.product-detail-image img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.product-detail-copy h2 {
    margin-bottom: 8px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-detail-copy > p {
    margin: 14px 0;
    color: var(--text);
    font-size: 13px;
}

.product-spec-list {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.product-spec-list li {
    display: grid;
    grid-template-columns: minmax(110px, .7fr) 1.3fr;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.product-spec-list strong {
    color: var(--dark);
}

.product-spec-list span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.empty-message {
    text-align: center;
    color: var(--muted);
    padding: 35px;
}

/* PROMOTION */

.promo {
    background: var(--dark);
    color: white;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.promo .eyebrow {
    color: #8cb3ff;
}

.promo h2 {
    font-size: clamp(28px, 4vw, 45px);
    line-height: 1.3;
    letter-spacing: -1.5px;
    margin-bottom: 17px;
}

.promo p {
    color: #aab5c7;
    font-size: 13px;
    margin-bottom: 25px;
}

.promo-icon {
    font-size: 160px;
    color: #347dff;
    opacity: .85;
}

/* ABOUT */

.about-content {
    text-align: center;
}

.about-content > h2 {
    margin-bottom: 45px;
}

/* CUSTOMER ORDERS */

.customer-orders {
    background: #f4f7fb;
    border-top: 1px solid var(--border);
}

.customer-orders-list {
    display: grid;
    gap: 14px;
}

.order-tracking {
    background: #f4f7fb;
    border-top: 1px solid var(--border);
}

.tracking-lookup-form {
    display: grid;
    gap: 9px;
    max-width: 760px;
    margin-bottom: 18px;
    padding: 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.tracking-lookup-form label,
.checkout-card-panel label {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.tracking-lookup-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.tracking-lookup-form input {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-transform: uppercase;
}

.tracking-lookup-form small {
    color: var(--muted);
}

.tracking-lookup-result {
    max-width: 900px;
}

.tracking-result-card {
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .03);
}

.tracking-result-heading,
.checkout-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.tracking-result-heading h3,
.checkout-card-heading h3 {
    margin: 5px 0 0;
}

.tracking-result-heading > strong,
.virtual-tracking-code {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tracking-result-card > p {
    margin-top: 12px;
    color: var(--muted);
}

.tracking-error {
    color: #b42318;
}

.virtual-tracking-label,
.demo-payment-badge {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.virtual-tracking-admin {
    margin-top: 16px;
}

.virtual-tracking-admin > label {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.virtual-tracking-admin select {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.virtual-tracking-admin button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.virtual-tracking-admin button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.virtual-tracking-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    overflow: visible;
    padding: 0;
}

.virtual-tracking-timeline .customer-progress-step {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 9px;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
}

.virtual-tracking-timeline .customer-progress-step:not(:last-child)::after {
    position: absolute;
    top: 17px;
    left: 38px;
    right: -12px;
    height: 2px;
    background: var(--border);
    content: "";
}

.virtual-tracking-timeline .customer-progress-step.is-complete::after {
    background: var(--primary);
}

.tracking-step-marker {
    position: relative;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: white;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.virtual-tracking-timeline .is-complete .tracking-step-marker {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.virtual-tracking-timeline .is-current .tracking-step-marker {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    color: var(--primary);
}

.virtual-tracking-timeline .is-current.is-complete .tracking-step-marker {
    color: white;
}

.tracking-step-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tracking-step-content strong {
    color: var(--dark);
    font-size: 11px;
}

.tracking-step-content > span,
.tracking-step-content time {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.virtual-tracking-timeline .is-current .tracking-step-content strong {
    color: var(--primary);
}

.order-status-history {
    padding-top: 16px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.order-status-history h4 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 13px;
}

.order-status-history-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.order-status-history-item {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding-bottom: 16px;
}

.order-status-history-item:not(:last-child)::after {
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 4px;
    width: 2px;
    background: var(--border);
    content: "";
}

.order-status-history-marker {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: white;
}

.order-status-history-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    min-width: 0;
}

.order-status-history-content strong {
    color: var(--text);
    font-size: 12px;
}

.order-status-history-content p,
.order-status-history-content > span,
.order-status-history-content time {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.order-status-history-content p {
    grid-column: 1 / -1;
}

.order-status-history-content time {
    text-align: right;
}

.order-status-history-empty,
.order-status-history-notice {
    padding: 12px;
    margin: 0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.order-status-history-notice {
    margin-bottom: 12px;
}

.customer-order-card {
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .03);
}

.customer-order-card-header,
.customer-order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.customer-order-card-header {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}

.customer-order-card-header strong {
    font-size: 13px;
}

.customer-order-card-header time {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.customer-order-items {
    display: grid;
    gap: 10px;
    padding: 14px 0;
}

.customer-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.customer-order-item img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.customer-order-image-placeholder {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f9fafb;
    color: #98a2b3;
}

.customer-detail-item .customer-order-image-placeholder {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
}

.customer-order-item-info {
    flex: 1;
    min-width: 0;
}

.customer-order-item-info strong {
    display: block;
    overflow: hidden;
    color: var(--dark);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-order-item-info span {
    color: var(--muted);
    font-size: 11px;
}

.customer-order-card-footer {
    padding-top: 13px;
    border-top: 1px solid var(--border);
}

.customer-order-card-total {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.customer-order-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-order-actions button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.customer-order-actions button:hover {
    text-decoration: underline;
}

.customer-orders-message {
    padding: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

.customer-order-modal-box {
    width: min(1040px, 100%);
    max-height: min(92vh, 1100px);
    overflow-y: auto;
}

.customer-detail-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    padding-right: 28px;
    margin-bottom: 22px;
}

.customer-detail-heading h2 {
    margin: 0 0 6px;
}

.customer-detail-heading p {
    color: var(--muted);
    font-size: 12px;
}

.customer-order-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 25px 0;
}

.customer-progress-step {
    position: relative;
    padding-top: 14px;
    border-top: 3px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.customer-progress-step.is-complete,
.customer-progress-step.is-current {
    border-color: var(--primary);
    color: var(--primary);
}

.customer-progress-step.is-current {
    font-weight: 800;
}

.customer-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.customer-detail-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.customer-detail-card h3,
.customer-detail-items h3 {
    margin-bottom: 10px;
    font-size: 13px;
}

.customer-detail-card p {
    margin-top: 5px;
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.customer-detail-items {
    margin-bottom: 20px;
}

.customer-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.customer-detail-item img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    object-fit: contain;
}

.customer-detail-item-info {
    flex: 1;
    font-size: 12px;
}

.customer-detail-item-info span {
    display: block;
    color: var(--muted);
}

.customer-detail-item > strong {
    font-size: 12px;
    white-space: nowrap;
}

.customer-detail-total {
    display: flex;
    justify-content: space-between;
    padding-top: 13px;
    font-weight: 800;
}

.customer-cancelled-message {
    padding: 14px;
    margin: 20px 0;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.customer-invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.customer-invoice-actions button {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.customer-invoice-actions .customer-cancel-order {
    border-color: #fecdca;
    color: #b42318;
}

.customer-invoice-actions .customer-print-invoice {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* ADMIN ORDERS */

.admin-orders {
    background: #f4f7fb;
    border-top: 1px solid var(--border);
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-heading h2 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -1.3px;
    line-height: 1.3;
}

.admin-heading p {
    color: var(--muted);
    margin-top: 8px;
    font-size: 13px;
}

.admin-refresh,
.admin-pagination button {
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.admin-stat-card {
    position: relative;
    min-height: 120px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .03);
}

.admin-stat-card > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.admin-stat-card strong {
    display: block;
    margin-top: 9px;
    font-size: 25px;
    line-height: 1.2;
}

.admin-stat-card small {
    display: block;
    margin-top: 5px;
    color: var(--primary);
    font-weight: 700;
}

.admin-stat-card > i {
    position: absolute;
    top: 20px;
    right: 18px;
    color: #b2ccff;
    font-size: 19px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    margin-bottom: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-search {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
}

.admin-search input,
.admin-toolbar select {
    height: 42px;
    border: 0;
    outline: none;
    background: white;
    color: var(--text);
    font-size: 12px;
}

.admin-search input {
    width: 100%;
}

.admin-toolbar select {
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-filter-button {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.admin-filter-button:hover {
    background: var(--primary-dark);
}

.admin-table-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-orders-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: left;
}

.admin-orders-table th {
    padding: 14px 16px;
    background: #f9fafb;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.admin-orders-table td {
    padding: 14px 16px;
    border-top: 1px solid #f0f1f3;
    color: var(--text);
    font-size: 12px;
    vertical-align: middle;
}

.admin-order-id {
    color: var(--primary);
    font-weight: 800;
}

.admin-customer-name {
    display: block;
    color: var(--dark);
    font-weight: 700;
}

.admin-customer-email {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    background: #f2f4f7;
    color: #475467;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status-badge[data-status="pending"],
.admin-status-badge[data-status="unpaid"] {
    background: #fff7e6;
    color: #b54708;
}

.admin-status-badge[data-status="confirmed"],
.admin-status-badge[data-status="preparing"],
.admin-status-badge[data-status="paid"] {
    background: #eff8ff;
    color: #175cd3;
}

.admin-status-badge[data-status="shipping"] {
    background: #eef4ff;
    color: #3538cd;
}

.admin-status-badge[data-status="delivered"] {
    background: #ecfdf3;
    color: #027a48;
}

.admin-status-badge[data-status="cancelled"],
.admin-status-badge[data-status="refunded"] {
    background: #fef3f2;
    color: #b42318;
}

.numeric-cell {
    text-align: right;
    white-space: nowrap;
}

.admin-orders-table td.numeric-cell {
    color: var(--dark);
    font-weight: 800;
}

.admin-open-order {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-open-order:hover {
    text-decoration: underline;
}

.admin-table-message {
    text-align: center;
    padding: 35px !important;
    color: var(--muted) !important;
}

.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
}

.admin-pagination > div {
    display: flex;
    gap: 8px;
}

.admin-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.admin-dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.admin-dashboard-tab {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-dashboard-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.admin-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}

.admin-panel-heading h3,
.admin-management-editor h3 {
    margin: 0 0 6px;
    color: var(--dark);
    font-size: 16px;
}

.admin-panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.admin-management-editor {
    padding: 20px;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.admin-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.admin-form-grid input,
.admin-form-grid textarea,
.admin-form-grid select {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: white;
    color: var(--text);
    font: inherit;
}

.admin-form-grid textarea {
    resize: vertical;
}

.admin-form-wide {
    grid-column: 1 / -1;
}

.admin-form-message {
    min-height: 18px;
    margin: 12px 0 0;
    color: #b42318;
    font-size: 12px;
}

.admin-management-actions,
.admin-management-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.admin-management-actions {
    margin-top: 8px;
}

.admin-customer-order-summary {
    margin: 12px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.admin-login-box h2 {
    margin-bottom: 20px;
}

.customer-account-box {
    width: min(520px, 100%);
    max-height: min(90vh, 850px);
    overflow-y: auto;
}

.customer-account-box > div > .eyebrow {
    margin-bottom: 8px;
}

.customer-account-box h2 {
    margin-bottom: 18px;
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: 9px;
    background: #f2f4f7;
}

.account-tab {
    padding: 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.account-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .1);
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.account-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.account-form input,
.account-form textarea {
    width: 100%;
    min-height: 43px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: white;
    color: var(--dark);
    font-size: 13px;
    font-weight: 400;
}

.account-form input:focus,
.account-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 255, .1);
}

.account-form input[readonly] {
    background: #f9fafb;
    color: var(--muted);
}

.account-form textarea {
    resize: vertical;
}

.account-form button.primary-button {
    width: 100%;
}

.password-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.password-input-wrap input {
    padding-right: 58px;
}

.password-visibility-toggle {
    position: absolute;
    right: 10px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.optional-field {
    color: var(--muted);
    font-weight: 400;
}

.account-form-message {
    min-height: 0;
    color: #b42318;
    font-size: 12px;
}

.account-form-message:empty {
    display: none;
}

.account-form-message.success {
    color: #027a48;
}

.account-role-label {
    margin: -10px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.account-password-details {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.account-password-details summary {
    margin-bottom: 14px;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.account-logout-button {
    width: 100%;
    margin-top: 16px;
    padding: 11px;
    border: 1px solid #fecdca;
    border-radius: 8px;
    background: white;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

#account-profile-view > .eyebrow {
    margin-bottom: 8px;
}

#admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

#admin-login-form input,
.admin-order-controls select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

#admin-login-form input:focus,
.admin-order-controls select:focus {
    border-color: var(--primary);
}

#admin-login-form button {
    width: 100%;
}

.admin-login-error {
    color: #b42318;
    font-size: 12px;
}

.admin-order-modal-box {
    width: min(1040px, 100%);
    max-height: min(92vh, 1100px);
    overflow-y: auto;
}

.admin-detail-heading {
    padding-right: 28px;
    margin-bottom: 20px;
}

.admin-detail-heading h2 {
    margin: 0 0 8px;
}

.admin-detail-heading p {
    color: var(--muted);
    font-size: 12px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.admin-detail-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.admin-detail-card h3,
.admin-detail-items h3 {
    margin-bottom: 10px;
    font-size: 13px;
}

.admin-detail-card p {
    margin-top: 5px;
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-detail-items {
    margin-bottom: 20px;
}

.admin-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.admin-detail-item strong {
    white-space: nowrap;
}

.admin-detail-total {
    display: flex;
    justify-content: space-between;
    padding-top: 13px;
    font-weight: 800;
}

.order-information {
    display: grid;
    gap: 16px;
    color: #1d2939;
}

.order-information-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f6f8fc 100%);
}

.order-information-hero h2 {
    margin: 6px 0;
    color: #101828;
    font-size: 24px;
    letter-spacing: -.035em;
}

.order-information-hero p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.order-information-hero-total {
    display: grid;
    gap: 5px;
    text-align: right;
}

.order-information-hero-total span {
    color: #667085;
    font-size: 12px;
}

.order-information-hero-total strong {
    color: #101828;
    font-size: 24px;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.order-info-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .035);
}

.order-info-card > h3,
.order-info-card-heading h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: #101828;
    font-size: 15px;
    font-weight: 700;
}

.order-info-card > h3 i,
.order-info-card-heading h3 i {
    color: #1769e0;
    font-size: 15px;
}

.order-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.order-info-field {
    min-width: 0;
}

.order-info-field dt {
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
}

.order-info-field dd {
    margin: 0;
    color: #1d2939;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.order-info-status dd {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid #d1e0ff;
    border-radius: 999px;
    background: #eff4ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 700;
}

.order-tracking-card {
    padding-bottom: 18px;
}

.order-info-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.order-info-card-heading h3 {
    margin-bottom: 8px;
}

.order-tracking-code {
    margin: 0 0 18px;
    color: #175cd3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .025em;
    overflow-wrap: anywhere;
}

.order-information-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: start;
    gap: 16px;
}

.order-information-column {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.order-info-fields,
.order-product-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    margin: 0;
}

.order-info-field-wide {
    grid-column: 1 / -1;
}

.order-product-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
    border-top: 1px solid #eaecf0;
}

.order-product-row:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.order-product-image {
    width: 76px;
    height: 76px;
    padding: 6px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.order-product-content {
    min-width: 0;
}

.order-product-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
}

.order-product-heading h4 {
    margin: 0 0 4px;
    color: #101828;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.order-product-heading p {
    margin: 0;
    color: #667085;
    font-size: 12px;
}

.order-product-heading > strong {
    color: #101828;
    font-size: 14px;
    white-space: nowrap;
}

.order-product-facts {
    gap: 10px 12px;
}

.order-product-facts .order-info-field dt {
    font-size: 11px;
}

.order-product-facts .order-info-field dd {
    font-size: 12px;
}

.order-info-empty,
.order-info-security-note {
    margin: 14px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.order-info-security-note {
    padding-top: 12px;
    border-top: 1px solid #eaecf0;
}

.demo-payment-badge {
    margin: 14px 0 0;
}

.order-price-lines {
    display: grid;
    gap: 12px;
    margin: 0;
}

.order-price-lines .order-info-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
}

.order-price-lines .order-info-field dt {
    margin: 0;
    font-size: 13px;
}

.order-price-lines .order-info-field dd {
    text-align: right;
}

.order-price-lines .order-price-final {
    padding-top: 14px;
    border-top: 1px solid #eaecf0;
}

.order-price-lines .order-price-final dt,
.order-price-lines .order-price-final dd {
    color: #101828;
    font-size: 16px;
    font-weight: 800;
}

.order-price-lines .order-price-remaining dd {
    color: #b54708;
}

.order-admin-actions .virtual-tracking-admin {
    margin: 0;
}

.order-admin-actions .admin-order-controls {
    padding-top: 0;
    border-top: 0;
}

.order-admin-actions .virtual-tracking-admin button {
    min-width: 190px;
}

.admin-order-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.admin-order-controls label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.admin-order-controls button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.admin-order-controls button:disabled {
    background: #d0d5dd;
    cursor: not-allowed;
}

.admin-order-cancel-warning {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid #b54708;
    border-radius: 6px;
    background: #fff7ed;
    color: #7a2e0e;
    font-size: 12px;
    line-height: 1.5;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.benefit-grid > div {
    padding: 30px 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.benefit-grid i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 17px;
}

.benefit-grid h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.benefit-grid p {
    color: var(--muted);
    font-size: 12px;
}

/* FOOTER */

.footer {
    background: #101828;
    color: white;
    padding-top: 55px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 45px;
}

.footer-content p,
.footer-content a:not(.logo) {
    display: block;
    color: #aab5c7;
    font-size: 12px;
    margin-top: 12px;
}

.footer-content h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.footer .logo {
    color: white;
}

.image-credits {
    padding: 14px 0;
    border-top: 1px solid #283449;
    color: #aab5c7;
    font-size: 11px;
    line-height: 1.7;
}

.image-credits a {
    color: #d7e3f8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #283449;
    color: #98a2b3;
    font-size: 11px;
}

/* CART */

.cart-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(16,24,40,.55);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.cart-overlay {
    overflow: hidden;
}

.cart-overlay.open,
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: min(440px, 100%);
    height: 100%;
    background: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: .3s;
}

.cart-overlay.open .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 19px;
}

.cart-header button,
.modal-close {
    border: none;
    background: none;
    font-size: 22px;
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: var(--background);
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 12px;
    margin-bottom: 5px;
}

.cart-item-info p {
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}

.cart-quantity button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 5px;
}

.remove-item {
    border: none;
    background: none;
    color: #e5484d;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cart-total strong {
    color: var(--primary);
}

.checkout-button {
    width: 100%;
}

/* CHECKOUT MODAL */

.modal-overlay {
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-box {
    background: white;
    width: min(460px, 100%);
    padding: 30px;
    border-radius: 18px;
    position: relative;
    transform: translateY(20px);
    transition: .3s;
}

.customer-order-modal-box,
.admin-order-modal-box {
    width: min(1040px, 100%);
}

#checkout-modal .modal-box {
    max-height: min(90vh, 900px);
    overflow-y: auto;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-box h2 {
    font-size: 21px;
    margin-bottom: 23px;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 17px;
}

#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#checkout-recipient-step,
#checkout-payment-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#checkout-recipient-step[hidden],
#checkout-payment-step[hidden] {
    display: none;
}

.checkout-step-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 12px;
}

#checkout-form input,
#checkout-form textarea,
#checkout-form select {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

#checkout-form input:focus,
#checkout-form textarea:focus,
#checkout-form select:focus {
    border-color: var(--primary);
}

.checkout-payment-label {
    margin-bottom: -10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.checkout-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkout-payment-choice {
    display: grid;
    grid-template-columns: 18px 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.checkout-payment-choice[hidden] {
    display: none;
}

.checkout-payment-choice:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

#checkout-form .checkout-payment-choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    accent-color: var(--primary);
}

.checkout-payment-choice-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #f2f4f7;
    color: var(--primary);
    font-size: 17px;
}

.checkout-payment-choice-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.checkout-payment-choice-copy strong {
    color: var(--text);
    font-size: 13px;
}

.checkout-payment-choice-copy > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.checkout-payment-note {
    margin-top: -7px;
    color: var(--muted);
    font-size: 11px;
}

.checkout-demo-banner {
    margin: 0;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f7f9fc;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}

.checkout-shipping-panel,
.checkout-cod-panel,
.checkout-bank-transfer-panel,
.checkout-card-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f9fafb;
}

#checkout-shipping-panel[hidden],
#checkout-cod-panel[hidden],
#checkout-bank-transfer-panel[hidden],
#checkout-card-panel[hidden],
#order-tracking[hidden],
#tracking-nav-link[hidden] {
    display: none;
}

.checkout-cod-panel {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    background: #f7f9fc;
}

.checkout-bank-transfer-panel {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    background: #f7f9fc;
}

.checkout-bank-transfer-panel > i {
    margin-top: 2px;
    color: var(--primary);
    font-size: 17px;
}

.checkout-bank-transfer-panel h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 13px;
}

.checkout-bank-transfer-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.checkout-cod-panel > i {
    margin-top: 2px;
    color: var(--primary);
    font-size: 17px;
}

.checkout-cod-panel h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 13px;
}

.checkout-cod-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.checkout-price-summary {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.checkout-price-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.checkout-grand-total {
    padding-top: 9px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.checkout-shipping-panel .secondary-button {
    min-height: 42px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.checkout-card-panel {
    background: white;
}

.checkout-card-heading {
    align-items: center;
}

.checkout-card-brands {
    display: flex;
    gap: 6px;
}

.checkout-card-brand-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-card-brand-selector legend {
    margin-bottom: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.checkout-card-brand-selector label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.checkout-card-brand-selector label:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

.checkout-card-brand-selector input {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    accent-color: var(--primary);
}

.checkout-card-brand-selector span {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.checkout-card-brands span {
    padding: 5px 7px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: #344054;
    font-size: 10px;
    font-weight: 800;
}

.checkout-card-panel input {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

#demo-card-number {
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .12em;
}

.checkout-card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-card-test-data {
    margin: 0;
    padding: 10px;
    border-radius: 7px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.demo-payment-result {
    margin: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

#checkout-form textarea {
    resize: vertical;
    min-height: 90px;
}

#checkout-form button {
    width: 100%;
}

.checkout-customer-fields {
    display: grid;
    gap: 12px;
}

@media (max-width: 640px) {
    .checkout-payment-methods {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-payment-choice {
        min-height: 74px;
    }
}

.checkout-customer-field {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.checkout-validation-error {
    margin: 0;
    color: #b42318;
    font-size: 13px;
    line-height: 1.5;
}

.checkout-customer-field input[readonly] {
    background: #f9fafb;
    color: var(--muted);
}

.checkout-order-preview {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.checkout-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-preview-heading h3 {
    margin: 0;
    font-size: 14px;
}

.checkout-preview-heading span {
    color: var(--muted);
    font-size: 11px;
}

.checkout-order-items {
    display: grid;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.checkout-order-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.checkout-order-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.checkout-product-image {
    width: 52px;
    height: 52px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.checkout-order-item-content {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.checkout-order-item-heading,
.checkout-order-item-pricing {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.checkout-order-item-heading strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.checkout-order-item-pricing {
    color: var(--muted);
    font-size: 11px;
}

.checkout-order-item-pricing del {
    margin-left: auto;
    white-space: nowrap;
}

.checkout-order-empty {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.order-confirmation-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
    color: #027a48;
}

.order-confirmation-banner > i {
    margin-top: 2px;
    font-size: 18px;
}

.order-confirmation-banner > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.order-confirmation-banner strong {
    font-size: 13px;
}

.order-confirmation-banner span {
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* TOAST */

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: var(--dark);
    color: white;
    padding: 13px 23px;
    border-radius: 9px;
    font-size: 12px;
    z-index: 500;
    opacity: 0;
    transition: .3s;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chatbot-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 600;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 17px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .22);
    font-weight: 700;
}

.chatbot-panel {
    position: fixed;
    right: 20px;
    bottom: 82px;
    z-index: 600;
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 32px));
    max-height: min(680px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 16px 48px rgba(16, 24, 40, .2);
}

.chatbot-panel[hidden],
#chatbot-order-form[hidden] {
    display: none;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    background: var(--dark);
    color: white;
}

.chatbot-header > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chatbot-header strong {
    font-size: 13px;
}

.chatbot-header span {
    color: #d0d5dd;
    font-size: 10px;
}

.chatbot-header button {
    border: 0;
    background: transparent;
    color: white;
    font-size: 24px;
    line-height: 1;
}

.chatbot-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 140px;
    max-height: 330px;
    overflow-y: auto;
    padding: 14px;
    background: #f9fafb;
}

.chatbot-message {
    max-width: 90%;
    padding: 10px 12px;
    margin: 0;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chatbot-message.assistant {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
}

.chatbot-message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
}

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.chatbot-form textarea {
    flex: 1;
    min-width: 0;
    resize: vertical;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
}

.chatbot-form button,
.chatbot-order-lookup form button {
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.chatbot-form button:disabled,
.chatbot-order-lookup button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.chatbot-order-lookup {
    padding: 10px 14px 14px;
    border-top: 1px solid var(--border);
}

.chatbot-order-lookup > button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.chatbot-order-lookup form {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
}

.chatbot-order-lookup form > div {
    display: flex;
    gap: 8px;
}

.chatbot-order-lookup input {
    flex: 1;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .navbar {
        gap: 14px;
    }

    .nav-actions {
        gap: 13px;
    }

    .nav-actions .account-toggle span,
    .nav-actions .customer-orders-toggle span,
    .nav-actions .admin-orders-toggle span {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 5%;
        width: min(280px, 90%);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: 0 0 14px 14px;
        background: white;
        box-shadow: var(--shadow);
        gap: 14px;
    }

    .nav-links.show {
        display: flex;
    }
}

@media (max-width: 950px) {
    .hero-content {
        gap: 30px;
    }

    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-shelf {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-toolbar {
        flex-wrap: wrap;
    }

    .admin-search {
        flex-basis: 100%;
    }
}

@media (max-width: 650px) {
    .chatbot-toggle {
        right: 12px;
        bottom: 12px;
    }

    .chatbot-panel {
        right: 12px;
        bottom: 74px;
        max-height: calc(100vh - 90px);
    }

    .section-padding {
        padding: 60px 0;
    }

    .navbar {
        height: 70px;
        width: 94%;
        gap: 8px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-links {
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 5%;
        border-bottom: 1px solid var(--border);
        gap: 18px;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 5px 0;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .account-toggle {
        padding: 8px;
        font-size: 12px;
    }

    .nav-actions .account-toggle span {
        display: none;
    }

    .nav-actions .admin-orders-toggle {
        padding: 8px;
        font-size: 12px;
    }

    .nav-actions .customer-orders-toggle {
        padding: 8px;
        font-size: 12px;
    }

    .nav-actions .customer-orders-toggle span {
        display: none;
    }

    .nav-actions .admin-orders-toggle span {
        display: none;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .products-heading {
        align-items: stretch;
    }

    .admin-heading {
        align-items: start;
        flex-direction: column;
    }

    .admin-stat-grid {
        gap: 10px;
    }

    .admin-stat-card {
        min-height: 110px;
        padding: 15px;
    }

    .admin-toolbar select,
    .admin-filter-button {
        flex: 1;
        min-width: calc(50% - 6px);
    }

    .admin-dashboard-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-tab {
        padding: 10px 6px;
        font-size: 11px;
    }

    .admin-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-wide {
        grid-column: auto;
    }

    .admin-management-editor {
        padding: 15px;
    }

    .admin-management-actions > button {
        flex: 1;
    }

    .admin-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-detail-grid,
    .admin-order-controls {
        grid-template-columns: 1fr;
    }

    .customer-order-card {
        padding: 14px;
    }

    .customer-order-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-detail-grid {
        grid-template-columns: 1fr;
    }

    .customer-order-progress {
        gap: 5px;
    }

    .customer-progress-step {
        font-size: 8px;
    }

    .customer-invoice-actions {
        flex-wrap: wrap;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .brand-card {
        padding: 17px 10px;
    }

    .product-shelf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .clear-filters-button {
        grid-column: 1 / -1;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 165px;
        padding: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-price-row {
        gap: 4px 6px;
    }

    .product-stock {
        font-size: 10px;
    }

    .product-card-actions {
        grid-template-columns: 1fr;
    }

    .product-detail-modal-box {
        max-height: 92vh;
        padding: 20px 15px;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-detail-image {
        min-height: 190px;
        max-height: 240px;
    }

    .product-detail-image img {
        max-height: 200px;
    }

    .product-spec-list li {
        grid-template-columns: 1fr 1.2fr;
    }

    .promo-content {
        flex-direction: column;
        align-items: start;
    }

    .promo-icon {
        font-size: 100px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 360px) {
    .navbar {
        width: 96%;
        gap: 4px;
    }

    .logo {
        font-size: 17px;
    }

    .nav-actions {
        gap: 4px;
    }

    .nav-actions .account-toggle,
    .nav-actions .customer-orders-toggle,
    .nav-actions .admin-orders-toggle {
        padding: 5px;
    }

    .nav-actions button {
        font-size: 16px;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    #customer-order-modal.open,
    #customer-order-modal.open * {
        visibility: visible !important;
    }

    #customer-order-modal.open {
        position: static;
        display: block;
        overflow: visible;
        background: white;
        opacity: 1;
    }

    #customer-order-modal.open .customer-order-modal-box {
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    #customer-order-modal .modal-close,
    .customer-invoice-actions {
        display: none !important;
    }
}

.chatbot-toggle {
    background: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.analytics-consent-open .chatbot-toggle {
    bottom: 155px;
}

#cart-overlay.open ~ #chatbot-toggle,
#cart-overlay.open ~ #chatbot-panel,
#checkout-modal.open ~ #chatbot-toggle,
#checkout-modal.open ~ #chatbot-panel,
.modal-overlay.open ~ #chatbot-toggle,
.modal-overlay.open ~ #chatbot-panel,
.modal-overlay.open ~ #analytics-consent-banner {
    display: none;
}

.chatbot-panel {
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    animation: chatbot-open .18s ease-out;
}

body.analytics-consent-open .chatbot-panel {
    bottom: 217px;
    max-height: calc(100vh - 245px);
}

.chatbot-header {
    background: #fff;
    color: #101828;
    border-bottom: 1px solid #eaecf0;
}

.chatbot-header span {
    color: #667085;
}

.chatbot-header button {
    color: #344054;
}

.chatbot-message.assistant {
    border-radius: 16px 16px 16px 5px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}

.chatbot-message.user {
    border-radius: 16px 16px 5px 16px;
}

.admin-analytics-range {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.admin-analytics-range select {
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: var(--text);
    font: inherit;
}

.admin-analytics-stats {
    margin: 22px 0;
}

.admin-analytics-conversions,
.admin-analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.admin-analytics-conversions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    color: var(--muted);
    font-size: 13px;
}

.admin-analytics-conversions strong {
    color: var(--text);
}

.admin-analytics-grid .admin-detail-card {
    min-width: 0;
}

.admin-analytics-grid h4 {
    margin: 0 0 12px;
    font-size: 14px;
}

.admin-analytics-chart {
    min-height: 190px;
    overflow-x: auto;
}

.admin-analytics-chart svg {
    display: block;
    width: 100%;
    min-width: 440px;
    height: auto;
}

.admin-analytics-chart text {
    fill: #667085;
    font: 10px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-analytics-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 11px;
}

.admin-analytics-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-analytics-legend li span {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 2px;
}

.admin-analytics-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.analytics-consent-banner {
    position: fixed;
    z-index: 700;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(660px, calc(100vw - 36px));
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(16, 24, 40, .18);
}

.analytics-consent-banner[hidden] {
    display: none;
}

.analytics-consent-banner p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
}

.analytics-consent-banner > div {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.analytics-consent-banner button {
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.analytics-consent-banner #analytics-consent-accept {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.footer-content .footer-consent-button {
    display: block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aab5c7;
    font: inherit;
    font-size: 12px;
    text-align: left;
}

@keyframes chatbot-open {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 650px) {
    body.analytics-consent-open .chatbot-toggle {
        bottom: 150px;
    }

    body.analytics-consent-open .chatbot-panel {
        bottom: 212px;
        max-height: calc(100vh - 235px);
    }

    .analytics-consent-banner {
        right: 10px;
        bottom: 10px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        width: calc(100vw - 20px);
    }

    .analytics-consent-banner > div {
        justify-content: flex-end;
    }

    .admin-analytics-grid,
    .admin-analytics-conversions {
        grid-template-columns: 1fr;
    }

    .admin-analytics-range select {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .tracking-lookup-form > div {
        grid-template-columns: 1fr;
    }

    .tracking-result-heading,
    .checkout-card-heading {
        flex-direction: column;
    }

    .checkout-card-fields {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-shipping-panel,
    .checkout-card-panel,
    .tracking-result-card {
        padding: 13px;
    }
}

@media (max-width: 360px) {
    .checkout-card-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .customer-order-modal-box,
    .admin-order-modal-box {
        max-height: 94vh;
        padding: 18px;
    }

    .order-information {
        gap: 12px;
    }

    .order-information-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .order-information-hero h2 {
        font-size: 21px;
    }

    .order-information-hero-total {
        text-align: left;
    }

    .order-information-hero-total strong {
        font-size: 22px;
    }

    .order-info-card {
        padding: 16px;
        border-radius: 14px;
    }

    .order-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-information-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-information-column {
        gap: 12px;
    }

    .order-info-fields {
        gap: 13px 10px;
    }

    .order-info-field dt {
        font-size: 12px;
    }

    .order-info-field dd {
        font-size: 13px;
    }

    .order-info-card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .order-product-row {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
    }

    .order-product-image {
        width: 60px;
        height: 60px;
    }

    .order-product-heading {
        flex-direction: column;
        gap: 4px;
    }

    .order-product-facts {
        gap: 8px;
    }

    .virtual-tracking-timeline .customer-progress-step {
        font-size: 10px;
    }

    .virtual-tracking-timeline {
        grid-template-columns: repeat(4, minmax(104px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .virtual-tracking-timeline .tracking-step-content strong {
        font-size: 10px;
        white-space: nowrap;
    }

    .virtual-tracking-timeline .tracking-step-content time {
        font-size: 10px;
        white-space: nowrap;
    }

    .virtual-tracking-timeline .tracking-step-content > span {
        display: none;
    }

    .order-status-history-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-status-history-content time {
        text-align: left;
    }
}
