/* ============================================
   BEAUTYGLOW - Modern E-Commerce CSS
   ============================================ */

/* === ROOT VARIABLES === */
:root {
    /* Colors - Modern Pink Theme */
    --primary-color: #e91e7a;
    --primary-dark: #c91968;
    --primary-light: #ff4d9f;
    --secondary-color: #ff6b9d;
    --accent-color: #ffd6e7;
    
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-light: #999999;
    
    /* Borders & Shadows */
    --border-color: #e9ecef;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-fast);
}

/* === TOP BANNER === */
.top-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    position: relative;
    overflow: hidden;
}

.banner-slider {
    position: relative;
}

.banner-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.banner-slide.active {
    display: block;
}

.banner-slide i {
    margin-right: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HEADER === */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: -5px;
}

.navigation {
    flex: 1;
    margin: 0 var(--spacing-lg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    justify-content: center;
}

.nav-menu a {
    font-weight: var(--font-weight-medium);
    font-size: 15px;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    position: relative;
}

.icon-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.cart-btn .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
}

/* === PRODUCT SECTION === */
.product-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

/* === PRODUCT GALLERY === */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: var(--spacing-sm);
}

.main-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-sm);
}

.image-badge i {
    color: var(--primary-color);
    margin-right: 6px;
}

.thumbnail-slider {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.thumbnails {
    display: flex;
    gap: var(--spacing-xs);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === PRODUCT INFO === */
.product-info {
    overflow-y: auto;
    max-height: 90vh;
    padding-right: var(--spacing-sm);
}

.product-info::-webkit-scrollbar {
    width: 6px;
}

.product-info::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.product-badge {
    margin-bottom: var(--spacing-sm);
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    display: inline-block;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.stars {
    color: #ffc107;
    font-size: 16px;
}

.rating-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.product-title {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.product-features {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.feature-item i {
    color: var(--primary-color);
}

.product-description {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

.product-benefits {
    margin-bottom: var(--spacing-lg);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 20px;
}

/* === PRICING === */
.product-pricing {
    margin-bottom: var(--spacing-md);
}

.price-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.current-price {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.old-price {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
}

/* === DELIVERY TIMER === */
.delivery-timer {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.delivery-timer i {
    color: #f57c00;
    font-size: 18px;
}

.timer {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: #d84315;
    margin-left: auto;
}

/* === VARIANTS === */
.product-variants {
    margin-bottom: var(--spacing-md);
}

.product-variants h3 {
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.variant-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.variant-option:hover {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

.variant-option input[type="radio"] {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.variant-option.popular,
.variant-option.economic {
    border-width: 3px;
}

.popular-badge,
.economic-badge {
    position: absolute;
    top: -12px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: white;
}

.popular-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.economic-badge {
    background: linear-gradient(135deg, #26de81, #20bf6b);
}

.variant-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.variant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-info {
    flex: 1;
}

.variant-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.extra-discount {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 4px;
}

.variant-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.variant-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.variant-price .current {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.variant-price .old {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* === STOCK WARNING === */
.stock-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
    font-size: 14px;
    color: #856404;
}

.stock-warning i {
    font-size: 18px;
}

/* Rotating Clock Animation */
.rotating-clock {
    animation: clockRotate 2s linear infinite;
    transform-origin: center;
    display: inline-block;
}

@keyframes clockRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* === BUTTONS === */
.btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(233, 30, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(233, 30, 122, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* === GUARANTEE === */
.guarantee-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-medium);
}

.guarantee-box i {
    color: #2e7d32;
    font-size: 24px;
}

/* === DELIVERY INFO === */
.delivery-info {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.delivery-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delivery-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.step-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.step-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.step-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

.step-line {
    height: 2px;
    background: var(--border-color);
    flex: 1;
    margin: 0 16px;
    position: relative;
    top: -30px;
}

/* === ACCORDION === */
.product-accordion {
    margin-top: var(--spacing-md);
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 16px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-align: left;
}

.accordion-header:hover {
    background: var(--bg-secondary);
}

.accordion-header i {
    transition: var(--transition-fast);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content > div {
    padding: 16px;
    background: var(--bg-secondary);
}

.accordion-content p,
.accordion-content li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.accordion-content ol,
.accordion-content ul {
    padding-left: 20px;
}

/* === SOCIAL PROOF SLIDER === */
.social-proof {
    padding: var(--spacing-xl) 0;
    background: white;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-sm);
}

.section-header h2 {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.social-slider {
    overflow: hidden;
    position: relative;
}

.social-slides {
    display: flex;
    gap: var(--spacing-md);
    animation: slideInfinite 20s linear infinite;
    padding: var(--spacing-sm) 0;
}

.social-slide {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.social-slide:hover {
    transform: translateY(-4px);
}

.social-slide img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin: 0 auto var(--spacing-xs);
    transition: var(--transition-fast);
}

.social-slide:hover img {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 16px rgba(233, 30, 122, 0.3);
}

.username {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    display: block;
}

@keyframes slideInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* === REVIEWS SECTION === */
.reviews-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.review-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.review-date {
    font-size: 13px;
    color: var(--text-light);
}

.review-rating {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.review-btn {
    background: transparent;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.review-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.review-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* === BENEFITS SECTION === */
.benefits-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

.benefits-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.benefits-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.benefits-content h2 {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
}

.benefits-content h3 {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md);
}

.benefits-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.benefits-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.benefits-list i {
    color: #2e7d32;
    margin-top: 4px;
    flex-shrink: 0;
}

.benefits-cta-text {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    font-size: 18px;
}

/* === FORMULA SECTION === */
.formula-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
}

.formula-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.formula-content h2 {
    font-size: 32px;
    margin-bottom: var(--spacing-md);
}

.formula-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.formula-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.formula-list li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.before,
.after {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.before img,
.after img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.label {
    position: absolute;
    top: var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: var(--font-weight-bold);
    font-size: 13px;
}

.before .label {
    background: rgba(255, 255, 255, 0.9);
}

.after .label {
    background: var(--primary-color);
    color: white;
}

/* === KOREAN FORMULA === */
.korean-formula {
    padding: var(--spacing-xl) 0;
    background: white;
}

.korean-formula h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: var(--spacing-lg);
}

.formula-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-fast);
}

.feature-card:hover {
    background: var(--accent-color);
    transform: translateY(-4px);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === COMPARISON TABLE === */
.comparison-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.comparison-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: var(--font-weight-bold);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.table-cell:first-child {
    justify-content: flex-start;
    text-align: left;
}

.brand-logo {
    height: 40px;
}

.table-cell .fa-check {
    color: #2e7d32;
    font-size: 20px;
}

.table-cell .fa-times {
    color: #d32f2f;
    font-size: 20px;
}

.comparison-note {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
}

/* === FAQ SECTION === */
.faq-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: var(--spacing-lg);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question i {
    transition: var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* === PRESS SECTION === */
.press-section {
    padding: var(--spacing-lg) 0;
    background: var(--accent-color);
    overflow: hidden;
}

.press-slider {
    display: flex;
    gap: var(--spacing-xl);
    animation: pressSlide 30s linear infinite;
}

.press-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.press-slide img {
    height: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition-fast);
}

.press-slide:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes pressSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* === REVIEWS SUMMARY === */
.reviews-summary {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.reviews-summary h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: var(--spacing-lg);
}

.reviews-stats {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.overall-rating {
    text-align: center;
}

.stars-large {
    color: #ffc107;
    font-size: 24px;
    margin-bottom: var(--spacing-xs);
}

.rating-number {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 4px;
}

.review-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.verified {
    color: #2e7d32;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars-mini {
    color: #ffc107;
    font-size: 14px;
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.rating-bar .count {
    font-weight: var(--font-weight-semibold);
    min-width: 30px;
}

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.payment-methods {
    display: flex;
    gap: var(--spacing-sm);
}

.payment-methods img {
    height: 30px;
    opacity: 0.7;
}

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-fast);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* === CART SIDEBAR === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
}

.close-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: var(--primary-color);
    color: white;
}

.cart-progress {
    padding: var(--spacing-md);
    background: #fff3cd;
    border-bottom: 1px solid var(--border-color);
}

.cart-progress p {
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: var(--font-weight-medium);
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
}

.progress-label {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-xl) 0;
}

.cart-recommendations {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-recommendations h4 {
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
}

.recommendation-item {
    display: flex;
    gap: var(--spacing-sm);
    background: white;
    padding: 12px;
    border-radius: 8px;
}

.recommendation-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.rec-info {
    flex: 1;
}

.rec-info h5 {
    font-size: 14px;
    margin-bottom: 4px;
}

.rec-price {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.rec-price .current {
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    font-size: 14px;
}

.rec-price .old {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.rec-badge {
    font-size: 11px;
    color: #d84315;
    font-weight: var(--font-weight-medium);
}

.add-rec-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}

.add-rec-btn:hover {
    background: var(--primary-dark);
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 18px;
}

.cart-total strong {
    font-size: 24px;
    color: var(--primary-color);
}

/* === STORY MODAL (INSTAGRAM STYLE) === */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.story-modal.active {
    display: flex;
}

.story-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 90vh;
    max-height: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.story-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.story-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Progress Bars */
.story-progress-bars {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 10001;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.story-progress-bar.completed .story-progress-fill {
    width: 100%;
}

.story-progress-bar.active .story-progress-fill {
    animation: progressAnimation 5s linear forwards;
}

@keyframes progressAnimation {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Story Header */
.story-header {
    position: absolute;
    top: 28px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
    padding: 8px;
}

.story-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.story-username {
    color: white;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story-controls {
    display: flex;
    gap: 8px;
}

.story-control-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.story-control-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Story Content */
.story-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.story-content img,
.story-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation Buttons */
.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    opacity: 0;
}

.story-container:hover .story-nav {
    opacity: 1;
}

.story-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.story-nav-prev {
    left: 12px;
}

.story-nav-next {
    right: 12px;
}

/* Tap Areas for Mobile */
.story-tap-area {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 10000;
    cursor: pointer;
}

.story-tap-prev {
    left: 0;
}

.story-tap-next {
    right: 0;
}

/* === OVERLAY === */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === STORY MODAL (Instagram Style) === */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.story-modal.active {
    opacity: 1;
    visibility: visible;
}

.story-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    max-height: 900px;
    background: #000;
    border-radius: 0;
    overflow: hidden;
}

/* Story Header */
.story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.story-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.story-username {
    color: white;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
}

.story-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.story-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Story Progress Bars */
.story-progress-container {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.story-progress-bar.active .story-progress-fill {
    animation: progressFill 5s linear forwards;
}

.story-progress-bar.completed .story-progress-fill {
    width: 100%;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Story Content */
.story-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Story Navigation */
.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition-fast);
    opacity: 0.7;
}

.story-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.story-prev {
    left: 16px;
}

.story-next {
    right: 16px;
}

/* Touch Areas for Mobile */
.story-touch-area {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 5;
    cursor: pointer;
}

.story-touch-left {
    left: 0;
}

.story-touch-right {
    right: 0;
}

/* Story Animation */
.story-content.fade-in {
    animation: storyFadeIn 0.3s ease;
}

@keyframes storyFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 40px;
        --spacing-lg: 28px;
    }

    .container {
        max-width: 100%;
    }

    .product-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .main-image img {
        height: 500px;
    }

    .benefits-wrapper,
    .formula-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .formula-wrapper {
        direction: rtl;
    }

    .formula-wrapper > * {
        direction: ltr;
    }

    .reviews-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    /* Typography */
    html {
        font-size: 14px;
    }

    /* Header */
    .header-content {
        padding: 12px 0;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo-subtitle {
        font-size: 9px;
    }

    .navigation {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        z-index: 999;
        transition: var(--transition-normal);
        margin: 0;
        box-shadow: var(--shadow-lg);
    }

    .navigation.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 16px;
        border-radius: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Product Section */
    .product-section {
        padding: var(--spacing-md) 0;
    }

    .product-wrapper {
        padding: var(--spacing-sm);
        border-radius: 8px;
    }

    .main-image img {
        height: 400px;
    }

    .product-info {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .product-title {
        font-size: 24px;
        line-height: 1.4;
    }

    .current-price {
        font-size: 28px;
    }

    .old-price {
        font-size: 18px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .benefit-item {
        padding: 10px;
        font-size: 13px;
    }

    .variant-option {
        padding: 12px;
    }

    .variant-image {
        width: 70px;
        height: 70px;
    }

    .variant-info h4 {
        font-size: 14px;
    }

    .variant-price .current {
        font-size: 18px;
    }

    /* Delivery Steps */
    .delivery-steps {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .step-icon {
        width: 50px;
        height: 50px;
    }

    .step-icon i {
        font-size: 20px;
    }

    .step-line {
        width: 2px;
        height: 30px;
        margin: 0;
        top: 0;
        align-self: center;
    }

    /* Sections */
    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    /* Social Proof */
    .social-slide img {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .username {
        font-size: 12px;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .review-card {
        padding: var(--spacing-sm);
    }

    /* Benefits & Formula */
    .benefits-content h2,
    .formula-content h2 {
        font-size: 24px;
    }

    .benefits-content h3 {
        font-size: 18px;
    }

    .benefits-content p,
    .formula-content p {
        font-size: 14px;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .before img,
    .after img {
        height: 300px;
    }

    /* Formula Features */
    .formula-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .feature-card {
        padding: var(--spacing-sm);
    }

    .feature-card i {
        font-size: 32px;
    }

    /* Comparison Table */
    .table-header,
    .table-row {
        grid-template-columns: 2fr 0.8fr 0.8fr;
        font-size: 13px;
    }

    .table-cell {
        padding: 12px 6px;
    }

    .table-cell:first-child {
        font-size: 12px;
    }

    /* FAQ */
    .faq-question {
        padding: 14px;
        font-size: 14px;
    }

    .faq-answer p {
        font-size: 13px;
    }

    /* Cart Sidebar */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.open {
        right: 0;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
    }

    /* Buttons */
    .whatsapp-btn {
        bottom: 80px;
        left: 16px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Story Modal */
    .story-container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .story-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .story-nav {
        display: none; /* Hide nav buttons on mobile, use tap areas */
    }

    .story-user-avatar {
        width: 32px;
        height: 32px;
    }

    .story-username {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 12px;
        max-width: 100vw;
    }

    /* Product */
    .product-section {
        padding: 12px 0;
    }

    .product-wrapper {
        padding: 8px;
        margin: 0;
        width: 100%;
    }

    .main-image {
        margin: 0 -8px;
        border-radius: 0;
        width: calc(100% + 16px);
    }

    .main-image img {
        height: 280px;
        width: 100%;
    }

    /* Thumbnail Slider Fix */
    .thumbnail-slider {
        padding: 0 4px;
        margin: 0 -8px;
        overflow: hidden;
    }

    .thumbnails {
        gap: 6px;
        padding: 0 4px;
    }

    .thumbnail {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
        padding: 0;
    }

    /* Product Info */
    .product-badge {
        margin: 0 0 8px 0;
        overflow: hidden;
    }

    .badge-hot {
        font-size: 11px;
        padding: 5px 12px;
        white-space: nowrap;
        max-width: 100%;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-title {
        font-size: 18px;
        line-height: 1.3;
        word-break: break-word;
        margin-bottom: 12px;
    }

    .product-features {
        flex-wrap: wrap;
        gap: 8px;
    }

    .feature-item {
        font-size: 12px;
        white-space: nowrap;
    }

    .current-price {
        font-size: 24px;
    }

    .old-price {
        font-size: 16px;
    }

    .discount-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Variant Options - Stack Completely */
    .variant-option {
        flex-direction: row;
        align-items: center;
        padding: 10px 8px;
        position: relative;
    }

    .variant-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .variant-info {
        flex: 1;
        min-width: 0;
    }

    .variant-info h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .variant-info p {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .variant-price {
        flex-wrap: wrap;
    }

    .variant-price .current {
        font-size: 16px;
    }

    .variant-price .old {
        font-size: 13px;
    }

    .variant-option input[type="radio"] {
        position: absolute;
        top: 10px;
        right: 8px;
        width: 18px;
        height: 18px;
    }

    .popular-badge,
    .economic-badge {
        top: -8px;
        left: 8px;
        font-size: 10px;
        padding: 3px 10px;
    }

    .extra-discount {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Buttons */
    .btn {
        padding: 12px 16px;
        font-size: 13px;
        white-space: normal;
        line-height: 1.4;
    }

    .btn i {
        font-size: 14px;
    }

    /* Delivery Timer */
    .delivery-timer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        font-size: 12px;
        padding: 12px;
    }

    .timer {
        font-size: 16px;
        margin-left: 0;
    }

    /* Stock Warning */
    .stock-warning {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* Keep clock rotation smooth on mobile */
    .rotating-clock {
        animation: clockRotate 2s linear infinite;
        will-change: transform;
    }

    /* Guarantee Box */
    .guarantee-box {
        padding: 12px;
        font-size: 13px;
    }

    .guarantee-box i {
        font-size: 20px;
    }

    /* Delivery Info */
    .delivery-info {
        padding: 12px;
    }

    .delivery-step {
        padding: 0 8px;
    }

    .step-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    .step-icon i {
        font-size: 18px;
    }

    .step-info strong {
        font-size: 12px;
    }

    .step-info span {
        font-size: 11px;
    }

    .step-line {
        height: 20px;
    }

    /* Accordion */
    .accordion-header {
        padding: 12px;
        font-size: 13px;
    }

    .accordion-content > div {
        padding: 12px;
    }

    .accordion-content p,
    .accordion-content li {
        font-size: 12px;
    }

    /* Sections */
    .section-header {
        padding: 0 12px;
    }

    .section-header h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 13px;
        padding: 0;
    }

    /* Social Slides */
    .social-slider {
        padding: 0 8px;
    }

    .social-slides {
        gap: 12px;
    }

    .social-slide img {
        width: 75px;
        height: 75px;
    }

    .username {
        font-size: 11px;
    }

    /* Review Cards */
    .reviews-grid {
        padding: 0;
    }

    .review-card {
        padding: 12px;
    }

    .review-avatar {
        width: 38px;
        height: 38px;
    }

    .review-info h4 {
        font-size: 13px;
    }

    .review-date {
        font-size: 11px;
    }

    .review-text {
        font-size: 12px;
        line-height: 1.6;
    }

    .review-footer {
        padding-top: 10px;
    }

    .review-btn {
        font-size: 12px;
        padding: 4px 10px;
    }

    .review-meta {
        font-size: 11px;
    }

    /* Benefits */
    .benefits-section,
    .formula-section,
    .korean-formula,
    .comparison-section,
    .faq-section {
        padding: var(--spacing-md) 0;
    }

    .benefits-content h2,
    .formula-content h2,
    .korean-formula h2,
    .comparison-section h2,
    .faq-section h2,
    .reviews-summary h2 {
        font-size: 20px;
        line-height: 1.3;
        padding: 0 4px;
    }

    .benefits-content h3 {
        font-size: 16px;
    }

    .benefits-content p,
    .formula-content p {
        font-size: 13px;
    }

    .benefits-list li {
        font-size: 12px;
    }

    /* Before/After */
    .before img,
    .after img {
        height: 220px;
    }

    .label {
        font-size: 11px;
        padding: 4px 12px;
    }

    /* Feature Cards */
    .feature-card {
        padding: 16px 12px;
    }

    .feature-card i {
        font-size: 28px;
    }

    .feature-card p {
        font-size: 12px;
    }

    /* Comparison Table */
    .comparison-section {
        padding: var(--spacing-md) 0;
    }

    .section-subtitle {
        font-size: 13px;
        padding: 0 12px;
    }

    .comparison-table {
        margin: 0 8px;
        font-size: 11px;
        overflow-x: auto;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 0.7fr 0.7fr;
    }

    .table-cell {
        padding: 10px 4px;
        font-size: 11px;
    }

    .table-cell:first-child {
        font-size: 11px;
        padding-left: 8px;
    }

    .brand-logo {
        height: 25px;
    }

    .table-cell .fa-check,
    .table-cell .fa-times {
        font-size: 14px;
    }

    .comparison-note {
        font-size: 12px;
        padding: 0 12px;
    }

    /* FAQ */
    .faq-section {
        padding: var(--spacing-md) 0;
    }

    .faq-grid {
        padding: 0;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-question span {
        padding-right: 8px;
    }

    .faq-answer p {
        padding: 0 12px 12px;
        font-size: 12px;
        line-height: 1.6;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }

    .footer-column {
        padding: 0 8px;
    }

    .footer-column h3 {
        font-size: 18px;
    }

    .footer-column h4 {
        font-size: 14px;
    }

    .footer-column p,
    .footer-column ul li a {
        font-size: 13px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        padding: 10px;
    }

    .newsletter-form button {
        width: 100%;
        padding: 10px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .payment-methods img {
        height: 24px;
    }

    /* Cart Sidebar */
    .cart-header h3 {
        font-size: 16px;
    }

    .cart-progress p {
        font-size: 11px;
    }

    .progress-label {
        font-size: 11px;
    }

    /* Press Section */
    .press-slide img {
        height: 28px;
    }

    /* Story Modal Adjustments */
    .story-container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
    }

    .story-header {
        top: 20px;
        left: 8px;
        right: 8px;
        padding: 4px;
    }

    .story-progress-bars {
        top: 8px;
        left: 8px;
        right: 8px;
        gap: 3px;
    }

    .story-progress-bar {
        height: 2px;
    }

    .story-close {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
    }

    .story-user-avatar {
        width: 30px;
        height: 30px;
    }

    .story-username {
        font-size: 12px;
    }

    .story-control-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .product-title {
        font-size: 18px;
    }

    .current-price {
        font-size: 22px;
    }

    .social-slide img {
        width: 70px;
        height: 70px;
    }
}

/* === PREVENT HORIZONTAL SCROLL === */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    overflow: hidden;
    max-width: 100%;
}

/* Fix image overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure no element causes horizontal scroll */
* {
    box-sizing: border-box;
}

/* Allow specific elements to exceed if needed */
.thumbnails,
.social-slides,
.press-slider {
    max-width: none;
}

/* Fix wrapper overflow */
section {
    overflow-x: hidden;
    width: 100%;
}

/* Fix text overflow */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix button overflow */
.btn {
    max-width: 100%;
    white-space: normal;
}

