﻿/* ===== Theme Shop: cửa hàng bán lẻ ===== */
:root {
    --sh-accent: #d7263d; --sh-accent-dark: #b51d31; --sh-ink: #1b2838; --sh-ink-2: #273a50; --sh-bg: #f3f4f6; --sh-muted: #6b7684;
    --mp-accent: #d7263d; --mp-price: #d7263d; --mp-sale: #d7263d; --mp-card-radius: 14px; --mp-ink: #1b2838; --mp-accent-soft: rgba(215,38,61,.15); --mp-radius: 10px;
}
html { font-size: 17px; }
@media (min-width: 992px) { html { font-size: 18px; } }
/* Khung nội dung rộng: chiếm 96% màn hình từ 992px, tối đa 1760px (màn 1920px) */
@media (min-width: 992px) { .container, .container-lg, .container-xl, .container-xxl { max-width: 96%; } }
@media (min-width: 1834px) { .container, .container-lg, .container-xl, .container-xxl { max-width: 1760px; } }
body { font-family: "Be Vietnam Pro", system-ui, sans-serif; background: var(--sh-bg); color: #222b36; line-height: 1.7; }
a { color: var(--sh-ink); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--sh-ink); }
a:hover { color: var(--sh-accent); }
.btn-primary { background: var(--sh-accent); border-color: var(--sh-accent); }
.btn-primary:hover, .btn-primary:focus { background: var(--sh-accent-dark); border-color: var(--sh-accent-dark); }
.btn-outline-primary { color: var(--sh-accent); border-color: var(--sh-accent); }
.btn-outline-primary:hover { background: var(--sh-accent); border-color: var(--sh-accent); color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--sh-accent); box-shadow: 0 0 0 .2rem rgba(215,38,61,.15); }

/* Thanh trên cùng */
.sh-topbar { background: var(--sh-ink); color: #c9d3de; font-size: .85rem; padding: .45rem 0; }
.sh-topbar i { color: #ffb4be; margin-right: .25rem; }

/* Header */
.sh-header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.sh-header-row { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; }
.sh-brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; color: var(--sh-ink); }
.sh-brand b { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.2; color: var(--sh-ink); }
.sh-brand small { display: block; font-size: .78rem; color: var(--sh-muted); max-width: 240px; line-height: 1.3; }
.sh-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--sh-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.sh-search { flex: 1; display: flex; border: 2px solid var(--sh-accent); border-radius: 12px; overflow: hidden; background: #fff; max-width: 900px; }
.sh-search input { flex: 1; border: 0; padding: .75rem 1.1rem; font-size: 1rem; outline: 0; min-width: 0; }
.sh-search button { border: 0; background: var(--sh-accent); color: #fff; padding: 0 1.4rem; font-size: 1.2rem; }
.sh-search button:hover { background: var(--sh-accent-dark); }
.sh-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.sh-hotline { align-items: center; gap: .6rem; color: var(--sh-ink); }
.sh-hotline i { font-size: 1.9rem; color: var(--sh-accent); }
.sh-hotline small { display: block; font-size: .75rem; color: var(--sh-muted); line-height: 1.1; }
.sh-hotline b { font-size: 1.1rem; color: var(--sh-accent); }
.sh-cart { color: var(--sh-ink); font-weight: 600; }
.sh-cart .bi { font-size: 1.75rem; }
.sh-cart .mp-cart-badge { left: 20px; top: -4px; background: var(--sh-accent); }
.sh-toggler { border: 0; font-size: 1.8rem; color: var(--sh-ink); padding: 0; }
.sh-nav { background: var(--sh-accent); padding: 0; }
.sh-nav .navbar-nav .nav-link { color: #fff !important; font-weight: 600; padding: .85rem 1rem !important; font-size: .98rem; }
.sh-nav .navbar-nav .nav-link:hover, .sh-nav .navbar-nav .nav-link.active { background: rgba(0,0,0,.14); }
.sh-nav .dropdown-menu { border: 0; border-radius: 0 0 12px 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: .5rem; margin-top: 0; }
.sh-nav .dropdown-item { border-radius: 8px; padding: .5rem 1rem; }
.sh-nav .dropdown-item.active, .sh-nav .dropdown-item:active { background: var(--sh-accent); }
.sh-catbtn { display: inline-flex; align-items: center; gap: .5rem; background: var(--sh-accent-dark); color: #fff !important; font-weight: 700; padding: .85rem 1.25rem; margin-right: .5rem; min-width: 260px; }
.sh-catdrop .dropdown-menu { min-width: 260px; }
@media (max-width: 991px) {
    .sh-header-row { flex-wrap: wrap; gap: .75rem; }
    .sh-search { order: 3; flex-basis: 100%; max-width: none; }
    .sh-brand small { display: none; }
    .sh-cart .mp-cart-text { display: none; }
    .sh-catbtn { min-width: 0; width: 100%; margin: 0; }
    .sh-header { position: static; }
}

/* Nội dung */
.sh-main { padding: 0 0 2.5rem; }
.sh-main .container { padding-top: 1.5rem; }
.mp-module { margin-bottom: 2rem; }
.mp-module-title { font-weight: 800; color: var(--sh-ink); font-size: 1.45rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.mp-module-title::before { content: ""; width: 6px; height: 1.4em; background: var(--sh-accent); border-radius: 3px; }
.zone-main .mp-module-html, .mp-module-articledetail, .mp-module-contactform,
.zone-left .mp-module, .zone-right .mp-module { background: #fff; border-radius: var(--mp-card-radius); padding: 1.35rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.zone-left .mp-module-title, .zone-right .mp-module-title { font-size: 1.1rem; text-transform: uppercase; }
.zone-left .mp-module-productlist, .zone-right .mp-module-productlist { padding: 1rem; }
.mp-module img { max-width: 100%; height: auto; }
.mp-module-banner { margin-bottom: 1.5rem; }
.mp-module-banner .carousel { border-radius: var(--mp-card-radius); overflow: hidden; }
.mp-module-banner .carousel-caption h5 { font-size: 2rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.breadcrumb { background: #fff; border-radius: 10px; padding: .6rem 1rem; font-size: .95rem; }

/* Khối dùng trong nội dung */
.as-section-title { text-align: center; margin-bottom: 1.75rem; }
.as-section-title h2 { font-weight: 800; color: var(--sh-ink); }
.as-section-title p { color: var(--sh-muted); }
.as-feature { background: #fff; border-radius: var(--mp-card-radius); padding: 1.5rem; height: 100%; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.as-feature i { font-size: 2.4rem; color: var(--sh-accent); }
.as-feature h3 { font-size: 1.15rem; font-weight: 700; margin: .75rem 0 .5rem; }
.as-step { background: #fff; border-left: 5px solid var(--sh-accent); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
.as-cta { background: linear-gradient(120deg, var(--sh-ink), var(--sh-ink-2)); color: #fff; border-radius: 18px; padding: 2rem; }
.as-cta h2 { font-weight: 800; }
.as-price thead th { background: var(--sh-ink); color: #fff; }
.as-hotline-box { text-align: center; }
.as-hotline-box .num { font-size: 1.6rem; font-weight: 800; color: var(--sh-accent); }
.as-announce, .sh-announce { background: var(--sh-ink); color: #fff; text-align: center; font-size: .92rem; padding: .5rem 1rem; }
.as-announce a, .sh-announce a { color: #ffd166; font-weight: 700; }
.sh-promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.sh-promo a { display: block; border-radius: var(--mp-card-radius); overflow: hidden; }
.sh-promo img { width: 100%; display: block; transition: transform .3s; }
.sh-promo a:hover img { transform: scale(1.03); }

/* Tin tức */
.article-item { display: flex; gap: 1.1rem; background: #fff; border-radius: var(--mp-card-radius); padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.article-item .thumb img { width: 260px; height: 175px; object-fit: cover; border-radius: 10px; }
.article-item h3 { font-size: 1.25rem; font-weight: 700; }
.article-item h3 a, .article-card h3 a { color: var(--sh-ink); }
.article-meta { color: var(--sh-muted); font-size: .88rem; }
.article-card { background: #fff; border-radius: var(--mp-card-radius); overflow: hidden; height: 100%; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.article-card img { width: 100%; height: 210px; object-fit: cover; }
.article-card .body { padding: 1rem 1.1rem; }
.article-card h3 { font-size: 1.12rem; font-weight: 700; }
.article-compact { list-style: none; padding: 0; margin: 0; }
.article-compact li { padding: .5rem 0; border-bottom: 1px dashed #e5e7eb; }
.article-detail h1 { font-weight: 800; font-size: 2.1rem; color: var(--sh-ink); }
.article-detail .content { line-height: 1.85; font-size: 1.1rem; }
@media (max-width: 576px) { .article-item { flex-direction: column; } .article-item .thumb img { width: 100%; } }

/* Menu dọc, trang con */
.submenu { list-style: none; padding: 0; margin: 0; }
.submenu a { display: block; padding: .55rem .75rem; border-radius: 8px; color: var(--sh-ink); }
.submenu a:hover, .submenu a.active { background: #fdecee; color: var(--sh-accent); font-weight: 600; }
.submenu ul { list-style: none; padding-left: 1rem; }
.page-card { background: #fff; border-radius: var(--mp-card-radius); padding: 1.5rem; height: 100%; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-top: 4px solid var(--sh-accent); }
.page-card h3 { font-size: 1.15rem; font-weight: 700; }

/* Sản phẩm (bổ sung cho /Assets/shop.css) */
.mp-pcard h3 { font-weight: 600; }
.mp-catmenu a.active { background: #fdecee; }
.zone-left .mp-catmenu a, .zone-right .mp-catmenu a { padding: .6rem .75rem; border-bottom: 1px solid #f1f2f4; border-radius: 0; }

/* Cam kết + chân trang */
.sh-trust { background: #fff; border-top: 1px solid #eceef1; padding: 1.75rem 0; }
.sh-trust-item { display: flex; align-items: center; gap: .9rem; }
.sh-trust-item i { font-size: 2.2rem; color: var(--sh-accent); }
.sh-trust-item b { display: block; color: var(--sh-ink); }
.sh-trust-item span { color: var(--sh-muted); font-size: .9rem; }
.sh-footer { background: var(--sh-ink); color: #b9c4d0; padding: 3rem 0 1rem; font-size: .98rem; }
.sh-footer h4 { color: #fff; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.sh-footer a { color: #dbe3ec; }
.sh-footer a:hover { color: #ffb4be; }
.sh-footer-brand { color: #fff; font-weight: 800; font-size: 1.35rem; }
.sh-footer-brand i { color: var(--sh-accent); }
.sh-contact li, .sh-links li { padding: .25rem 0; }
.sh-contact i { color: #ffb4be; margin-right: .35rem; }
.sh-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.sh-copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; font-size: .9rem; text-align: center; }
.zone-site-top .mp-module { margin: 0; }
.zone-footer > .mp-zone-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; }
.zone-footer .mp-module { margin: 0; }
.sh-footer .mp-module-title { color: #fff; font-size: 1.05rem; text-transform: uppercase; }
.sh-footer .mp-module-title::before { height: 1.1em; }
.sh-footer .article-compact li { border-color: rgba(255,255,255,.1); }
.sh-footer .mp-pcompact li { border-color: rgba(255,255,255,.1); }
.sh-footer .article-meta { color: #8b9aab; }
.zone-footer-bottom .mp-module { margin: 1.25rem 0 0; font-size: .9rem; }

/* Nút nổi */
.sh-float { position: fixed; right: 18px; bottom: 22px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; }
.sh-float a { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); font-weight: 700; font-size: .82rem; }
.sh-float-call { background: var(--sh-accent); font-size: 1.4rem !important; animation: sh-pulse 1.6s infinite; }
.sh-float-zalo { background: #0068ff; }
@keyframes sh-pulse { 0% { box-shadow: 0 0 0 0 rgba(215,38,61,.6); } 70% { box-shadow: 0 0 0 16px rgba(215,38,61,0); } 100% { box-shadow: 0 0 0 0 rgba(215,38,61,0); } }

/* ===== Trang chủ bán hàng (layout ShopHome) ===== */
.sh-home { padding-top: 1.25rem; }
.sh-hero { margin-bottom: 1.5rem; }
.sh-hero .mp-module { margin-bottom: 0; height: 100%; }
.zone-hero-left > .mp-zone-body, .zone-hero-left { height: 100%; }
.zone-hero-left .mp-module { background: #fff; border-radius: var(--mp-card-radius); box-shadow: 0 1px 3px rgba(0,0,0,.06); padding: 0; overflow: hidden; }
.zone-hero-left .mp-module-title { background: var(--sh-accent); color: #fff; margin: 0; padding: .85rem 1.1rem; font-size: 1rem; text-transform: uppercase; }
.zone-hero-left .mp-module-title::before { display: none; }
.zone-hero-left .mp-catmenu { padding: .35rem 0; }
.zone-hero-left .mp-catmenu > li > a { padding: .62rem 1.1rem; border-radius: 0; border-bottom: 1px solid #f1f2f4; font-weight: 500; }
.zone-hero-left .mp-catmenu > li > a:hover { background: #fdecee; color: var(--sh-accent); padding-left: 1.35rem; }
.zone-hero-left .mp-catmenu ul { display: none; }
.zone-hero .mp-module-banner .carousel, .zone-hero .mp-module-banner img { border-radius: var(--mp-card-radius); }
.zone-hero .mp-module-banner .carousel-item img { width: 100%; object-fit: cover; }
.sh-home .zone-top .mp-module { margin-bottom: 2rem; }
.sh-home .zone-top .mp-catgrid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sh-home .zone-top .mp-catgrid img, .sh-home .zone-top .mp-catgrid .ph { width: 110px; height: 110px; }
.sh-usp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; background: #fff; border-radius: var(--mp-card-radius); padding: 1.1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.sh-usp > div { display: flex; align-items: center; gap: .75rem; }
.sh-usp > div > div { display: block; }
.sh-usp i { font-size: 2rem; color: var(--sh-accent); }
.sh-usp b { display: block; color: var(--sh-ink); line-height: 1.25; }
.sh-usp span { color: var(--sh-muted); font-size: .88rem; }
@media (max-width: 991px) { .sh-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sh-home .zone-bottom .mp-module-html { background: #fff; border-radius: var(--mp-card-radius); padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
