/* ============================================================
   SIÊU THỊ Y TẾ - Clone CSS (based on real source)
   ============================================================ */
:root {
    --blue: #095ca6;
    --blue-dark: #054A8B;
    --blue-nav: #0a6fc4;
    --red: #e8192c;
    --red-dark: #c0102a;
    --gold: #f5a623;
    --green: #2d9e45;
    --white: #ffffff;
    --bg: #dde8f5 !important;
    --border: #e0e0e0;
    --text: #333333;
    --gray: #777777;
    --shadow: 0 2px 10px rgba(0, 0, 0, .1);
    --radius: 6px;
    --tr: all .25s ease;

    /* Long Chau Redesign Variables */
    --lc-blue-gradient: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    --lc-white: #ffffff;
    --lc-soft-blue: #eff6ff;
    --lc-dark-blue: #1e3a8a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg) !important;
    line-height: 1.55
}

a {
    color: inherit;
    text-decoration: none
}

a:hover {
    color: var(--blue)
}

ul {
    list-style: none
}

img {
    max-width: 100%;
    display: block
}

.img-fluid {
    max-width: 100%;
    height: auto
}

/* ─── CONTAINER ─── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 12px
}

/* ─── TOP INFO BAR ─── */
#guide-nav-top {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
    font-size: 12px
}

.guide-row {
    display: flex;
    gap: 0;
    justify-content: space-around;
    flex-wrap: wrap
}

.guide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2px 14px;
    border-right: 1px solid var(--border)
}

.guide-item:last-child {
    border-right: none
}

.guide-item strong {
    color: var(--blue);
    font-size: 12.5px;
    margin-bottom: 2px
}

.guide-item span {
    color: var(--gray);
    font-size: 11.5px
}

.guide-item.deliver strong::before {
    content: "🚚 "
}

.guide-item.phone strong::before {
    content: "📞 "
}

.guide-item.pay strong::before {
    content: "💳 "
}

.guide-item.warranty strong::before {
    content: "🛡️ "
}

/* ─── HEADER ─── */
#header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000
}

.banner-head {
    background: #fffffc;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 5px 0
}

.banner-head-img {
    height: 44px;
    margin: 0 auto
}

.header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0
}

/* Logo */
.logo a {
    display: block
}

.logo img {
    height: 60px;
    width: auto
}

/* Redesigned Search UI is handled via inline styles in header.blade.php for maximum precision */
/* 
.search { ... }
.search-autocomplete { ... }
...
*/

/* Login / Cart */
.login-cart {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    white-space: nowrap
}

.hotline-box {
    font-size: 12px;
    color: var(--gray)
}

.hotline-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--red);
    display: block
}

.cart-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--blue);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--tr);
    position: relative
}

.cart-box:hover {
    background: var(--blue-dark);
    color: #fff
}

.cart-icon {
    font-size: 18px
}

.cart-count {
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center
}

.user-links {
    font-size: 12.5px;
    color: var(--gray)
}

.user-links a {
    color: var(--blue);
    font-weight: 500
}

.signin-link,
.signup-link {
    transition: var(--tr)
}

.signin-link:hover,
.signup-link:hover {
    color: var(--red)
}

/* ─── NAV BAR ─── */
#main-nav {
    background: linear-gradient(90deg, #054a8b, #095ca6 60%, #0a6fc4);
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 3px 12px rgba(5, 74, 139, .3)
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 0
}

/* Category button + dropdown */
.nav-div {
    position: relative
}

.nav-cat-btn {
    background: #e8192c;
    color: #fff;
    border: none;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--tr);
    letter-spacing: .2px;
    white-space: nowrap
}

.nav-cat-btn:hover {
    background: #c0102a
}

.nav-cat-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 230px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    border-radius: 0 0 8px 8px;
    z-index: 2000;
    padding: 5px 0
}

.nav-cat-menu.open {
    display: block
}

.nav-cat-menu>li {
    position: relative
}

.nav-cat-menu>li>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: var(--tr);
    border-bottom: 1px solid #f2f2f2
}

.nav-cat-menu>li>a:hover,
.nav-cat-menu>li:hover>a {
    background: #f0f4ff;
    color: var(--blue)
}

.flash-sale-item a {
    display: flex;
    padding: 8px 14px
}

.flash-banner-li a {
    display: block;
    padding: 6px 10px
}

/* Sub menus */
.sub-menu,
.fly-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    border-radius: var(--radius);
    padding: 10px;
    z-index: 2001;
    min-height: 200px
}

.nav-cat-menu>li.has-sub:hover>.sub-menu {
    display: block
}

.sub-menu li {
    position: relative
}

.sub-menu li a,
.sub-menu ul li a {
    display: block;
    padding: 6px 10px;
    color: var(--text);
    font-size: 12.5px;
    transition: var(--tr);
    border-radius: 4px
}

.sub-menu li a:hover {
    background: #eef2ff;
    color: var(--blue)
}

.sub-menu ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 8px;
    z-index: 2002
}

.sub-menu li:hover>ul {
    display: block
}

/* Secondary nav */
.nav-second-list {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1
}

.nav-second-list li a {
    display: flex;
    align-items: center;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--tr);
    white-space: nowrap
}

.nav-second-list li a:hover {
    background: rgba(255, 255, 255, .15);
    color: #FFD700
}

/* ─── HOME LAYOUT ─── */
.home-layout {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    align-items: flex-start
}

/* ─── SIDEBAR ─── */
.sidebar-cat {
    width: 210px;
    min-width: 210px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible
}



.sidebar-list {
    padding: 4px 0
}

.sidebar-list>li {
    position: relative
}

.sidebar-list>li>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid #f2f2f2;
    transition: var(--tr)
}

.sidebar-list>li>a:hover,
.sidebar-list>li.has-fly:hover>a {
    background: #eef3ff;
    color: var(--blue)
}

.arr {
    margin-left: auto;
    color: var(--gray);
    font-size: 11px
}

.fly-menu {
    display: none;
    position: absolute;
    left: 210px;
    top: 0;
    background: #fff;
    min-width: 260px;
    max-width: 320px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    border-radius: var(--radius);
    padding: 12px;
    z-index: 500;
    background-size: contain !important
}

.sidebar-list>li.has-fly:hover>.fly-menu {
    display: block
}

.fly-menu li {
    position: relative
}

.fly-menu li a {
    display: block;
    padding: 6px 10px;
    font-size: 12.5px;
    color: var(--text);
    transition: var(--tr);
    border-radius: 4px
}

.fly-menu li a:hover {
    background: #f0f4ff;
    color: var(--blue)
}

.fly-menu ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 8px;
    z-index: 501
}

.fly-menu li:hover>ul {
    display: block
}

.flash-banner-li {
    border-top: 2px solid #f0f0f0;
    padding: 4px 0
}

/* ─── BANNER SLIDER ─── */
.banner-deal {
    flex: 1;
    min-width: 0
}

.slider-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.bslide {
    display: none
}

.bslide.active {
    display: block
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 940/435;
    object-fit: cover
}

.bprev,
.bnext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: var(--tr);
    z-index: 10
}

.bprev:hover,
.bnext:hover {
    background: rgba(0, 0, 0, .6)
}

.bprev {
    left: 10px
}

.bnext {
    right: 10px
}

.bdots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10
}

.bdot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .55);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--tr)
}

.bdot.active {
    background: #fff;
    transform: scale(1.3)
}

/* ─── PAGE H1 ─── */
.page-h1 {
    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px 0 10px;
    font-size: 17px;
    border-bottom: 2px solid var(--blue);
    margin-bottom: 0
}

/* ─── PRODUCT TABS ─── */
.product-promotion {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 14px 0;
    overflow: hidden
}

.product-promotion-bar {
    border-bottom: 2px solid var(--border);
    padding: 0 14px
}

.prom-tabs {
    display: flex;
    gap: 0
}

.ptab {
    background: none;
    border: none;
    padding: 13px 22px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray);
    position: relative;
    transition: var(--tr)
}

.ptab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--tr)
}

.ptab:hover {
    color: var(--blue)
}

.ptab.active {
    color: var(--blue)
}

.ptab.active::after {
    background: var(--blue)
}

.ptab-content {
    display: none;
    padding: 14px
}

.ptab-content.active {
    display: block
}

/* ─── PRODUCT ITEM SLIDE ─── */
.product-item-slide {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px
}

/* ─── PRODUCT CARD (item-slide) ─── */
.item-slide {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: var(--tr);
    display: flex;
    flex-direction: column
}

.item-slide:hover {
    box-shadow: 0 8px 25px rgba(9, 92, 166, .15);
    border-color: #a0b4d0;
    transform: translateY(-3px)
}

.saleof {
    position: absolute;
    top: 7px;
    left: 7px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2
}

.pimg {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9ff
}

.pimg img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    transition: transform .3s ease
}

.item-slide:hover .pimg img {
    transform: scale(1.05)
}

.ptitle {
    font-size: 12.5px;
    color: var(--text);
    padding: 8px 10px 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 36px;
    overflow: hidden
}

.pprice {
    padding: 0 10px 10px;
    margin-top: auto
}

.promo del {
    color: var(--gray);
    font-size: 11px;
    margin-right: 5px
}

.pnew {
    color: var(--red);
    font-weight: 700;
    font-size: 14.5px
}

.stars {
    color: #ffb400;
    font-size: 11px;
    padding: 0 10px 8px
}

.addcart {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tr);
    width: 100%;
    border-radius: 0 0 var(--radius) var(--radius)
}

.addcart:hover {
    background: var(--blue-dark)
}

/* ─── PRODUCT BLOCK ─── */
.product-block {
    margin: 20px 0
}

.product-head {
    border-bottom: 2px solid var(--blue);
    margin-bottom: 12px
}

.product-head-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px
}

.cat-label {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue);
    text-transform: uppercase
}

.product-body-grid {
    display: flex;
    gap: 12px
}

.banner-side {
    width: 250px;
    min-width: 250px
}

.product-grid-4 {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

/* ─── FOOTER ─── */
#footer {
    background: #fff;
    border-top: 3px solid var(--blue);
    padding: 40px 0 0;
    margin-top: 40px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 40px
}

.footer-col h4 {
    color: var(--blue);
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 700
}

.footer-col p {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text)
}

.footer-col ul li {
    margin-bottom: 8px
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--gray);
    transition: var(--tr)
}

.footer-col ul li a:hover {
    color: var(--blue);
    padding-left: 4px
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 15px
}

.soc {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: var(--tr)
}

.soc.fb {
    background: #3b5998
}

.soc.yt {
    background: #ff0000
}

.soc.zl {
    background: #0068ff
}

.soc.tt {
    background: #000
}

.soc:hover {
    transform: translateY(-3px);
    filter: brightness(1.1)
}

.pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px
}

.pay-badges span {
    background: #f0f2f5;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--gray)
}

.certifs {
    display: flex;
    gap: 15px;
    margin-top: 20px
}

.certifs span {
    font-size: 12px;
    color: var(--blue-dark);
    font-weight: 600
}

.footer-bottom {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: var(--gray)
}

/* ─── FLOAT BTN ─── */
.float-btn-wrap {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999
}

.float-support-btn {
    background: var(--red);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 25, 44, .4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--tr)
}

.float-support-btn span {
    font-size: 24px
}

.float-support-btn small {
    font-size: 10px;
    font-weight: 700
}

.float-support-btn:hover {
    transform: scale(1.1)
}

.float-popup {
    display: none;
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    overflow: hidden;
    animation: slideUp .3s ease
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.float-popup.open {
    display: block
}

.fp-header {
    background: var(--blue);
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px
}

.fp-body {
    padding: 10px 0
}

.fp-item {
    display: block;
    padding: 10px 20px;
    font-size: 13.5px;
    color: var(--text);
    border-bottom: 1px solid #f5f5f5;
    transition: var(--tr)
}

.fp-item:hover {
    background: #f0f6ff;
    color: var(--blue);
    padding-left: 25px
}

#backTopBtn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: #fff;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--tr);
    z-index: 9998;
    opacity: .8
}

#backTopBtn:hover {
    background: var(--blue);
    color: #fff;
    opacity: 1
}

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 1024px) {
    .sidebar-cat {
        display: none
    }

    .nav-second-list {
        display: none
    }

    .product-item-slide {
        grid-template-columns: repeat(3, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
        align-items: stretch
    }

    .logo img {
        margin: 0 auto
    }

    .product-item-slide {
        grid-template-columns: repeat(2, 1fr)
    }

    .product-body-grid {
        flex-direction: column
    }

    .banner-side {
        width: 100%
    }

    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* ─── REDESIGN: LONG CHAU STYLE HEADER ─── */
.header-redesign {
    background: var(--lc-blue-gradient);
    padding: 15px 0 25px;
    position: relative;
    overflow: hidden;
}

.header-redesign::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: url('../images/redesign/flowers.png') no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
}

.header-top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-bottom: 20px;
}

.top-info-left a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.top-info-right {
    display: flex;
    gap: 20px;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-white img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.search-container {
    flex: 1;
    position: relative;
}

.search-bar-rounded {
    background: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 5px 10px 5px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input-lc {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 15px;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 15px;
    border-right: 1px solid #eee;
    margin-right: 10px;
}

.action-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.btn-cart-lc {
    background: #2563eb;
    color: #fff;
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-cart-lc:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.lc-auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
}

.lc-auth-links a {
    color: #fff;
}

.header-keywords {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    padding-left: 20px;
}

.keyword-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    transition: color 0.2s;
}

.keyword-item:hover {
    color: #fbbf24;
}

.mascot-container {
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 120px;
    z-index: 5;
}

.mascot-img {
    width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

#header {
    box-shadow: none !important;
}