/* ============================================
   CAYDEBAN TIKI THEME - MAIN CSS
   Tối ưu tốc độ: Mobile-first, minimal CSS
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0a4520;
    --primary-dark: #072e16;
    --primary-light: #DDE9E1;
    --accent: #ff424e;
    --accent-light: #FFF0F1;
    --yellow: #ffc400;
    --orange: #ff6633;
    --bg: #f5f5fa;
    --bg-white: #ffffff;
    --text: #333333;
    --text-light: #787878;
    --text-lighter: #ababab;
    --border: #e8e8e8;
    --border-light: #f0f0f0;
    --shadow: 0 1px 4px rgba(0,0,0,.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --container: 1240px;
    --header-height: 120px;
    --transition: .2s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ===== CONTAINER ===== */
.cdb-container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ===== TOP BAR ===== */
.cdb-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cdb-topbar__left { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cdb-topbar__right { display: flex; align-items: center; gap: 4px; }
.cdb-topbar__sep { opacity: .5; margin: 0 4px; }
.cdb-topbar__badge { font-weight: 700; }
.cdb-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.cdb-topbar a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.cdb-header { background: var(--bg-white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.cdb-header__top { background: linear-gradient(135deg, #072e16 0%, #0a4520 50%, #093d1c 100%); color: #fff; font-size: 13px; padding: 5px 0; }
.cdb-header__main { display: flex; align-items: center; padding: 10px 0; gap: 16px; }

/* Logo */
.cdb-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.cdb-logo__icon { font-size: 32px; line-height: 1; }
.cdb-logo__text { font-size: 20px; font-weight: 600; color: var(--primary); white-space: nowrap; line-height: 1.2; }
.cdb-logo__sub { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: super; letter-spacing: 1px; }
.cdb-logo img { height: 44px; width: auto; }

/* Search with category */
.cdb-search { flex: 1; position: relative; max-width: 600px; display: flex; align-items: stretch; }
.cdb-search__cat { flex-shrink: 0; }
.cdb-search__cat-select {
    height: 100%; padding: 0 10px; border: 2px solid var(--primary); border-right: 1px solid #ddd;
    border-radius: var(--radius) 0 0 var(--radius); background: var(--primary-light);
    font-size: 13px; color: var(--text); cursor: pointer; outline: none;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center; padding-right: 22px;
}
.cdb-search input[type="text"] {
    flex: 1; width: 100%; padding: 10px 44px 10px 12px;
    border: 2px solid var(--primary); border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px; outline: none; transition: border-color var(--transition);
}
.cdb-search input[type="text"]:focus { border-color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(10,69,32,.15); }
.cdb-search button {
    position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px;
    background: var(--primary); border: none; border-radius: 6px; color: #fff; cursor: pointer;
    transition: background var(--transition);
}
.cdb-search button:hover { background: var(--primary-dark); }
.cdb-search__suggest {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); display: none; z-index: 100;
    max-height: 400px; overflow-y: auto;
}
.cdb-search__suggest.open { display: block; }
.cdb-search__suggest-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}
.cdb-search__suggest-item:hover { background: var(--primary-light); }
.cdb-search__suggest-item img {
    width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.cdb-search__suggest-info { flex: 1; min-width: 0; }
.cdb-search__suggest-name {
    font-size: 13px; font-weight: 500; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cdb-search__suggest-price { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.cdb-search__suggest-empty { padding: 16px; text-align: center; color: var(--text-light); font-size: 13px; }
.cdb-search__suggest-footer {
    display: block; text-align: center; padding: 10px; font-size: 13px;
    color: var(--primary); font-weight: 600; border-top: 1px solid var(--border-light);
    text-decoration: none;
}
.cdb-search__suggest-footer:hover { background: var(--primary-light); }

/* Header actions */
.cdb-header__actions { display: flex; align-items: center; gap: 16px; }

/* Hotline with ring effect */
.cdb-hotline-desktop {
    display: flex; align-items: center; gap: 8px; text-decoration: none;
    padding: 6px 12px; border-radius: var(--radius); transition: background var(--transition);
}
.cdb-hotline-desktop:hover { background: var(--primary-light); }
.cdb-hotline__icon-wrap {
    width: 36px; height: 36px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: cdbPhoneRing 2s ease-in-out infinite;
}
.cdb-hotline__info { display: flex; flex-direction: column; line-height: 1.3; }
.cdb-hotline__info small { font-size: 11px; color: var(--text-light); }
.cdb-hotline__info strong { font-size: 14px; font-weight: 500; color: var(--primary); white-space: nowrap; }
@keyframes cdbPhoneRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14,90,42,.4); }
    50% { box-shadow: 0 0 0 8px rgba(14,90,42,0); }
}

/* Header icons (account, cart) */
.cdb-header-icon {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: var(--text); padding: 4px 8px;
    border-radius: var(--radius); transition: all var(--transition);
}
.cdb-header-icon:hover { color: var(--primary); background: var(--primary-light); }
.cdb-header-icon__label { font-size: 11px; white-space: nowrap; }

/* Cart button */
.cdb-cart-btn {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--text); text-decoration: none; padding: 4px 8px;
    border-radius: var(--radius); transition: all var(--transition);
}
.cdb-cart-btn:hover { color: var(--primary); background: var(--primary-light); }
.cdb-cart-count {
    position: absolute; top: -2px; right: 0;
    background: var(--accent); color: #fff; border-radius: 50%;
    width: 18px; height: 18px; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    animation: cdbCartPulse .3s ease;
}
@keyframes cdbCartPulse {
    0% { transform: scale(0.5); } 50% { transform: scale(1.2); } 100% { transform: scale(1); }
}
.cdb-menu-toggle { display: none; padding: 4px; background: none; border: none; cursor: pointer; color: var(--text); }

/* Navigation */
.cdb-nav { background: var(--bg-white); border-top: 1px solid var(--border-light); }
.cdb-nav__list { display: flex; list-style: none; gap: 0; margin: 0; padding: 0; }
.cdb-nav__item { position: relative; }
.cdb-nav__item > a {
    display: flex; align-items: center; gap: 4px; padding: 10px 16px; color: var(--text);
    font-size: 14px; font-weight: 500; white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}
.cdb-nav__item > a:hover { color: var(--primary); background: var(--primary-light); }
.cdb-nav__item.current-menu-item > a,
.cdb-nav__item.current-menu-ancestor > a { color: var(--primary); font-weight: 700; }
.cdb-nav__arrow { transition: transform var(--transition); margin-left: 2px; flex-shrink: 0; }
.cdb-nav__item--has-sub:hover > a .cdb-nav__arrow { transform: rotate(180deg); }

/* Dropdown level 1 */
.cdb-nav__sub {
    display: none; position: absolute; top: 100%; left: 0; z-index: 100;
    background: var(--bg-white); min-width: 220px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); padding: 8px 0; list-style: none;
    animation: cdbDropdown .2s ease;
}
.cdb-nav__item--has-sub:hover > .cdb-nav__sub { display: block; }

/* Dropdown level 2+ */
.cdb-nav__sub .cdb-nav__item--has-sub > .cdb-nav__sub {
    top: 0; left: 100%; border-radius: var(--radius);
}
.cdb-nav__sub .cdb-nav__item { position: relative; }
.cdb-nav__sub .cdb-nav__item > a {
    padding: 8px 16px; font-size: 14px; font-weight: 400;
    display: flex; align-items: center; gap: 6px;
}
.cdb-nav__sub .cdb-nav__item > a:hover {
    background: var(--primary-light); color: var(--primary);
}
.cdb-nav__sub .cdb-nav__item--has-sub > a::after {
    content: '›'; margin-left: auto; font-size: 16px; color: var(--text-lighter);
}

@keyframes cdbDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE MENU ===== */
.cdb-mobile-menu { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.cdb-mobile-menu.open { pointer-events: all; }
.cdb-mobile-menu__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.cdb-mobile-menu.open .cdb-mobile-menu__overlay { opacity: 1; }
.cdb-mobile-menu__panel {
    position: absolute; left: 0; top: 0; bottom: 0; width: 300px;
    background: #fff; transform: translateX(-100%); transition: transform .3s;
    display: flex; flex-direction: column;
}
.cdb-mobile-menu.open .cdb-mobile-menu__panel { transform: translateX(0); }
.cdb-mobile-menu__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; border-bottom: 1px solid var(--border); font-size: 18px; font-weight: 700;
}
.cdb-mobile-menu__close { font-size: 20px; padding: 4px 8px; }
.cdb-mobile-menu__body { flex: 1; overflow-y: auto; padding: 8px 0; }
.cdb-mobile-nav li a { display: block; padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--border-light); }
.cdb-mobile-nav li a:hover { background: var(--primary-light); color: var(--primary); }
.cdb-mobile-menu__contact { padding: 16px; display: flex; flex-direction: column; gap: 8px; }

/* ===== BUTTONS ===== */
.cdb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
    transition: all var(--transition); border: 2px solid transparent; cursor: pointer;
    text-align: center;
}
.cdb-btn--primary { background: var(--primary); color: #fff; }
.cdb-btn--primary:hover { background: var(--primary-dark); }
.cdb-btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.cdb-btn--outline:hover { background: var(--primary-light); }
.cdb-btn--cta { background: var(--accent); color: #fff; }
.cdb-btn--cta:hover { background: #e63b45; }
.cdb-btn--zalo { background: #0068ff; color: #fff; }
.cdb-btn--zalo:hover { background: #0055d4; }
.cdb-btn--white { background: #fff; color: var(--primary); }
.cdb-btn--outline-white { background: transparent; color: #fff; border-color: #fff; }
.cdb-btn--call { background: var(--primary); color: #fff; }
.cdb-btn--sm { padding: 6px 12px; font-size: 13px; }
.cdb-btn--lg { padding: 14px 28px; font-size: 16px; }
.cdb-btn--full { width: 100%; }

/* ===== SECTIONS ===== */
.cdb-section { padding: 24px 0; }
.cdb-section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cdb-section__title { font-size: 20px; font-weight: 700; color: var(--text); }
.cdb-section__title--center { text-align: center; margin-bottom: 24px; }
.cdb-section__more { color: var(--primary); font-size: 14px; font-weight: 600; white-space: nowrap; }
.cdb-section__footer { text-align: center; margin-top: 24px; }

/* ===== HERO SLIDER ===== */
.cdb-hero { padding: 16px 0; }
.cdb-hero__grid { display: grid; grid-template-columns: 1fr 300px; gap: 12px; align-items: stretch; }
.cdb-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--primary); height: 400px; }
.cdb-slider__track { display: flex; transition: transform .4s ease; height: 100%; }
.cdb-slider__slide { min-width: 100%; height: 100%; }
.cdb-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.cdb-slider__slide--default {
    min-width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
/* Slide gradient variants */
.cdb-slider__slide--s1 { background: linear-gradient(135deg, #072e16 0%, #0a4520 40%, #093d1c 100%); }
.cdb-slider__slide--s2 { background: linear-gradient(135deg, #ff424e 0%, #ff6633 50%, #ff8800 100%); }
.cdb-slider__slide--s3 { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #6c5ce7 100%); }
.cdb-slider__slide--s4 { background: linear-gradient(135deg, #e17055 0%, #fab1a0 50%, #e17055 100%); }
.cdb-slider__slide--s5 { background: linear-gradient(135deg, #00b894 0%, #55efc4 50%, #00b894 100%); }

.cdb-slide-content { text-align: center; color: #fff; padding: 24px 40px; max-width: 700px; }
.cdb-slide-badge {
    display: inline-block; background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
    padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
    margin-bottom: 12px; border: 1px solid rgba(255,255,255,.3);
}
.cdb-slide-content h2 { font-size: 32px; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.cdb-slide-content p { font-size: 16px; margin-bottom: 18px; opacity: .92; }
.cdb-slider__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; background: rgba(255,255,255,.9);
    border-radius: 50%; font-size: 24px; color: var(--text); z-index: 2;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); cursor: pointer; border: none;
    opacity: 0; transition: opacity var(--transition);
}
.cdb-slider:hover .cdb-slider__btn { opacity: 1; }
.cdb-slider__btn:hover { background: #fff; }
.cdb-slider__btn--prev { left: 12px; }
.cdb-slider__btn--next { right: 12px; }
.cdb-slider__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.cdb-slider__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; border: none; transition: all .2s; }
.cdb-slider__dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* Hero side blocks - fill full height */
.cdb-hero__side { display: flex; flex-direction: column; gap: 12px; }
.cdb-hero__card {
    display: flex; flex-direction: column; justify-content: center;
    background: var(--bg-white); border-radius: var(--radius-lg); padding: 16px 18px;
    box-shadow: var(--shadow); transition: all var(--transition);
    text-decoration: none; color: var(--text); overflow: hidden; position: relative;
}
.cdb-hero__card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Card 1: Promo - fixed height */
.cdb-hero__card--promo {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-left: 4px solid var(--accent);
    flex-direction: row; align-items: center; gap: 12px;
    min-height: 90px;
}
.cdb-hero__card-icon { font-size: 32px; flex-shrink: 0; }
.cdb-hero__card-info { min-width: 0; }
.cdb-hero__card-info strong { display: block; font-size: 15px; color: var(--accent); margin-bottom: 2px; }
.cdb-hero__card-info span { font-size: 12px; color: var(--text-light); }
.cdb-hero__card-arrow { font-size: 18px; color: var(--accent); margin-left: auto; flex-shrink: 0; transition: transform .2s; }
.cdb-hero__card--promo:hover .cdb-hero__card-arrow { transform: translateX(4px); }

/* Card 2: Trust - takes remaining space */
.cdb-hero__card--trust {
    background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
    border-left: 4px solid var(--primary);
    flex: 1;
}
.cdb-hero__card-badge {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
}
.cdb-hero__card-badge-icon { font-size: 24px; }
.cdb-hero__card-badge strong { display: block; font-size: 14px; color: var(--primary); }
.cdb-hero__card-badge span { font-size: 11px; color: var(--text-light); }
.cdb-hero__card-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 5px;
}
.cdb-hero__card-list li {
    font-size: 13px; color: var(--text); padding: 2px 0;
    display: flex; align-items: center; gap: 4px;
}

/* ===== CATEGORIES BAR ===== */
.cdb-categories-bar { background: var(--bg-white); border-radius: var(--radius-lg); padding: 16px 0; }
.cdb-categories-bar__scroll {
    display: flex; overflow-x: auto; gap: 8px; padding: 0 16px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cdb-categories-bar__scroll::-webkit-scrollbar { display: none; }
.cdb-cat-icon {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    min-width: 80px; padding: 8px; border-radius: var(--radius);
    transition: background var(--transition); text-align: center;
}
.cdb-cat-icon:hover { background: var(--primary-light); }
.cdb-cat-icon img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cdb-cat-icon__emoji { font-size: 32px; display: block; height: 48px; line-height: 48px; }
.cdb-cat-icon__name { font-size: 12px; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== FLASH SALE ===== */
.cdb-flash-sale { background: linear-gradient(135deg, #fff5f5, #fff0f1); border-radius: var(--radius-lg); }
.cdb-flash-sale__header { background: transparent; }
.cdb-section__title-group { display: flex; align-items: center; gap: 16px; }
.cdb-flash-icon { color: var(--accent); animation: flash 1s infinite; }
@keyframes flash { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.cdb-countdown { display: flex; align-items: center; gap: 6px; }
.cdb-countdown__label { font-size: 13px; color: var(--text-light); }
.cdb-countdown__box {
    background: var(--text); color: #fff; padding: 2px 6px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; min-width: 28px; text-align: center;
}

/* Products scroll (horizontal) */
.cdb-scroll-wrap { position: relative; }
.cdb-scroll-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.15);
    font-size: 16px; cursor: pointer; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.cdb-scroll-arrow:hover { background: var(--primary); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.cdb-scroll-arrow--left { left: -8px; }
.cdb-scroll-arrow--right { right: -8px; }
.cdb-products-scroll {
    display: flex; overflow-x: auto; gap: 12px; padding: 4px 0 16px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x mandatory;
}
.cdb-products-scroll::-webkit-scrollbar { display: none; }
.cdb-products-scroll .cdb-product-card { min-width: 200px; max-width: 220px; scroll-snap-align: start; }

/* ===== PRODUCT CARD (Tiki style) ===== */
.cdb-product-card {
    background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
    position: relative; display: flex; flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
    box-shadow: var(--shadow);
}
.cdb-product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cdb-product-card__badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    padding: 2px 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700;
}
.cdb-product-card__badge--sale { background: var(--accent); color: #fff; }
.cdb-product-card__badge--hot { background: var(--orange); color: #fff; }
.cdb-product-card__img { display: block; position: relative; padding-top: 100%; overflow: hidden; }
.cdb-product-card__img img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .3s;
}
.cdb-product-card:hover .cdb-product-card__img img { transform: scale(1.05); }
.cdb-product-card__info { padding: 10px 12px; flex: 1; }
.cdb-product-card__name {
    font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 39px;
}
.cdb-product-card__name:hover { color: var(--primary); }
.cdb-product-card__rating { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.cdb-stars { color: var(--yellow); font-size: 12px; letter-spacing: -1px; }
.cdb-stars--lg { font-size: 16px; }
.cdb-stars--xl { font-size: 24px; }
.cdb-sold { font-size: 12px; color: var(--text-lighter); }
.cdb-product-card__price { margin: 4px 0; }
.cdb-product-card__price del { color: var(--text-lighter); font-size: 13px; }
.cdb-product-card__price ins, .cdb-price--current { color: var(--accent); font-size: 16px; font-weight: 700; text-decoration: none; }
.cdb-product-card__delivery { font-size: 12px; color: var(--primary); margin-top: 4px; }
.cdb-product-card__actions { display: flex; gap: 6px; padding: 0 12px 12px; }
.cdb-product-card__cart-btn {
    display: block; width: 100%; padding: 8px; text-align: center;
    background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600;
    border-top: 1px solid var(--border-light); transition: background var(--transition);
}
.cdb-product-card__cart-btn:hover { background: var(--primary); color: #fff; }

/* Progress bar (flash sale) */
.cdb-product-card__progress { margin-top: 6px; }
.cdb-progress-bar { height: 4px; background: #fde8ea; border-radius: 2px; overflow: hidden; }
.cdb-progress-bar__fill { height: 100%; background: linear-gradient(90deg, var(--accent), #ff6633); border-radius: 2px; }
.cdb-progress-text { font-size: 11px; color: var(--accent); font-weight: 600; }

/* ===== PRODUCTS GRID ===== */
.cdb-products-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.cdb-products-grid--shop { grid-template-columns: repeat(4, 1fr); }

/* ===== USP SECTION ===== */
.cdb-usp { background: var(--bg-white); border-radius: var(--radius-lg); }
.cdb-usp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cdb-usp__item {
    text-align: center; padding: 20px; border-radius: var(--radius);
    transition: box-shadow var(--transition);
}
.cdb-usp__item:hover { box-shadow: var(--shadow-md); }
.cdb-usp__icon { font-size: 40px; margin-bottom: 12px; }
.cdb-usp__item h3 { font-size: 16px; margin-bottom: 6px; color: var(--primary-dark); }
.cdb-usp__item p { font-size: 13px; color: var(--text-light); }

/* ===== TABS ===== */
.cdb-tabs__nav {
    display: flex; overflow-x: auto; gap: 4px; border-bottom: 2px solid var(--border);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cdb-tabs__nav::-webkit-scrollbar { display: none; }
.cdb-tabs__btn {
    padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--text-light);
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: all var(--transition); white-space: nowrap;
}
.cdb-tabs__btn.active, .cdb-tabs__btn:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== PROCESS ===== */
.cdb-process { background: var(--bg-white); border-radius: var(--radius-lg); }
.cdb-process__grid { display: flex; align-items: flex-start; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cdb-process__step { text-align: center; flex: 1; min-width: 150px; max-width: 200px; }
.cdb-process__number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.cdb-process__step h3 { font-size: 15px; margin-bottom: 6px; }
.cdb-process__step p { font-size: 13px; color: var(--text-light); }
.cdb-process__arrow { font-size: 24px; color: var(--primary); padding-top: 12px; }

/* ===== REVIEWS ===== */
.cdb-reviews-scroll { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cdb-reviews-scroll::-webkit-scrollbar { display: none; }
.cdb-review-card {
    min-width: 280px; max-width: 320px; background: var(--bg-white);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.cdb-review-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cdb-review-card__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.cdb-review-card__header strong { display: block; font-size: 14px; }
.cdb-review-card p { font-size: 14px; color: var(--text); line-height: 1.5; margin-bottom: 8px; }
.cdb-review-card__date { font-size: 12px; color: var(--text-lighter); }

/* ===== CTA ===== */
.cdb-cta { padding: 0; }
.cdb-cta__inner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg); padding: 40px; text-align: center; color: #fff;
}
.cdb-cta__text h2 { font-size: 24px; margin-bottom: 8px; }
.cdb-cta__text p { font-size: 15px; opacity: .9; margin-bottom: 20px; }
.cdb-cta__buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== BLOG ===== */
.cdb-blog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cdb-blog-card { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cdb-blog-card__img { display: block; position: relative; padding-top: 60%; overflow: hidden; }
.cdb-blog-card__img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cdb-blog-card:hover .cdb-blog-card__img img { transform: scale(1.05); }
.cdb-blog-card__info { padding: 12px; }
.cdb-blog-card__date { font-size: 12px; color: var(--text-lighter); }
.cdb-blog-card__info h3 { font-size: 14px; line-height: 1.4; margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdb-blog-card__info h3 a:hover { color: var(--primary); }
.cdb-blog-card__info p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== FOOTER ===== */
.cdb-trust-bar { background: var(--bg-white); padding: 20px 0; border-top: 1px solid var(--border-light); }
.cdb-trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cdb-trust-item { display: flex; align-items: center; gap: 10px; }
.cdb-trust-item__icon { font-size: 28px; }
.cdb-trust-item__text strong { display: block; font-size: 14px; }
.cdb-trust-item__text span { font-size: 12px; color: var(--text-light); }

.cdb-footer__main { background: #1a1a2e; color: #ccc; padding: 40px 0; }
.cdb-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.cdb-footer__title { color: #fff; font-size: 16px; margin-bottom: 16px; }
.cdb-footer__col p { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.cdb-footer__info { display: flex; flex-direction: column; gap: 8px; }
.cdb-footer__info li { font-size: 13px; }
.cdb-footer__info a { color: var(--primary); }
.cdb-footer__links li { margin-bottom: 8px; }
.cdb-footer__links a { font-size: 13px; color: #aaa; transition: color var(--transition); }
.cdb-footer__links a:hover { color: var(--primary); }
.cdb-footer__social { display: flex; gap: 8px; margin-bottom: 16px; }
.cdb-social-btn { padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: #fff; }
.cdb-social-btn--zalo { background: #0068ff; }
.cdb-social-btn--phone { background: var(--primary); }
.cdb-footer__payment { font-size: 13px; }
.cdb-footer__payment p { margin-bottom: 6px; color: #888; }
.cdb-footer__payment span { display: block; margin-bottom: 4px; }
.cdb-footer__bottom { background: #13132b; padding: 16px 0; text-align: center; font-size: 13px; color: #888; }

/* ===== BOTTOM BAR (Mobile) ===== */
.cdb-bottom-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-white); border-top: 1px solid var(--border);
    z-index: 999; padding: 4px 0 env(safe-area-inset-bottom, 4px);
}
.cdb-bottom-bar { display: none; }

/* ===== ZALO FLOATING ===== */
.cdb-zalo-float {
    position: fixed; bottom: 80px; right: 20px; z-index: 998;
    width: 56px; height: 56px; background: #0068ff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: var(--shadow-lg); transition: transform var(--transition);
}
.cdb-zalo-float:hover { transform: scale(1.1); }
.cdb-zalo-float__pulse {
    position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid #0068ff; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* ===== MODAL ===== */
.cdb-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; }
.cdb-modal.open { display: flex; }
.cdb-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.cdb-modal__content {
    position: relative; background: #fff; border-radius: var(--radius-lg);
    max-width: 800px; width: 90%; max-height: 90vh; overflow-y: auto; z-index: 1;
    padding: 24px;
}

/* ===== TOAST ===== */
.cdb-toast {
    position: fixed; top: 80px; right: 20px; z-index: 10001;
    background: var(--primary); color: #fff; padding: 12px 20px;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 600; transform: translateX(calc(100% + 40px));
    transition: transform .3s; pointer-events: none; opacity: 0;
}
.cdb-toast.show { transform: translateX(0); pointer-events: auto; opacity: 1; }

/* ===== BREADCRUMB ===== */
.cdb-breadcrumb { background: var(--bg-white); padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.cdb-breadcrumb__nav { font-size: 13px; color: var(--text-light); }
.cdb-breadcrumb__nav a { color: var(--text-light); }
.cdb-breadcrumb__nav a:hover { color: var(--primary); }

/* ===== LOADING ===== */
.cdb-loading { text-align: center; padding: 40px 0; }
.cdb-spinner {
    width: 32px; height: 32px; border: 3px solid var(--border);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin .6s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SINGLE PRODUCT ===== */
.cdb-product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px 0; }
.cdb-gallery__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.cdb-gallery__main img { width: 100%; height: auto; cursor: zoom-in; }
.cdb-product-badge { position: absolute; top: 12px; z-index: 2; padding: 4px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; }
.cdb-product-badge--sale { left: 12px; background: var(--accent); color: #fff; }
.cdb-product-badge--hot { right: 12px; background: var(--orange); color: #fff; }
.cdb-gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; }
.cdb-gallery__thumb {
    width: 72px; height: 72px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
    transition: border-color var(--transition);
}
.cdb-gallery__thumb.active, .cdb-gallery__thumb:hover { border-color: var(--primary); }
.cdb-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.cdb-product__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cdb-brand-badge { background: var(--primary-light); color: var(--primary); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
.cdb-product__sku { font-size: 13px; color: var(--text-lighter); }
.cdb-product__name { font-size: 22px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.cdb-product__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.cdb-product__rating { display: flex; align-items: center; gap: 6px; }
.cdb-rating-value { font-size: 16px; font-weight: 700; color: var(--yellow); }
.cdb-rating-count { color: var(--text-lighter); font-size: 13px; }
.cdb-meta-divider { color: var(--border); }
.cdb-product__sold { color: var(--text-light); font-size: 14px; }

/* Price box */
.cdb-product__price-box {
    background: var(--bg); border-radius: var(--radius); padding: 16px;
    margin-bottom: 16px;
}
.cdb-price-group { display: flex; align-items: baseline; gap: 12px; }
.cdb-price--current { font-size: 28px; font-weight: 700; color: var(--accent); }
.cdb-price--old { font-size: 16px; color: var(--text-lighter); text-decoration: line-through; }
.cdb-price--discount { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; }

/* Delivery */
.cdb-product__delivery {
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.cdb-delivery-row { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; }
.cdb-delivery-row + .cdb-delivery-row { border-top: 1px solid var(--border-light); }
.cdb-delivery-label { min-width: 100px; color: var(--text-light); }
.cdb-delivery-value { flex: 1; }
.cdb-delivery-value--free { color: var(--primary); font-weight: 600; }
.cdb-delivery-value a { color: var(--primary); margin-left: 8px; }

/* Quantity */
.cdb-quantity-box { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cdb-quantity-box label { font-size: 14px; font-weight: 600; }
.cdb-quantity { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cdb-quantity__btn { width: 36px; height: 36px; font-size: 18px; display: flex; align-items: center; justify-content: center; color: var(--text); transition: background var(--transition); }
.cdb-quantity__btn:hover { background: var(--primary-light); }
.cdb-quantity__input {
    width: 50px; text-align: center; border: none; border-left: 1px solid var(--border);
    border-right: 1px solid var(--border); font-size: 15px; font-weight: 600;
    -moz-appearance: textfield;
}
.cdb-quantity__input::-webkit-outer-spin-button,
.cdb-quantity__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cdb-stock { font-size: 13px; font-weight: 600; }
.cdb-stock--in { color: var(--primary); }
.cdb-stock--out { color: var(--accent); }

/* Product buttons */
.cdb-product__buttons { display: flex; flex-direction: column; gap: 8px; }
.cdb-product__trust { margin-top: 16px; }
.cdb-trust-mini { display: flex; flex-direction: column; gap: 6px; }
.cdb-trust-mini span { font-size: 13px; color: var(--text-light); }

/* Product tabs */
.cdb-product-tabs { margin: 24px 0; background: var(--bg-white); border-radius: var(--radius-lg); padding: 24px; }
.cdb-product-tabs__nav {
    display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cdb-product-tabs__btn {
    padding: 12px 24px; font-size: 15px; font-weight: 600; color: var(--text-light);
    border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
    transition: all var(--transition);
}
.cdb-product-tabs__btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.cdb-product-tabs__panel { display: none; }
.cdb-product-tabs__panel.active { display: block; }

/* Description */
.cdb-product-description { font-size: 15px; line-height: 1.7; }
.cdb-product-description img { border-radius: var(--radius); margin: 12px 0; }
.cdb-product-description h2, .cdb-product-description h3 { margin: 16px 0 8px; }
.cdb-product-description ul, .cdb-product-description ol { padding-left: 20px; margin: 8px 0; }

/* Product category SEO content */
.cdb-cat-seo {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
    margin: 18px 0;
    color: #243127;
    line-height: 1.7;
}
.cdb-cat-seo h2 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #0a4520;
}
.cdb-cat-seo h3 {
    font-size: 18px;
    margin: 16px 0 6px;
    color: #0a4520;
}
.cdb-cat-seo__lead {
    font-size: 16px;
    margin: 0 0 12px;
}
.cdb-cat-seo__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.cdb-cat-seo__grid > div {
    background: #f6faf7;
    border-radius: 8px;
    padding: 10px;
}
.cdb-cat-seo__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.cdb-cat-seo__links a {
    background: #f8fbf8;
    border: 1px solid #d8e7dc;
    border-radius: 999px;
    color: #176b36;
    padding: 6px 12px;
    text-decoration: none;
}
.cdb-cat-seo__faq {
    border-top: 1px solid #edf2ef;
    margin-top: 18px;
    padding-top: 14px;
}
.cdb-seo-section__inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 22px;
    padding: 22px;
}
.cdb-seo-section h2 {
    color: #0a4520;
    font-size: 24px;
    margin: 0 0 10px;
}
.cdb-seo-section h3 {
    color: #0a4520;
    font-size: 17px;
    margin: 16px 0 6px;
}
.cdb-seo-section p,
.cdb-seo-section li {
    color: #34433a;
    font-size: 15px;
    line-height: 1.75;
}
.cdb-seo-section ul {
    margin: 12px 0 0;
    padding-left: 20px;
}
.cdb-seo-section__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.cdb-seo-section__links a {
    background: #f8fbf8;
    border: 1px solid #d8e7dc;
    border-radius: 999px;
    color: #176b36;
    padding: 6px 12px;
    text-decoration: none;
}
.cdb-seo-section__faq {
    background: #f6faf7;
    border-radius: 8px;
    padding: 16px;
}
@media (max-width: 768px) {
    .cdb-cat-seo { padding: 14px; }
    .cdb-cat-seo__grid { grid-template-columns: 1fr; }
    .cdb-cat-seo h2 { font-size: 20px; }
    .cdb-cat-seo h3 { font-size: 16px; }
    .cdb-seo-section__inner { grid-template-columns: 1fr; padding: 16px; }
    .cdb-seo-section h2 { font-size: 20px; }
    .cdb-seo-section h3 { font-size: 16px; }
}

/* Details table */
.cdb-product-details-table { margin-top: 20px; }
.cdb-product-details-table h3 { font-size: 16px; margin-bottom: 12px; }
.cdb-product-details-table table { width: 100%; border-collapse: collapse; }
.cdb-product-details-table td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.cdb-product-details-table td:first-child { width: 160px; color: var(--text-light); background: var(--bg); }

/* Care guide */
.cdb-care-guide h3 { margin-bottom: 16px; }
.cdb-care-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cdb-care-item { background: var(--bg); padding: 20px; border-radius: var(--radius); text-align: center; }
.cdb-care-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.cdb-care-item strong { display: block; margin-bottom: 4px; }
.cdb-care-item p { font-size: 13px; color: var(--text-light); }

/* Reviews summary */
.cdb-reviews__summary { text-align: center; padding: 20px; margin-bottom: 20px; background: var(--bg); border-radius: var(--radius); }
.cdb-reviews__number { font-size: 48px; font-weight: 700; color: var(--primary); display: block; }

/* Policy */
.cdb-policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cdb-policy-item { background: var(--bg); padding: 20px; border-radius: var(--radius); }
.cdb-policy-item h4 { margin-bottom: 12px; font-size: 15px; }
.cdb-policy-item ul { list-style: disc; padding-left: 16px; }
.cdb-policy-item li { font-size: 13px; margin-bottom: 6px; color: var(--text-light); line-height: 1.5; }

/* ===== SHOP / ARCHIVE – FULL WIDTH LAYOUT ===== */

/* Hero banner */
.cdb-shop-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 24px 0; margin-bottom: 0;
}
.cdb-shop-hero__inner {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cdb-shop-hero__text h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.cdb-shop-hero__text p { font-size: 14px; opacity: .85; }
.cdb-shop-hero__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cdb-shop-hero__call {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
    padding: 10px 16px; border-radius: var(--radius); color: #fff;
    text-decoration: none; transition: background .2s;
}
.cdb-shop-hero__call:hover { background: rgba(255,255,255,.25); }
.cdb-shop-hero__call span { font-size: 22px; }
.cdb-shop-hero__call small { font-size: 11px; opacity: .8; display: block; }
.cdb-shop-hero__call strong { font-size: 15px; }
.cdb-shop-hero__zalo {
    padding: 10px 18px; background: #0068FF; color: #fff; border-radius: var(--radius);
    font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s;
}
.cdb-shop-hero__zalo:hover { background: #0050CC; }

/* Category tabs */
.cdb-shop-cats {
    background: var(--bg-white); border-bottom: 1px solid var(--border);
    position: sticky; top: var(--header-height, 70px); z-index: 90;
}
.cdb-shop-cats__wrap {
    display: flex; align-items: center; position: relative;
}
.cdb-shop-cats__arrow {
    position: absolute; top: 0; bottom: 0; width: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; color: var(--text);
    background: linear-gradient(to right, var(--bg-white) 60%, transparent);
    border: none; cursor: pointer; z-index: 3;
    transition: opacity .2s;
}
.cdb-shop-cats__arrow--left { left: 0; }
.cdb-shop-cats__arrow--right { right: 0; background: linear-gradient(to left, var(--bg-white) 60%, transparent); }
.cdb-shop-cats__arrow:hover { color: var(--primary); }
.cdb-shop-cats__arrow.hidden { opacity: 0; pointer-events: none; }
.cdb-shop-cats__scroll {
    display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; flex: 1; min-width: 0;
}
.cdb-shop-cats__scroll::-webkit-scrollbar { display: none; }
.cdb-shop-cats__item {
    display: flex; align-items: center; gap: 4px;
    padding: 12px 18px; font-size: 14px; font-weight: 500;
    color: var(--text-light); white-space: nowrap; text-decoration: none;
    border-bottom: 2px solid transparent; transition: all .2s;
}
.cdb-shop-cats__item:hover { color: var(--primary); }
.cdb-shop-cats__item.active {
    color: var(--primary); font-weight: 600;
    border-bottom-color: var(--primary);
}
.cdb-shop-cats__count {
    background: var(--bg); font-size: 11px; padding: 1px 6px;
    border-radius: 10px; color: var(--text-lighter);
}
.cdb-shop-cats__item.active .cdb-shop-cats__count {
    background: var(--primary-light); color: var(--primary);
}

/* Bestseller row */
.cdb-shop-bestseller {
    background: var(--bg-white); padding: 20px 0; margin: 12px 0 0;
    border-bottom: 1px solid var(--border-light);
}
.cdb-shop-bestseller__header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.cdb-shop-bestseller__header h2 { font-size: 18px; font-weight: 700; }
.cdb-shop-bestseller__header a {
    font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none;
}
.cdb-shop-bestseller__header a:hover { text-decoration: underline; }
.cdb-shop-bestseller__grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}

/* Bestseller card */
.cdb-bs-card {
    position: relative; background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
    transition: box-shadow .2s, transform .15s;
}
.cdb-bs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cdb-bs-card__rank {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
    color: #fff; background: var(--text-lighter);
}
.cdb-bs-card__rank--1 { background: #E53935; }
.cdb-bs-card__rank--2 { background: #FB8C00; }
.cdb-bs-card__rank--3 { background: #FDD835; color: #333; }
.cdb-bs-card__sale {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    padding: 2px 6px; background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 4px;
}
.cdb-bs-card__img { aspect-ratio: 1; overflow: hidden; background: var(--bg); }
.cdb-bs-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cdb-bs-card__info { padding: 8px; }
.cdb-bs-card__name {
    font-size: 13px; font-weight: 500; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 34px;
}
.cdb-bs-card__price { font-size: 14px; color: var(--accent); font-weight: 700; margin-top: 4px; }

/* Trust bar */
.cdb-shop-trust {
    background: var(--primary-light); border-bottom: 1px solid rgba(14,90,42,.1);
    padding: 10px 0;
}
.cdb-shop-trust__grid {
    display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.cdb-shop-trust__item {
    font-size: 13px; font-weight: 500; color: var(--primary-dark);
    white-space: nowrap;
}

/* Filter bar */
.cdb-shop-filterbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    background: var(--bg-white); padding: 12px 16px; border-radius: var(--radius);
    margin: 16px 0; border: 1px solid var(--border-light);
}
.cdb-shop-filterbar__left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cdb-shop-filterbar__label { font-size: 13px; font-weight: 600; color: var(--text); }
.cdb-shop-filterbar__tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cdb-ftag {
    padding: 5px 12px; font-size: 12px; background: var(--bg); border: 1px solid var(--border-light);
    border-radius: 20px; text-decoration: none; color: var(--text);
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.cdb-ftag:hover, .cdb-ftag.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cdb-ftag--hot { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.cdb-ftag--hot:hover { background: var(--accent); color: #fff; }
.cdb-ftag-sep { color: var(--border); font-size: 16px; }
.cdb-shop-filterbar__right { display: flex; align-items: center; gap: 10px; }

/* Full-width grid (5 columns) */
.cdb-products-grid--full { grid-template-columns: repeat(5, 1fr) !important; }

/* Keep old styles that are still used */
.cdb-shop__cat-header { margin-bottom: 16px; }
.cdb-shop__cat-header h1 { font-size: 22px; }
.cdb-shop__cat-header p { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.cdb-shop__count { font-size: 13px; color: var(--text-light); }
.cdb-sort-select { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; }
.cdb-no-products { text-align: center; padding: 60px 0; font-size: 16px; color: var(--text-light); }

/* Pagination */
.cdb-pagination { margin-top: 24px; text-align: center; }
.cdb-pagination ul { display: inline-flex; gap: 4px; list-style: none; }
.cdb-pagination li a, .cdb-pagination li span {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; transition: all var(--transition);
}
.cdb-pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.cdb-pagination li .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== QUICK VIEW ===== */
.cdb-quick-view-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cdb-quick-view-inner img { width: 100%; border-radius: var(--radius); }

/* ===== BLOG / SINGLE POST ===== */
.cdb-blog-layout {
    display: grid !important; grid-template-columns: 1fr 320px !important; gap: 24px;
    padding: 20px 0 40px; align-items: start;
    width: 100%; max-width: 100%; min-width: 0;
}

/* Article */
.cdb-article {
    background: var(--bg-white); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-light);
    min-width: 0; width: 100%;
}
.cdb-article__header { padding: 28px 28px 0; }
.cdb-article__cat {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600; color: var(--primary);
    background: var(--primary-light); margin-bottom: 12px;
}
.cdb-article__title { font-size: 26px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.cdb-article__meta {
    display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-light);
    padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
}

.cdb-article__thumb { margin: 20px 28px 0; border-radius: var(--radius); overflow: hidden; }
.cdb-article__thumb img { width: 100%; height: auto; display: block; }

/* TOC */
.cdb-toc {
    margin: 20px 28px; background: #F8FAF9; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
}
.cdb-toc__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: var(--primary-light);
}
.cdb-toc__header strong { font-size: 14px; }
.cdb-toc__toggle {
    font-size: 12px; color: var(--primary); cursor: pointer;
    background: none; border: none; font-weight: 600;
}
.cdb-toc__list { padding: 12px 16px; }
.cdb-toc__list a {
    display: block; padding: 5px 0; font-size: 14px; color: var(--text);
    text-decoration: none; border-bottom: 1px dashed var(--border-light);
    transition: color .15s;
}
.cdb-toc__list a:last-child { border: none; }
.cdb-toc__list a:hover { color: var(--primary); }
.cdb-toc__list a.cdb-toc--h3 { padding-left: 16px; font-size: 13px; color: var(--text-light); }
.cdb-toc.collapsed .cdb-toc__list { display: none; }

/* Article content */
.cdb-article__content {
    padding: 24px 28px; font-size: 16px; line-height: 1.8; color: var(--text);
    max-width: 100%; width: 100%;
}
.cdb-article__content > * { max-width: 100%; }
.cdb-article__content h2 {
    font-size: 22px; font-weight: 700; margin: 28px 0 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--primary-light);
    scroll-margin-top: calc(var(--header-height) + 20px);
}
.cdb-article__content h3 {
    font-size: 18px; font-weight: 600; margin: 20px 0 10px;
    scroll-margin-top: calc(var(--header-height) + 20px);
}
.cdb-article__content p { margin-bottom: 16px; }
.cdb-article__content img { border-radius: var(--radius); margin: 16px 0; }
.cdb-article__content ul, .cdb-article__content ol {
    margin: 12px 0 16px 20px; padding-left: 0;
}
.cdb-article__content li { margin-bottom: 6px; list-style: disc; }
.cdb-article__content ol li { list-style: decimal; }
.cdb-article__content blockquote {
    margin: 16px 0; padding: 16px 20px; background: var(--primary-light);
    border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.cdb-article__content a { color: var(--primary); font-weight: 500; text-decoration: underline; }
.cdb-article__content a:hover { color: var(--primary-dark); }
.cdb-article__content strong { font-weight: 600; }

/* Tags */
.cdb-article__tags {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 0 28px 20px; font-size: 13px; color: var(--text-light);
}
.cdb-article__tags a {
    padding: 4px 12px; background: var(--bg); border-radius: 20px;
    font-size: 12px; color: var(--text); text-decoration: none;
    transition: all .15s;
}
.cdb-article__tags a:hover { background: var(--primary-light); color: var(--primary); }

/* Share */
.cdb-article__share {
    display: flex; align-items: center; gap: 8px; padding: 16px 28px;
    border-top: 1px solid var(--border-light); font-size: 14px; color: var(--text-light);
}
.cdb-share-btn {
    padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: opacity .15s;
}
.cdb-share-btn:hover { opacity: .85; }
.cdb-share-btn--fb { background: #1877F2; color: #fff; }
.cdb-share-btn--zalo { background: #0068FF; color: #fff; }
.cdb-share-btn--copy { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

/* Prev/Next nav */
.cdb-article__nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    padding: 20px 28px 28px; border-top: 1px solid var(--border-light);
}
.cdb-article__nav-item {
    display: block; padding: 12px 16px; background: var(--bg);
    border-radius: var(--radius); text-decoration: none; color: var(--text);
    transition: background .15s;
}
.cdb-article__nav-item:hover { background: var(--primary-light); }
.cdb-article__nav-item small { display: block; font-size: 12px; color: var(--text-lighter); margin-bottom: 4px; }
.cdb-article__nav-item span { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdb-article__nav-item--next { text-align: right; }

/* Blog sidebar */
.cdb-blog-sidebar { position: sticky; top: calc(var(--header-height) + 16px); align-self: start; }

.cdb-blog-sb__cta {
    background: linear-gradient(135deg, var(--primary-light), #E8F5E9);
    border: 1px solid rgba(14,90,42,.15); border-radius: var(--radius-lg);
    padding: 20px; text-align: center; margin-bottom: 16px;
}
.cdb-blog-sb__cta-icon { font-size: 32px; margin-bottom: 8px; }
.cdb-blog-sb__cta strong { display: block; font-size: 15px; margin-bottom: 6px; }
.cdb-blog-sb__cta p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.cdb-blog-sb__cta .cdb-btn { display: block; width: 100%; margin-bottom: 6px; text-align: center; }

.cdb-blog-sb__section {
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px;
}
.cdb-blog-sb__title {
    font-size: 15px; font-weight: 700; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--primary);
}
.cdb-blog-sb__cats { list-style: none; padding: 0; margin: 0; }
.cdb-blog-sb__cats li a {
    display: flex; justify-content: space-between; padding: 6px 8px;
    font-size: 13px; color: var(--text); text-decoration: none;
    border-radius: 6px; transition: all .15s;
}
.cdb-blog-sb__cats li a span { color: var(--text-lighter); font-size: 12px; }
.cdb-blog-sb__cats li a:hover { background: var(--bg); color: var(--primary); }

.cdb-blog-sb__post {
    display: flex; gap: 10px; padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none; color: var(--text); transition: background .15s;
}
.cdb-blog-sb__post:last-child { border: none; }
.cdb-blog-sb__post:hover { opacity: .8; }
.cdb-blog-sb__post-img { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.cdb-blog-sb__post-img img { width: 100%; height: 100%; object-fit: cover; }
.cdb-blog-sb__post-info { flex: 1; min-width: 0; }
.cdb-blog-sb__post-title {
    font-size: 13px; font-weight: 500; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cdb-blog-sb__post-date { font-size: 11px; color: var(--text-lighter); }

.cdb-blog-sb__product {
    display: flex; gap: 10px; padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none; color: var(--text);
}
.cdb-blog-sb__product:last-child { border: none; }
.cdb-blog-sb__product:hover { opacity: .8; }
.cdb-blog-sb__product img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cdb-blog-sb__product-name {
    font-size: 13px; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cdb-blog-sb__product-price { font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 2px; }

/* Related posts bottom */
.cdb-related-posts { padding: 32px 0; }
.cdb-related-posts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.cdb-related-card {
    background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-light); text-decoration: none; color: var(--text);
    transition: box-shadow .2s, transform .15s;
}
.cdb-related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cdb-related-card__img { aspect-ratio: 16/9; overflow: hidden; }
.cdb-related-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cdb-related-card__info { padding: 12px; }
.cdb-related-card__date { font-size: 11px; color: var(--text-lighter); }
.cdb-related-card__title {
    font-size: 14px; font-weight: 600; margin: 4px 0 6px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cdb-related-card__excerpt { font-size: 13px; color: var(--text-light); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: var(--bg-white); border-radius: var(--radius); padding: 12px 16px;
    border-left: 4px solid var(--primary); margin-bottom: 16px;
}
.woocommerce-error { border-left-color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cdb-hero__grid { grid-template-columns: 1fr; }
    .cdb-slider { height: 220px; }
    .cdb-hero__side { height: auto; flex-direction: row; }
    .cdb-hero__card { flex: 1; }
    .cdb-hero__card--trust .cdb-hero__card-list { display: none; }
    .cdb-slide-content h2 { font-size: 20px; }
    .cdb-slide-content p { font-size: 13px; }
    .cdb-slide-badge { font-size: 11px; padding: 3px 10px; }
    .cdb-hero__side { display: none; }
    .cdb-products-grid { grid-template-columns: repeat(3, 1fr); }
    .cdb-products-grid--full { grid-template-columns: repeat(3, 1fr) !important; }
    .cdb-shop-bestseller__grid { grid-template-columns: repeat(4, 1fr); }
    .cdb-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .cdb-trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
    .cdb-usp__grid { grid-template-columns: repeat(2, 1fr); }
    .cdb-blog__grid { grid-template-columns: repeat(2, 1fr); }
    .cdb-policy { grid-template-columns: 1fr; }
    .cdb-blog-layout { grid-template-columns: 1fr 280px; }
    .cdb-related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }

    .cdb-header__top { display: none; }
    .cdb-header__main { padding: 8px 0; gap: 8px; flex-wrap: nowrap; }
    .cdb-logo__text { font-size: 0; }
    .cdb-logo__text .cdb-logo__sub { display: none; }
    .cdb-logo__icon { font-size: 28px; }
    .cdb-search { min-width: 0; flex: 1; }
    .cdb-search input[type="text"] { padding: 10px 36px 10px 12px; font-size: 16px; border-radius: var(--radius); border-left: 2px solid var(--primary); height: 42px; }
    .cdb-search__cat { display: none; }
    .cdb-header__actions { gap: 4px; flex-shrink: 0; }
    .cdb-hotline-desktop { display: none !important; }
    .cdb-header-icon { display: none !important; }
    .cdb-cart-btn { padding: 4px !important; }
    .cdb-cart-btn .cdb-header-icon__label { display: none; }
    .cdb-menu-toggle { display: flex; padding: 4px 8px 4px 4px; flex-shrink: 0; }
    .cdb-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .cdb-slider__slide--default { height: 220px; }
    .cdb-slide-content h2 { font-size: 22px; }

    .cdb-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cdb-products-grid--shop { grid-template-columns: repeat(2, 1fr); }

    .cdb-product-card__info { padding: 8px; }
    .cdb-product-card__name { font-size: 13px; min-height: 36px; }
    .cdb-product-card__actions { padding: 0 8px 8px; flex-direction: column; }

    .cdb-usp__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cdb-usp__item { padding: 12px; }
    .cdb-usp__icon { font-size: 28px; }

    .cdb-process__grid { flex-direction: column; align-items: center; }
    .cdb-process__arrow { transform: rotate(90deg); }

    .cdb-cta__inner { padding: 24px 16px; }
    .cdb-cta__text h2 { font-size: 20px; }
    .cdb-cta__buttons { flex-direction: column; }

    .cdb-blog__grid { grid-template-columns: 1fr; }

    .cdb-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .cdb-trust-bar__grid { grid-template-columns: 1fr 1fr; }

    /* Bottom bar */
    .cdb-bottom-bar { display: flex !important; justify-content: space-around; }
    .cdb-bottom-bar__item {
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        font-size: 10px; color: var(--text-light); padding: 6px 0;
        flex: 1; text-align: center;
    }
    .cdb-bottom-bar__item.active { color: var(--primary); }
    .cdb-bottom-bar__item--call { color: var(--primary); }
    body { padding-bottom: 60px; }

    /* Push chat widgets above bottom bar on mobile */
    #tawk-bubble-container,
    .fb_dialog,
    .zalo-chat-widget,
    [class*="tawk-"],
    iframe[title*="chat"],
    .crisp-client,
    .intercom-lightweight-app,
    div[class*="chatWidget"] {
        bottom: 70px !important;
    }

    /* Zalo button position */
    .cdb-zalo-float { bottom: 70px; right: 12px; width: 48px; height: 48px; font-size: 24px; }

    /* Shop */
    .cdb-shop-hero__inner { flex-direction: column; text-align: center; }
    .cdb-shop-hero__text h1 { font-size: 20px; }
    .cdb-shop-hero__cta { justify-content: center; }
    .cdb-shop-hero__call { padding: 8px 12px; }
    .cdb-shop-hero__zalo { padding: 8px 14px; font-size: 13px; }
    .cdb-shop-cats { top: 60px; }
    .cdb-shop-bestseller__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cdb-shop-trust__grid { gap: 12px; justify-content: flex-start; }
    .cdb-shop-trust__item { font-size: 12px; }
    .cdb-shop-filterbar { flex-direction: column; align-items: flex-start; }
    .cdb-shop-filterbar__tags { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .cdb-products-grid--full { grid-template-columns: repeat(2, 1fr) !important; }
    .cdb-blog-layout { grid-template-columns: 1fr; }
    .cdb-blog-sidebar { position: static; }
    .cdb-article__header { padding: 20px 16px 0; }
    .cdb-article__title { font-size: 20px; }
    .cdb-article__thumb { margin: 16px 16px 0; }
    .cdb-toc { margin: 16px; }
    .cdb-article__content { padding: 16px; font-size: 15px; }
    .cdb-article__content h2 { font-size: 18px; }
    .cdb-article__tags { padding: 0 16px 16px; }
    .cdb-article__share { padding: 12px 16px; flex-wrap: wrap; }
    .cdb-article__nav { grid-template-columns: 1fr; padding: 16px; }
    .cdb-related-posts__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Single product */
    .cdb-product { grid-template-columns: 1fr; gap: 16px; }
    .cdb-product__name { font-size: 18px; }
    .cdb-price--current { font-size: 22px; }
    .cdb-care-grid { grid-template-columns: 1fr; }
    .cdb-quick-view-inner { grid-template-columns: 1fr; }

    .cdb-section__title { font-size: 17px; }
}

@media (max-width: 480px) {
    .cdb-products-scroll .cdb-product-card { min-width: 160px; }
    .cdb-review-card { min-width: 260px; }
    .cdb-countdown { flex-wrap: wrap; }
}

/* ===== LAZY LOAD TRANSITION ===== */
.cdb-lazy { opacity: 0; transition: opacity .3s; }
.cdb-lazy.loaded { opacity: 1; }

/* ===== HIDE CALL NOW BUTTON (old plugin) ===== */
#callnowbutton, .cnb-classic, .cnb-full, [id*="cnb"], .call-now-button {
    display: none !important;
}

/* ===== ZALO CHAT BUBBLE ===== */
.cdb-zalo {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.cdb-zalo__fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0068FF 0%, #0099FF 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,104,255,.4);
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.cdb-zalo__fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,104,255,.5);
}
.cdb-zalo__fab::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0,104,255,.3);
    animation: cdbZaloPulse 2s ease-out infinite;
}
@keyframes cdbZaloPulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.4); opacity: 0; }
}
.cdb-zalo__fab-text {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Popup */
.cdb-zalo__popup {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(.95);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.cdb-zalo__popup--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.cdb-zalo__header {
    background: linear-gradient(135deg, #0068FF 0%, #0099FF 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.cdb-zalo__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cdb-zalo__info {
    flex: 1;
    min-width: 0;
}
.cdb-zalo__info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}
.cdb-zalo__info span {
    font-size: 12px;
    opacity: .9;
}
.cdb-zalo__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    opacity: .8;
    transition: opacity .2s;
}
.cdb-zalo__close:hover { opacity: 1; }

/* Body */
.cdb-zalo__body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.cdb-zalo__body p { margin: 0 0 8px; }
.cdb-zalo__body p:last-child { margin: 0; }

/* CTA Button */
.cdb-zalo__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 16px 16px;
    padding: 12px;
    background: linear-gradient(135deg, #0068FF 0%, #0099FF 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    transition: opacity .2s;
}
.cdb-zalo__btn:hover { opacity: .9; color: #fff; }
.cdb-zalo__btn-icon {
    width: 28px;
    height: 28px;
    background: #fff;
    color: #0068FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cdb-zalo { bottom: 76px; right: 12px; }
    .cdb-zalo__popup { width: 290px; }
    .cdb-zalo__fab { width: 52px; height: 52px; }
    .cdb-zalo__fab-text { font-size: 24px; }
}

/* ===== PRINT ===== */
@media print {
    .cdb-header, .cdb-footer, .cdb-bottom-bar, .cdb-zalo-float { display: none !important; }
    body { background: #fff; padding: 0; }
}
