/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Theme Variables - Default Dark Luxury Aesthetic matching screenshots */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #c2b5ac;
    --text-light: #8f8278;
    --accent-color: #d34e15; /* Rich earthy orange */
    --accent-rgb: 211, 78, 21;
    --accent-hover: #e95d22;
    --accent-light: #2c1a11;
    --border-color: #2b2b2b;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(211, 78, 21, 0.15);
    
    /* Layout and Font Tokens */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --header-height: 80px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 9999px;
    --container-width: 1300px;
}

[data-theme="light"] {
    /* Optional Light Theme fallback if toggled, but Dark is default */
    --bg-primary: #ffffff;
    --bg-secondary: #fdfcf9;
    --bg-tertiary: #f6f3eb;
    --text-primary: #1c1612;
    --text-secondary: #54463d;
    --text-light: #8a7c73;
    --border-color: #e8dfd5;
    --shadow-color: rgba(233, 93, 34, 0.04);
    --shadow-hover: rgba(233, 93, 34, 0.1);
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Common Layout Helpers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* HEADER AND NAVIGATION */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    display: block;
    margin-top: -4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme/Cart Toggles */
.theme-toggle, .cart-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.theme-toggle:hover, .cart-toggle:hover {
    background-color: var(--bg-tertiary);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

.cart-toggle {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

/* TWO-COLUMN SIDEBAR LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: var(--container-width);
    margin: calc(var(--header-height) + 24px) auto 40px;
    padding: 0 20px;
}

/* LEFT SIDEBAR CATEGORIES */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-header {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    border-top-left-radius: var(--border-radius-sm);
    border-top-right-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
    overflow: hidden;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #252525;
    cursor: pointer;
    text-transform: uppercase;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}

.sidebar-menu-item i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.sidebar-menu-item:hover, .sidebar-menu-item.active {
    background-color: var(--accent-color);
    color: #ffffff;
}

.sidebar-menu-item:hover i, .sidebar-menu-item.active i {
    color: #ffffff;
}

/* RIGHT MAIN CONTENT SECTION */
.main-content-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* TOP ORANGE FEATURE BANNER */
.top-feature-banner {
    background-color: var(--accent-color);
    border-radius: var(--border-radius-sm);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 12px 6px;
    gap: 6px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.top-badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.top-badge-item i {
    font-size: 1rem;
}

.top-badge-item span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.top-badge-item span small {
    font-size: 0.6rem;
    opacity: 0.85;
    text-transform: none;
    font-weight: 400;
}

/* HERO GRID */
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 16px;
}

.hero-slider-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 40px;
    background-size: cover;
    background-position: center;
}

.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-slider-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.hero-slider-content h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-slider-content h2 span {
    color: var(--accent-color);
}

.hero-slider-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-slider-hotline {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-side-banners {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side-card {
    flex-grow: 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    min-height: 152px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background-size: cover;
    background-position: center;
}

.hero-side-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.hero-side-card h3 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SECTION HEADERS (FLASH SALE, SUGGESTIONS) */
.section-header-row {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius-sm);
}

.section-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-title h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.section-header-title h2 span {
    color: var(--accent-color);
}

.section-header-title small {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.section-header-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

.section-header-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* DYNAMIC 5/6 COLUMN PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* DYNAMIC PRODUCT CARD WITH IMAGE OVERLAY BANNER */
.product-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px var(--shadow-color);
    border-color: var(--accent-color);
}

.product-image-box {
    position: relative;
    padding-top: 100%; /* Square */
    overflow: hidden;
    cursor: pointer;
}

.product-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-box img {
    transform: scale(1.05);
}

/* Image Bottom Overlay Red Banner (From Screenshot 1) */
.card-overlay-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(200, 50, 20, 0.95); /* Vivid red-orange */
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 6px 4px;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.card-overlay-banner i {
    font-size: 0.75rem;
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

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

.product-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: auto;
}

.price-original {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.price-discounted {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-color);
}

.btn-add-cart-inline, .badge-sale {
    display: none; /* Removed or integrated into visual look */
}

/* GENERAL SEARCH & FILTERING BAR */
.search-box-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--bg-primary);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* SPECIAL DEALS & COUNTDOWN */
.special-deals {
    padding: 40px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.deals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.deals-content h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.deals-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.countdown-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.countdown-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    min-width: 64px;
    padding: 8px;
    text-align: center;
}

.countdown-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.countdown-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.deals-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

/* ABOUT SECTION */
.about-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

.about-content h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.highlight-item {
    display: flex;
    gap: 10px;
}

.highlight-icon {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.highlight-text h4 {
    font-size: 0.85rem;
    color: #ffffff;
}

.highlight-text p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* CART SIDEBAR / DRAWER */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 10001;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-backdrop.open .cart-drawer {
    right: 0;
}

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

.btn-close-cart {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.quantity-controller {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-tertiary);
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #ffffff;
    cursor: pointer;
}

.qty-val {
    width: 24px;
    text-align: center;
    font-size: 0.8rem;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.btn-remove-item:hover {
    color: #ea4335;
}

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

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-checkout-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CUSTOM HIGH FIDELITY 3-COLUMN PRODUCT DETAILS MODAL */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-content {
    transform: translateY(0);
}

.btn-close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.btn-close-modal:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
}

/* HIGH FIDELITY 3-COLUMN MODAL GRID (chuẩn ảnh 3) */
.details-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 0.7fr;
    gap: 24px;
    padding: 24px;
}

/* Column 1: Image & Gallery */
.details-col-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-main-img-box {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.details-main-img-box img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Red overlay banner on product detail image (exact as Screenshot 3) */
.details-img-overlay-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(200, 50, 20, 0.95);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 4px;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 5;
    letter-spacing: 0.3px;
}

.details-img-overlay-banner i {
    font-size: 0.8rem;
}

.details-thumbnails-list {
    display: flex;
    gap: 8px;
}

.details-thumb-item {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
}

.details-thumb-item.active, .details-thumb-item:hover {
    border-color: var(--accent-color);
    opacity: 1;
}

.details-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Column 2: Buy & Description */
.details-col-buy-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.details-price-row {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px;
}

.details-price-original {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 12px;
}

.details-price-discounted {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff5b00; /* Vivid orange-red price */
}

.details-short-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Quantity Control & Main Add to Cart */
.details-buy-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.details-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-tertiary);
}

.details-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
}

.details-qty-btn:hover {
    background-color: var(--border-color);
}

.details-qty-val {
    width: 40px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.details-btn-add-cart {
    flex-grow: 1;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-transform: uppercase;
}

.details-btn-add-cart:hover {
    background-color: var(--accent-hover);
}

/* Warning Info Box Gold (exact as Screenshot 3) */
.details-gold-info-card {
    background-color: rgba(59, 42, 26, 0.4);
    border: 1px solid #d39e3c;
    color: #e3a832;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.82rem;
    line-height: 1.5;
}

.details-gold-info-card strong {
    color: #ffc85a;
}

/* Social Buttons row (Facebook Chat & Zalo Chat in orange-red) */
.details-social-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.social-fb-btn {
    background-color: #3b5998;
}

.social-fb-btn:hover {
    background-color: #4e71ba;
}

.social-zl-btn {
    background-color: #0068ff;
}

.social-zl-btn:hover {
    background-color: #1a7cff;
}

/* Long Description Text articles inside modal */
.details-long-description {
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-long-description h4 {
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--accent-color);
    padding-left: 8px;
}

.details-long-description p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* Column 3: Sidebar Menu & Widgets replica inside Modal (exact as Screenshot 3) */
.details-col-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid var(--border-color);
    padding-left: 16px;
}

.details-widget-title {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-top-left-radius: var(--border-radius-sm);
    border-top-right-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-widget-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.details-widget-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #252525;
}

.details-widget-menu-item:last-child {
    border-bottom: none;
}

.details-widget-menu-item i {
    color: var(--accent-color);
}

/* Vertical Stack of Features Badges */
.details-features-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-feature-badge {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.details-feature-badge-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
    background-color: var(--accent-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-feature-badge-text h5 {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 700;
}

.details-feature-badge-text p {
    font-size: 0.65rem;
    color: var(--text-light);
}

/* Suggested products inside details modal */
.details-suggested-list {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.details-suggested-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #252525;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
}

.details-suggested-item:last-child {
    border-bottom: none;
}

.details-suggested-item:hover {
    background-color: var(--accent-light);
}

.details-suggested-img {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.details-suggested-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 2px;
    min-width: 0;
}

.details-suggested-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details-suggested-item:hover .details-suggested-name {
    color: var(--accent-hover);
}

.details-suggested-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-suggested-price-discounted {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-color);
}

.details-suggested-price-original {
    font-size: 0.7rem;
    text-decoration: line-through;
    color: var(--text-light);
}

/* Responsive Video Player inside details modal */
.details-video-container {
    width: 100%;
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.details-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background-color: #000;
}

.details-video-wrapper iframe,
.details-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* CHECKOUT FORM AND VIETQR */
.checkout-form-container {
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group-full {
    grid-column: span 2;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* VietQR Mockup */
.qr-modal-container {
    padding: 30px;
    text-align: center;
}

.qr-box {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 16px auto;
}

.qr-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.qr-brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0054a5;
    margin-top: 8px;
}

.qr-amount-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* FOOTER */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo-box h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.8rem;
}

.footer-col ul a:hover {
    color: var(--accent-color);
}

.contact-list li {
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list i {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-light);
}

/* FLOATING CONTACT WIDGET */
.contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-widget.open .contact-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.contact-menu-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.contact-menu-item:hover {
    transform: scale(1.1);
}

.contact-tooltip {
    position: absolute;
    right: 60px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-menu-item:hover .contact-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.zalo-item { background-color: #0068ff; }
.facebook-item { background-color: #1877f2; }
.phone-item { background-color: #25d366; }
.map-item { background-color: #ea4335; }

.contact-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
    position: relative;
    z-index: 10;
}

.contact-widget.open .contact-main-btn {
    transform: rotate(135deg);
    background-color: #333333;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: contactPulse 2s infinite;
}

@keyframes contactPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* RESPONSIVE LAYOUTS */
@media screen and (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .details-modal-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .details-col-widgets {
        grid-column: span 2;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
    }
}

@media screen and (max-width: 960px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-wrapper {
        display: none; /* Collapse sidebar on desktop on smaller tablet */
    }
    
    .top-feature-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .details-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .details-col-widgets {
        grid-column: span 1;
    }
    
    .deals-grid, .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .top-feature-banner {
        grid-template-columns: 1fr;
    }
}
