﻿/* ============================================
   Hugterra-Style Product Page - Custom Styles
   Inspired by hugterra.com/products/hms
   ============================================ */

/* Poppins - Primary Font */
body {
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   Product Layout - Two Column Grid
   ============================================ */
.product-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 2rem;
}

@media (max-width: 991.98px) {
    .product-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.product__column-sticky {
    position: sticky;
    top: 20px;
}

/* ============================================
   Image Gallery - Main image with thumbnails below
   ============================================ */
.product-main-image {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 10px;
    min-height: 400px;
    margin-bottom: 12px;
}

.product-main-image a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    max-width: 100%;
    max-height: 500px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ============================================
   Cloudflare Stream Video Container
   ============================================ */
.video-container {
    width: 100%;
    max-width: 500px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 12px;
}

.video-square {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.video-square iframe,
.video-poster-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-poster-img {
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.video-play-btn svg {
    margin-left: 4px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.thumbnail-slider {
    width: 100%;
}

.thumbnail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.thumbnail-list .thumb-item {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s;
    background: none;
}

.thumbnail-list .thumb-item:hover,
.thumbnail-list .thumb-item.active {
    border-color: #1773b0;
}

.thumbnail-list .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video thumbnail with play overlay */
.thumbnail-list .thumb-video {
    position: relative;
}

.thumbnail-list .thumb-video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    z-index: 2;
}

.thumbnail-list .thumb-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Reviews / Star Ratings
   ============================================ */
.reviews_main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.star_revies {
    display: inline-flex;
    gap: 1px;
}

.star_revies svg {
    flex-shrink: 0;
}

.rating-link {
    font-size: 14px;
    color: #000;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.rating-link:hover {
    text-decoration: underline;
}

/* ============================================
   Product Title
   ============================================ */
.product-info-col h1 {
    font-size: 27.2px;
    font-weight: 700;
    color: #2d3142;
    font-family: 'Poppins', sans-serif;
    line-height: 34px;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* ============================================
   Price Section
   ============================================ */
.price--large {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.price--large .price-old s {
    color: #707070;
    text-decoration: line-through;
    font-size: 1.25rem;
    font-weight: 400;
}

.price--large .price-new {
    color: #15803d;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.discount-badge {
    background-color: #15803d;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
}

/* ============================================
   Product Description / Tagline
   ============================================ */
.product__text.inline-richtext {
    color: #000;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================
   Feature Checklist (Tag-based bullets)
   ============================================ */
.feature-checklist {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 18px;
}

.feature-checklist li {
    list-style-type: none;
    position: relative;
    font-size: 15px;
    color: #000;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    line-height: 22.5px;
    margin-bottom: 3.75px;
    padding-left: 0;
}

.feature-checklist li::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231773b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: -23px;
    top: 5px;
}

/* ============================================
   Bundle & Save Section
   ============================================ */
.product-form__input--pill {
    border: none;
    margin: 0 0 20px;
    padding: 0;
}

.form__label {
    font-size: 16px;
    font-weight: 400;
    color: #121212;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 16px;
    display: block;
    width: 100%;
}

.form__label-value {
    font-weight: 800;
}

/* Bundle cards row */
.bundle-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0 8px;
}

/* Hide the actual radio inputs - accessible clip technique */
input.bundle-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* Bundle option labels (cards) */
.option_btn.price-country-option {
    background: rgba(0,0,0,0);
    color: #121212;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    padding: 8px 10px;
    border: 1px solid rgb(232, 232, 225);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 161px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border 0.1s;
    flex-shrink: 0;
    min-height: 175px;
    margin: 7px 5px 2px 0;
}

.option_btn.price-country-option:hover {
    border-color: #3d86cb !important;
}

input.bundle-radio:checked + .option_btn.price-country-option {
    background: rgb(235, 243, 250);
    border-color: rgb(23, 115, 176);
    color: rgb(23, 115, 176);
}

input.bundle-radio:checked + .option_btn.price-country-option .product-sell-price {
    color: #ffffff;
}

/* Discount badge on bundle cards - positioned above card, square corners */
.discount-code {
    background-color: #15803d;
    color: #ffffff;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 3px 8px;
    display: inline-block;
    width: auto;
    text-align: center;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 21px;
    z-index: 1;
    white-space: nowrap;
}

/* Bundle option image */
.product-country-img {
    width: 80px;
    height: 70px;
    object-fit: fill;
    display: block;
    margin-bottom: 0;
    margin-top: 22px;
}

.option_btn-name {
    font-size: 13px;
    font-weight: 600;
    color: #121212;
    display: block;
    margin-bottom: 0;
    margin-top: 5px;
    line-height: 1.3;
}

/* Variant pricing inside bundle cards */
.variant-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin: 5px 0 0;
}

.compare_at_price {
    font-size: 12px;
    color: #687a7e;
}

.compare_at_price s {
    text-decoration: line-through;
}

.product-sell-price {
    font-size: 12px;
    color: #2b444c;
    font-weight: 400;
}

.price-info {
    font-size: 12px;
    color: #2b444c;
    font-weight: 500;
}

/* ============================================
   Exclusive Offer / Free Gifts Section
   ============================================ */
.exclusive-offer-section {
    margin-bottom: 1.5rem;
}

.free_product_offer_text {
    font-size: 16px;
    color: #121212;
    font-family: 'Poppins', sans-serif;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 400;
}

.free_product_list_main {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    margin-bottom: 10px;
}

.free_product {
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.free_product:hover {
    opacity: 0.85;
}

.free_product h3 {
    font-family: "Montserrat", serif;
    text-align: center;
    width: 90%;
    background-color: #1773b0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    padding: 7px;
    text-transform: uppercase;
    position: relative;
    top: 6%;
    margin: 0 auto;
    line-height: 1.3;
}

.free_product h3 del {
    text-decoration: line-through;
    opacity: 0.8;
    margin-left: 2px;
}

.free_product_image {
    width: 100%;
    background: #bedcf04f;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed #1773b0;
    border-radius: 10px;
    padding-top: 15px;
    padding-bottom: 10px;
    min-height: 80px;
}

.free_product_image img,
.free_product_image svg {
    max-width: 130px;
    width: 100%;
    object-fit: contain;
}

.free_product_title {
    font-family: "Montserrat", serif;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 12px 0 0;
    line-height: 20px;
}

/* ============================================
   Gift Popup Modals
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

.content_modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
}

.modal-popup {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
}

.modal-popup-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 30px 25px 25px;
    gap: 20px;
}

.modal-popup-image {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-popup-image svg,
.modal-popup-image img {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.modal-popup-body {
    text-align: left;
    flex: 1;
}

.modal-popup-price {
    margin-bottom: 10px;
}

.gift-badge {
    display: inline-block;
    background-color: #1773b0;
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.gift-badge del {
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 3px;
}

.modal-popup-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3142;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.modal-popup-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* ============================================
   Stock Status
   ============================================ */
.stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #15803d;
    margin-bottom: 1rem;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.stock-dot--low {
    background-color: #ef4444;
    animation: stock-pulse 1.5s ease-in-out infinite;
}

@keyframes stock-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.stock-urgency {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 0.75rem;
    margin-top: -0.5rem;
}

/* ============================================
   Quantity Control + Add to Cart Row
   ============================================ */
.qty-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: #f5f5f5;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-input {
    width: 50px;
    height: 44px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.product-form__submit {
    background-color: #3aaa35;
    color: #f3f3f3;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 56px;
    width: 100%;
    max-width: 100%;
    line-height: 32px;
    padding: 0 30px;
    border: none;
    cursor: pointer;
    margin-bottom: 0;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-form__submit:hover {
    background-color: #2d8a29;
    color: #fff;
}

/* ============================================
   Payment Trust Strip (SA-relevant)
   ============================================ */
.payment-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    margin-top: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #555;
}

.payment-trust-strip .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.payment-trust-strip .trust-item i {
    font-size: 11px;
    color: #1773b0;
}

.payment-trust-strip .trust-divider {
    color: #ccc;
    font-size: 10px;
}

@media (max-width: 767.98px) {
    .payment-trust-strip {
        font-size: 11px;
        gap: 4px 6px;
    }
    .payment-trust-strip .trust-item i {
        font-size: 10px;
    }
}

/* ============================================
   Wishlist/Compare buttons
   ============================================ */
.btn-group.mb-3 {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem !important;
}

.btn-group.mb-3 .btn {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 14px;
    color: #555;
}

.btn-group.mb-3 .btn:hover {
    border-color: #1773b0;
    color: #1773b0;
    background: #f0f7ff;
}

/* ============================================
   Custom Accordion
   ============================================ */
.custom-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    margin-bottom: 0;
}

.custom-accordion .accordion-button {
    font-weight: 500;
    padding: 16px 0;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #121212;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 22.5px;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: #121212;
}

.custom-accordion .accordion-button i,
.custom-accordion .accordion-button .fa-solid,
.custom-accordion .accordion-button .fa-regular {
    margin-right: 10px;
    font-size: 16px;
    color: #555;
}

.custom-accordion .accordion-button::after {
    background-size: 0.85rem;
    opacity: 0.6;
}

.custom-accordion .accordion-body {
    padding: 5px 0 20px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   Delivery Trust Strip (below Add to Cart)
   ============================================ */
.delivery-trust {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    font-family: 'Poppins', sans-serif;
}

.delivery-trust li {
    position: relative;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
    margin-bottom: 6px;
}

.delivery-trust li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231773b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
    .delivery-trust {
        margin: 14px 0 0;
    }
    .delivery-trust li {
        font-size: 12px;
    }
}

/* ============================================
   Product Info Layout
   ============================================ */
.product-info-col {
    padding-left: 20px;
}

@media (max-width: 991.98px) {
    .product-info-col {
        padding-left: 0;
        padding-right: 0;
        margin-top: 1.5rem;
    }
}

/* ============================================
   Product Sections (Baymard linear flow — no tabs)
   ============================================ */
.product-section {
    background: #fff;
    padding: 32px 0 36px;
}

.product-section--alt {
    background: #f7f8fa;
}

.product-section__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef1f5;
}

.product-section__body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
}

.product-section__body p {
    margin-bottom: 12px;
}

.product-section__body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.product-tags {
    font-size: 13px;
    color: #888;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

@media (max-width: 767.98px) {
    .product-section {
        padding: 24px 0 28px;
    }
    .product-section__heading {
        font-size: 18px;
    }
    .product-section__body {
        font-size: 14px;
    }
}

/* ============================================
   Review Cards (replaces table layout)
   ============================================ */
.review-cards {
    max-width: 720px;
    margin: 0 auto;
}

.review-card {
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 12px;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.review-card__author {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.review-card__date {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #999;
}

.review-card__stars {
    margin-bottom: 8px;
}

.review-card__stars .fa-star {
    font-size: 13px;
    color: #ffcf2b;
    margin-right: 2px;
}

.review-card__stars .fa-regular.fa-star {
    color: #d0d5dd;
}

.review-card__text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Review Form
   ============================================ */
.review-form__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 24px 0 16px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}

.review-form__name {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.review-form__name strong {
    color: #1a1a2e;
    font-weight: 500;
}

.review-form__rating {
    margin-bottom: 16px;
}

.review-form__rating-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

/* Star rating widget — clickable 5-star picker */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating__input {
    display: none;
}

.star-rating__star {
    cursor: pointer;
    font-size: 26px;
    color: #d0d5dd;
    transition: color 0.12s;
    line-height: 1;
}

.star-rating__star:hover,
.star-rating__star:hover ~ .star-rating__star,
.star-rating__input:checked ~ .star-rating__star {
    color: #ffcf2b;
}

.review-form__textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.review-form__submit {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
}

@media (max-width: 767.98px) {
    .review-card {
        padding: 14px 16px;
    }
    .review-card__text {
        font-size: 13px;
    }
    .star-rating__star {
        font-size: 28px;
    }
}

/* ============================================
   Readability Constraints — center & cap wide sections
   ============================================ */
.product-section__heading,
.product-section__body,
.review-form__heading,
.review-form__name,
.review-form__rating,
.review-form__textarea,
.review-form__submit,
.recently-viewed {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Cart Page — Card Layout (congruent with checkout)
   ============================================ */
#checkout-cart {
    background: #f5f6f8;
    min-height: 60vh;
    padding-bottom: 32px;
}

.cart-content-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

.cart-delivery-estimate {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

.cart-delivery-estimate .accordion-item {
    border: none;
    border-radius: 0;
}

.cart-delivery-estimate .accordion-button {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    padding: 0 0 12px;
    background: none;
    box-shadow: none;
}

.cart-delivery-estimate .accordion-button:not(.collapsed) {
    color: #1a1a2e;
    background: none;
}

.cart-delivery-estimate .accordion-body {
    padding: 12px 0 0;
}

/* Actions row */
.cart-actions {
    margin: 16px 0;
    text-align: center;
}

.cart-continue-link {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.15s;
    margin-top: 8px;
}

.cart-continue-link:hover {
    color: #555;
    text-decoration: underline;
}

/* Checkout CTA — green, dominant, high-contrast, full-width */
.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #3aaa35;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: 14px 36px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(58, 170, 53, 0.25);
    letter-spacing: 0.3px;
}
.cart-checkout-btn:hover {
    background-color: #2d8a29;
    color: #ffffff;
}
.cart-checkout-btn:active {
    background-color: #2d8a29;
    transform: scale(0.97);
}

@media (max-width: 767.98px) {
    .cart-checkout-btn {
        padding: 16px 20px;
        box-shadow: 0 4px 12px rgba(58, 170, 53, 0.3);
        font-size: 17px;
    }
}

/* Cart FAQ — card wrapper */
.cart-faq {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

.cart-faq__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.cart-faq__item {
    border-bottom: 1px solid #eef1f5;
    list-style: none;
    display: block;
}

.cart-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    user-select: none;
    min-height: 44px;
}

.cart-faq__question::-webkit-details-marker,
.cart-faq__question::marker {
    display: none;
    content: '';
}

/* + / − icon */
.cart-faq__question::after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 18px;
    font-weight: 400;
    color: #888;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}

details[open] .cart-faq__question::after {
    content: '−';
    transform: rotate(180deg);
}

.cart-faq__answer {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 14px;
    padding-right: 8px;
}

@media (max-width: 767.98px) {
    .cart-content-card,
    .cart-delivery-estimate,
    .cart-faq {
        border-radius: 0;
        padding: 16px;
    }
    #checkout-cart {
        background: #fff;
    }
}

/* ============================================
   Checkout — constrain form content for readability
   ============================================ */
.checkout-step-content {
    max-width: 680px;
    margin: 0 auto;
}

.checkout-order-preview {
    max-width: 680px;
    margin: 0 auto 16px;
}

#product-product {
    background: #fff;
}

/* ============================================
   General text sizing - consistent Poppins
   ============================================ */
#product-product,
#product-product p,
#product-product li,
#product-product .form-label,
#product-product .form-check-label,
#product-product .btn,
#product-product select,
#product-product input,
#product-product textarea {
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   Mobile Sticky Product Bar (Swap-on-Scroll)
   ============================================ */

/* Desktop — hidden by default */
#mobile-sticky-cart {
    display: none;
}

/* Desktop add-to-cart button stays visible on mobile — it's the
   Intersection Observer anchor and the primary CTA at page load.
   Quantity selector stays visible alongside it. */
@media (max-width: 767.98px) {
    .qty-cart-row {
        flex-direction: row;
    }
    .product-form__submit {
        display: flex;
        font-size: 16px;
        height: 48px;
        flex: 1;
    }
    .qty-control {
        width: auto;
        flex-shrink: 0;
    }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 80px;
    }

    #product-product.container,
    #product-product.container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .product-main-image {
        min-height: 0;
        height: auto;
        padding: 8px;
    }

    .product-main-image a {
        height: auto;
    }

    .product-main-image img {
        max-height: 100vw;
        width: 100%;
    }

    .thumbnail-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding-bottom: 8px;
    }

    .product-info-col h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .price--large .price-new {
        font-size: 1.5rem;
    }

    .bundle-cards-row {
        gap: 6px;
    }

    .option_btn.price-country-option {
        width: 140px;
        padding: 8px 8px;
        min-height: 155px;
        font-size: 13px;
    }

    .discount-code {
        font-size: 12px;
        padding: 2px 6px;
        top: -10px;
        line-height: 16px;
    }

    .product-country-img {
        width: 65px;
        height: 55px;
    }

    .option_btn-name {
        font-size: 11px;
    }

    .compare_at_price {
        font-size: 11px;
    }

    .product-sell-price {
        font-size: 11px;
    }

    .free_product_list_main {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .free_product h3 {
        width: 70%;
    }

    .qty-cart-row {
        flex-direction: row;
    }

    .qty-control {
        width: auto;
        justify-content: center;
        flex-shrink: 0;
    }

    .product-form__submit {
        font-size: 16px;
        height: 48px;
        flex: 1;
    }

    /* ============================================
       Sticky Product Bar � Mobile Layout
       ============================================ */
    #mobile-sticky-cart {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    body.sticky-bar-visible #mobile-sticky-cart {
        transform: translateY(0);
    }

    .sticky-bar-shell {
        background: #ffffff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
        padding: 8px 12px;
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }

    .sticky-bar-inner {
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* --- 30% Quantity Selector --- */
    .sticky-qty {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        border: 1.5px solid #d1d5db;
        border-radius: 10px;
        background: #f9fafb;
    }

    .sticky-qty-btn {
        width: 34px;
        height: 44px;
        border: none;
        background: transparent;
        font-size: 1.2rem;
        font-weight: 600;
        color: #374151;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        transition: background 0.15s;
    }

    .sticky-qty-btn:active {
        background: #e5e7eb;
    }

    .sticky-qty-input {
        width: 54px;
        min-width: 54px;
        height: 44px;
        border: none;
        border-left: 1px solid #d1d5db;
        border-right: 1px solid #d1d5db;
        border-radius: 0;
        text-align: center;
        font-size: 16px;
        font-weight: 700;
        font-family: 'Poppins', sans-serif;
        color: #111827;
        background: #ffffff;
        cursor: text;
        pointer-events: auto !important;
        user-select: text;
        -webkit-user-select: text;
        -webkit-appearance: none;
        appearance: none;
        outline: none;
        box-shadow: none;
    }

    .sticky-qty-input:focus {
        outline: 2px solid #1773b0;
        outline-offset: -2px;
        background: #f0f7ff;
    }

    /* --- 70% Add to Basket Button (vertical stack) --- */
    .sticky-add-to-basket {
        flex: 1;
        min-width: 0;
        height: 46px;
        background-color: #3aaa35;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        font-family: 'Poppins', sans-serif;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0 12px;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        transition: background-color 0.2s, transform 0.1s;
        position: relative;
        overflow: hidden;
        line-height: 1.2;
    }

    .sticky-add-to-basket:active:not(.sticky-btn-loading) {
        background-color: #2d8a29;
        transform: scale(0.97);
    }

    .sticky-btn-price {
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0.9;
        line-height: 1.2;
    }

    .sticky-btn-text {
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }

    /* --- Loading State --- */
    .sticky-btn-spinner {
        display: none;
        flex-shrink: 0;
        width: 20px;
        height: 20px;
    }

    .sticky-btn-spinner svg {
        width: 20px;
        height: 20px;
    }

    .sticky-btn-loading {
        background-color: #2d8a29;
        cursor: wait;
        opacity: 0.85;
    }

    .sticky-btn-loading .sticky-btn-text {
        text-transform: none;
        letter-spacing: 0;
    }

    /* --- Hidden bottom nav space compensation --- */
    /* The sticky bar overlays content at the bottom via position: fixed,
       so extra padding is not needed � the bottom nav is hidden during swap. */
}

/* Desktop � hide sticky bar, show bottom nav normally */
@media (min-width: 768px) {
    body.bottom-nav-hidden #bottom-tab-bar,
    body.sticky-bar-visible #bottom-tab-bar {
        display: none !important;
    }
}

/* ============================================
   Cart Sticky Bottom Checkout Bar (Mobile)
   Positioned above the bottom tab bar
   ============================================ */
.cart-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
}

.has-bottom-tabs .cart-sticky-bar {
    bottom: 60px;
}

.cart-sticky-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.cart-sticky-bar__total {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.cart-sticky-bar__total-label {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-sticky-bar__total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.cart-sticky-bar__cta {
    flex: 1;
    min-width: 0;
    height: 48px;
    background-color: #3aaa35;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    transition: background-color 0.2s;
}

.cart-sticky-bar__cta:active {
    background-color: #2d8a29;
}

/* ============================================
   Cart Card-Based Layout (replaces table)
   ============================================ */
.cart-items-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-item-card__image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.cart-item-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cart-item-card__body {
    flex: 1;
    min-width: 0;
}

.cart-item-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 4px;
}

.cart-item-card__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #6b7280;
}

.cart-item-card__meta li {
    line-height: 1.5;
}

.cart-item-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-card__qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-item-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.cart-item-card__price-unit {
    font-size: 12px;
    color: #6b7280;
}

.cart-item-card__price-total {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.cart-item-card__remove {
    position: absolute;
    top: 16px;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    font-size: 18px;
    -webkit-tap-highlight-color: transparent;
}

.cart-item-card__remove:active {
    color: #ef4444;
}

.cart-item-card__update-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
}

.cart-item-card__update-btn:active {
    background: #e5e7eb;
}

/* ------- Quantity Stepper (cart) ------- */
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.qty-stepper__btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f9fafb;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.qty-stepper__btn:active {
    background: #e5e7eb;
}

.qty-stepper__input {
    width: 56px;
    height: 36px;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #111827;
    background: #ffffff;
    -moz-appearance: textfield;
    padding: 0;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========== CART CROSS-SELL STRIP ========== */
.cart-cross-sell {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}
.cart-cross-sell__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-cross-sell__scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cart-cross-sell__scroller::-webkit-scrollbar {
    display: none;
}
.cart-cross-sell__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}
.cart-cross-sell__track {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}
.cart-cross-sell__track .product-thumb {
    min-width: 148px;
    max-width: 148px;
    flex-shrink: 0;
}
.cart-cross-sell__track .product-thumb__body {
    padding: 5px 7px 8px;
}
.cart-cross-sell__track .product-thumb__name {
    font-size: 12px;
    -webkit-line-clamp: 1;
    margin-bottom: 2px;
}
.cart-cross-sell__track .product-thumb__price-new {
    font-size: 13px;
}
@media (max-width: 767.98px) {
    .cart-cross-sell__track {
        gap: 8px;
    }
    .cart-cross-sell__track .product-thumb {
        min-width: 120px;
        max-width: 120px;
    }
    .cart-cross-sell__track .product-thumb__body {
        padding: 4px 6px 6px;
    }
    .cart-cross-sell__track .product-thumb__name {
        font-size: 11px;
    }
    .cart-cross-sell__track .product-thumb__price-new {
        font-size: 12px;
    }
}

/* ------- Free-Shipping Progress Bar ------- */
.cart-free-shipping {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
}

.cart-free-shipping__text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cart-free-shipping__text strong {
    color: #b45309;
}

.cart-free-shipping__text--achieved {
    color: #15803d;
}

.cart-free-shipping__text--achieved strong {
    color: #15803d;
}

.cart-free-shipping__bar {
    height: 6px;
    background: #fde68a;
    border-radius: 3px;
    overflow: hidden;
}

.cart-free-shipping__bar--achieved {
    background: #bbf7d0;
}

.cart-free-shipping__fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-free-shipping__bar--achieved .cart-free-shipping__fill {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* ------- Cart Trust Badges (sticky bar) ------- */
.cart-sticky-bar__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 0 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.cart-sticky-bar__trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.cart-sticky-bar__trust-payments {
    gap: 5px;
}

.payment-badge-mini {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

/* ------- Checkout Trust Reassurance Strip ------- */
.checkout-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.checkout-trust-strip__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .checkout-trust-strip {
        gap: 12px;
        padding: 12px;
    }
    .checkout-trust-strip__item {
        font-size: 11px;
    }
}

/* ------- Cart Totals Card ------- */
.cart-totals-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.cart-totals-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
}

.cart-totals-card__row--grand {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    border-top: 2px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 4px;
}


/* ============================================
   Category Page � Taobao-Style Redesign v2
   ============================================ */
/* ============================================
   Category Page - Elite Redesign (JD/Taobao inspired)
   Clean, high-impact product browsing.
   ============================================ */
.cat-page {
    min-height: 100vh;
    background: #fff;
}

/* Breadcrumbs */
.cat-page__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 0;
    font-size: 12px;
    color: #94a3b8;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.cat-page__breadcrumbs::-webkit-scrollbar { display: none; }
.cat-page__breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.15s;
}
.cat-page__breadcrumbs a:hover { color: #1773b0; }
.cat-page__breadcrumb-sep {
    color: #d0d5dd;
    flex-shrink: 0;
    font-size: 10px;
}
.cat-page__breadcrumb-current {
    color: #1a1a2e;
    font-weight: 500;
    flex-shrink: 0;
}

/* Header */
.cat-page__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 14px 0;
}
.cat-page__title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
}
.cat-page__count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    white-space: nowrap;
}

/* Subcategory chips */
.cat-page__subcats {
    padding: 12px 14px 8px;
}
.cat-page__subcats-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.cat-page__subcats-scroll::-webkit-scrollbar { display: none; }
.cat-page__subcat-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    padding: 6px 4px;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s;
}
.cat-page__subcat-chip:active { background: #f6f6f6; }
.cat-page__subcat-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #eef1f5;
}
.cat-page__subcat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border-radius: 50%;
    color: #1773b0;
}
.cat-page__subcat-name {
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.3;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Product grid */
.cat-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 10px 16px;
}

/* Pagination */
.cat-page__pagination {
    padding: 16px 16px 32px;
    display: flex;
    justify-content: center;
}

/* Empty state */
.cat-page__empty {
    text-align: center;
    padding: 80px 24px;
}
.cat-page__empty-icon { margin-bottom: 16px; opacity: 0.5; }
.cat-page__empty-title {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px;
    font-family: 'Poppins', sans-serif;
}
.cat-page__empty-cta {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 22px;
    background: #1773b0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}
.cat-page__empty-cta:active { background: #125d8f; }

/* Subcategory fallback */
.cat-page__subcat-fallback {
    padding: 40px 16px;
    text-align: center;
}
.cat-page__subcat-fallback-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}
.cat-page__subcat-fallback-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.cat-page__subcat-fallback-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    font-family: 'Poppins', sans-serif;
    transition: background 0.15s, transform 0.15s;
    border: 1px solid transparent;
}
.cat-page__subcat-fallback-tile:hover,
.cat-page__subcat-fallback-tile:active {
    background: #e8f4f8;
    border-color: #d0e8f5;
    transform: translateY(-1px);
}
.cat-page__subcat-fallback-tile img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* ============================================
   Recently Viewed (JD.com pattern)
   ============================================ */
.recently-viewed {
    margin-top: 32px;
    margin-bottom: 24px;
    padding: 0 8px;
}
.recently-viewed__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.recently-viewed__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.recently-viewed__scroll::-webkit-scrollbar { display: none; }
.recently-viewed__card {
    flex: 0 0 100px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.recently-viewed__image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eef1f5;
}
.recently-viewed__name {
    font-size: 11px;
    color: #333;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100px;
}

/* ============================================
   Category Page Responsive
   ============================================ */
@media (min-width: 576px) {
    .cat-page__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 16px 14px 20px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    .cat-page__breadcrumbs { padding: 14px 16px 0; }
    .cat-page__header { padding: 12px 16px 0; }
    .cat-page__subcats { padding: 14px 16px 10px; }
    .cat-page__title { font-size: 22px; }
}

@media (min-width: 992px) {
    .cat-page__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        padding: 20px 24px 24px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .cat-page__breadcrumbs { padding: 16px 24px 0; }
    .cat-page__header { padding: 14px 24px 0; }
    .cat-page__subcats { padding: 16px 24px 12px; }
    .cat-page__title { font-size: 24px; }
    .cat-page__subcat-chip { min-width: 80px; }
    .cat-page__subcat-img,
    .cat-page__subcat-icon { width: 60px; height: 60px; }
    .cat-page__subcat-name { font-size: 12px; max-width: 80px; }
    .cat-page__subcat-fallback-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   Login & Register Pages � Mobile-First Forms
   ============================================ */
.login-input-lg,
.register-input-lg {
    height: 48px;
    font-size: 16px;
    border-radius: 8px;
}

.login-input-lg:focus,
.register-input-lg:focus {
    border-color: #1773b0;
    box-shadow: 0 0 0 0.2rem rgba(23, 115, 176, 0.15);
}

.login-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    padding: 10px 0 0;
    border-top: 1px solid #f0f0f0;
}

.login-trust-badge svg {
    flex-shrink: 0;
}

/* ------- Password Strength Meter ------- */
.password-strength__bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.password-strength__fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength__text {
    font-size: 12px;
    color: #6b7280;
}

/* ============================================
   Contact Page � WhatsApp CTA (Chinese CRO / SA)
   ============================================ */
.contact-whatsapp-cta {
    background: #f0fdf4;
    border: 2px solid #25D366;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    transition: background 0.2s;
}

.contact-whatsapp-btn:hover,
.contact-whatsapp-btn:active {
    background: #1da851;
    color: #fff;
    text-decoration: none;
}

.contact-whatsapp-hours {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6b7280;
    margin: 10px 0 0;
}

/* ------- Contact Form Inputs ------- */
.contact-input-lg {
    height: 48px;
    font-size: 16px;
    border-radius: 8px;
}

textarea.contact-input-lg {
    height: auto;
    min-height: 120px;
}

/* ------- Contact FAQ Quick-Links (M12) ------- */
.contact-faq-grid {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.contact-faq-grid__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.contact-faq-grid__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-faq-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: #f9fafb;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-height: 88px;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.contact-faq-item:hover,
.contact-faq-item:active {
    border-color: #1773b0;
    box-shadow: 0 2px 8px rgba(23,115,176,0.12);
    text-decoration: none;
    color: #1773b0;
}

.contact-faq-item i {
    font-size: 24px;
    color: #1773b0;
}

/* ------- Register Progressive Disclosure (M11) ------- */
.register-show-more {
    padding: 12px 0;
    text-align: center;
}

.register-show-more__btn {
    background: none;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, color 0.15s;
}

.register-show-more__btn:hover {
    border-color: #1773b0;
    color: #1773b0;
}

/* ------- Search Trending Strip (M09) ------- */
.search-trending {
    margin-bottom: 20px;
}

.search-trending__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.search-trending__pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-trending__pills::-webkit-scrollbar {
    display: none;
}

.search-trending__pill {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    min-height: 36px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.search-trending__pill:active {
    background: #e5e7eb;
}

.search-trending__loading {
    font-size: 13px;
    color: #9ca3af;
}

/* ------- Search No-Results Fallback ------- */
.search-no-results-fallback {
    margin-top: 20px;
}

/* ============================================
   Search Page � Taobao-Style Redesign
   ============================================ */
.search-page {
    min-height: 100vh;
    background: #f5f5f5;
}

/* Sticky search bar */
.search-page__bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.search-page__bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
}

.search-page__back {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
}

.search-page__back:active {
    background: #f0f0f0;
}

.search-page__form {
    flex: 1;
    display: flex;
    gap: 8px;
}

.search-page__input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-page__input-icon {
    position: absolute;
    left: 12px;
    pointer-events: none;
}

.search-page__input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: #f9fafb;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.search-page__input:focus {
    border-color: #1773b0;
    background: #fff;
}

.search-page__input::placeholder {
    color: #9ca3af;
}

.search-page__clear {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: #d1d5db;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.search-page__submit {
    flex-shrink: 0;
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 20px;
    background: #1773b0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.search-page__submit:active {
    background: #125d8f;
}

/* Category filter chips row */
.search-page__filter-row {
    margin-top: 8px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.search-page__filter-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.search-page__filter-scroll::-webkit-scrollbar {
    display: none;
}

.search-page__filter-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 16px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.search-page__filter-chip--active {
    background: #1773b0;
    color: #fff;
}

.search-page__filter-chip:active {
    background: #e5e7eb;
}

/* Discovery mode (no search) */
.search-page__discovery {
    padding: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.search-page__section {
    margin-bottom: 24px;
}

.search-page__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.search-page__section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
}

.search-page__section-action {
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Search history chips */
.search-page__history-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-page__history-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.search-page__history-chip:active {
    background: #f0f0f0;
}

/* Trending searches */
.search-page__trending-loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-page__trending-skeleton {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    width: 70%;
}

.search-page__trending-rows {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.search-page__trending-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.search-page__trending-row:last-child {
    border-bottom: none;
}

.search-page__trending-row:active {
    background: #f9fafb;
}

.search-page__trending-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-page__trending-rank--hot {
    color: #ef4444;
}

.search-page__trending-term {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.search-page__trending-count {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Category browse grid */
.search-page__cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.search-page__cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.search-page__cat-tile:active {
    transform: scale(0.96);
}

.search-page__cat-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.search-page__cat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border-radius: 12px;
    color: #1773b0;
}

.search-page__cat-name {
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

/* Results */
.search-page__results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
}

.search-page__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
}

.search-page__summary-text {
    font-size: 13px;
    color: #666;
}

.search-page__summary-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #1773b0;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.search-page__summary-sort:active {
    background: #e8f0f8;
}

/* Product grid */
.search-page__product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Sort drawer */
.search-page__sort-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}

.search-page__sort-drawer--open {
    pointer-events: auto;
    opacity: 1;
}

.search-page__sort-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.search-page__sort-drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0 0 env(safe-area-inset-bottom);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 60vh;
    overflow-y: auto;
}

.search-page__sort-drawer--open .search-page__sort-drawer-content {
    transform: translateY(0);
}

.search-page__sort-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.search-page__sort-drawer-header h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.search-page__sort-drawer-header button {
    border: none;
    background: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.search-page__sort-list {
    padding: 8px 0;
}

.search-page__sort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.15s;
}

.search-page__sort-item:active {
    background: #f5f5f5;
}

.search-page__sort-item--active {
    color: #1773b0;
    font-weight: 600;
}

/* Pagination */
.search-page__pagination {
    padding: 16px 8px 24px;
    display: flex;
    justify-content: center;
}

/* Empty state */
.search-page__empty {
    text-align: center;
    padding: 48px 24px;
    max-width: 400px;
    margin: 0 auto;
}

.search-page__empty-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.search-page__empty-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.search-page__empty-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.search-page__fallback-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.search-page__loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

/* Desktop up */
@media (min-width: 768px) {
    .search-page__bar {
        padding: 12px 24px;
    }

    .search-page__input {
        height: 44px;
        font-size: 16px;
    }

    .search-page__submit {
        height: 44px;
        padding: 0 24px;
    }

    .search-page__product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .search-page__fallback-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .search-page__cat-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .search-page__sort-drawer {
        display: none; /* Use inline sort on desktop */
    }
}

/* ============================================
   Account Page � Greeting (Chinese CRO)
   ============================================ */
.account-greeting {
    padding: 12px 16px 8px;
}

.account-greeting__text {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 992px) {
    .account-greeting {
        max-width: 800px;
        margin: 0 auto;
        padding: 16px 24px 8px;
    }
}

/* ------- Order Count Badge (Account page) ------- */
.order-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    z-index: 2;
}

.account-order-item {
    position: relative;
}

/* ============================================
   Skeleton Loading (Chinese CRO pattern)
   ============================================ */
.skeleton-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.skeleton-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef1f5;
}

.skeleton-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e5e7eb;
}

.skeleton-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-card__line {
    height: 14px;
    background: #e5e7eb;
    border-radius: 4px;
}

.skeleton-pulse {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ============================================
   Order Cards (Order List � M06)
   ============================================ */
.order-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.order-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
}

.order-card__id {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.order-card__date {
    font-size: 12px;
    color: #6b7280;
}

.order-card__body {
    padding: 0 16px 14px;
}

.order-card__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.order-card__items {
    font-size: 13px;
    color: #6b7280;
}

.order-card__status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.order-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}

.order-status-badge--pending { background: #fef3c7; color: #92400e; }
.order-status-badge--processing,
.order-status-badge--processing { background: #dbeafe; color: #1e40af; }
.order-status-badge--shipped { background: #e0e7ff; color: #3730a3; }
.order-status-badge--complete,
.order-status-badge--completed { background: #d1fae5; color: #065f46; }
.order-status-badge--canceled,
.order-status-badge--cancelled { background: #fee2e2; color: #991b1b; }

.order-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-card__total {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.order-card__actions {
    display: flex;
    gap: 8px;
}

.order-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

.order-card__btn--view {
    background: #f3f4f6;
    color: #374151;
}

.order-card__btn--reorder {
    background: #3aaa35;
    color: #ffffff;
}

.order-card__btn--reorder:active {
    background: #2d8a29;
}

/* ============================================
   Order Info Cards (Order Detail � M07)
   ============================================ */
.order-info-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px 16px;
    min-height: 64px;
}

.order-info-card__heading {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.order-info-card__content {
    font-size: 14px;
    color: #111827;
    margin: 0;
    line-height: 1.5;
}

.order-info-card__tracking {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    background: #3aaa35;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.order-info-card__tracking:hover,
.order-info-card__tracking:active {
    background: #2d8a29;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================
   Order Progress Tracker (Order Detail � M07)
   ============================================ */
.order-progress {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 20px;
}

.order-progress__track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.order-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.order-progress__step--active,
.order-progress__step--completed {
    opacity: 1;
}

.order-progress__dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

.order-progress__step--completed .order-progress__dot {
    background: #d1fae5;
    color: #065f46;
}

.order-progress__step--active .order-progress__dot {
    background: #dbeafe;
    color: #1e40af;
}

.order-progress__label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
}

.order-progress__step--active .order-progress__label {
    color: #1e40af;
}

.order-progress__step--completed .order-progress__label {
    color: #065f46;
}

.order-progress__line {
    height: 3px;
    background: #e5e7eb;
    flex: 1;
    margin-top: 19px;
    min-width: 12px;
    border-radius: 2px;
}

.order-progress__line--filled {
    background: #22c55e;
}

/* ============================================
   Order Help Bar (Order Detail � M08)
   ============================================ */
.order-help-bar {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    text-align: center;
}

.order-help-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #15803d;
    text-decoration: none;
    min-height: 44px;
}

.order-help-bar__link:hover,
.order-help-bar__link:active {
    color: #065f46;
    text-decoration: underline;
}

/* ============================================
   CMS PAGE � Icon Action Grid + Back to Top (Chinese CRO)
   ============================================ */
.cms-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.cms-action-grid {
    margin-top: 32px;
    padding: 24px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.cms-action-grid__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.cms-action-grid__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.cms-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #1a1a2e;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    min-height: 72px;
    padding: 12px 4px;
    background: #fff;
    border-radius: 12px;
    transition: background 0.15s, transform 0.1s;
}

.cms-action-item i {
    font-size: 22px;
    color: #1773b0;
}

.cms-action-item:hover,
.cms-action-item:active {
    background: #e8f4f8;
    text-decoration: none;
    color: #1a1a2e;
    transform: translateY(-1px);
}

/* Sticky back-to-top FAB */
.back-to-top-fab {
    position: fixed;
    bottom: 76px;
    right: 16px;
    z-index: 9989;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #dde3ea;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 16px;
    color: #555;
    padding: 0;
}

.back-to-top-fab:hover,
.back-to-top-fab:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: #f0f7ff;
    border-color: #1773b0;
    color: #1773b0;
}

/* ============================================
   BLOG � Card-Based Grid (Chinese CRO)
   ============================================ */
.blog-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef1f5;
    transition: box-shadow 0.25s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:active {
    transform: scale(0.98);
}

.blog-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #f9fafb;
    overflow: hidden;
}

.blog-card__image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card__image-wrap img {
    transform: scale(1.04);
}

.blog-card__body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0 0 6px;
    text-decoration: none;
}

.blog-card__title:hover {
    color: #1773b0;
}

.blog-card__meta {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.blog-card__reading-time {
    color: #1773b0;
    font-weight: 600;
}

.blog-card__excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1773b0;
    text-decoration: none;
    padding: 10px 0 0;
    min-height: 44px;
    min-width: 44px;
}

.blog-card__read-more:hover {
    color: #0d5b8a;
}

@media (min-width: 576px) {
    .blog-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .blog-card:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
}

/* ========== COURIER GUY DELIVERY STEP ========== */
.delivery-step {
    width: 100%;
}

.delivery-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.delivery-card.selected,
.delivery-card.border-primary {
    border-color: #1773b0;
}

.delivery-radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.delivery-radio-circle.selected {
    border-color: #1773b0;
}

.delivery-radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.delivery-radio-circle.selected .delivery-radio-dot {
    background: #1773b0;
}

/* ============================================
   GLOBAL: Prevent content from touching footer / bottom tab bar
   ============================================ */
body.has-bottom-tabs main {
    padding-bottom: 24px;
}

/* ============================================
   GLOBAL: Mobile header bar (loaded on all pages via hugterra.css)
   ============================================ */
.mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eef1f5;
    gap: 12px;
    min-height: 60px;
}

.mobile-header-bar__logo {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mobile-header-bar__logo img {
    max-height: 34px;
    width: auto;
}

.mobile-header-bar__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 8px;
    flex-shrink: 0;
}

.mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    padding: 0 4px;
}

/* ============================================
   GLOBAL: Mobile search bar (loaded on all pages)
   ============================================ */
.mobile-search-bar {
    padding: 10px 16px 14px;
    background: #fff;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.mobile-search-btn {
    background: #1773b0;
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
}

/* ============================================
   GLOBAL: Double-search fix � hide header search on search page
   ============================================ */
.route-product-search .desktop-utility-bar__search,
.route-product-search .mobile-search-bar,
.route-product-search .mobile-header-bar {
    display: none !important;
}

/* Hide mobile header/search on desktop */
@media (min-width: 992px) {
    .mobile-header-bar,
    .mobile-search-bar {
        display: none !important;
    }
}

/* ============================================
   Mobile Categories Drawer (Bottom Sheet)
   ============================================ */
.categories-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.categories-overlay.active {
    display: block;
    opacity: 1;
}

.categories-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    -webkit-overflow-scrolling: touch;
}

.categories-drawer.active {
    transform: translateY(0);
}

.categories-drawer__handle {
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 10px auto 6px;
    flex-shrink: 0;
}

.categories-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.categories-drawer__title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.categories-drawer__close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    -webkit-tap-highlight-color: transparent;
}

.categories-drawer__close:active {
    background: #e5e7eb;
}

.categories-drawer__list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.categories-drawer__section-label {
    padding: 16px 20px 6px !important;
    padding-left: 20px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.categories-drawer__item--popular .categories-drawer__item-icon {
    background: #fef3c7;
    color: #d97706;
}

.categories-drawer__item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.categories-drawer__item:active {
    background: #f5f5f5;
}

.categories-drawer__item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1773b0;
}

.categories-drawer__item-arrow {
    margin-left: auto;
    color: #bbb;
    flex-shrink: 0;
}

.categories-drawer__view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    margin: 4px 12px 12px;
    background: #f9fafb;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1773b0;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.categories-drawer__view-all:active {
    background: #f0f4ff;
}

/* Add padding when categories drawer might overlap content */
body.categories-drawer-open {
    overflow: hidden;
}

/* Categories tab in bottom nav � override button styling */
.tab-item--categories {
    color: #3aaa35;
    font-weight: 600;
    font-size: 11px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    padding: 0;
}
.tab-item--categories svg {
    width: 24px;
    height: 24px;
}
.tab-item--categories:hover,
.tab-item--categories:active {
    color: #2d8e26;
}
