.subcategory-row a {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.subcategory-row a:hover {
    border-color: #ea580c;
    color: #ea580c;
}

.subcategory-row a.active {
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #fff !important;
    font-weight: 600;
}

.category-link-list {
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.category-link-list a {
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #334155;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.category-link-list a:hover,
.category-link-list a.active {
    background: #fff3eb;
    color: #ea580c;
}

.category-link-list a.active {
    font-weight: 700;
    border-left: 3px solid #ea580c;
    padding-left: 9px;
    background: #fff7ed;
}

.category-link-list a.root-link {
    font-weight: 700;
    color: #0f2b48;
}

.category-link-list a.child-link {
    padding-left: 20px;
}

.category-link-list a.child-link.active {
    padding-left: 17px;
}

.category-link-list a.subchild-link {
    padding-left: 32px;
}

.category-link-list a.subchild-link.active {
    padding-left: 29px;
}

.category-link-list small {
    color: #64748b;
    font-weight: normal;
    font-size: 11px;
}

/* Category Hero Gọn Gàng Phi Tuyết */
.category-hero-compact {
    background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0 18px;
    margin-bottom: 24px;
}

.category-hero-compact .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.category-hero-compact .breadcrumbs a {
    color: #475569;
    text-decoration: none;
}

.category-hero-compact .breadcrumbs a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.category-hero-compact .bc-sep {
    color: #94a3b8;
}

.category-hero-compact .bc-current {
    color: #0f2b48;
    font-weight: 600;
}

.category-hero-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.category-title-group {
    flex: 1;
    min-width: 280px;
}

.category-main-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f2b48;
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.category-main-desc {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
    max-width: 720px;
}

.category-hero-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #9a3412;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cat-badge-icon {
    font-style: normal;
}

/* Catalog Layout & Sidebar */
.catalog-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 28px !important;
    padding-bottom: 40px !important;
}

.filter-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    align-self: start;
    position: sticky;
    top: 90px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ea580c;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.filter-title b {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #0f2b48;
}

.filter-close-btn {
    display: none;
    border: none;
    background: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
}

/* Subcategory row */
.subcategory-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Catalog Tools */
.catalog-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tools-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}

.tools-left b {
    color: #ea580c;
    font-weight: 700;
}

.search-keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffedd5;
    color: #9a3412;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.clear-search-link {
    color: #9a3412;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
}

.tools-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-search {
    display: flex;
    align-items: center;
    position: relative;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    height: 38px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-search:focus-within {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.inline-search .search-icon {
    font-size: 14px;
    color: #94a3b8;
    margin-right: 6px;
}

.inline-search input {
    border: none;
    outline: none;
    font-size: 13px;
    width: 190px;
    color: #1e293b;
    background: transparent;
}

.sort-wrapper select {
    height: 38px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 13px;
    color: #334155;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-wrapper select:focus {
    border-color: #ea580c;
}

/* Category Products Grid (4 cột desktop khi có sidebar) */
.category-products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 32px 0 16px;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.pagination .page-link:hover {
    border-color: #ea580c;
    color: #ea580c;
    background: #fff7ed;
}

.pagination .page-link.active {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

.pagination .prev-link,
.pagination .next-link {
    padding: 0 14px;
    font-weight: 500;
}

.pagination .page-ellipsis {
    padding: 0 4px;
    color: #94a3b8;
}

/* Empty State */
.category-empty-state {
    text-align: center;
    padding: 56px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    margin: 16px 0;
}

.category-empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.category-empty-state h2,
.category-empty-state h3 {
    font-size: 18px;
    color: #0f2b48;
    margin: 0 0 8px 0;
}

.category-empty-state p {
    font-size: 13.5px;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.category-empty-state .empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Product Card image override */
.product-art.has-image {
    background: #fff;
}

.product-art.has-image:after {
    display: none;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
    position: relative;
    z-index: 2;
}

/* Search results hero & empty */
.search-results-hero {
    padding: 24px 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.search-results-hero h1 {
    font-size: 24px;
    margin: 0 0 6px;
    color: var(--ink);
}

.search-results-hero p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.search-results-hero strong {
    color: var(--orange);
}

.search-empty {
    text-align: center;
    padding: 64px 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px dashed var(--line);
    margin: 24px 0;
}

.search-empty p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
}

/* Responsive Category Page */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 210px minmax(0, 1fr) !important;
        gap: 18px !important;
    }
    .category-products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .catalog-layout {
        display: block !important;
    }
    .filter-mobile-button {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: #0f2b48;
        color: #ffffff;
        border: none;
        padding: 12px 16px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 14px;
        margin-bottom: 16px;
        cursor: pointer;
    }
    .filter-mobile-button small {
        color: #fed7aa;
        font-weight: normal;
    }
    .filter-panel {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 100;
        border-radius: 0;
        overflow-y: auto;
        padding: 20px 16px;
        top: 0;
        background: #ffffff;
    }
    .filter-panel.open {
        display: block !important;
    }
    .filter-close-btn {
        display: block;
    }
    .subcategory-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .catalog-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .tools-left,
    .tools-right {
        justify-content: space-between;
    }
    .inline-search {
        flex: 1;
    }
    .inline-search input {
        width: 100%;
    }
    .category-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .category-hero-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   STOREFRONT PRODUCT DETAIL — PHI TUYẾT CANONICAL STYLING
   ========================================================================== */

.product-detail {
    padding-top: 12px;
    padding-bottom: 48px;
}

.preview-banner {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13.5px;
}

/* 1. Breadcrumbs */
.breadcrumbs.full {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs.full a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumbs.full a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.breadcrumbs.full .bc-sep {
    color: #94a3b8;
}

.breadcrumbs.full .bc-current {
    color: #0f2b48;
    font-weight: 600;
}

/* 2. Product Detail 2-Column Grid */
.product-detail-grid {
    display: grid !important;
    grid-template-columns: minmax(360px, 46%) 1fr !important;
    gap: 36px !important;
    align-items: start;
    margin-bottom: 40px;
}

/* Gallery & Stage */
.gallery {
    display: flex !important;
    gap: 14px;
    align-items: start;
}

.thumbnails {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
}

.thumb-btn {
    width: 68px;
    height: 68px;
    padding: 2px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.thumb-btn:hover {
    border-color: #fdba74;
}

.thumb-btn.active {
    border-color: #ea580c !important;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.product-stage {
    position: relative !important;
    flex: 1;
    min-height: 440px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.product-stage img[data-main-product-image] {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

/* Product Detail Badges */
.product-detail-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 5;
}

.badge-sale {
    background: #ea580c;
    color: #ffffff;
}

.badge-hot {
    background: #dc2626;
    color: #ffffff;
}

.badge-new {
    background: #0284c7;
    color: #ffffff;
}

/* Detail Fallback Mark (PT) */
.detail-fallback-mark {
    width: 190px;
    height: 240px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0f2b48 0%, #1e3a5f 100%);
    box-shadow: 0 10px 24px rgba(15, 43, 72, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 16px;
    text-align: center;
    border-top: 6px solid #ea580c;
}

.detail-fallback-mark .pack-mark {
    background: #ea580c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.detail-fallback-mark strong {
    font-size: 24px;
    font-weight: 800;
    margin-top: 14px;
    color: #fed7aa;
    line-height: 1.2;
}

.detail-fallback-mark small {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
}

/* 3. Product Info Column */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f2b48 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.2px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.product-meta-row a {
    color: #0f2b48;
    text-decoration: none;
}

.product-meta-row a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.product-meta-row .meta-sep {
    color: #cbd5e1;
}

.product-meta-row code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #334155;
}

.product-short-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 4px 0 16px;
}

/* Product Price Box */
.product-price-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ea580c;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.retail-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.retail-price-row .price-label {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 600;
}

.retail-price-row .detail-price {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: #ea580c !important;
    margin: 0 !important;
    line-height: 1;
}

.retail-price-row .unit-badge {
    font-size: 14px;
    color: #64748b;
}

.wholesale-price-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wholesale-price-row .wholesale-label {
    font-size: 13px;
    color: #475569;
    font-weight: 700;
}

.wholesale-numeric-val {
    font-size: 18px;
    color: #15803d;
}

.wholesale-numeric-val strong {
    font-weight: 800;
}

.wholesale-numeric-val small {
    font-size: 12px;
    color: #16a34a;
    font-weight: normal;
    margin-left: 4px;
}

.wholesale-guest-callout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #1d4ed8;
    flex-wrap: wrap;
}

.wholesale-guest-callout strong {
    color: #1e40af;
}

.wholesale-guest-callout small {
    color: #3b82f6;
}

/* Unit Selector */
.unit-selector-block {
    margin-bottom: 20px;
}

.unit-selector-block .block-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f2b48;
    margin-bottom: 6px;
}

.unit-select-control {
    width: 100%;
    max-width: 380px;
    height: 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f2b48;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.unit-select-control:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Purchase Action Block */
.purchase-action-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.qty-and-stock {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.quantity-control-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control-wrapper .block-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f2b48;
}

.quantity-control {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.quantity-control button {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s ease;
}

.quantity-control button:hover {
    background: #e2e8f0 !important;
}

.quantity-control input {
    width: 48px !important;
    height: 36px !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f2b48 !important;
    outline: none !important;
}

.stock-status-pill .stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #dcfce7;
    color: #15803d;
}

.stock-badge.pre-order {
    background: #fef3c7;
    color: #b45309;
}

/* Action Buttons Group */
.action-buttons-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-add-cart-detail {
    background: #ea580c !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 12px 26px !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.button-add-cart-detail:hover {
    background: #c2410c !important;
    transform: translateY(-1px);
}

.button-zalo-cta {
    background: #ffffff !important;
    color: #0068ff !important;
    border: 1.5px solid #0068ff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.button-zalo-cta:hover {
    background: #eff6ff !important;
}

/* Trust Strip */
.detail-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

.detail-trust-strip .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #334155;
    font-weight: 500;
}

.detail-trust-strip .trust-icon {
    color: #16a34a;
    font-weight: 800;
}

/* 4. Product Description & Specs Sections */
.product-description-container {
    margin-top: 24px;
    margin-bottom: 40px;
}

.content-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.content-heading {
    font-size: 16px;
    font-weight: 800;
    color: #0f2b48;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ea580c;
    display: inline-block;
}

.product-body-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
}

.specs-table-wrapper {
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.specs-table th,
.specs-table td {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
}

.specs-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f2b48;
    width: 28%;
    text-align: left;
}

.specs-table td {
    color: #334155;
}

/* 5. Related Section */
.related-section {
    margin-top: 36px;
    margin-bottom: 48px;
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
}

.related-section .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.related-section .section-heading h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0f2b48;
    margin: 0;
}

.related-section .section-heading a {
    color: #ea580c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.related-section .section-heading a:hover {
    text-decoration: underline;
}

.related-products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
}

/* 6. Product Not Found Empty State */
.product-not-found-state {
    text-align: center;
    padding: 64px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    margin: 24px 0;
}

.product-not-found-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.product-not-found-state h1 {
    font-size: 22px;
    color: #0f2b48;
    margin: 0 0 8px 0;
}

.product-not-found-state p {
    font-size: 14px;
    color: #64748b;
    margin: 0 auto 20px;
    max-width: 460px;
}

.product-not-found-state .empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive Product Detail */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
    .related-products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .gallery {
        flex-direction: column-reverse !important;
    }
    .thumbnails {
        flex-direction: row !important;
        max-height: none !important;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .thumb-btn {
        width: 58px;
        height: 58px;
    }
    .product-stage {
        min-height: 280px;
        max-height: 360px;
        padding: 12px;
    }
    .product-stage img[data-main-product-image] {
        max-height: 320px;
    }
    .product-title {
        font-size: 20px !important;
    }
    .detail-price {
        font-size: 26px !important;
    }
    .action-buttons-group {
        flex-direction: column;
    }
    .button-add-cart-detail,
    .button-zalo-cta {
        width: 100%;
    }
    .detail-trust-strip {
        grid-template-columns: 1fr;
    }
    .content-block {
        padding: 16px;
    }
    .specs-table th {
        width: 38%;
    }
    .related-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* ==========================================================================
   STOREFRONT CART — PHI TUYẾT CANONICAL STYLES
   ========================================================================== */

.cart-page {
    background: #f8fafc;
    min-height: 70vh;
    padding-bottom: 40px;
}

.cart-header-intro {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0 18px;
    text-align: center;
}

.cart-page-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f2b48;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.cart-page-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 22px 0 18px;
}

.order-steps span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.order-steps span.active {
    color: #0f2b48;
    font-weight: 700;
}

.order-steps span b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.order-steps span.active b {
    background: #ea580c;
    color: #ffffff;
}

.order-steps i {
    width: 44px;
    height: 2px;
    background: #e2e8f0;
}

.empty-cart-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 56px 24px;
    margin: 24px auto;
    max-width: 580px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.empty-cart-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.empty-cart-box h2 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.empty-cart-box p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    margin-top: 12px;
}

.cart-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-card,
.form-card,
.summary-card,
.zalo-support-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cart-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-title h1 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cart-title small {
    font-weight: 400;
    color: #64748b;
}

.continue-shopping-link {
    color: #ea580c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.continue-shopping-link:hover {
    color: #c2410c;
    text-decoration: underline;
}

.cart-table-head {
    display: grid;
    grid-template-columns: 2.8fr 1.1fr 1.2fr 1.2fr 70px;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
}

.cart-row {
    display: grid;
    grid-template-columns: 2.8fr 1.1fr 1.2fr 1.2fr 70px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.cart-row:last-child {
    border-bottom: none;
}

.cart-product {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-product-thumb-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.cart-product-thumb.fallback-pt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    text-align: center;
}

.cart-product-thumb .pack-mark {
    font-size: 9px;
    font-weight: 800;
    background: #ea580c;
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 2px;
    margin-bottom: 2px;
}

.cart-product-thumb strong {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.cart-product-thumb small {
    font-size: 9px;
    opacity: 0.8;
}

.cart-product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cart-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-product-name:hover {
    color: #ea580c;
}

.cart-product-sku {
    font-size: 12px;
    color: #64748b;
}

.cart-badge-wholesale {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    width: fit-content;
}

.cart-badge-custom {
    display: inline-block;
    background: #ffedd5;
    color: #c2410c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    width: fit-content;
}

.cart-product-availability {
    font-size: 11px;
    color: #16a34a;
    font-style: normal;
    font-weight: 500;
}

.cart-price-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-price-col del {
    color: #94a3b8;
    font-size: 12px;
}

.cart-price-col .retail-price {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.cart-price-col small {
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
}

.quantity-control[data-stepper] {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    width: fit-content;
}

.quantity-control[data-stepper] button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    user-select: none;
}

.quantity-control[data-stepper] button:hover:not(:disabled) {
    background: #e2e8f0;
}

.quantity-control[data-stepper] input {
    width: 44px;
    height: 32px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    padding: 0;
    outline: none;
    -moz-appearance: textfield;
}

.quantity-control[data-stepper] input::-webkit-outer-spin-button,
.quantity-control[data-stepper] input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-total-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-total-col strong {
    color: #ea580c;
    font-size: 14px;
    font-weight: 700;
}

.cart-total-col small {
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
}

.cart-action-col {
    text-align: center;
}

.delete-button {
    border: 1px solid #fee2e2;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.delete-button:hover:not(:disabled) {
    background: #fee2e2;
    color: #dc2626;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.form-grid input,
.form-grid textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-grid input:focus,
.form-grid textarea:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.form-grid textarea {
    min-height: 72px;
    resize: vertical;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    min-height: 16px;
    display: block;
}

.cart-summary {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0f2b48;
    margin: 0 0 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.summary-row dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.shipping-fee-note {
    color: #64748b;
    font-size: 12px;
    font-style: italic;
    font-weight: 500 !important;
}

.summary-savings-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 12px 0 6px;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.grand-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 14px;
}

.grand-total span {
    font-size: 14px;
    font-weight: 600;
    color: #0f2b48;
}

.grand-total span small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.grand-total strong {
    font-size: 24px;
    font-weight: 800;
    color: #ea580c;
}

.payment-section {
    margin-top: 18px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 16px;
}

.payment-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f2b48;
    margin: 0 0 12px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pay-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    user-select: none;
}

.pay-choice input[type="radio"] {
    margin-top: 2px;
    accent-color: #ea580c;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pay-choice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.pay-choice-body b {
    font-size: 13px;
    color: #0f2b48;
    font-weight: 700;
}

.pay-choice-body small {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.pay-choice.active,
.pay-choice:has(input:checked) {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 0 0 1px #ea580c;
}

.pay-warning-text {
    color: #b91c1c !important;
    font-weight: 600 !important;
    margin-top: 2px;
}

.summary-order-action {
    margin-top: 18px;
}

.button-order-submit {
    background: #ea580c !important;
    color: #ffffff !important;
    border: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    display: block;
    width: 100%;
    text-align: center;
}

.button-order-submit:hover:not(:disabled) {
    background: #c2410c !important;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
    transform: translateY(-1px);
}

.button-order-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secure-note {
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    margin-top: 10px;
}

.zalo-support-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px;
}

.zalo-support-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 6px;
}

.zalo-support-card p {
    font-size: 12px;
    color: #0284c7;
    margin: 0 0 12px;
    line-height: 1.4;
}

.zalo-support-card .zalo-btn {
    display: block;
    background: #0284c7;
    color: #ffffff;
    border: 1px solid #0284c7;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s;
}

.zalo-support-card .zalo-btn:hover {
    background: #0369a1;
}

.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.form-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f2b48;
}

.badge-auto-fill {
    font-size: 12px;
    color: #15803d;
    background: #dcfce7;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Responsive Mobile <= 768px */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cart-summary {
        position: static;
    }
    .form-fields-row {
        grid-template-columns: 1fr;
    }
    .cart-table-head {
        display: none;
    }
    .cart-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        margin-bottom: 12px;
        background: #ffffff;
    }
    .cart-product {
        align-items: flex-start;
    }
    .cart-price-col {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .quantity-control[data-stepper] button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .quantity-control[data-stepper] input {
        width: 50px;
        height: 44px;
        font-size: 15px;
    }
    .delete-button {
        min-height: 44px;
        padding: 8px 16px;
        font-size: 13px;
    }
    .order-steps {
        gap: 8px;
        padding: 16px 8px 12px;
    }
    .order-steps span {
        font-size: 11px;
    }
    .order-steps i {
        width: 16px;
    }
    .cart-page-title {
        font-size: 20px;
    }
}



