/* ============================================================
   ACCMIENPHI.VN — style.css
   Màu chủ đạo : #1565c0 (xanh dương) + #1a1a1a (đen)
   Nền mặc định: #ffffff
   Max-width    : 1280px
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
    --blue        : #1565c0;
    --blue-dark   : #0d47a1;
    --blue-light  : #e3f2fd;
    --black       : #1a1a1a;
    --black-soft  : #2c2c2c;
    --gray-dark   : #3d3d3d;
    --gray-mid    : #666666;
    --gray-light  : #999999;
    --gray-border : #e0e0e0;
    --gray-bg     : #f5f5f5;
    --white       : #ffffff;
    --footer-bg   : #1e1e1e;
    --footer-dark : #141414;
    --font        : 'Roboto', 'Segoe UI', Arial, sans-serif;
    --radius      : 6px;
    --shadow-sm   : 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md   : 0 3px 14px rgba(0,0,0,0.10);
    --shadow-lg   : 0 6px 28px rgba(0,0,0,0.14);
    --max-w       : 1280px;
    --side-pad    : 16px;
    --accent      : #1565c0;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family : var(--font);
    font-size   : 14px;
    line-height : 1.65;
    background  : var(--white);
    color       : var(--black);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--blue); }
img { display: inline-block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }

/* ============================================================
   HEADER — Desktop (> 768px)
   ============================================================ */
header {
    background  : var(--white);
    position    : sticky;
    top         : 0;
    z-index     : 400;
    border-bottom: 1px solid #eee;
    box-shadow  : 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    max-width  : var(--max-w);
    margin     : 0 auto;
    padding    : 0 24px;
    height     : 64px;
    display    : flex;
    align-items: center;
    gap        : 20px;
}

/* Logo */
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; object-fit: contain; }

/* Search */
.search-box {
    flex         : 1;
    max-width    : 750px;
    display      : flex;
    align-items  : stretch;
    height       : 38px;
    border-radius: var(--radius);
    overflow     : hidden;
    border       : 1.5px solid #ddd;
    background   : var(--white);
    transition   : box-shadow .2s, border-color .2s;
}
.search-box:focus-within {
    border-color: var(--blue);
    box-shadow  : 0 0 0 3px rgba(21,101,192,0.15);
}
.search-inner {
    flex       : 1;
    display    : flex;
    align-items: center;
    padding    : 0 12px;
    gap        : 8px;
    background : var(--white);
}
.search-icon {
    width      : 16px;
    height     : 16px;
    opacity    : 0.4;
    flex-shrink: 0;
    object-fit : contain;
}
.search-box input {
    flex      : 1;
    border    : none;
    outline   : none;
    font-size : 13.5px;
    color     : var(--black);
    background: transparent;
    min-width : 0;
}
.search-box input::placeholder { color: #bbb; }
.search-btn {
    display        : flex;
    align-items    : center;
    justify-content: center;
    background     : transparent !important;
    border         : none;
    padding        : 0 12px;
    flex-shrink    : 0;
    cursor         : pointer;
    transition     : opacity .18s;
}
.search-btn img {
    width      : 18px;
    height     : 18px;
    object-fit : contain;
    opacity    : 0.45;
    transition : opacity .18s;
}
.search-btn:hover img { opacity: 1; }

/* Header socials */
.header-socials { display: flex; gap: 6px; margin-left: auto; flex-shrink: 0; }
.hs-btn {
    width          : 34px;
    height         : 34px;
    border-radius  : 6px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : var(--white);
    font-size      : 14px;
    font-weight    : 700;
    text-decoration: none;
    transition     : opacity .18s;
}
.hs-btn:hover { opacity: .85; }
.hs-fb     { background: #1877f2; }
.hs-x      { background: #000; }
.hs-twitch { background: #9146ff; }
.hs-msg    { background: #00b2ff; }

/* Header Nav bar (tầng 2) */
.header-nav {
    background     : #111;
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 0;
    height         : 42px;
}
.header-nav .nav-link {
    color          : #ccc;
    font-size      : 12px;
    font-weight    : 700;
    text-decoration: none;
    padding        : 0 14px;
    height         : 42px;
    display        : flex;
    align-items    : center;
    letter-spacing : 0.4px;
    transition     : color .18s, background .18s;
    white-space    : nowrap;
}
.header-nav .nav-link:hover,
.header-nav .nav-link.active { color: #fff; background: rgba(255,255,255,0.08); }
.header-nav .nav-sep { color: #444; font-size: 13px; }

/* Ẩn desktop header trên mobile */
@media (max-width: 768px) {
    header:not(.mobile-header) { display: none; }
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.mobile-header         { display: none; }
.mobile-drawer         { display: none; }
.mobile-drawer-overlay { display: none; }

@media (max-width: 768px) {
    .mobile-header {
        display        : flex;
        align-items    : center;
        justify-content: space-between;
        padding        : 0 10px;
        height         : 56px;
        background     : var(--black);
        border-bottom  : 2px solid var(--blue);
        position       : sticky;
        top            : 0;
        z-index        : 900;
        gap            : 10px;
    }
    .mobile-header .mh-logo img { height: 36px; display: block; object-fit: contain; }
    .mobile-header .mh-search {
        flex         : 1;
        display      : flex !important;
        align-items  : center;
        background   : var(--white) !important;
        border       : 2px solid var(--blue);
        border-radius: var(--radius);
        overflow     : hidden;
        height       : 36px;
        margin       : 0;
        padding      : 0;
    }
    .mobile-header .mh-search input {
        flex       : 1;
        border     : none !important;
        background : var(--white) !important;
        padding    : 0 10px;
        font-size  : 13px !important;
        outline    : none !important;
        color      : var(--black) !important;
        min-width  : 0;
        height     : 100%;
        box-shadow : none !important;
        -webkit-appearance: none;
    }
    .mobile-header .mh-search input::placeholder { color: #999 !important; opacity: 1; }
    .mobile-header .mh-search button {
        background     : var(--blue) !important;
        border         : none;
        height         : 36px;
        width          : 40px;
        cursor         : pointer;
        display        : flex;
        align-items    : center;
        justify-content: center;
        flex-shrink    : 0;
        padding        : 0;
    }
    .mobile-header .mh-search button:hover { background: var(--blue-dark) !important; }
    .mobile-header .mh-search button span { color: #fff; font-size: 12px; font-weight: 700; }
    .mh-hamburger {
        background    : none;
        border        : none;
        cursor        : pointer;
        padding       : 4px;
        display       : flex;
        flex-direction: column;
        gap           : 5px;
        flex-shrink   : 0;
    }
    .mh-hamburger span {
        display      : block;
        width        : 24px;
        height       : 2px;
        background   : var(--blue);
        border-radius: 2px;
        transition   : all 0.25s ease;
    }
    .mh-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mh-hamburger.is-open span:nth-child(2) { opacity: 0; }
    .mh-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Overlay */
    .mobile-drawer-overlay {
        display        : block;
        position       : fixed;
        inset          : 0;
        background     : rgba(0,0,0,0.5);
        z-index        : 910;
        opacity        : 0;
        pointer-events : none;
        transition     : opacity 0.25s ease;
    }
    .mobile-drawer-overlay.is-open { opacity: 1; pointer-events: all; }

    /* Drawer */
    .mobile-drawer {
        display       : flex;
        flex-direction: column;
        position      : fixed;
        top           : 0;
        right         : 0;
        bottom        : 0;
        width         : 100%;
        background    : var(--white);
        z-index       : 920;
        transform     : translateX(100%);
        transition    : transform 0.28s cubic-bezier(.4,0,.2,1);
        overflow-y    : auto;
    }
    .mobile-drawer.is-open { transform: translateX(0); }
    .mobile-drawer .md-top {
        display        : flex;
        align-items    : center;
        justify-content: space-between;
        padding        : 0 16px;
        height         : 52px;
        border-bottom  : 2px solid var(--blue);
        background     : var(--black);
        flex-shrink    : 0;
    }
    .mobile-drawer .md-title {
        font-size     : 13px;
        font-weight   : 700;
        color         : var(--blue);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    .mobile-drawer .md-close {
        background: none;
        border    : none;
        font-size : 20px;
        cursor    : pointer;
        color     : var(--blue);
        padding   : 6px 8px;
        transition: color .15s;
    }
    .mobile-drawer .md-close:hover { color: var(--white); }
    .mobile-drawer nav {
        display       : flex;
        flex-direction: column;
        padding       : 0;
        width         : 100%;
    }
    .mobile-drawer nav a {
        display      : flex;
        align-items  : center;
        gap          : 14px;
        padding      : 16px 20px;
        font-size    : 15px;
        font-weight  : 600;
        color        : var(--black);
        border-bottom: 1px solid var(--gray-border);
        transition   : background .15s, color .15s;
        width        : 100%;
        box-sizing   : border-box;
    }
    .mobile-drawer nav a:last-child { border-bottom: none; }
    .mobile-drawer nav a:hover { background: var(--blue-light); color: var(--blue-dark); }
    .mobile-drawer nav a.active {
        color       : var(--blue-dark);
        background  : var(--blue-light);
        border-left : 4px solid var(--blue);
        padding-left: 16px;
        font-weight : 700;
    }
    .mobile-drawer .md-footer {
        margin-top: auto;
        padding   : 16px 20px;
        font-size : 12px;
        color     : var(--gray-light);
        border-top: 1px solid var(--gray-border);
        text-align: center;
        flex-shrink: 0;
    }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar { background: #f8f8f8; border-bottom: 1px solid var(--gray-border);}
.breadcrumb {
    max-width    : var(--max-w);
    margin       : 0 auto;
    padding      : 8px var(--side-pad);
    display      : flex;
    align-items  : center;
    gap          : 6px;
    font-size    : 13px;
    color        : #666;
    flex-wrap    : wrap;
    list-style   : none;
}
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #aaa; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container,
.container.layout {
    max-width: var(--max-w);
    margin   : 0 auto;
    padding  : 16px var(--side-pad);
}
.layout-grid {
    display              : grid;
    grid-template-columns: 240px 1fr;
    gap                  : 24px;
    align-items          : start;
}
.content { width: 100%; }
.main-inner { background: var(--white); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family  : var(--font);
    font-weight  : 800;
    line-height  : 1.25;
    color        : var(--black);
    margin-bottom: .6em;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; margin-bottom: 18px; }
h3 { font-size: 18px; margin-top: 24px; color: var(--gray-dark); }
h4 { font-size: 15px; color: var(--gray-dark); margin-top: 16px; }
h5 { font-size: 13px; color: var(--gray-mid); font-weight: 700; }
h6 { font-size: 12px; color: var(--gray-light); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 25px; margin-bottom: 14px; color: #555; font-size: 14px; line-height: 1.8; }
ul { list-style: disc; }
ol { list-style: decimal; }
li { margin-bottom: 5px; }
li::marker { color: var(--black); }
ul ul, ol ol, ul ol, ol ul { margin-top: 5px; margin-bottom: 5px; padding-left: 18px; }

table {
    width          : 100%;
    border-collapse: collapse;
    font-size      : 13.5px;
    color          : var(--black);
    margin-bottom  : 20px;
    background     : var(--white);
    border-radius  : var(--radius);
    overflow       : hidden;
    box-shadow     : var(--shadow-sm);
}
thead { background: var(--black); color: var(--white); }
thead th { padding: 11px 14px; font-weight: 700; font-size: 13px; text-align: left; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--gray-border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr:hover { background: var(--blue-light); }
tbody td { padding: 10px 14px; color: #444; vertical-align: middle; }
tfoot td { padding: 10px 14px; font-weight: 700; color: var(--black); border-top: 2px solid var(--blue); background: #fafafa; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
    background   : var(--white);
    border-radius: 8px;
    overflow     : hidden;
    margin-bottom: 18px;
    box-shadow   : var(--shadow-sm);
    border       : 1px solid var(--gray-border);
}
.sidebar-widget .widget-title {
    background    : var(--black);
    color         : var(--white);
    font-size     : 11px;
    font-weight   : 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding       : 10px 16px;
    border-bottom : 2px solid var(--blue);
}
.sidebar-widget .widget-body { padding: 14px 16px; }
.sidebar-widget ul { list-style: none; padding-left: 0; margin-bottom: 0; color: inherit; }
.sidebar-widget ul li { border-bottom: 1px solid #f0f0f0; margin-bottom: 0; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li::marker { content: none; }
.sidebar-widget ul li a {
    display    : flex;
    align-items: center;
    gap        : 8px;
    padding    : 9px 4px;
    font-size  : 13px;
    color      : #444;
    transition : color .15s, padding-left .15s;
}
.sidebar-widget ul li a::before { content: '›'; color: var(--blue); font-size: 16px; font-weight: 700; line-height: 1; flex-shrink: 0; }
.sidebar-widget ul li a:hover { color: var(--blue); padding-left: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background : var(--footer-bg);
    color      : var(--white);
    margin-top : 56px;
    border-top : 3px solid var(--blue);
    font-family: var(--font);
}

.footer-top {
    max-width  : var(--max-w);
    margin     : 0 auto;
    padding    : 44px var(--side-pad) 36px;
    display    : grid;
    grid-template-columns: 2fr 1.2fr 1fr 1.2fr;
    gap        : 40px;
    align-items: start;
}

.footer-col h4 {
    font-size     : 13px;
    font-weight   : 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color         : var(--white);
    margin-bottom : 16px;
    padding-bottom: 10px;
    border-bottom : 2px solid #0043D8;
    margin-top    : 0;
    line-height   : 1.4;
}

.footer-col p { color: var(--white); font-size: 13px; line-height: 1.7; margin-bottom: 16px; }

.footer-col a {
    display        : flex;
    align-items    : center;
    gap            : 8px;
    color          : var(--white);
    font-size      : 13px;
    text-decoration: none;
    padding        : 7px 0;
    border-bottom  : 1px solid #2a2a2a;
    transition     : color .15s, padding-left .15s;
}
.footer-col a::before { content: '›'; color: #e53935; font-size: 15px; font-weight: 700; }
.footer-col a:last-child { border-bottom: none; }
.footer-col a:hover { color: var(--white); padding-left: 4px; }

/* Footer brand col */
.footer-col--brand .footer-brand-name {
    font-size     : 18px;
    font-weight   : 900;
    color         : var(--white);
    letter-spacing: 1px;
    margin-bottom : 4px;
}
.footer-col--brand .footer-brand-sub {
    font-size     : 11px;
    color         : var(--blue);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom : 16px;
}

.footer-btn {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 8px;
    padding        : 10px 16px;
    font-size      : 13px;
    font-weight    : 700;
    text-decoration: none;
    margin-bottom  : 10px;
    border-radius  : var(--radius);
    transition     : opacity .18s;
}
.footer-btn:last-child { margin-bottom: 0; }
.footer-btn--gray { background: #3a3a3a; color: var(--white); }
.footer-btn--gray:hover { background: #444; color: var(--white); }
.footer-btn--blue { background: #0043D8; color: var(--white); }
.footer-btn--blue:hover { background: var(--blue-dark); color: var(--white); }
.footer-btn::before { content: none !important; }

.footer-logo-img { height: 60px; width: auto; margin-bottom: 12px; display: block; }

/* Footer bottom */
.footer-divider { max-width: var(--max-w); margin: 0 auto; height: 1px; background: rgba(255,255,255,0.07); }

.footer-bottom {
    background : var(--footer-dark);
    padding    : 14px var(--side-pad);
    display    : flex;
    align-items: center;
    justify-content: center;
    flex-wrap  : wrap;
    gap        : 10px;
    max-width  : 100%;
}
.footer-bottom p { color: var(--white); font-size: 14px; margin: 0; }
.footer-bottom a { color: var(--white); transition: color .15s; }
.footer-bottom a:hover { color: var(--blue); }

.footer-socials { display: flex; gap: 8px; }
.footer-social {
    width          : 32px;
    height         : 32px;
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : var(--white);
    font-size      : 13px;
    font-weight    : 700;
    text-decoration: none;
    transition     : opacity .18s;
}
.footer-social:hover { opacity: .85; }
.footer-social--fb   { background: #1877f2; }
.footer-social--zalo { background: #0068ff; font-size: 11px; }
.footer-social--yt   { background: #ff0000; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-blue   { color: var(--blue) !important; }
.text-center { text-align: center !important; }
.text-muted  { color: var(--gray-light) !important; }

.btn {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    gap            : 7px;
    padding        : 10px 22px;
    border-radius  : var(--radius);
    font-size      : 13.5px;
    font-weight    : 700;
    border         : 2px solid transparent;
    transition     : background .18s, border-color .18s, color .18s, transform .13s;
    cursor         : pointer;
    white-space    : nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--black-soft); }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.card {
    background    : var(--white);
    border        : 1px solid var(--gray-border);
    border-radius : 8px;
    overflow      : hidden;
    box-shadow    : var(--shadow-sm);
    transition    : box-shadow .2s, transform .2s;
    display       : flex;
    flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.4; margin: 0; border: none; padding: 0; }
.card-price { font-size: 15px; font-weight: 900; color: #e53935; margin-top: auto; }
.card-price-old { font-size: 12px; color: var(--gray-light); text-decoration: line-through; }

/* ============================================================
   PCARD
   ============================================================ */
.pcard {
    display       : flex;
    flex-direction: column;
    height        : 100%;
    border        : 1px solid #e8e8e8;
    border-radius : 12px;
    overflow      : hidden;
    background    : #fff;
    text-decoration: none;
    color         : inherit;
    transition    : .2s ease;
    position      : relative;
}
.pcard:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.pcard-img { position: relative; aspect-ratio: 1/1; overflow: hidden; display: block; border-bottom: 1px solid #f0f0f0; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: .25s ease; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-badge { position: absolute; top: 0; left: 0; font-size: 11px; font-weight: 700; line-height: 1; padding: 6px 12px; z-index: 2; border-radius: 0 0 10px 0; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 12px; gap: 5px; text-align: center; min-width: 0; }
.pcard-cat { font-size: 10px; font-weight: 700; color: #565656; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-brand { font-size: 10px; font-weight: 600; color: #828282; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-name { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; max-height: 37px; word-break: break-word; }
.pcard-sku { font-size: 11px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
.pcard-price-main { font-size: 16px; font-weight: 800; color: #E40000; }
.pcard-price-old { font-size: 11px; text-decoration: line-through; color: #bbb; }
.pcard-price-contact { font-size: 17px; font-weight: 700; color: #e53935; }
.pcard-action { margin-top: 8px; display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.pcard-qty { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.pcard-qty button { width: 26px; height: 32px; border: none; background: #f5f5f5; color: #333; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s; line-height: 1; padding: 0; }
.pcard-qty button:hover { background: #ebebeb; }
.pcard-qty input { width: 28px; height: 32px; border: none; border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; text-align: center; font-size: 12px; font-weight: 600; color: #222; -moz-appearance: textfield; padding: 0; }
.pcard-qty input::-webkit-outer-spin-button,
.pcard-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pcard-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px; border: none; border-radius: 8px; background: #111; color: #fff; font-weight: 700; font-size: 12px; text-decoration: none; cursor: pointer; transition: background .18s; white-space: nowrap; overflow: hidden; min-width: 0; }
.pcard-btn:hover { background: #2c2c2c; }
.pcard-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.float-buttons { position: fixed; right: 20px; bottom: 120px; display: flex; flex-direction: column; gap: 14px; z-index: 500; }
.float-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--white); box-shadow: 0 3px 10px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1); transition: transform .2s ease, box-shadow .2s ease; }
.float-btn svg { width: 40px; height: 40px; }
.float-btn img { width: 40px; height: 40px; object-fit: contain; }
.float-map   { color: #ea4335; }
.float-zalo  { color: #0068ff; }
.float-phone { color: #25d366; }
.float-btn:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position       : fixed;
    right          : 20px;
    bottom         : 20px;
    width          : 52px;
    height         : 52px;
    border-radius  : 50%;
    background     : var(--blue);
    color          : var(--white);
    border         : none;
    display        : flex;
    align-items    : center;
    justify-content: center;
    box-shadow     : 0 4px 14px rgba(0,0,0,0.25);
    cursor         : pointer;
    z-index        : 500;
    opacity        : 0;
    visibility     : hidden;
    transform      : translateY(15px);
    transition     : opacity .25s, transform .25s, background .18s, visibility .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); }
.back-to-top svg { width: 24px; height: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .footer-top { grid-template-columns: 1.5fr 1.2fr 1fr 1fr; gap: 28px; }
    .search-box { max-width: 400px; }
}
@media (max-width: 900px) {
    .footer-top  { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .layout-grid { grid-template-columns: 1fr; }
    .search-box  { max-width: 260px; }
    .logo-img    { height: 44px; }
}
@media (max-width: 768px) {
    .layout-grid { grid-template-columns: 1fr; }
    .main-inner  { padding: 8px 6px; }
    .footer-top  { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px; }
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    h3 { font-size: 15px; }
    .container, .container.layout { padding: 8px 10px; }
    .float-buttons { right: 14px; bottom: 80px; gap: 10px; }
    .float-btn     { width: 46px; height: 46px; }
    .float-btn svg, .float-btn img { width: 30px; height: 30px; }
    .back-to-top   { right: 14px; bottom: 16px; width: 46px; height: 46px; }
}
@media (max-width: 640px) {
    .pcard-btn-text { display: none; }
    .pcard-btn { flex: 0 0 36px; padding: 0; border-radius: 8px; }
    .pcard-btn svg { width: 16px; height: 16px; }
    .pcard-body { padding: 10px 8px; gap: 4px; }
    .pcard-name { font-size: 12px; min-height: 34px; max-height: 34px; }
    .pcard-price-main { font-size: 14px; }
    .pcard-price-contact { font-size: 13px; }
    .pcard-cat, .pcard-brand { font-size: 9px; }
    .pcard-sku { font-size: 10px; }
    .pcard-qty button { width: 25px; height: 30px; font-size: 13px; }
    .pcard-qty input { width: 35px; height: 30px; font-size: 11px; }
    .pcard-action { gap: 7px; justify-content: center; margin-top: 6px; }
    .pcard-badge { font-size: 10px; padding: 5px 9px; }
}