/* CSS phong cách Hiện Đại & Bán Lẻ cho Web.BanHang */
:root {
    --store-primary: #c2410c;
    --store-primary-hover: #9a3412;
    --store-secondary: #dc2626;
    --store-secondary-hover: #b91c1c;
    --store-bg-light: #f8fafc;
    --store-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --store-card-hover: 0 10px 25px rgba(194, 65, 12, 0.15);
}

[data-theme="modern-blue"] {
    --store-primary: #1e40af;
    --store-primary-hover: #1d4ed8;
    --store-secondary: #0f172a;
    --store-secondary-hover: #1e293b;
    --store-card-hover: 0 10px 25px rgba(30, 64, 175, 0.15);
}

[data-theme="minimal-nordic"] {
    --store-primary: #334155;
    --store-primary-hover: #1e293b;
    --store-secondary: #047857;
    --store-secondary-hover: #065f46;
    --store-card-hover: 0 10px 25px rgba(51, 65, 85, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

/* Header & Navbar */
.store-topbar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 6px 0;
}
.store-topbar a {
    color: #cbd5e1;
    text-decoration: none;
}
.store-topbar a:hover {
    color: #fff;
}

.store-navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.store-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--store-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.store-nav-link {
    font-weight: 600;
    color: #334155 !important;
    padding: 0.6rem 1rem !important;
    transition: color 0.2s;
}
.store-nav-link:hover, .store-nav-link.active {
    color: var(--store-primary) !important;
}

/* Hero Banner */
.store-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)), url('/images/demo/noi-that-phong-khach-xam.jpg') center/cover;
    color: #fff;
    padding: 60px 0;
    border-radius: 0 0 24px 24px;
}
.store-hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
}
.store-hero-badge {
    background: rgba(234, 88, 12, 0.2);
    color: #fb923c;
    border: 1px solid rgba(234, 88, 12, 0.4);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
}

/* Category Pill & Box */
.cat-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--store-card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #1e293b;
    display: block;
    border: 1px solid #f1f5f9;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-card-hover);
    color: var(--store-primary);
}
.cat-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.1);
    color: var(--store-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 12px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--store-card-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--store-card-hover);
    border-color: var(--store-primary);
}
.product-thumb-wrap {
    position: relative;
    padding-top: 75%;
    background: #f1f5f9;
    overflow: hidden;
}
.product-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.product-card:hover .product-thumb-img {
    transform: scale(1.05);
}
.product-badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.product-badge-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0369a1;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
    line-height: 1.35;
    margin-bottom: 8px;
}
.product-title:hover {
    color: var(--store-primary);
}
.product-price-box {
    margin-top: auto;
    margin-bottom: 12px;
}
.product-current-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--store-secondary);
}
.product-old-price {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: line-through;
    margin-left: 8px;
}
.btn-quick-order {
    background: var(--store-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 8px 14px;
    width: 100%;
    transition: background 0.2s;
}
.btn-quick-order:hover {
    background: var(--store-primary-hover);
    color: #fff;
}

/* Value Props / Cam kết */
.value-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--store-card-shadow);
    border: 1px solid #f1f5f9;
    text-align: center;
    height: 100%;
}
.value-icon {
    font-size: 2.2rem;
    color: var(--store-primary);
    margin-bottom: 12px;
}

/* Detail Page */
.detail-price-hero {
    background: #fff7ed;
    border: 1px dashed #fdba74;
    border-radius: 14px;
    padding: 16px 20px;
}
.detail-spec-table th {
    background: #f8fafc;
    width: 35%;
    font-weight: 600;
}

/* Footer */
.store-footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 50px;
    margin-top: 60px;
}
.store-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.store-footer a:hover {
    color: var(--store-primary);
}

/* Tương phản WCAG AA (CL-21): màu bootstrap mặc định đi theo màu theme, chữ phụ & nhãn giảm giá đậm hơn */
.text-primary { color: var(--store-primary) !important; }
a:not(.btn):not(.store-nav-link):not(.nav-link):not(.cat-card):not(.dropdown-item) { --bs-link-color-rgb: 154, 52, 18; }
.btn-primary { background-color: var(--store-primary); border-color: var(--store-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--store-primary-hover); border-color: var(--store-primary-hover); color: #fff; }
.btn-outline-primary { color: var(--store-primary); border-color: var(--store-primary); }
.btn-outline-primary:hover { background-color: var(--store-primary); border-color: var(--store-primary); color: #fff; }
main .text-secondary, main .text-muted { color: #565e66 !important; }
.text-danger { color: #b91c1c !important; }
.text-warning { color: #a16207 !important; }
.product-badge-discount, .badge.bg-danger { background-color: #b91c1c !important; color: #fff !important; }
.store-footer .text-muted, .store-footer .text-secondary { color: #cbd5e1 !important; }
