@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- DESIGN SYSTEM & CUSTOM PROPERTIES --- */
:root {
    --primary: #2563eb;          /* XANH DƯƠNG chủ đạo */
    --primary-light: #dbeafe;    /* Light blue background */
    --primary-hover: #1d4ed8;    /* Darker blue for hover state */
    --accent: #d2a45c;          /* Elegant warm gold for ratings, tags, and focal points */
    --accent-light: #faf5ec;    /* Soft gold background */
    --accent-hover: #b88b44;    /* Darker gold for interactions */

    --bg-main: #ffffff;
    --bg-secondary: #f6f8fb;    /* Very soft off-blue-gray for sections */
    --bg-dark: #0f172a;         /* Deep navy for rich footer */
    
    --text-primary: #1c2b40;    /* Cool charcoal for headers */
    --text-secondary: #5a6b7d;  /* Muted blue-gray for description */
    --text-light: #ffffff;

    --border-color: #dbe4f0;    /* Soft blue-tinted borders */
    --danger: #d93838;          /* Bright red for sale tags, countdown */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.06);
    --shadow-md: 0 8px 24px rgba(37, 99, 235, 0.10);
    --shadow-lg: 0 16px 40px rgba(37, 99, 235, 0.14);
    
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 120px;
    --header-shrink-height: 80px;
}

/* --- RESET & BASIC STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 400;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(210, 164, 92, 0.2);
    transform: translateY(-2px);
}

/* --- SHIMMER SKELETON PLACEHOLDERS --- */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e8eee9;
    border-radius: var(--radius-md);
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.6) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.title {
    width: 80%;
    height: 20px;
}

.skeleton-text.price {
    width: 40%;
    height: 18px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
}

/* --- HEADER SECTION --- */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--bg-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.shrink {
    box-shadow: var(--shadow-md);
}

/* Topbar */
.topbar {
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Main Header Area */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: var(--transition);
}

header.shrink .main-header {
    padding: 12px 0;
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

header.shrink .logo img {
    height: 35px;
}

/* Search bar */
.search-container {
    flex: 0 1 450px;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 10px 48px 10px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.search-bar:focus {
    border-color: var(--primary);
    background-color: var(--bg-main);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.search-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    color: var(--primary-hover);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-action-btn {
    position: relative;
    color: var(--text-primary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-action-btn:hover {
    color: var(--primary);
}

.header-action-btn .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--danger);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-main);
}

.cart-text-group {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.2;
}

.cart-text-group span:first-child {
    color: var(--text-secondary);
}

.cart-text-group span:last-child {
    font-weight: 700;
    color: var(--primary);
}

/* Navigation bar */
.nav-bar {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 14px 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Spacer for Fixed Header */
.header-spacer {
    height: var(--header-height);
}

/* --- MINI CART PANEL --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 38, 29, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 1002;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 1.25rem;
}

.cart-drawer-close {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.cart-drawer-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty-message {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

.cart-empty-message svg {
    margin: 0 auto 16px;
    color: var(--border-color);
    display: block;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    width: fit-content;
    border-radius: var(--radius-full);
}

.cart-item-qty button {
    padding: 4px 10px;
    font-weight: bold;
    color: var(--text-secondary);
}

.cart-item-qty button:hover {
    color: var(--primary);
}

.cart-item-qty span {
    padding: 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cart-total-row .total-price {
    color: var(--primary);
}

.cart-drawer-footer .btn {
    width: 100%;
}

/* --- HERO BANNER (admin upload) --- */
.hero-banner {
    width: 100%;
    margin-top: 0;
}
.hero-banner-inner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-banner-bg {
    min-height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    color: #fff;
}
.hero-banner-content {
    max-width: 640px;
}
.hero-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-banner-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 24px;
    color: #f5f5f5;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-banner .btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 9999px;
}
.hero-banner .btn-primary:hover {
    background: var(--primary-hover);
}
@media (max-width: 768px) {
    .hero-banner-bg { min-height: 260px; padding: 40px 20px; }
    .hero-banner-title { font-size: 1.5rem; }
    .hero-banner-subtitle { font-size: 0.95rem; }
}

/* --- HERO BANNER SLIDER --- */
.hero-slider {
    width: 100%;
    height: calc(100vh - var(--header-height));
    min-height: 480px;
    max-height: 700px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Placeholder gradient background inside slide before API loads images */
.slide.placeholder-slide .slide-bg {
    background-image: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--text-primary);
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-in-out;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.slide-title span {
    color: var(--primary);
}

.slide-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.slider-arrow-prev {
    left: 24px;
}

.slider-arrow-next {
    right: 24px;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: rgba(37, 99, 235, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary);
    width: 28px;
}

/* --- BRAND VALUES SECTION --- */
.brand-values {
    background-color: var(--bg-secondary);
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 24px;
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.value-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- CATEGORIES GRID SECTION --- */
.categories-slider-wrapper {
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.categories-slider-wrapper::-webkit-scrollbar {
    height: 6px;
}

.categories-slider-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 10px;
}

.categories-grid {
    display: flex;
    gap: 24px;
    min-width: 1000px; /* Force overflow container horizontally */
    justify-content: space-between;
}

.category-card {
    flex: 0 0 130px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-img-wrapper {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    background-color: var(--bg-secondary);
    border: 2px solid transparent;
    padding: 8px;
    transition: var(--transition);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card:hover .category-img-wrapper {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.category-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-card:hover .category-name {
    color: var(--primary);
}

/* --- FLASH SALE SECTION --- */
.flash-sale {
    background-color: var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.flash-sale-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flash-sale-title {
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-sale-title i {
    color: var(--danger);
    animation: flash-pulse 1s infinite alternate;
}

@keyframes flash-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

.countdown {
    display: flex;
    gap: 8px;
    align-items: center;
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.countdown-box {
    background-color: var(--danger);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-divider {
    font-weight: 700;
    color: var(--danger);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- PRODUCT CARD STYLING --- */
.product-card {
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.product-badge-group {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.product-badge.sale {
    background-color: var(--danger);
    color: var(--text-light);
}

.product-badge.new {
    background-color: var(--primary);
    color: var(--text-light);
}

.product-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 36px;
    height: 36px;
    background-color: var(--bg-main);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.product-wishlist:hover, .product-wishlist.active {
    color: var(--danger);
    background-color: #fff0f0;
}

.product-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background-color: var(--bg-secondary);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-title a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.product-rating-count {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: auto;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.product-old-price {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.flash-sale-stock {
    margin-bottom: 16px;
}

.stock-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
    position: relative;
}

.stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger) 0%, var(--accent) 100%);
    border-radius: var(--radius-full);
}

.stock-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stock-text span strong {
    color: var(--danger);
}

.btn-add-cart {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.88rem;
}

/* --- BEST SELLERS TAB SECTION --- */
.best-sellers-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.tab-btn.active {
    color: var(--text-light);
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MIDDLE PROMOTION CAMPAIGN --- */
.promo-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.promo-banner-card {
    height: 320px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.promo-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.promo-banner-card.placeholder-banner {
    background-image: linear-gradient(135deg, #eaf2ee 0%, #f4e8d3 100%);
}

.promo-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-banner-card:hover .promo-banner-img {
    transform: scale(1.05);
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 320px;
}

.promo-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.promo-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* --- BLOG & TESTIMONIALS --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-img-link {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.blog-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-img-link img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.1rem;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.blog-readmore {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-readmore:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    background-color: var(--bg-main);
    padding: 6px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.newsletter-input {
    flex: 1;
    padding: 12px 24px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.newsletter-form .btn {
    padding: 12px 32px;
}

/* --- FOOTER SECTION --- */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    height: 48px;
    filter: brightness(0) invert(1); /* Render logo white */
}

.footer-about {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    font-size: 1rem;
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 4px;
}

.footer-contact span strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer-certs {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-certs img {
    height: 32px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-certs img:hover {
    opacity: 1;
}

/* --- MOBILE DRAWER MENU --- */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 1002;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.mobile-menu-drawer.active {
    left: 0;
}

.mobile-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-close {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: block;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid var(--bg-secondary);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
    padding-left: 30px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 38, 29, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-card:last-child {
        display: none; /* Hide 3rd blog on medium screens */
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .topbar {
        display: none; /* Hide topbar on mobile to save space */
    }
    
    .nav-bar {
        display: none; /* Hide desktop main nav */
    }
    
    .main-header {
        padding: 12px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-right: 16px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .search-container {
        display: none; /* Hide search bar from header, can place in drawer or open inline */
    }
    
    .header-actions {
        gap: 16px;
    }
    
    .hero-slider {
        height: calc(100vh - var(--header-height));
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-desc {
        font-size: 0.95rem;
    }
    
    .promo-banners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promo-banner-card {
        height: 240px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr; /* Stack products on very small screens */
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.88rem;
    }
}
