html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --frontend-fixed-header-offset: 64px;
}

body.frontend-fixed-nav {
    padding-top: var(--frontend-fixed-header-offset);
}

.frontend-fixed-header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
}

@media (max-width: 991.98px) {
    html,
    body {
        width: 100%;
        min-width: 0;
        overscroll-behavior-x: none;
    }

    body {
        touch-action: pan-y;
    }

    body.frontend-fixed-nav {
        padding-top: var(--frontend-fixed-header-offset, 104px);
    }

    main,
    .container,
    .container-fluid {
        max-width: 100%;
    }

    img,
    video,
    canvas,
    iframe {
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .home-product-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

footer a.text-muted:hover {
    color: #fff !important;
}

.navbar-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.carousel-img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 20px;
}

.product-img-wrapper {
    background: #f1f5f9;
}

.product-grid-img {
    height: 220px;
    object-fit: contain;
    object-position: center;
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    background: #f1f5f9;
}

.product-grid-img-placeholder {
    height: 220px;
    background: #f1f5f9;
}

.product-gallery .main-image-container img {
    max-height: 400px;
    object-fit: contain;
    background: #f8f9fa;
    width: 100%;
}

.gallery-thumbnails {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #0d6efd;
}

.form-range::-webkit-slider-thumb {
    background: #0d6efd;
}

.form-range::-moz-range-thumb {
    background: #0d6efd;
}

.page-link {
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.product-card .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .card-body {
    padding: 0.75rem;
}

.product-card .card-footer {
    padding: 0.5rem 0.75rem;
}

@media (max-width: 575.98px) {
    .carousel-img {
        height: 180px;
    }

    .carousel-caption {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .carousel-caption h5 {
        font-size: 1rem;
    }

    .hero-section {
        padding: 1.5rem 0 !important;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .hero-section p {
        font-size: 0.85rem;
    }

    .product-grid-img,
    .product-grid-img-placeholder {
        height: 140px;
    }

    .product-card .card-title {
        font-size: 0.85rem;
    }

    .product-card .card-body {
        padding: 0.5rem;
    }

    .product-card .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .gallery-thumb {
        width: 50px;
        height: 50px;
    }

    .product-gallery .main-image-container img {
        max-height: 280px;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .navbar-logo {
        height: 28px;
    }

    footer .col-md-4 {
        text-align: center;
    }

    footer h5, footer h6 {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .btn-sm {
        font-size: 0.75rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .carousel-img {
        height: 220px;
    }

    .product-grid-img,
    .product-grid-img-placeholder {
        height: 160px;
    }

    .gallery-thumb {
        width: 55px;
        height: 55px;
    }

    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .product-gallery .main-image-container img {
        max-height: 320px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .carousel-img {
        height: 300px;
    }

    .product-grid-img,
    .product-grid-img-placeholder {
        height: 180px;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .carousel-img {
        height: 350px;
    }

    .product-grid-img,
    .product-grid-img-placeholder {
        height: 200px;
    }
}

.product-img-wrapper {
    overflow: hidden;
    position: relative;
}

.btn-favorite {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-size: 1.1rem;
    color: #aaa;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.btn-favorite:hover {
    background: #fff;
    transform: scale(1.15);
}

.btn-favorite.favorited {
    color: #e74c3c;
}

.btn-favorite .bi-heart-fill {
    color: #e74c3c;
}

.quick-look-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    padding: 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.product-img-wrapper:hover .quick-look-overlay {
    opacity: 1;
}

.promo-discover-section {
    border-top: 1px solid #eee;
}

.promo-discover-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    display: flex;
    flex-direction: column;
}

.promo-discover-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 210px;
}

.promo-discover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.promo-discover-carousel .promo-discover-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: promoSlide calc(var(--slide-count) * 4s) infinite;
    animation-delay: calc(var(--slide-index) * 4s);
}

.promo-discover-carousel .promo-discover-img:first-child {
    opacity: 1;
}

.promo-discover-img-link:hover .promo-discover-img {
    transform: scale(1.04);
}

.promo-discover-placeholder {
    height: 210px;
    background: #f0f0f0;
}

@keyframes promoSlide {
    0%, 28% {
        opacity: 1;
    }
    34%, 94% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.promo-discover-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-discover-body h5 {
    font-size: 1.1rem;
    color: #222;
}

.promo-discover-title {
    color: #111827;
}

.promo-discover-title:hover {
    color: #0d6efd;
}

.promo-discover-body p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.promo-discover-link {
    color: #0d6efd;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s;
    margin-top: auto;
}

.promo-discover-link:hover {
    color: #0a58ca;
}

@media (max-width: 575.98px) {
    .promo-discover-img,
    .promo-discover-placeholder {
        height: 200px;
    }

    .promo-discover-body h5 {
        font-size: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .promo-discover-img,
    .promo-discover-placeholder {
        height: 220px;
    }
}

.ql-thumb {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.ql-thumb:hover,
.ql-thumb.active {
    border-color: #0d6efd;
}

@media (max-width: 575.98px) {
    .ql-thumb {
        width: 45px;
        height: 45px;
    }
}

.qty-selector .btn {
    padding: 0.15rem 0.4rem;
    line-height: 1;
}

.qty-selector .qty-input {
    padding: 0.15rem 0;
    font-size: 0.85rem;
    border-radius: 4px;
}

.qty-selector .qty-input::-webkit-inner-spin-button,
.qty-selector .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-selector .qty-input[type=number] {
    -moz-appearance: textfield;
}

.toast-container {
    z-index: 1080;
}

@media (min-width: 1200px) {
    .product-grid-img,
    .product-grid-img-placeholder {
        height: 220px;
    }
}

/* ── Customer order detail / dashboard tables ───────────────────── */
.table th {
    border-right: 1px solid #dee2e6;
}
.table th:last-child { border-right: none; }
.table td {
    border-right: 1px solid #f0f0f0;
}
.table td:last-child { border-right: none; }
.table tbody tr:nth-child(even) { background-color: #f3f4f6; }
.table-hover tbody tr:hover,
.table tbody tr:hover { background-color: #e9edf2 !important; }

.shop-qr-alert {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid #d9efe3;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #f3fbf7;
    color: #14532d;
    box-shadow: 0 10px 24px rgba(21, 128, 61, 0.08);
}

.shop-qr-alert-danger {
    border-color: #f2c7c7;
    background: #fff5f5;
    color: #7f1d1d;
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.08);
}

.shop-qr-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #dcfce7;
    color: #15803d;
    font-size: 1.2rem;
}

.shop-qr-alert-danger .shop-qr-alert-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.shop-qr-product-highlight {
    border: 2px solid #22c55e !important;
    box-shadow: 0 16px 38px rgba(34, 197, 94, 0.22) !important;
}

.shop-qr-product-highlight::after {
    content: "Scanned";
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 3;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

@media (max-width: 575.98px) {
    .shop-qr-alert {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .shop-qr-alert .btn {
        align-self: center;
        white-space: nowrap;
    }
}

.wt-scan-camera-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

.wt-scan-camera-frame {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
    aspect-ratio: 1 / 1;
}

.wt-scan-camera-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wt-scan-camera-reticle {
    position: absolute;
    inset: 18%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.34);
}

.wt-scan-camera-reticle::before,
.wt-scan-camera-reticle::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #22c55e;
}

.wt-scan-camera-reticle::before {
    top: 50%;
}

.wt-scan-camera-reticle::after {
    display: none;
}

@media (max-width: 575.98px) {
    .wt-scan-camera-modal .modal-content {
        min-height: 100vh;
        border-radius: 0;
    }

    .wt-scan-camera-frame {
        aspect-ratio: 3 / 4;
        border-radius: 18px;
    }
}

.shop-mobile-command {
    position: sticky;
    top: 52px;
    z-index: 20;
    margin: -0.25rem -10px 1rem;
    padding: 0.65rem 10px 0.55rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(12px);
}

.shop-mobile-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0 0.4rem 0 0.8rem;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
}

.shop-mobile-search i {
    color: #64748b;
}

.shop-mobile-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.92rem;
}

.shop-mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.shop-mobile-cats {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.65rem 0 0.1rem;
    scrollbar-width: none;
}

.shop-mobile-cats::-webkit-scrollbar {
    display: none;
}

.shop-mobile-cats a {
    flex: 0 0 auto;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
}

.shop-mobile-cats a.active {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

.shop-mobile-cartbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 72px;
    z-index: 1030;
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem;
    border-radius: 999px;
    background: #0f172a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
}

.shop-mobile-cartbar.is-active {
    display: flex;
}

.shop-mobile-cartbar-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
}

.shop-mobile-cartbar-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
}

.shop-mobile-checkout {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: #22c55e;
    color: #052e16;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .storefront-shop-page {
        padding-bottom: 8rem !important;
    }

    .storefront-shop-page > .d-flex:first-child {
        margin-bottom: 0.6rem !important;
    }

    .shop-product-grid {
        --bs-gutter-x: 0.6rem;
        --bs-gutter-y: 0.6rem;
    }

    .shop-product-grid .product-card {
        border: 1px solid #e5e7eb !important;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
    }

    .shop-product-grid .product-card:hover {
        transform: none;
    }

    .shop-product-grid .product-img-wrapper {
        background: #f8fafc;
    }

    .shop-product-grid .product-grid-img,
    .shop-product-grid .product-grid-img-placeholder {
        height: 128px;
        object-fit: contain;
        padding: 0.35rem;
    }

    .shop-product-grid .quick-look-overlay {
        display: none;
    }

    .shop-product-grid .btn-favorite {
        width: 30px;
        height: 30px;
    }

    .shop-product-grid .card-title {
        height: 2.2rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.1;
    }

    .shop-product-grid .qty-selector {
        margin-bottom: 0.45rem !important;
    }

    .shop-product-grid .qty-selector .btn {
        width: 30px;
        height: 30px;
        padding: 0;
    }

    .shop-product-grid .qty-selector .qty-input {
        height: 30px;
        width: 48px !important;
    }

    .shop-card-actions .btn {
        min-height: 34px;
        border-radius: 8px;
    }

    .shop-card-actions .btn-outline-primary {
        flex: 0 0 40%;
    }
}

/* Product detail — storefront QR */
.product-qr-box {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.product-qr-box__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--bs-light, #f8f9fa);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.product-qr-box__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.product-qr-box__visual {
    flex: 0 0 auto;
}

.product-qr-box__img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 0.375rem;
    background: #fff;
}

.product-qr-box__meta {
    flex: 1 1 140px;
    min-width: 0;
}

.product-qr-box__sku {
    font-size: 0.875rem;
    color: var(--bs-secondary-color, #6c757d);
}

.product-qr-box__hint {
    font-size: 0.875rem;
    color: var(--bs-body-color, #212529);
}

@media (max-width: 575.98px) {
    .product-qr-box__body {
        flex-direction: column;
        text-align: center;
    }

    .product-qr-box__img {
        margin: 0 auto;
    }
}

/* Customer account dashboard */
.customer-account-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
    color: #0f172a;
}

.customer-account-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.35rem;
    border: 1px solid #dbe6f3;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.customer-account-kicker {
    margin: 0 0 0.25rem;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-account-hero h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 850;
    letter-spacing: 0;
}

.customer-account-hero p {
    color: #475569;
    max-width: 680px;
}

.customer-account-hero-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-account-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.customer-account-profile,
.customer-panel,
.customer-metric {
    border: 1px solid #dbe6f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.customer-account-profile {
    position: sticky;
    top: 82px;
    padding: 1rem;
}

.customer-avatar {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border-radius: 16px;
    background: #2563eb;
    color: #fff;
    font-weight: 850;
    font-size: 1.3rem;
}

.customer-account-profile h2 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.customer-account-profile p {
    margin: 0.2rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.customer-account-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.8rem 0;
}

.customer-account-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 750;
}

.customer-account-credit {
    display: grid;
    gap: 0.45rem;
    margin: 0.8rem 0;
    padding: 0.75rem;
    border-radius: 10px;
    background: #f8fafc;
}

.customer-account-credit div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.84rem;
}

.customer-account-credit strong {
    color: #0f172a;
}

.customer-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.customer-metric {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem;
}

.customer-metric strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 850;
}

.customer-metric span {
    color: #64748b;
    font-size: 0.84rem;
}

.customer-metric-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 13px;
    font-size: 1.2rem;
}

.customer-metric-icon.amber { background: #fff7ed; color: #f59e0b; }
.customer-metric-icon.green { background: #ecfdf5; color: #059669; }
.customer-metric-icon.blue { background: #eff6ff; color: #2563eb; }
.customer-metric-icon.purple { background: #f5f3ff; color: #7c3aed; }

.customer-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1rem;
    align-items: start;
}

.customer-panel {
    padding: 1rem;
}

.customer-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.customer-panel-head.compact {
    margin-bottom: 0.65rem;
}

.customer-panel-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 850;
}

.customer-panel-head p,
.customer-muted {
    margin: 0.1rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.customer-link {
    color: #2563eb;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.customer-empty {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    min-height: 150px;
    color: #64748b;
    text-align: center;
}

.customer-empty i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.25rem;
}

.customer-reorder-list {
    display: grid;
    gap: 0.65rem;
}

.customer-reorder-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 92px 255px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: none;
}

.customer-reorder-thumb {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
    color: #94a3b8;
    text-decoration: none;
}

.customer-reorder-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.customer-reorder-info {
    min-width: 0;
}

.customer-reorder-info a {
    display: block;
    color: #0f172a;
    font-weight: 820;
    line-height: 1.2;
    text-decoration: none;
}

.customer-reorder-info span,
.customer-reorder-price span {
    display: block;
    margin-top: 0.22rem;
    color: #64748b;
    font-size: 0.78rem;
}

.customer-reorder-price strong {
    color: #2563eb;
    font-size: 1rem;
}

.customer-reorder-actions {
    display: grid;
    grid-template-columns: 96px minmax(100px, 1fr) 82px;
    gap: 0.45rem;
    align-items: center;
}

.customer-qty-control {
    display: grid !important;
    grid-template-columns: 28px 1fr 28px;
    align-items: stretch;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.customer-qty-control button,
.customer-qty-control input {
    border: 0;
    background: #fff;
    min-width: 0;
    text-align: center;
}

.customer-qty-control button {
    color: #475569;
}

.customer-qty-control .qty-minus,
.customer-qty-control .qty-input {
    border-right: 1px solid #dbe3ef;
}

.customer-qty-control input {
    width: 100% !important;
    padding: 0;
    font-weight: 750;
}

.customer-reorder-actions .btn {
    min-height: 34px;
    border-radius: 9px;
    font-weight: 750;
    font-size: 0.82rem;
    white-space: nowrap;
}

.customer-side-stack {
    display: grid;
    gap: 1rem;
}

.customer-action-list,
.customer-invoice-list {
    display: grid;
    gap: 0.55rem;
}

.customer-action-list a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0 0.65rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    text-decoration: none;
}

.customer-action-list i {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

.customer-action-list span {
    font-weight: 800;
    font-size: 0.9rem;
}

.customer-action-list small {
    color: #64748b;
    font-size: 0.76rem;
}

.customer-invoice-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.customer-invoice-list div:last-child {
    border-bottom: 0;
}

.customer-invoice-list span,
.customer-invoice-list strong {
    font-size: 0.9rem;
}

.customer-invoice-list small {
    grid-column: 1 / -1;
    color: #64748b;
}

.customer-order-table {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.customer-order-head,
.customer-order-row {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 0.8fr 0.8fr 0.8fr 58px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
}

.customer-order-head {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.customer-order-row {
    border-top: 1px solid #e2e8f0;
    font-size: 0.88rem;
}

.customer-order-row a {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
}

.customer-pill {
    justify-self: start;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
}

.customer-pill.success { background: #dcfce7; color: #15803d; }
.customer-pill.primary { background: #dbeafe; color: #1d4ed8; }
.customer-pill.warning { background: #fef3c7; color: #b45309; }
.customer-pill.danger { background: #fee2e2; color: #b91c1c; }
.customer-pill.secondary { background: #f1f5f9; color: #475569; }

.customer-row-action {
    justify-self: end;
    color: #2563eb !important;
}

.customer-account-tabs {
    gap: 0.4rem;
    margin: 1rem 0 0.75rem;
    border-bottom: 1px solid #dbe6f3;
}

.customer-account-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: #475569;
    font-weight: 750;
}

.customer-account-tabs .nav-link.active {
    border-color: #dbe6f3 #dbe6f3 #fff;
    color: #2563eb;
    background: #fff;
}

.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.customer-form-grid label {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
}

.customer-form-grid .wide {
    grid-column: 1 / -1;
}

.customer-form-grid button[type="submit"] {
    justify-self: start;
}

.customer-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.customer-address-grid article {
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.customer-address-grid article > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.customer-address-grid span {
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
}

.customer-address-grid p {
    margin: 0.55rem 0;
    color: #64748b;
    font-size: 0.88rem;
}

@media (max-width: 1199.98px) {
    .customer-account-grid {
        grid-template-columns: 1fr;
    }

    .customer-account-profile {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .customer-account-page {
        padding: 0.75rem 0.75rem 5.8rem;
    }

    .customer-account-hero {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 10px;
        padding: 1rem;
    }

    .customer-account-hero-actions {
        width: 100%;
    }

    .customer-account-hero-actions .btn {
        flex: 1 1 130px;
    }

    .customer-metrics,
    .customer-dashboard-layout {
        grid-template-columns: 1fr 1fr;
    }

    .customer-panel-large {
        grid-column: 1 / -1;
    }

    .customer-side-stack {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    .customer-reorder-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .customer-reorder-price,
    .customer-reorder-actions {
        grid-column: 2;
    }
}

@media (max-width: 575.98px) {
    .customer-account-hero h1 {
        font-size: 1.75rem;
    }

    .customer-metrics,
    .customer-dashboard-layout,
    .customer-side-stack,
    .customer-form-grid,
    .customer-address-grid {
        grid-template-columns: 1fr;
    }

    .customer-metric {
        padding: 0.75rem;
    }

    .customer-panel {
        padding: 0.85rem;
        border-radius: 10px;
    }

    .customer-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-reorder-item {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 0.6rem;
    }

    .customer-reorder-thumb {
        width: 60px;
        height: 60px;
    }

    .customer-reorder-price {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }

    .customer-reorder-price span {
        margin-top: 0;
    }

    .customer-reorder-actions {
        grid-column: 1 / -1;
        grid-template-columns: minmax(96px, 0.82fr) minmax(110px, 1.18fr);
    }

    .customer-reorder-actions .btn-outline-success {
        display: none;
    }

    .customer-order-head {
        display: none;
    }

    .customer-order-row {
        grid-template-columns: 1fr auto;
        gap: 0.35rem 0.75rem;
        padding: 0.8rem;
    }

    .customer-order-row > * {
        justify-self: start;
    }

    .customer-row-action {
        justify-self: end;
    }
}

@media (max-width: 991.98px) {
    body {
        background: #f6f8fb;
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }

    main {
        min-height: calc(100vh - 58px);
    }

    .mobile-storefront-header {
        z-index: 1040;
        padding: calc(7px + env(safe-area-inset-top, 0px)) 12px 8px;
        background: rgba(255, 255, 255, .96) !important;
        backdrop-filter: blur(18px);
        box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
    }

    .mobile-storefront-topbar {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 42px;
        gap: 8px;
        align-items: center;
    }

    .mobile-storefront-brand {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #0f172a;
        text-decoration: none;
        font-weight: 900;
    }

    .mobile-storefront-brand img {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        object-fit: cover;
        flex: 0 0 auto;
    }

    .mobile-storefront-brand span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .96rem;
    }

    .mobile-storefront-cart {
        position: relative;
        width: 40px;
        height: 40px;
        border: 1px solid #dbe5f1;
        border-radius: 14px;
        color: #0f172a;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
    }

    .mobile-storefront-scan {
        border: 0;
        color: #fff;
        background: linear-gradient(135deg, #0f8b73, #2563eb);
    }

    .mobile-storefront-cart .cart-count-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: .64rem;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-storefront-search {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) 36px;
        align-items: center;
        gap: 6px;
        height: 42px;
        margin-top: 8px;
        padding: 0 4px 0 12px;
        border: 1px solid #dbe5f1;
        border-radius: 14px;
        background: #f8fafc;
    }

    .mobile-storefront-search input {
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: .88rem;
    }

    .mobile-storefront-search button {
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 11px;
        color: #fff;
        background: #2563eb;
    }

    .mobile-menu-panel {
        width: min(84vw, 340px) !important;
    }

    .mobile-menu-vertical .list-group-item {
        padding: .9rem .25rem;
        font-weight: 750;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1042;
        height: calc(58px + env(safe-area-inset-bottom, 0px));
        padding: 5px 8px env(safe-area-inset-bottom, 0px);
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        gap: 2px;
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid #dbe5f1;
        box-shadow: 0 -8px 28px rgba(15, 23, 42, .08);
        backdrop-filter: blur(18px);
    }

    .mobile-bottom-nav-item {
        min-width: 0;
        height: 46px;
        border-radius: 14px;
        color: #64748b;
        text-decoration: none;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: .68rem;
        font-weight: 800;
    }

    .mobile-bottom-nav-item i {
        font-size: 1.1rem;
        line-height: 1;
    }

    .mobile-bottom-nav-item.active {
        color: #0f8b73;
        background: #e8f7f2;
    }

    footer .container {
        padding-top: 1.25rem !important;
        padding-bottom: 5.25rem !important;
    }

    footer .row {
        row-gap: 1rem !important;
    }

    footer h5,
    footer h6 {
        margin-bottom: .45rem;
    }

    .mobile-home-experience {
        padding: 12px;
        background: #f6f8fb;
    }

    .mobile-home-hero {
        overflow: hidden;
        border: 1px solid #dbe7f2;
        border-radius: 24px;
        padding: 18px;
        color: #0f172a;
        background:
            radial-gradient(circle at 86% 12%, rgba(37, 99, 235, .16), transparent 34%),
            linear-gradient(135deg, #ffffff 0%, #eef8f5 100%);
        box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    }

    .mobile-home-kicker {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 28px;
        padding: 0 10px;
        border-radius: 999px;
        color: #2563eb;
        background: #eff6ff;
        font-size: .72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .mobile-home-hero h1 {
        margin: 12px 0 8px;
        max-width: 15ch;
        font-size: clamp(2rem, 10vw, 3.1rem);
        line-height: .96;
        font-weight: 950;
        letter-spacing: 0;
    }

    .mobile-home-hero p {
        margin: 0;
        color: #475569;
        font-size: .94rem;
        line-height: 1.45;
    }

    .mobile-home-search {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) 40px;
        align-items: center;
        gap: 8px;
        height: 48px;
        margin-top: 14px;
        padding: 0 5px 0 13px;
        border: 1px solid #d6e2ef;
        border-radius: 16px;
        background: #fff;
    }

    .mobile-home-search input {
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: .9rem;
    }

    .mobile-home-search button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 13px;
        color: #fff;
        background: #2563eb;
    }

    .mobile-home-actions {
        display: grid;
        grid-template-columns: 1.25fr 1fr 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .mobile-home-actions a,
    .mobile-home-actions button {
        min-height: 42px;
        border: 1px solid #c8d8ea;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #fff;
        color: #0f172a;
        text-decoration: none;
        font-weight: 850;
    }

    .mobile-home-actions a:first-child {
        border-color: #2563eb;
        color: #fff;
        background: #2563eb;
    }

    .mobile-home-benefits {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 10px 0;
    }

    .mobile-home-benefits div {
        min-width: 0;
        padding: 10px 8px;
        border: 1px solid #dbe7f2;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
    }

    .mobile-home-benefits i {
        color: #0f8b73;
        font-size: 1.05rem;
    }

    .mobile-home-benefits strong,
    .mobile-home-benefits span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-home-benefits strong {
        margin-top: 4px;
        font-size: .78rem;
    }

    .mobile-home-benefits span {
        color: #64748b;
        font-size: .68rem;
    }

    .mobile-home-strip {
        border: 1px solid #dbe7f2;
        border-radius: 18px;
        padding: 12px;
        background: #fff;
    }

    .mobile-home-strip-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .mobile-home-strip-head a {
        color: #2563eb;
        font-size: .78rem;
        font-weight: 850;
        text-decoration: none;
    }

    .mobile-home-cats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .mobile-home-cats a {
        min-width: 0;
        min-height: 74px;
        padding: 8px 6px;
        border-radius: 14px;
        background: #f8fafc;
        color: #0f172a;
        text-align: center;
        text-decoration: none;
        font-size: .7rem;
        font-weight: 800;
        display: grid;
        align-content: center;
        gap: 5px;
    }

    .mobile-home-cats i {
        color: #0f8b73;
        font-size: 1.2rem;
    }

    .mobile-home-cats span {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-home .wt-section {
        padding-top: 1rem !important;
        padding-bottom: 1.2rem !important;
    }

    .page-about .wt-section,
    .page-contact .wt-section {
        padding: .85rem .75rem 1.25rem !important;
    }

    .page-about .container,
    .page-contact .container {
        padding-left: 0;
        padding-right: 0;
    }

    .wt-about-shell,
    .wt-contact-shell {
        border: 1px solid #dbe7f2;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
    }

    .page-about .wt-about-shell {
        padding: 1.15rem !important;
    }

    .page-about .display-6 {
        font-size: 2rem;
        line-height: 1.04;
    }

    .page-about .lead {
        font-size: 1rem;
        line-height: 1.48;
    }

    .wt-trust-strip,
    .page-about .wt-trust-strip {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: .7rem;
    }

    .wt-trust-item {
        min-width: 0;
        border: 1px solid #dbe7f2;
        border-radius: 14px;
        padding: .85rem;
        background: #fff;
        display: flex;
        gap: .75rem;
        align-items: flex-start;
    }

    .wt-trust-item i {
        color: #0f8b73;
        font-size: 1.25rem;
    }

    .wt-trust-item strong,
    .wt-trust-item span {
        display: block;
    }

    .wt-trust-item span {
        color: #64748b;
        font-size: .82rem;
    }

    .wt-contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: .8rem;
    }

    .page-contact .wt-section-head {
        display: block;
        margin-bottom: .85rem;
    }

    .page-contact .wt-section-head .btn {
        width: 100%;
        margin-top: .75rem;
        border-radius: 12px;
    }

    .page-contact .wt-section-title {
        font-size: 1.85rem;
        line-height: 1.08;
    }

    .page-contact .wt-contact-shell {
        padding: 1rem !important;
    }

    .page-contact textarea.form-control {
        min-height: 118px;
    }

    .page-contact iframe {
        height: 220px !important;
    }

    .wt-cart-page {
        padding: .8rem .75rem 6.2rem !important;
    }

    .wt-cart-page .container,
    .wt-cart-page.container {
        max-width: 100%;
    }

    .wt-cart-hero,
    .wt-cart-items-panel,
    .wt-cart-summary-panel {
        border: 1px solid #dbe7f2;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    }

    .wt-cart-hero {
        padding: 1rem;
        margin-bottom: .8rem;
    }

    .wt-cart-hero h1 {
        font-size: 1.8rem;
        line-height: 1.05;
    }

    .wt-cart-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .wt-cart-panel-head {
        padding: .9rem 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .wt-cart-item {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr);
        gap: .75rem;
        padding: .85rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .wt-cart-item-thumb,
    .cart-product-thumb {
        width: 66px;
        height: 66px;
        border-radius: 13px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .wt-cart-item-thumb img,
    .cart-product-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .wt-cart-mobile-action {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        z-index: 1041;
        min-height: 56px;
        padding: 6px 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 132px;
        gap: 10px;
        align-items: center;
        border-top: 1px solid #dbe7f2;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -10px 28px rgba(15, 23, 42, .1);
        backdrop-filter: blur(18px);
    }

    .wt-cart-mobile-action span {
        display: block;
        color: #64748b;
        font-size: .72rem;
        font-weight: 800;
    }

    .wt-cart-mobile-action strong {
        display: block;
        color: #0f172a;
        font-size: 1rem;
    }

    .wt-cart-mobile-action .btn {
        min-height: 42px;
        border-radius: 13px;
        font-weight: 900;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .mobile-home-experience,
    .page-about .wt-section,
    .page-contact .wt-section,
    .wt-cart-page {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-home-cats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .wt-cart-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

/* Keep standard storefront breadcrumbs as readable as product detail tabs. */
.breadcrumb { font-size: 0.9375rem; }
