.mobile-only {
    display: none !important;
}

/* ==========================================================================
   Là Da Beauty - Modern Glassmorphism & Bento Design System
   Theme: Glass Pearl, Coral Pink & Deep Wine
   ========================================================================== */

/* --- Reset & Variables --- */
:root {
    --primary: #c25969; /* Soft Coral Pink */
    --primary-dark: #8c3643; /* Deep Wine */
    --primary-light: #ffebef; 
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.7);
    --dark: #2a1618;
    --gray-dark: #5c4446;
    --gray: #9e8789;
    --white: #ffffff;
    --discount-color: #d8455c;
    
    --font-heading: 'Montserrat', sans-serif; /* Clean Modern Sans Serif */
    --font-body: 'Plus Jakarta Sans', sans-serif; /* Clean Readable Sans */
    --font-cursive: 'Dancing Script', cursive; /* Accent */
    
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --border-radius-sm: 16px;
    --border-radius: 24px;
    --border-radius-lg: 32px;
    --container-width: 1200px;
    
    /* Elegant glass shadow */
    --shadow-glass: 0 8px 32px 0 rgba(194, 89, 105, 0.15);
    --shadow-glow: 0 0 20px rgba(194, 89, 105, 0.4);
}

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

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

body {
    font-family: var(--font-body);
    background-color: #fcf4f5;
    color: var(--gray-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

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

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

/* --- Animated Mesh Gradient Background --- */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #fdf6f7;
}

.color-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: moveOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 60vw; height: 60vw;
    background: #ffdae0;
    top: -10%; left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 50vw; height: 50vw;
    background: #fce1cd;
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 40vw; height: 40vw;
    background: #e6e0f8;
    top: 40%; left: 60%;
    animation-delay: -10s;
}

.orb-4 {
    width: 45vw; height: 45vw;
    background: #ffd6df;
    bottom: 20%; left: -5%;
    animation-delay: -15s;
}

@keyframes moveOrb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5vw, 10vh) scale(1.1); }
    66% { transform: translate(-10vw, 5vh) scale(0.9); }
    100% { transform: translate(0, -10vh) scale(1); }
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
}

/* --- Scroll Reveal Animations --- */
.reveal-on-scroll {
    /* opacity: 0; */ /* Temporarily disabled to prevent blank page issue */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Glassmorphism Panels --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glass);
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Buttons (Modern Glow) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-lg {
    padding: 18px 45px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(194, 89, 105, 0.3);
}

.btn-primary:hover, .btn-glow:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.glass-pill {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

/* Cursive Slogans */
.cursive-slogan {
    font-family: var(--font-cursive);
    font-size: 2.4rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 15px;
    display: block;
}

/* --- Top Announcement --- */
.top-announcement {
    background: linear-gradient(90deg, #ff4d6d, #ff758c) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    line-height: 30px !important;
    height: 30px !important;
    max-height: 30px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
}

.logo-main {
    color: var(--dark);
}

.logo-sub {
    color: var(--primary);
    margin-left: 5px;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    position: relative;
}

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

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

.btn-header-cta {
    padding: 10px 24px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-cards-section {
    margin-top: -20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-advantages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-advantages-list .glass-pill i {
    color: var(--primary);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Glass Image Card */
.hero-image-container {
    position: relative;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.hero-image {
    border-radius: var(--border-radius-sm);
    aspect-ratio: 4/5;
    object-fit: cover;
    width: 100%;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 4s ease-in-out infinite;
}

.floating-badge i {
    color: #eab308;
}

.badge-1 {
    top: 40px;
    left: -30px;
}

.badge-2 {
    bottom: 60px;
    right: -20px;
    animation-delay: 2s;
}

.badge-2 i {
    color: var(--success);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Section Headers --- */
.section-header {
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* --- Brands Section --- */
.brands {
    padding: 50px 0;
}

.brand-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.tab-btn {
    background-color: transparent;
    border: 1px solid var(--glass-border);
    padding: 14px 40px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(194, 89, 105, 0.2);
}

.tab-pane {
    display: none;
    animation: fadeScale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes fadeScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
}

.product-image-glass {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    transition: transform 0.7s ease;
}

.product-showcase:hover .product-img {
    transform: scale(1.05);
}

.product-badge-premium {
    display: inline-block;
    background: rgba(194, 89, 105, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-desc {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

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

.discount-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--discount-color);
}

.save-tag {
    background-color: var(--discount-color);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

.product-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.product-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    color: var(--dark);
}

.product-bullets i {
    color: var(--primary);
    margin-top: 5px;
}

/* --- Bento Grid (Guarantee Section) --- */
.guarantee {
    padding: 60px 0;
}

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

.bento-item {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-item.hover-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(194, 89, 105, 0.2);
}

.bento-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    z-index: 2;
}

.bento-item p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    z-index: 2;
}

.bento-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Grid Spanning */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: center;
}

.bento-large .bento-icon-lg {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.bento-large h3 {
    font-size: 2rem;
}

.bento-large p {
    font-size: 1.1rem;
    max-width: 80%;
}

.bento-wide {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    display: flex;
    justify-content: center;
}

.bento-highlight h3 {
    color: var(--white);
    font-size: 1.5rem;
}

.bento-highlight p {
    color: rgba(255,255,255,0.85);
}

.bento-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 10rem;
    color: rgba(255,255,255,0.1);
    z-index: 1;
}

.highlight-content {
    z-index: 2;
}

/* Scan Animation for Large Box */
.bento-visual {
    position: absolute;
    right: 40px;
    bottom: 40px;
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.scan-animation {
    position: relative;
    font-size: 4rem;
    color: var(--dark);
}

.laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: scan 2s infinite ease-in-out alternate;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- Reviews Section --- */
.reviews {
    padding: 80px 0 120px;
}

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

.review-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.rev-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.rev-text {
    font-size: 1.05rem;
    color: var(--dark);
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 30px;
}

.rev-user {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.rev-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.rev-user h4 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--dark);
}

.rev-verified {
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- FAQ Accordion --- */
.skincare-faq {
    padding: 50px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 30px;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.faq-question {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 25px;
    color: var(--gray-dark);
}

/* --- Order Form Section --- */
.order {
    padding: 60px 0;
}

.order-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.order-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.order-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.offer-bullets {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-form-wrapper {
    padding: 40px;
    position: relative;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.95rem;
}

.required { color: var(--error); }

/* Glass Inputs */
.input-glass input, .input-glass select, .input-glass textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.input-glass input:focus, .input-glass select:focus, .input-glass textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(194, 89, 105, 0.2);
}

.combo-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.combo-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.combo-option:hover {
    background: rgba(255,255,255,0.6);
}

.combo-option.active {
    background: rgba(194, 89, 105, 0.1);
    border-color: var(--primary);
}

.combo-option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--primary);
    transform: scale(1.2);
}

.combo-text {
    font-weight: 500;
    color: var(--dark);
}

.order-summary-glass {
    background: rgba(255,255,255,0.6);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--gray-dark);
}

.text-discount {
    color: var(--discount-color);
}

.summary-divider {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 15px 0;
}

.total-line {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0;
}

.form-delivery-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 15px;
}

.success-message-box {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-details-glass {
    background: rgba(255,255,255,0.5);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

/* --- Footer --- */
.footer {
    padding: 80px 0 20px;
    margin-top: 50px;
}

.glass-footer {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-slogan {
    margin: 20px 0;
    color: var(--gray-dark);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    color: var(--dark);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-links-col h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 25px;
}

.footer-links, .footer-contact-info {
    list-style: none;
}

.footer-links li, .footer-contact-info li {
    margin-bottom: 15px;
    color: var(--gray-dark);
}

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

.footer-contact-info i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

/* --- Mobile Nav & Floating CTA --- */
.floating-mobile-action {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.5);
    z-index: 999;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-container, .product-showcase, .guarantee-box, .order-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .bento-large {
        grid-column: span 2;
        grid-row: auto;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 150px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .btn-header-cta {
        display: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large, .bento-wide {
        grid-column: span 1;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .floating-mobile-action {
        display: block;
    }
    
    body {
        padding-bottom: 80px; /* space for floating cta */
    }
}

/* Grid Styles */
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-top: 25px; width: 100%; }
@media (max-width: 1400px) { .product-grid { grid-template-columns: repeat(5, 1fr) !important; } }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 800px) { .product-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .product-grid, .hero-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; } }
.product-card { padding: 15px; position: relative; display: flex; flex-direction: column; transition: 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.card-link { text-decoration: none; color: inherit; flex: 1; display: flex; flex-direction: column; }
.card-image { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 15px; aspect-ratio: 1/1; background: #fff; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.badge-trust-mini { position: absolute; top: 10px; left: 10px; background: rgba(255, 60, 60, 0.9); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; }
.card-title { font-size: 0.95rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.card-price { color: var(--primary-color); font-weight: bold; font-size: 1.1rem; margin-bottom: 15px; }
.add-cart-btn { width: 100%; padding: 10px; font-size: 0.9rem; }

#cart-toast { position: fixed; bottom: 100px; right: -300px; background: #4caf50; color: #fff; padding: 10px 20px; border-radius: 8px; transition: 0.3s; z-index: 9000; }
#cart-toast.show { right: 30px; }

/* Pulse Animation */
@keyframes pulse-soft {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 77, 109, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}
.btn-glow {
  animation: pulse-soft 2s infinite;
}

/* Sales notification */
#sales-notification.show {
  left: 20px !important;
}
@media (max-width: 480px) {
  #sales-notification {
     max-width: 90%;
     bottom: 80px !important;
  }
}

/* Additions for Sales Redesign */
.top-announcement {
    background: linear-gradient(90deg, #ff4d6d, #ff758c) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    line-height: 30px !important;
    height: 30px !important;
    max-height: 30px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
}

.bounce-text {
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.sale-card:hover .sale-img {
    transform: scale(1.1) !important;
}

.sale-card:hover {
    box-shadow: 0 20px 40px rgba(255, 77, 109, 0.3) !important;
    border-color: #ff4d6d !important;
}


/* --- Upgraded Cart UI --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
    color: #fff;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
    cursor: pointer;
    z-index: 9000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.floating-cart:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(255, 77, 109, 0.6);
}
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff0000;
    color: #fff;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #fff0f3, #ffffff);
    border-bottom: 1px solid #ffd1dc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2b2d42;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-header h3::before {
    content: "🛒";
    font-size: 1.2rem;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
}
.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 10px;
    background: #fdf8f9;
    border-radius: 10px;
    border: 1px solid #fee2e2;
    position: relative;
    align-items: center;
}
.cart-item img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border: 1px solid #f1f5f9;
}
.cart-item-info {
    flex: 1;
}
.cart-item-info h4 {
    font-size: 0.85rem;
    margin: 0 0 5px 0;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
}
.cart-item-price {
    color: #ff4d6d;
    font-weight: 700;
    font-size: 0.95rem;
}
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.cart-qty-controls button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-controls button:hover {
    background: #ff4d6d;
    color: white;
    border-color: #ff4d6d;
}
.remove-item {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: 0.2s;
}
.remove-item:hover {
    color: #ff3b3b;
}
.cart-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1.2rem;
    align-items: center;
}
.cart-total #cart-total-price {
    color: #ff4d6d;
    font-size: 1.4rem;
}
.checkout-btn {
    width: 100%;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg, #ff4d6d, #ff758c) !important;
    color: white;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    display: block;
    text-decoration: none;
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.5);
}
@media (max-width: 480px) {
    .floating-cart {
        bottom: 85px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE-FIRST E-COMMERCE OPTIMIZATION SUITE
   ========================================================================== */

/* 1. Prevent iOS Auto-Zoom on inputs & normalize form fields */
@media (max-width: 768px) {
    input, select, textarea, .form-control {
        font-size: 16px !important;
    }
}

/* 2. Top Announcement & Header Mobile Fit */
@media (max-width: 480px) {
    .top-announcement {
        font-size: 0.74rem !important;
        padding: 0 5px !important;
        letter-spacing: 0 !important;
    }
    .header {
        padding: 8px 0 !important;
    }
    .logo-main {
        font-size: 1.3rem !important;
    }
    .logo-sub {
        font-size: 1.3rem !important;
    }
}

/* 3. Hero Banner, Title & Pills Bar on Mobile */
@media (max-width: 600px) {
    .hero {
        padding: 95px 0 15px !important;
    }
    .banner-title-line1 {
        font-size: 0.7rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 4px !important;
    }
    .banner-title-line2 {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
        padding: 0 10px !important;
    }
    .banner-subtitle-compact {
        font-size: 0.72rem !important;
        padding: 0 10px !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }
    .banner-pills-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 10px !important;
    }
    .pill-red, .pill-white {
        font-size: 0.72rem !important;
        padding: 5px 10px !important;
    }
    .hero-cards-section {
        margin-top: -10px !important;
    }
    .hero-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }
    .sale-card {
        border-radius: 10px !important;
    }
}

/* 4. Product Catalog Grid (2-Column Mobile Layout) */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }
    .product-card {
        padding: 8px !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }
    .card-image {
        margin-bottom: 8px !important;
    }
    .card-title {
        font-size: 0.8rem !important;
        height: 2.4em !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }
    .card-price {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }
    .add-cart-btn {
        padding: 8px 4px !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
        font-weight: 700 !important;
    }
}

/* 5. Cart Sidebar Native App Feel on Mobile */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
        right: -100vw !important;
    }
    .cart-sidebar.open {
        right: 0 !important;
    }
    .cart-item {
        padding: 10px !important;
        gap: 10px !important;
    }
    .cart-item img {
        width: 60px !important;
        height: 60px !important;
    }
    .cart-header {
        padding: 1rem !important;
    }
    .cart-footer {
        padding: 1rem !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }
}

/* 6. Mobile Sticky Buy Bottom Bar & Floating Cart Icon */
@media (max-width: 768px) {
    .floating-mobile-action {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 10px 15px !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-top: 1px solid rgba(255, 77, 109, 0.2) !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08) !important;
        z-index: 8999 !important;
    }
    .btn-floating-cta {
        background: linear-gradient(135deg, #ff4d6d, #ff758c) !important;
        color: white !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        border-radius: 50px !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        box-shadow: 0 6px 15px rgba(255, 77, 109, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        text-decoration: none !important;
    }
    .floating-cart {
        bottom: 80px !important;
        right: 15px !important;
        width: 54px !important;
        height: 54px !important;
        font-size: 1.4rem !important;
        z-index: 9000 !important;
    }
    body {
        padding-bottom: 85px !important;
    }
}

/* 7. Order Form & Section Spacing on Mobile */
@media (max-width: 600px) {
    .section {
        padding: 40px 0 !important;
    }
    .order-form-container {
        padding: 18px !important;
        border-radius: 15px !important;
        margin: 0 10px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
    }
    .btn-submit-order {
        height: 52px !important;
        font-size: 1rem !important;
        border-radius: 30px !important;
    }
}

/* Anti-overflow and mobile grid fixes */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
}
* {
    box-sizing: border-box !important;
}
@media (max-width: 600px) {
    .container, .hero-container, .header-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        overflow-x: hidden !important;
    }
    .hero-grid, .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .sale-card, .product-card {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .banner-title-line2 {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        word-wrap: break-word !important;
    }
    .top-announcement p {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        padding: 4px 5px !important;
        margin: 0 !important;
    }
}

/* ==========================================================================
   AUTHENTIC SHOPEE APP MOBILE UI TRANSFORMATION SUITE
   ========================================================================== */

/* Shopee Voucher Pocket Strip */
.shopee-voucher-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 10px 14px 10px;
    width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.shopee-voucher-strip::-webkit-scrollbar { display: none; }
.shopee-voucher-card {
    flex: 0 0 auto;
    display: flex;
    background: #fff0f1;
    border: 1px solid #ffccd8;
    border-radius: 6px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 2px 5px rgba(255, 77, 109, 0.08);
    min-width: 155px;
}
.voucher-left {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px dashed #ff809f;
    background: #fff0f1;
}
.v-val { font-size: 0.8rem; font-weight: 800; color: #ff4d6d; line-height: 1.1; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.v-cond { font-size: 0.65rem; color: #666; margin-top: 3px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.voucher-right {
    background: #ff4d6d;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.shopee-voucher-card.freeship .voucher-right { background: #00bfa5; }

/* Mobile Shopee App UI Override */
@media (max-width: 768px) {
    /* 1. Shopee Top Bar & Header */
    .top-announcement {
        background: linear-gradient(90deg, #ff4d6d, #ff758c) !important;
        padding: 5px 10px !important;
        text-align: center !important;
    }
    .top-announcement p {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        color: white !important;
        margin: 0 !important;
        font-weight: 600 !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .header {
        position: sticky !important;
        top: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        padding: 6px 12px !important;
        height: 50px !important;
        z-index: 9999 !important;
        display: flex !important;
        align-items: center !important;
    }
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .logo-main {
        font-size: 1.25rem !important;
        color: #2b2d42 !important;
    }
    .logo-sub {
        font-size: 1.25rem !important;
        color: #ff4d6d !important;
    }
    
    /* 2. Shopee Campaign Banner Strip */
    .hero {
        padding: 8px 0 10px !important;
        background: #f5f5f5 !important;
    }
    .banner-compact {
        background: #ffffff !important;
        border-radius: 8px !important;
        padding: 12px 10px 8px 10px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
        border: none !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }
    .sale-timer-ellipse {
        position: static !important;
        display: inline-flex !important;
        background: linear-gradient(90deg, #ff4d6d, #ff758c) !important;
        padding: 4px 12px !important;
        border-radius: 20px !important;
        margin: 0 auto 8px auto !important;
        box-shadow: 0 2px 6px rgba(255, 77, 109, 0.25) !important;
    }
    .banner-title-line1 {
        font-size: 1.1rem !important;
        color: #ff4d6d !important;
        margin-bottom: 2px !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .banner-title-line2 {
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        color: #ff4d6d !important;
        margin-bottom: 4px !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .banner-subtitle-compact {
        font-size: 0.72rem !important;
        color: #666666 !important;
        margin-bottom: 10px !important;
    }
    /* Shopee 3 Service Badges Grid */
    .banner-pills-bar {
        background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%) !important;
        border: 1px solid #fbcfe8 !important;
        border-radius: 12px !important;
        padding: 5px 6px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        width: 100% !important;
        box-shadow: 0 4px 12px rgba(255, 77, 109, 0.08) !important;
        box-sizing: border-box !important;
        margin: 8px 0 !important;
    }
    .pill-red {
        background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
        border-radius: 6px !important;
        padding: 4px 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        color: white !important;
        font-weight: 800 !important;
        font-size: 0.52rem !important;
        border: 1px solid #ef4444 !important;
        flex: 1 1 auto !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .pill-white {
        background: #ffffff !important;
        border-radius: 6px !important;
        padding: 3px 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        color: #854d0e !important;
        font-weight: 800 !important;
        font-size: 0.52rem !important;
        border: 1px solid #eab308 !important;
        flex: 1 1 auto !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .pill-red span, .pill-white span {
        color: inherit !important;
        font-size: 0.52rem !important;
        font-weight: 800 !important;
        display: inline !important;
        line-height: 1 !important;
    }
    .pill-red i, .pill-white i {
        color: inherit !important;
        font-size: 0.65rem !important;
    }
    .pill-red i {
        color: #fef08a !important;
    }
    .pill-white span[style*="font-size: 1.4rem"] {
        font-size: 0.62rem !important;
        font-weight: 900 !important;
        background: linear-gradient(135deg, #ca8a04, #eab308) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    /* 3. Shopee App 2-Column Catalog Cards */
    .hero-grid, .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        padding: 0 6px !important;
        background: #f5f5f5 !important;
    }
    .sale-card, .product-card {
        background: #ffffff !important;
        border-radius: 4px !important;
        border: none !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
    }
    .sale-card .sale-img, .product-card .card-image img {
        width: 100% !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    .card-info {
        padding: 8px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        justify-content: space-between !important;
    }
    .card-title {
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        color: #222222 !important;
        line-height: 1.25 !important;
        height: 2.5em !important;
        margin: 4px 0 6px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .card-price {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #ff4d6d !important;
        margin: 0 !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .add-cart-btn {
        background: #ff4d6d !important;
        color: white !important;
        border: none !important;
        border-radius: 3px !important;
        padding: 6px 0 !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        margin-top: 6px !important;
        width: 100% !important;
        text-transform: uppercase !important;
    }
    /* Shopee Badges Override */
    .sale-card > div[style*="background: rgba(255, 77, 109, 0.95)"],
    .sale-card > div[style*="background: #ff4d6d"],
    .sale-card > div[style*="Giá tốt nhất"] {
        background: #ff4d6d !important;
        color: white !important;
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
        border-radius: 0 0 6px 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        font-weight: 700 !important;
        border: none !important;
    }

    /* 4. Authentic Shopee 4-Button Bottom Bar */
    .shopee-bottom-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 52px !important;
        background: #ffffff !important;
        box-shadow: 0 -1px 6px rgba(0,0,0,0.08) !important;
        z-index: 9999 !important;
        padding: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .shopee-icon-btn {
        flex: 0 0 62px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #555555 !important;
        font-size: 0.62rem !important;
        border-right: 1px solid #f1f5f9 !important;
        gap: 3px !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .shopee-icon-btn i { font-size: 1.15rem !important; }
    .shopee-btn-add {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffe6e8 !important;
        color: #ff4d6d !important;
        font-weight: 700 !important;
        font-size: 0.8rem !important;
        text-decoration: none !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .shopee-btn-buy {
        flex: 1.15 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ff4d6d !important;
        color: white !important;
        font-weight: 800 !important;
        font-size: 0.85rem !important;
        text-decoration: none !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .floating-cart {
        display: none !important; /* Hide old circular cart icon on mobile */
    }
    body { padding-bottom: 54px !important; background: #f5f5f5 !important; }
}

/* ==========================================================================
   12-POINT SHOPEE UX/UI STREAMLINE & REFINEMENT SUITE
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Ẩn dòng Top Announcement (STT 1) */
    .top-announcement {
        display: none !important;
    }
    
    /* 2. Header: Đưa logo thương hiệu vào center, ẩn menu dropdown/icon gạch */
    .header {
        position: sticky !important;
        top: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
        padding: 4px 10px !important;
        height: 48px !important;
        z-index: 9999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    .logo {
        margin: 0 auto !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .mobile-nav-toggle {
        display: none !important; /* Xoá nút menu vì đã chuyển thành footer bar cố định sát đáy */
    }
    
    /* 3. Khắc phục khoảng trống ở trên khối Hero Banner */
    .hero, #hero-section {
        padding: 6px 0 6px !important;
        margin-top: 0 !important;
        background: #f5f5f5 !important;
    }
    
    /* 4. Tinh gọn kích thước font chữ Title vừa vặn, tăng kích thước ảnh rõ ràng */
    h1, h2, .section-title, .order-title {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .section-tag, .order-tag {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
        margin-bottom: 4px !important;
    }
    .section-desc, .order-desc {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        color: #666666 !important;
    }
    .sale-card .sale-img, .product-card .card-image img {
        width: 100% !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* 5. Tinh gọn Quy trình mua hàng & Hỗ trợ (order process) */
    .order-process {
        margin-bottom: 15px !important;
        background: white !important;
        padding: 12px 8px !important;
        border-radius: 8px !important;
        border: 1px solid #f1f5f9 !important;
    }
    .process-steps {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 2px !important;
    }
    .process-step {
        min-width: 0 !important;
        padding: 2px !important;
    }
    .process-step > div[style*="border-radius: 50%"] {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        margin: 0 auto 4px auto !important;
        box-shadow: none !important;
    }
    .process-step h4 { font-size: 0.62rem !important; margin: 0 !important; font-weight: 700 !important; color: #222 !important; }
    .process-step p { display: none !important; } /* Ẩn mô tả dài dòng cho chuẩn App gọn gàng */
    
    .customer-support-banner {
        padding: 10px 12px !important;
        margin-bottom: 15px !important;
        border-radius: 8px !important;
    }
    .customer-support-banner h3 { font-size: 0.95rem !important; margin-bottom: 4px !important; }
    .customer-support-banner p { font-size: 0.72rem !important; margin-bottom: 8px !important; }
    .customer-support-banner .btn { padding: 6px 12px !important; font-size: 0.75rem !important; }

    /* 6. Nhãn Giá tốt nhất Shopee/TikTok vừa chuẩn 1 hàng */
    .shopee-best-price-badge,
    .sale-card span[style*="Giá tốt nhất"],
    .product-card span[style*="Giá tốt nhất"] {
        font-size: 0.55rem !important;
        padding: 2px 4px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        letter-spacing: -0.2px !important;
    }
    
    /* 7. Banner Cam Kết Chính Hãng (STT 7) tinh gọn form Shopee Mall */
    .guarantee {
        padding: 10px 0 !important;
        background: #f5f5f5 !important;
    }
    .guarantee .reveal-on-scroll[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 8px !important;
        border-radius: 6px !important;
        background: white !important;
        border: 1px solid #ffe4e6 !important;
        box-shadow: none !important;
    }
    .guarantee > div > div > div > div {
        padding: 4px !important;
        border: none !important;
        gap: 6px !important;
    }
    .guarantee div[style*="border-radius: 50%"] {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
    .guarantee h4 { font-size: 0.75rem !important; margin: 0 !important; }
    .guarantee p { font-size: 0.65rem !important; margin: 0 !important; }
    
    /* 8. Customer Feedback (STT 8) dạng Slide / Carousel chuẩn Shopee */
    #reviews {
        padding: 10px 0 !important;
        background: #f5f5f5 !important;
    }
    #reviews .reveal-on-scroll[style*="grid-template-columns"] {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
        padding: 4px 10px 12px 10px !important;
        scrollbar-width: none !important;
        margin: 0 !important;
        width: 100% !important;
    }
    #reviews .reveal-on-scroll[style*="grid-template-columns"]::-webkit-scrollbar { display: none !important; }
    #reviews .reveal-on-scroll[style*="grid-template-columns"] > div {
        flex: 0 0 75% !important;
        scroll-snap-align: center !important;
        border-radius: 6px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    }
    #reviews img { aspect-ratio: 1/1 !important; }
    
    /* 9, 10, 11, 12. Tinh gọn Footer, Form & Shopee Bottom Bar */
    .order-form-wrapper {
        padding: 12px !important;
        border-radius: 8px !important;
    }
    .order-info { margin-bottom: 15px !important; text-align: center !important; }
    .footer {
        padding: 20px 10px 15px 10px !important;
        font-size: 0.72rem !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
    
    /* 12. Shopee Fixed 5-Tab Bottom Bar */
    .shopee-bottom-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 52px !important;
        background: #ffffff !important;
        box-shadow: 0 -1px 8px rgba(0,0,0,0.08) !important;
        z-index: 9999 !important;
        padding: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .shopee-nav-tab {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #555555 !important;
        font-size: 0.6rem !important;
        border-right: 1px solid #f1f5f9 !important;
        gap: 2px !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    .shopee-nav-tab i { font-size: 1.1rem !important; }
    .shopee-btn-buy {
        flex: 1.4 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ff4d6d !important;
        color: white !important;
        font-weight: 800 !important;
        font-size: 0.88rem !important;
        text-decoration: none !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    body { padding-bottom: 52px !important; background: #f5f5f5 !important; }
}

/* ==========================================================================
   UNIVERSAL 10PX SPACING & 1-HORIZONTAL-ROW ORDER PROCESS SUITE
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Quy trình đặt hàng 5 bước chuẩn 1 Hàng Ngang (1 Horizontal Row) */
    .order-process {
        margin-bottom: 10px !important;
        background: white !important;
        padding: 10px 4px !important;
        border-radius: 8px !important;
        border: 1px solid #f1f5f9 !important;
        width: 100% !important;
    }
    .process-steps {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 2px !important;
        padding: 4px 0 !important;
        margin: 0 !important;
    }
    .process-step {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding: 2px 1px !important;
        text-align: center !important;
    }
    .process-step > div[style*="border-radius: 50%"] {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
        margin: 0 auto 4px auto !important;
        box-shadow: none !important;
    }
    .process-step h4 {
        font-size: 0.54rem !important;
        margin: 0 !important;
        font-weight: 700 !important;
        color: #222 !important;
        white-space: nowrap !important;
        letter-spacing: -0.3px !important;
        line-height: 1.2 !important;
    }
    .process-step p {
        display: none !important; /* Ẩn dòng chữ mô tả phụ để 5 bước vừa vặn tuyệt đối 1 hàng ngang */
    }
    
    /* 2. Chuẩn hóa tất cả khoảng cách trên dưới cách nhau đúng ~10px */
    section, .hero, .products, .guarantee, .reviews, .order, .footer,
    #hero-section, #hot-products, #reviews, #order, #guarantee {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .banner-compact {
        margin-bottom: 10px !important;
        margin-top: 0 !important;
        padding: 10px !important;
    }
    
    .shopee-voucher-strip {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        padding-top: 0 !important;
    }
    
    .hero-cards-section {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .customer-support-banner {
        margin-bottom: 10px !important;
        padding: 10px !important;
    }
    
    .order-form-wrapper {
        margin-bottom: 10px !important;
        padding: 10px !important;
    }
    
    .section-header {
        margin-bottom: 10px !important;
    }
    
    .container, .hero-container, .order-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        gap: 10px !important;
    }
    
    .hero-grid, .product-grid, .guarantee .reveal-on-scroll[style*="grid-template-columns"],
    #reviews .reveal-on-scroll[style*="grid-template-columns"] {
        margin-bottom: 10px !important;
    }
}

/* ==========================================================================
   ZERO-GAP HERO TOP MOBILE OVERRIDE
   ========================================================================== */
@media (max-width: 768px) {
    .hero, #hero-section {
        padding-top: 6px !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
        background: #f5f5f5 !important;
    }
    .hero-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
        gap: 6px !important;
    }
    .banner-compact {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
    .header {
        margin-bottom: 0 !important;
    }
}
@media (min-width: 769px) {
    .hero, #hero-section {
        padding: 90px 0 30px !important;
    }
}

/* ==========================================================================
   SHOPEE COMPACT BOTTOM SHEET MODAL & GUARANTEE PLACEMENT SUITE
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Ẩn quy trình đặt hàng cũ nếu còn sót */
    .order-process {
        display: none !important;
    }
    
    /* 2. Cam Kết Chính Hãng đặt ngay trên Form mua hàng */
    #order .guarantee, .order .guarantee {
        padding: 0 !important;
        margin-bottom: 10px !important;
        background: transparent !important;
    }
    .guarantee .reveal-on-scroll[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 10px !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        border: 1px solid #ffccd8 !important;
        box-shadow: 0 2px 8px rgba(255, 77, 109, 0.08) !important;
        margin: 0 !important;
    }
    .guarantee h4 {
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        color: #ff4d6d !important;
        margin: 0 0 2px 0 !important;
    }
    .guarantee p {
        font-size: 0.65rem !important;
        color: #555 !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }
    
    /* 3. Khung Pop-up Mua hàng / Giỏ hàng trượt từ dưới lên (Shopee Bottom Sheet Modal) */
    .cart-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 62vh !important;
        top: auto !important;
        bottom: -100vh !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        box-shadow: 0 -6px 25px rgba(0,0,0,0.25) !important;
        transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        z-index: 100000 !important;
    }
    .cart-sidebar.open {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: auto !important;
    }
    /* Thanh tay cầm drag handle nhỏ xinh trên đỉnh modal kiểu App */
    .cart-header::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 2px;
        position: absolute;
        top: 6px;
        left: calc(50% - 18px);
    }
    .cart-header {
        padding: 16px 15px 10px 15px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        position: relative !important;
        text-align: center !important;
    }
    .cart-header h3 {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        color: #222 !important;
    }
    .cart-header button {
        position: absolute !important;
        right: 12px !important;
        top: 10px !important;
        font-size: 1.4rem !important;
        color: #888 !important;
    }
    .cart-items {
        max-height: calc(62vh - 120px) !important;
        overflow-y: auto !important;
        padding: 10px 12px !important;
        flex: 1 !important;
    }
    .cart-item {
        padding: 8px !important;
        gap: 10px !important;
        border-bottom: 1px solid #f8fafc !important;
        align-items: center !important;
    }
    .cart-item img {
        width: 55px !important;
        height: 55px !important;
        border-radius: 4px !important;
    }
    .cart-item-info h4 {
        font-size: 0.8rem !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.25 !important;
    }
    .cart-item-price {
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        color: #ff4d6d !important;
    }
    .cart-footer {
        padding: 10px 15px !important;
        background: #ffffff !important;
        border-top: 1px solid #f1f5f9 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.04) !important;
    }
    .cart-total {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }
    .cart-total #cart-total-price {
        font-size: 1.1rem !important;
        font-weight: 900 !important;
        color: #ff4d6d !important;
    }
    .checkout-btn {
        padding: 10px !important;
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        border-radius: 6px !important;
        background: #ff4d6d !important;
        color: white !important;
        width: 100% !important;
        text-transform: uppercase !important;
    }
}

/* ==========================================================================
   STRICT OVERRIDE: HIDE ALL ORDER TIMELINES & ULTRA-COMPACT POPUP
   ========================================================================== */
.order-timeline,
.order-process,
h3:contains("Quy Trình"),
div[style*="Quy Trình Đặt"] {
    display: none !important;
}

@media (max-width: 768px) {
    .order-timeline, .order-process {
        display: none !important;
    }
    .cart-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 55vh !important;
        top: auto !important;
        bottom: -100vh !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.3) !important;
    }
    .cart-sidebar.open {
        bottom: 0 !important;
        top: auto !important;
    }
    .cart-items {
        max-height: calc(55vh - 110px) !important;
        padding: 6px 10px !important;
    }
}

/* ==========================================================================
   ULTRA-COMPACT SHOPEE SALES NOTIFICATION TOAST SUITE
   ========================================================================== */
#sales-notification, .shopee-compact-toast {
    position: fixed !important;
    bottom: 60px !important;
    left: -500px !important;
    background: #ffffff !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    z-index: 9998 !important;
    border: 1px solid #ffe4e6 !important;
    border-left: 3px solid #ff4d6d !important;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: calc(100vw - 24px) !important;
    max-width: 310px !important;
}

#sales-notification.show, .shopee-compact-toast.show {
    left: 12px !important;
}

@media (max-width: 768px) {
    #sales-notification.show, .shopee-compact-toast.show {
        left: 10px !important;
        bottom: 58px !important; /* Đặt ngay phía trên thanh Shopee Bottom Bar (52px) */
    }
}

/* ==========================================================================
   CERTIFICATES VERTICAL LAYOUT (BALANCED & READABLE ON MOBILE)
   ========================================================================== */
.shopee-cert-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    max-width: 900px !important;
    margin: 20px auto 0 !important;
    padding: 0 15px !important;
}

.shopee-cert-grid > div {
    background: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    border: 1px solid #ffe4e6 !important;
    transition: transform 0.2s ease !important;
}

.shopee-cert-grid > div img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    border: 1px solid #f1f5f9 !important;
}

@media (max-width: 768px) {
    .cert-title {
        font-size: 1.25rem !important;
    }
    .shopee-cert-grid {
        grid-template-columns: 1fr !important; /* Sắp xếp theo hàng dọc */
        gap: 22px !important;
        max-width: 360px !important; /* To vừa đủ đọc, không bị to quá thô thiển */
        margin: 15px auto 0 !important;
    }
    .shopee-cert-grid > div {
        padding: 14px !important;
        box-shadow: 0 6px 20px rgba(255, 77, 109, 0.08) !important;
    }
    .shopee-cert-grid > div img {
        max-height: 420px !important;
        object-fit: contain !important;
        background: #fafafa !important;
    }
    .shopee-cert-grid > div div {
        font-size: 0.95rem !important;
        padding-top: 4px !important;
    }
}

/* ==========================================================================
   PREMIUM MOBILE-FIRST PROPORTIONAL & RESPONSIVE LAYOUT OVERRIDES (<= 600px)
   ========================================================================== */
@media (max-width: 600px) {
    .mobile-only {
        display: block !important;
    }
    
    /* Auto text-wrap balance for clean line wrapping (prevents single word on newline) */
    h1, h2, h3, h4, h5, h6, 
    .banner-title-line1, .banner-title-line2, 
    .banner-subtitle-compact, .section-title, .order-title {
        text-wrap: balance !important;
    }

    /* 1. Global Viewport Constraints (Eliminate accidental horizontal scrolling) */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Hero Banner & Slider aspect ratio */
    .hero-swiper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/8 !important;
    }
    .hero-swiper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 3. Compact Side-by-Side Voucher Cards (No stretching, fits all 3 on one screen) */
    .shopee-voucher-strip {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 6px 4px !important;
        margin: 10px auto 14px auto !important;
        width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
    .shopee-voucher-card {
        flex: 1 1 0px !important;
        min-width: 100px !important;
        max-width: 125px !important;
        height: 38px !important;
        margin: 0 !important;
        border-radius: 4px !important;
        box-shadow: 0 1px 3px rgba(255, 77, 109, 0.05) !important;
        box-sizing: border-box !important;
        border: 1px solid #ffccd8 !important;
    }
    .voucher-left {
        padding: 2px 4px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border-right: 1px dashed #ff809f !important;
    }
    .v-val {
        font-size: 0.65rem !important;
        font-weight: 800 !important;
        color: #ff4d6d !important;
        line-height: 1 !important;
    }
    .v-cond {
        font-size: 0.48rem !important;
        color: #666 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
    }
    .voucher-right {
        padding: 0 6px !important;
        font-size: 0.62rem !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    /* 4. Product Grids: 2-Column Grid Layout with proportional cards */
    .product-grid, .hero-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px 2px !important;
    }
    
    .sale-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        background: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid #f1f5f9 !important;
        box-sizing: border-box !important;
    }
    
    .sale-card > div:first-child {
        /* Badge: "Còn: X" */
        font-size: 0.65rem !important;
        padding: 2px 4px !important;
    }

    .sale-card img {
        width: 100% !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
    }

    /* Adjust typography in cards for small devices */
    .sale-card h3, .product-card h3 {
        font-size: 0.7rem !important; /* Smaller size to fit full names cleanly */
        height: 2.7em !important; /* Limit heading height to 2 lines */
        line-height: 1.35 !important;
        margin: 3px 0 !important;
        font-weight: 600 !important;
    }

    .shopee-best-price-badge {
        font-size: 0.52rem !important;
        padding: 1px 3px !important;
    }

    /* Price tags & star ratings sizes */
    .sale-card span[style*="font-size: 1.3rem"] {
        font-size: 1.05rem !important;
    }
    .sale-card span[style*="font-size: 0.7rem"] {
        font-size: 0.6rem !important;
        padding: 0px 2px !important;
    }

    /* 5. Touch Friendly Input Target & Auto-Zoom Prevention */
    .order-form input,
    .order-form textarea,
    .order-form select {
        font-size: 16px !important; /* Stops automatic zoom on iOS Safari */
        height: 46px !important;
        padding: 10px 12px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
    
    .order-form textarea {
        height: auto !important;
        min-height: 70px !important;
    }

    /* 6. Shopee Bottom Fixed Action Bar Safe Area Notched Padding */
    .shopee-bottom-bar {
        height: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        box-sizing: border-box !important;
    }
    
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* 7. Change "Đại tiệc sale" title to black and 0.7rem size */
    .banner-title-line1 {
        color: #000000 !important;
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }

    /* 7.1. Change banner title to 1.0rem size */
    .banner-title-line2 {
        font-size: 0.78rem !important;
    }

    /* 8. Hide the sale countdown timer box completely on mobile */
    .sale-timer-ellipse {
        display: none !important;
    }

    /* 9. Set section margins and paddings to exactly 5px (Ultra-tight mobile layout) */
    section, .section, .trust-flow, #reviews, #order, .hero, #hero-section {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }

    /* 10. Floating Back to Top Button styles */
    .back-to-top {
        position: fixed !important;
        bottom: 72px !important; /* Positions it nicely above the bottom bar */
        right: 14px !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255, 77, 109, 0.85) !important;
        color: white !important;
        border: none !important;
        outline: none !important;
        cursor: pointer !important;
        z-index: 99999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease-in-out !important;
    }
    .back-to-top.show {
        opacity: 1 !important;
        visibility: visible !important;
    }
    .back-to-top i {
        font-size: 0.95rem !important;
        color: white !important;
    }
    /* 11. Custom product title font size for mobile (prevent cut off, show 100% of title) */
    .sale-card h3.product-title, .product-card h3.product-title {
        font-size: 0.7rem !important; /* Extremely neat and compact on mobile */
        line-height: 1.35 !important;
        height: auto !important; /* Show 100% of the name by removing fixed height */
        min-height: auto !important;
        max-height: none !important;
        display: block !important;
        overflow: visible !important;
        text-overflow: clip !important;
        -webkit-line-clamp: none !important;
        -webkit-box-orient: unset !important;
        font-weight: 600 !important;
        margin: 4px 0 !important;
    }

    /* 12. Spacing and margin optimizations to remove gaps */
    .hero-container {
        gap: 5px !important; /* Tighten gap inside the hero container */
    }
    .banner-compact {
        padding: 10px 10px 8px 10px !important; /* Tighten padding inside the banner card */
        margin-bottom: 4px !important;
    }
    .banner-subtitle-compact {
        margin-bottom: 4px !important; /* Tighten space under subtitle */
    }
    .banner-pills-bar {
        margin: 4px 0 0 0 !important; /* Tighten margin around pills bar */
    }
    .shopee-voucher-strip {
        margin: 0 auto 4px auto !important; /* Tighten space below voucher strip */
    }
    .hero-cards-section {
        margin-top: 0px !important; /* Prevent overlapping vouchers strip on mobile */
    }
}