/* Tailwind/Bootstrap Compatibility Layer */
@layer utilities {
    /* Tailwind utilities with !important for better override */
    .hover\:bg-gray-100:hover { background-color: rgba(0,0,0,0.05) !important; }
    .hover\:text-gray-800:hover { color: #343a40 !important; }
    .animate-bounce-gentle { animation: bounceGentle 2s infinite !important; }
    .hover-lift { transition: all 0.3s ease !important; }
    .hover-lift:hover { 
        transform: translateY(-4px) !important; 
        box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important; 
    }
    .text-gray-600 { color: #6c757d !important; }
    .text-gray-800 { color: #343a40 !important; }
    /* Font + color aliases for ease of use */
    .font-sukhumvit { font-family: 'SukhumvitSet', system-ui, sans-serif !important; }
    .text-soft { color: #6c757d !important; }
    .text-strong { color: #343a40 !important; }
    .text-gray-light { color: #6c757d !important; }
    .text-gray-dark { color: #343a40 !important; }
    .bg-gray-light { background-color: #f8f9fa !important; }
    .transition-all { transition: all 0.3s ease !important; }
}

@keyframes bounceGentle {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Font Face */
@font-face {
    font-family: 'SukhumvitSet';
    /* Use absolute path to avoid duplicated segment when CSS is referenced via /views/FrontStore/styles.css */
    src: url('/views/FrontStore/SukhumvitSet-Bold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

/* Provide a normal-weight face mapping to the same file (if only Bold is available) */
@font-face {
    font-family: 'SukhumvitSet';
    src: url('/views/FrontStore/SukhumvitSet-Bold.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #007AFF;
    --light-blue: #F8FAFF;
    --soft-blue: #FCFDFF;
    --white: #FFFFFF;
    --light-gray: #F5F5F7;
    --text-primary: #424245;
    --text-secondary: #86868B;
    --text-light: #B0B0B5;
    --border-light: #F2F2F7;
    --shadow-light: rgba(174, 174, 178, 0.1);
    --shadow-medium: rgba(174, 174, 178, 0.15);
    --shadow-hover: rgba(174, 174, 178, 0.2);
    --shadow-strong: rgba(174, 174, 178, 0.25);
    --gradient-primary: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #FCFDFF 100%);
    --gradient-hover: linear-gradient(145deg, #FCFDFF 0%, #F8FAFF 100%);
}

body {
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.47059;
    color: var(--text-primary);
    background: #ffffff;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 20px var(--shadow-light);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    box-shadow: 0 2px 30px var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 64px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    border-radius: 8px;
    padding: 4px;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.nav-link {
    text-decoration: none !important;
    color: var(--text-primary) !important;
    font-size: 17px;
    font-weight: 500;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.2s ease;
    padding: 12px 24px;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6b7280;
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #6b7280 !important;
}

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

/* Hero Section */
.hero {
    background: #ffffff;
    color: var(--text-primary);
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Carousel Container */
.hero-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 600px;
    z-index: 2;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-track {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    position: relative;
    padding: 0 50px;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Default size for side slides */
.hero-slide {
    width: 300px;
    height: 400px;
    filter: blur(2px);
    opacity: 0.7;
    transform: scale(0.85);
    z-index: 1;
}

/* Center slide - larger and clear */
.hero-slide.center {
    width: 500px;
    height: 500px;
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Blur effect for side slides */
.hero-slide:not(.center) .hero-slide-image {
    filter: blur(2px) brightness(0.7);
    opacity: 0.8;
}

.hero-slide.center .hero-slide-image {
    filter: blur(0) brightness(1);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.hero-nav-prev {
    left: 30px;
}

.hero-nav-next {
    right: 30px;
}

.hero-nav svg {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.hero-nav:hover svg {
    color: var(--primary-blue);
}

/* Hero Slide Overlay */
.hero-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    border-radius: 0 0 20px 20px;
}

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

.hero-slide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-slide-description {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
}

/* Hero Loading */
.hero-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.hero-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-loading p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Three-slide layout for desktop */
@media (min-width: 1024px) {
    .hero-carousel-container {
        height: 600px;
    }
    
    .hero-slide-track {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 60px;
        padding: 0 80px;
    }
    
    /* Center slide enhancement */
    .hero-slide.center {
        flex: 0 0 400px;
        height: 400px;
        z-index: 3;
        margin: 5px;
    }
    
    /* Side slides */
    .hero-slide.prev,
    .hero-slide.next {
        flex: 0 0 240px;
        height: 300px;
        z-index: 1;
        transform: translateY(50px);
    }
    
    .hero-slide.prev .hero-slide-image,
    .hero-slide.next .hero-slide-image {
        filter: blur(3px);
        opacity: 0.7;
    }
    
    .hero-slide.center .hero-slide-image {
        filter: blur(0);
        opacity: 1;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    }
}

/* Responsive design */
@media (max-width: 1023px) {
    .hero-carousel-container {
        height: 400px;
    }
    
    .hero-slide-track {
        justify-content: center;
        gap: 20px;
        padding: 0 20px;
    }
    
    /* On tablet, show all 3 but smaller */
    .hero-slide.center {
        flex: 0 0 280px;
        height: 320px;
    }
    
    .hero-slide.prev,
    .hero-slide.next {
        flex: 0 0 180px;
        height: 220px;
        transform: translateY(50px);
    }
    .hero-slide.next {
        display: none;
    }
    
    .hero-slide.center {
        flex: 0 0 350px;
        height: 350px;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-nav-prev {
        left: 10px;
    }
    
    .hero-nav-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 20px 10px;
        min-height: 50vh;
    }
    
    .hero-carousel-container {
        height: 350px;
    }
    
    .hero-slide-track {
        gap: 10px;
        padding: 0 10px;
    }
    
    /* Mobile: smaller sizes to prevent overlap */
    .hero-slide.center {
        flex: 0 0 250px;
        height: 320px;
    }
    
    .hero-slide.prev,
    .hero-slide.next {
        flex: 0 0 150px;
        height: 200px;
        transform: translateY(60px);
    }
    
    .hero-slide-overlay {
        padding: 15px 10px 10px;
    }
    
    .hero-slide-title {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .hero-slide-description {
        font-size: 12px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: heroFadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
    margin-bottom: 12px;
    letter-spacing: -0.005em;
    line-height: 1.07143;
    color: var(--text-primary);
    animation: heroTitleSlide 1.2s ease-out 0.2s both;
}

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

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.33333;
    animation: heroSubtitleSlide 1.2s ease-out 0.4s both;
}

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

.hero-cta {
    display: inline-flex;
    gap: 16px;
    margin-top: 16px;
    animation: heroCTASlide 1.2s ease-out 0.6s both;
}

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

.hero-btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 19px;
    font-weight: 500;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn-primary {
    background: var(--primary-blue);
    color: white;
}

.hero-btn-primary:hover {
    background: #0051D0;
    transform: translateY(-1px);
}

.hero-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.hero-btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--text-secondary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: scrollIndicatorBounce 2s infinite ease-in-out 2s;
}

@keyframes scrollIndicatorBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 1px solid var(--text-secondary);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0.6;
    animation: scrollArrowPulse 2s infinite ease-in-out;
}

@keyframes scrollArrowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: rotate(45deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.05);
    }
}

/* Parallax and Scroll Effects */
.parallax-element {
    transition: transform 0.1s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Features Section */
.features {
    padding: 60px 0;
    background: #ffffff;
    margin-bottom: 60px;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 18px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    border-radius: 14px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    position: relative;
}

.feature-title {
    font-size: 19px;
    font-weight: 600;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.21053;
}

.feature-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.47059;
    font-weight: 400;
}

/* Apple Products Carousel */
.apple-products-carousel {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1200px;
    cursor: pointer; /* เพิ่ม cursor pointer เพื่อบ่งบอกว่ากดได้ */
    user-select: none; /* ป้องกันการเลือกข้อความเมื่อกดขวา */
}

.apple-products-carousel.top-carousel {
    position: absolute;
    top: 10px;  /* ขยับขึ้นจาก 40px เป็น 10px */
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 100%;
    max-width: 800px;
    z-index: 20;
}

/* Add right-click hint */
.apple-products-carousel::before {
    content: 'คลิกขวาเพื่อเลื่อนไปยังหน้าถัดไป';
    position: absolute;
    top: -25px;
    right: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 21;
}

.apple-products-carousel:hover::before {
    opacity: 0.7;
}

/* Enhanced hover effect for right-click support */
.apple-products-carousel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
    padding: 20px 45px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(174, 174, 178, 0.15);
    z-index: 16;
    color: var(--text-primary);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(174, 174, 178, 0.2);
}

.carousel-prev {
    left: 5px; /* ลดจาก 10px เป็น 5px */
}

.carousel-next {
    right: 5px; /* ลดจาก 10px เป็น 5px */
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(174, 174, 178, 0.1);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(174, 174, 178, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.product-item.active {
    border-color: var(--primary-blue);
    background: rgba(0, 122, 255, 0.1);
    transform: scale(1.1);
}

.product-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

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

.product-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.2;
    white-space: nowrap;
}

.product-item.active span {
    color: var(--primary-blue);
}

/* Promotion Cards */
.promotion-cards {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
    max-width: 1200px;
    width: 90%;
    justify-content: center;
}

.promo-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.promo-card-1 {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: white;
    flex: 1;
    max-width: 400px;
}

.promo-card-2 {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: white;
    flex: 1;
    max-width: 400px;
}

.promo-card-3 {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: #1f2937;
    flex: 0.8;
    max-width: 300px;
    text-align: center;
}

.promo-content {
    z-index: 2;
    position: relative;
}

.promo-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.2;
}

.promo-subtitle {
    font-size: 17px;
    margin-bottom: 16px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
}

.promo-price {
    font-size: 19px;
    font-weight: 600;
    opacity: 0.95;
}

.promo-small-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-image {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    opacity: 0.3;
    z-index: 1;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.promo-bands {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    align-items: center;
}

.band-item {
    width: 60px;
    height: 40px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

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

.band-coral {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.band-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.band-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Add texture dots to bands */
.band-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.band-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .promotion-cards {
        flex-direction: column;
        width: 95%;
        gap: 12px;
        bottom: 40px;
    }
    
    .promo-card {
        padding: 20px;
        min-height: 160px;
        max-width: none !important;
    }
    
    .promo-title {
        font-size: 24px;
    }
    
    .promo-subtitle {
        font-size: 15px;
    }
    
    .promo-price {
        font-size: 17px;
    }
    
    .promo-bands {
        margin-top: 15px;
        gap: 6px;
    }
    
    .band-item {
        width: 50px;
        height: 35px;
    }
}

/* Responsive for carousel */
@media (max-width: 768px) {
    .apple-products-carousel.top-carousel {
        top: 20px;  /* ขยับขึ้นจาก 50px เป็น 20px */
        max-width: 95%;
        z-index: 25;
    }
    
    .products-slider {
        grid-template-columns: repeat(4, 1fr);
        padding: 20px 50px;
        gap: 15px;
    }
    
    .carousel-nav {
        width: 32px;
        height: 32px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .product-item {
        max-width: 80px;
        padding: 8px;
    }
    
    .product-item img {
        width: 40px;
        height: 40px;
    }
    
    .product-item span {
        font-size: 10px;
    }
    
    .hero-content {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .products-slider {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 15px 40px;
    }
    
    .product-item {
        max-width: 70px;
        padding: 6px;
    }
    
    .product-item img {
        width: 35px;
        height: 35px;
    }
    
    .product-item span {
        font-size: 9px;
    }
    
    /* Mobile video adjustments */
    .hero-video {
        transform: translate(-50%, -50%) scale(1.1);
    }
    
    .video-overlay {
        background: rgba(255, 255, 255, 0.4);
    }
}

/* Video Section */
.video-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
}

.video-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(174, 174, 178, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(174, 174, 178, 0.2);
}

.main-video {
    width: 100%;
    height: auto;
    min-height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-video:hover {
    transform: scale(1.02);
}

.video-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    padding: 40px 30px 30px;
    border-radius: 0 0 20px 20px;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 600px;
}

/* Responsive Video Section */
@media (max-width: 768px) {
    .video-section {
        padding: 60px 0;
    }
    
    .video-container {
        margin: 0 20px;
        border-radius: 15px;
    }
    
    .main-video {
        min-height: 300px;
        border-radius: 15px;
    }
    
    .video-overlay-content {
        padding: 25px 20px 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .video-title {
        font-size: 1.8rem;
    }
    
    .video-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 40px 0;
    }
    
    .video-container {
        margin: 0 15px;
    }
    
    .main-video {
        min-height: 250px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
}

/* Flex Card Carousel Section - Apple Store Style */
.flex-card-carousel {
    padding: 80px 0;
    background: #f5f5f7;
    position: relative;
}

.flex-card-carousel .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.flex-card-carousel .section-header {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 50px;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.cards-wrapper {
    overflow: hidden;
    border-radius: 0;
}

.cards-container {
    display: flex;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px 0;
}

/* Apple Card Styles */
.apple-card {
    min-width: 400px;
    height: 500px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.apple-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.apple-card.featured-card {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    color: white;
    min-width: 450px;
}

.apple-card.bundle-card {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    min-width: 450px;
}

/* Card Header - reduce space for more image area */
.card-header {
    padding: 20px 30px 15px 30px;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card .card-subtitle {
    color: #a1a1a6;
}

.card-subtitle.orange {
    color: #f56500;
    background: linear-gradient(90deg, #f56500, #ff8f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.2;
}

.featured-card .card-title {
    color: white;
    font-size: 32px;
}

.card-tagline {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 16px;
    line-height: 1.4;
    max-width: 280px;
}

.featured-card .card-tagline {
    color: #a1a1a6;
}

.card-price {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.featured-card .card-price {
    color: white;
}

.card-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.card-image img,
.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 350px;
    border-radius: 0;
}

/* Video specific styles for product cards */
.card-image video {
    background-color: #f8f9fa;
}

.card-image .card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    background-color: #f8f9fa;
}

/* Hide all video controls - no timeline, no controls */
.card-video::-webkit-media-controls {
    display: none !important;
}

.card-video::-webkit-media-controls-panel {
    display: none !important;
}

.card-video::-webkit-media-controls-play-button {
    display: none !important;
}

.card-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.card-video::-webkit-media-controls-timeline {
    display: none !important;
}

.card-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.card-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.card-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.card-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.card-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.card-video::-moz-media-controls {
    display: none !important;
}

/* Product page video controls hiding */
.card-video-top::-webkit-media-controls {
    display: none !important;
}

.card-video-top::-webkit-media-controls-panel {
    display: none !important;
}

.card-video-top::-webkit-media-controls-play-button {
    display: none !important;
}

.card-video-top::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.card-video-top::-webkit-media-controls-timeline {
    display: none !important;
}

.card-video-top::-webkit-media-controls-current-time-display {
    display: none !important;
}

.card-video-top::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.card-video-top::-webkit-media-controls-mute-button {
    display: none !important;
}

.card-video-top::-webkit-media-controls-volume-slider {
    display: none !important;
}

.card-video-top::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.card-video-top::-moz-media-controls {
    display: none !important;
}

/* Video hover effects */
.apple-card:hover .card-image video {
    transform: scale(1.05);
}

/* Promotion Card Specific Styles */
.promotion-card {
    height: 400px; /* Fixed height for promotion cards */
}

.promotion-image {
    padding: 0; /* Remove padding for full image coverage */
}

.promotion-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* แสดงเต็ม ไม่ครอป */
    max-height: none !important; /* Remove max-height restriction */
    border-radius: 24px; /* Match the card border radius */
}

/* Cards without header - full image */
.apple-card:not(:has(.card-header)) .card-image,
.apple-card:not(.featured-card):not(.bundle-card) .card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    margin: 0;
    border-radius: 18px;
}

.apple-card:not(:has(.card-header)) .card-image img,
.apple-card:not(.featured-card):not(.bundle-card) .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Add CSS for flex-card-carousel product images */
.flex-card-carousel .card-image {
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    flex: 1;
    height: auto;
}

.flex-card-carousel .card-image img,
.flex-card-carousel .card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    border-radius: 0;
    display: block;
}

/* Video specific styles for flex-card-carousel */
.flex-card-carousel .card-image video {
    background-color: #f8f9fa;
}

/* Ensure cards have proper height */
.flex-card-carousel .apple-card {
    height: 500px;
    min-height: 500px;
}

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

/* Bundle Card Special Layout */
.bundle-card .card-image {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 40px 20px 20px 20px;
}

.bundle-card .device {
    width: 45%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.bundle-card .device.mac {
    transform: rotate(-5deg);
}

.bundle-card .device.ipad {
    transform: rotate(5deg);
}

.bundle-card:hover .device.mac {
    transform: rotate(-8deg) scale(1.05);
}

.bundle-card:hover .device.ipad {
    transform: rotate(8deg) scale(1.05);
}

/* Responsive Apple Card Carousel */
@media (max-width: 1024px) {
    .carousel-container {
        padding: 0 40px;
    }
    
    .flex-card-carousel .section-header {
        padding: 0 40px;
    }
    
    .apple-card {
        min-width: 350px;
        height: 450px;
    }
    
    .apple-card.featured-card,
    .apple-card.bundle-card {
        min-width: 380px;
    }
    
    .card-header {
        padding: 30px 30px 15px 30px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .featured-card .card-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .flex-card-carousel {
        padding: 60px 0;
    }
    
    .carousel-container {
        padding: 0 30px;
    }
    
    .flex-card-carousel .section-header {
        padding: 0 30px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .apple-card {
        min-width: 300px;
        height: 400px;
    }
    
    .apple-card.featured-card,
    .apple-card.bundle-card {
        min-width: 320px;
    }
    
    .cards-container {
        gap: 10px;
    }
    
    .card-header {
        padding: 25px 25px 15px 25px;
    }
    
    .card-title {
        font-size: 22px;
    }
    
    .featured-card .card-title {
        font-size: 24px;
    }
    
    .card-tagline {
        font-size: 15px;
    }
    
    .card-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 20px;
    }
    
    .flex-card-carousel .section-header {
        padding: 0 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
    
    .apple-card {
        min-width: 280px;
        height: 380px;
    }
    
    .apple-card.featured-card,
    .apple-card.bundle-card {
        min-width: 300px;
    }
    
    .card-header {
        padding: 20px 20px 10px 20px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .featured-card .card-title {
        font-size: 22px;
    }
    
    .card-tagline {
        font-size: 14px;
        max-width: 240px;
    }
    
    .card-price {
        font-size: 15px;
    }
    
    .card-image {
        padding: 15px;
    }
    
    .bundle-card .card-image {
        padding: 20px 15px 15px 15px;
    }
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: #ffffff;
    margin-bottom: 60px;
}

/* New Gallery Carousel Styles */
.gallery-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 40px rgba(174, 174, 178, 0.15);
    background: var(--light-gray);
}

#review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 24px 24px;
    color: white;
}

.gallery-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gallery-overlay p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

/* Carousel Loading */
.carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-control-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-control-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carousel-control-btn svg {
    color: var(--text-primary);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: white;
    transform: scale(1.2);
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Legacy Gallery Grid Styles (kept for compatibility) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(174, 174, 178, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(174, 174, 178, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
    padding: 40px 24px 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    color: var(--text-primary);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item .gallery-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gallery-item .gallery-overlay p {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Responsive Design for Gallery Carousel */
@media (max-width: 768px) {
    .gallery-carousel {
        margin: 0 20px;
        aspect-ratio: 3/4;
    }
    
    .gallery-overlay {
        padding: 20px 16px 16px;
    }
    
    .gallery-overlay h3 {
        font-size: 20px;
    }
    
    .gallery-overlay p {
        font-size: 16px;
    }
    
    .carousel-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-controls {
        padding: 0 16px;
    }
}

/* Product Photo */
.product-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-photo {
    opacity: 0.2;
}

/* Additional iPhone Styles */
.iphone-se {
    background: linear-gradient(135deg, #F5F5F7 0%, #E5E5EA 100%);
    box-shadow: 0 12px 40px rgba(229, 229, 234, 0.15);
    width: 100px;
    height: 160px;
    border-radius: 20px;
}

.iphone-13 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E85 100%);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.15);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Products Grid */
.products {
    margin-bottom: 0;
    padding: 80px 0;
    background: #f5f5f7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.08333;
    letter-spacing: -0.005em;
}

.section-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.33333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.product-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-image {
    margin-bottom: 40px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    background: #fbfbfd;
}

.phone-mockup {
    width: 140px;
    height: 200px;
    border-radius: 28px;
    background: var(--primary-blue);
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.15);
    transition: transform 0.3s ease;
}

.product-card:hover .phone-mockup {
    transform: scale(1.03);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.iphone-15-pro-max {
    background: linear-gradient(135deg, #8B7355 0%, #A68B68 100%);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.2);
}

.iphone-15-pro {
    background: linear-gradient(135deg, #8E8E93 0%, #AEAEB2 100%);
    box-shadow: 0 8px 20px rgba(142, 142, 147, 0.2);
}

.iphone-15 {
    background: linear-gradient(135deg, #FF9F9B 0%, #FFB3AF 100%);
    box-shadow: 0 8px 20px rgba(255, 159, 155, 0.2);
}

.iphone-14 {
    background: linear-gradient(135deg, #007AFF 0%, #4DA6FF 100%);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.14286;
    padding: 0 40px;
}

.product-description {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.42105;
    font-weight: 400;
    padding: 0 40px;
}

.product-features {
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    margin-bottom: 12px;
}

.price-from {
    font-size: 17px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
    padding: 0 20px;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.125;
    padding: 0 40px;
    margin-bottom: 16px;
}

.product-installment {
    margin-bottom: 32px;
}

.installment-text {
    font-size: 17px;
    color: var(--primary-blue);
    font-weight: 600;
    background: var(--light-blue);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-direction: column;
    padding: 0 40px 40px;
    margin-top: auto;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 19px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    line-height: 1.21053;
    font-family: 'SukhumvitSet', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: #0051D0;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 35px;
}

.btn-small {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 25px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.modal-content {
    background: var(--white);
    margin: 3% auto;
    padding: 0;
    border-radius: 28px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px var(--shadow-medium);
    border: 1px solid var(--border-light);
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.modal-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--soft-blue), var(--white));
    border-radius: 28px 28px 0 0;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-blue), #4FC3F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: var(--light-blue);
    border: none;
    font-size: 20px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.close-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 40px;
}

.storage-options,
.color-options {
    margin-bottom: 40px;
}

.storage-options h3,
.color-options h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.storage-buttons,
.color-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.storage-btn,
.color-btn {
    padding: 16px 24px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.storage-btn.active,
.color-btn.active {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    color: var(--primary-blue);
    transform: scale(1.05);
}

.storage-btn:hover,
.color-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.color-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    padding: 0;
}

.color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 900;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(174, 174, 178, 0.4);
}

.color-btn.space-gray { background: linear-gradient(135deg, #8E8E93, #AEAEB2); }
.color-btn.silver { background: linear-gradient(135deg, #F0F0F0, #E5E5EA); }
.color-btn.gold { background: linear-gradient(135deg, #FFD700, #F4C430); }
.color-btn.titanium { background: linear-gradient(135deg, #8B7355, #B5A584); }
.color-btn.pink { background: linear-gradient(135deg, #FF9F9B, #F48FB1); }
.color-btn.blue { background: linear-gradient(135deg, #007AFF, #4FC3F7); }
.color-btn.green { background: linear-gradient(135deg, #4CAF50, #8BC34A); }
.color-btn.purple { background: linear-gradient(135deg, #9C27B0, #BA68C8); }
.color-btn.red { background: linear-gradient(135deg, #F44336, #FF6B6B); }

.pricing-details {
    background: linear-gradient(135deg, var(--soft-blue), var(--light-blue));
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-blue);
}

.price-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
}

.installment-options h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.installment-grid {
    display: grid;
    gap: 16px;
}

.installment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--white);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.installment-option:hover {
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.installment-option.recommended {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    box-shadow: 0 8px 24px var(--shadow-light);
}

.installment-duration {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.installment-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-blue);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-blue), #4FC3F7);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.modal-actions {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

/* Comparison Section */
.comparison {
    background: var(--white);
    border-radius: 28px;
    padding: 80px 0;
    margin-bottom: 120px;
    box-shadow: 0 12px 48px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.comparison .section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-blue), #4FC3F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-table {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--soft-blue), var(--light-blue));
    position: relative;
}

.comparison-table th:first-child {
    background: linear-gradient(135deg, var(--primary-blue), #4FC3F7);
    color: white;
}

.comparison-table tbody tr:hover {
    background: var(--soft-blue);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.feature-name {
    text-align: left !important;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.comparison-table td {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(240, 248, 255, 0.3);
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    background: #f5f5f7;
    margin-bottom: 60px;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.star {
    color: #FFD700;
    font-size: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-weight: 500;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #4FC3F7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background: #ffffff;
    color: var(--text-primary);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0.6;
}

.newsletter::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.1;
}

.newsletter-subtitle {
    font-size: 21px;
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.381;
}

.newsletter-form {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    padding: 20px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.newsletter-btn {
    padding: 20px 36px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 1);
}

.newsletter-privacy {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 16px;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #1d1d1f;
    padding: 80px 0 40px;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e5e5e7, #f5f5f7, #e5e5e7);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.footer-section {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f2f2f7;
    transition: all 0.3s ease;
}

.footer-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.footer-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 0;
    color: #1d1d1f;
    letter-spacing: -0.5px;
    word-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
    letter-spacing: -0.2px;
    word-spacing: 1px;
    color: #424245;
}

.footer-description {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.2px;
    word-spacing: 1.5px;
    color: #86868b;
    text-align: justify;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.footer-contact-title,
.footer-menu-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
    letter-spacing: -0.1px;
    word-spacing: 1px;
    position: relative;
}

.footer-contact-title::after,
.footer-menu-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #d2d2d7;
    border-radius: 1px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-name {
    font-weight: 700;
    font-size: 18px;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: 0.1px;
    word-spacing: 1px;
    line-height: 1.3;
}

.company-address,
.company-phone,
.company-email {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.3px;
    word-spacing: 1.2px;
    color: #424245;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.company-address:hover,
.company-phone:hover,
.company-email:hover {
    background: #f5f5f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #424245;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
    word-spacing: 1px;
    line-height: 1.5;
    transition: all 0.3s ease;
    padding: 16px;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.footer-link:hover {
    color: #1d1d1f;
    background: #f5f5f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #e5e5e7;
    padding-top: 40px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    background: #fafafa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.footer-bottom p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #86868b;
    line-height: 1.7;
    letter-spacing: 0.3px;
    word-spacing: 1.2px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 15px;
    color: #424245;
    letter-spacing: 0.2px;
    word-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 24px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        justify-content: center;
    }
    
    .nav-link {
        display: none;      /* ซ่อนเฉพาะเมนู */
    }
    
    .nav-brand {
        display: flex;      /* โลโก้ยังอยู่ */
    }
    
    .nav-container {
        padding: 0 20px;
        height: 48px;
        justify-content: center;
    }
    
    .nav-brand {
        position: static;
        left: auto;
    }
    
    .hero {
        padding: 80px 20px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 16px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 24px;
        height: 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        border-radius: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 24px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 16px;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
    
    .newsletter-subtitle {
        font-size: 18px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 16px 12px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-card {
        padding: 32px 24px;
    }
    
    .phone-mockup {
        width: 120px;
        height: 180px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-section {
        padding: 24px;
        margin: 0 auto;
        max-width: 500px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    }
    
    .footer-brand {
        justify-content: center;
        gap: 12px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .footer-subtitle {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .footer-description {
        font-size: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .footer-contact-title::after,
    .footer-menu-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        padding: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 60px 16px;
        min-height: 70vh;
    }
    
    .hero-video {
        height: 120%;
        width: 120%;
        top: -10%;
        left: -10%;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-main {
        gap: 24px;
        margin-bottom: 30px;
    }
    
    .footer-section {
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }
    
    .footer-brand {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-title {
        font-size: 28px;
        margin-bottom: 0;
    }
    
    .footer-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-description {
        font-size: 14px;
        padding: 16px;
        line-height: 1.6;
    }
    
    .footer-contact-title,
    .footer-menu-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .company-address,
    .company-phone,
    .company-email {
        font-size: 13px;
        padding: 12px;
    }
    
    .footer-link {
        font-size: 14px;
        padding: 12px;
    }
    
    .footer-bottom {
        padding: 16px;
        margin-top: 20px;
    }
    
    .product-card {
        padding: 24px 20px;
    }
    
    .product-name {
        font-size: 20px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .storage-buttons,
    .color-buttons {
        justify-content: center;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .installment-grid {
        gap: 12px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .testimonial-card {
        padding: 32px 24px;
    }
    
    .newsletter {
        padding: 60px 0;
    }
    
    .newsletter-title {
        font-size: 24px;
    }
    
    .newsletter-subtitle {
        font-size: 16px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #424245;
        --text-secondary: #86868B;
        --white: #FFFFFF;
        --light-gray: #F5F5F7;
        --border-light: #F2F2F7;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0066CC;
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.5);
    }
}

/* Gallery Carousel - New Real-time Review System */
.gallery-carousel {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}
.gallery-carousel img {
  width: 100%;
  display: block;
  transition: opacity .5s ease;
}
.gallery-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
}
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.carousel-control-btn {
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: white;
}
.carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.indicator-dot {
  width: 10px; 
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}
.indicator-dot.active {
  background: #fff;
}
.carousel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.loading-spinner {
  border: 4px solid rgba(255,255,255,0.4);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 36px; 
  height: 36px;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}
@keyframes spin { 
  to { transform: rotate(360deg); } 
}

/* Pricing CTA Section */
.pricing-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn.primary {
    background: white;
    color: #667eea;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive for CTA */
@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Admin Link */
.footer-bottom {
    position: relative;
}

.admin-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
    color: #007AFF;
    transform: translateY(-50%) scale(1.2);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Promotions & Hero — single source of truth (clean override) === */

/* Promotions (โปสเตอร์ไม่ครอป ใช้สัดส่วนรูปจริง) */
#promotionCards .apple-card.promotion-card{
  position:relative; display:block;
  height:auto; aspect-ratio:var(--poster-ar,4/5);
  border-radius:12px; overflow:hidden;
  width: 300px; /* ลดขนาดเพื่อให้แสดง 4 การ์ดได้ */
  flex-shrink: 0;
  margin-right: 20px;
}
#promotionCards .apple-card.promotion-card .card-header{ display:none; }
#promotionCards .apple-card.promotion-card .card-image{
  position:absolute; inset:0; padding:0; overflow:hidden;
}
#promotionCards .apple-card.promotion-card .card-image>img{
  width:100%; height:100%; max-height:none;
  object-fit:contain; object-position:center; display:block;
}
/* ถ้าอยาก “เต็มกรอบแบบยอมครอป” ใส่ .cover ที่การ์ดใบนั้น */
#promotionCards .apple-card.promotion-card.cover .card-image>img{ object-fit:cover; }

/* ปิดเอฟเฟกต์ scale ตอน hover เฉพาะการ์ดโปรฯ */
#promotionCards .apple-card.promotion-card:hover .card-image img{ transform:none; }

/* Responsive adjustments for promotion cards */
@media (max-width: 1200px) {
    #promotionCards .apple-card.promotion-card {
        width: 280px;
    }
}

@media (max-width: 768px) {
    #promotionCards .apple-card.promotion-card {
        width: 250px;
    }
}

@media (max-width: 480px) {
    #promotionCards .apple-card.promotion-card {
        width: 280px; /* ขนาดใหญ่ขึ้นสำหรับมือถือ */
    }
}

/* Hero (สไลด์กลาง 420x420 และไม่ครอปรูป) */
.hero-slide.center{ width:420px; height:420px; flex:0 0 420px; }
.hero-slide.center .hero-slide-image{
  width:100%; height:100%;
  object-fit:contain; object-position:center; max-height:none;
}

/* Mobile: ใช้สี่เหลี่ยมจัตุรัส */
@media (max-width:480px){
  #promotionCards .apple-card.promotion-card{ aspect-ratio:1/1; }
  .hero-slide.center{ width:auto; height:auto; flex:0 0 auto; aspect-ratio:1/1; }
}

/* =================================================================== */
/* CATCH-ALL: ทำให้โปสเตอร์ใน #promotionCards ไม่ครอป ไม่ว่ามาร์กอัพจะเป็นอะไร */
/* =================================================================== */
#promotionCards > * {
  min-width: 500px;  /* เพิ่มขนาดเป็น 500px สำหรับ 1040x1040 */
  height: auto !important;
  aspect-ratio: 1/1 !important;  /* เปลี่ยนเป็นสี่เหลี่ยมจัตุรัส 1040x1040 */
  border-radius: 18px;
  overflow: hidden;
}

/* ซ่อนหัวการ์ด (ถ้ามี) และเคารพรูปเต็มใบ */
#promotionCards .card-header { display: none !important; }
#promotionCards .card-image { padding: 0 !important; }

/* รูปโปสเตอร์ - ปรับสำหรับ 1040x1040 (ปิดใช้งานชั่วคราว) */
/*
#promotionCards img {
  display: block;
  width: 50% !important;
  height: 50% !important;        
  max-height: none !important;
  object-fit: cover !important;   
  object-position: center !important;
}
*/

/* CATCH-ALL: โปรโมชั่นแสดงเต็มใบไม่ครอป */
#promotionCards > * { min-width:500px; height:auto!important; aspect-ratio:1/1!important; border-radius:18px; overflow:hidden; }
#promotionCards .card-header{ display:none!important; }
#promotionCards .card-image{ position:absolute; inset:0; padding:0!important; }
#promotionCards .card-image>img,
#promotionCards img{ width:100%!important; height:100%!important; object-fit:contain!important; object-position:center!important; max-height:none!important; }
#promotionCards .card-image img{ transform:none!important; }

/* เคสพิเศษ: การ์ดที่ต้องการเต็มกรอบยอมครอป */
#promotionCards .promotion-card.cover .card-image>img{ object-fit:cover!important; }

@media (max-width:768px){ #promotionCards > *{ min-width:350px; } }
@media (max-width:480px){ #promotionCards > *{ min-width:280px; } }

/* ปิดเอฟเฟกต์ซูมเฉพาะโปรฯ */
#promotionCards .card-image img { transform: none !important; }

/* Responsive: ปรับขนาดการ์ดโปรโมชันสำหรับหน้าจอเล็ก */
@media (max-width: 768px) {
  #promotionCards > * {
    min-width: 350px;  /* ปรับให้เหมาะกับขนาดใหม่ */
    aspect-ratio: 1/1 !important;  /* คงสี่เหลี่ยมจัตุรัส */
  }
}

@media (max-width: 480px) {
  #promotionCards > * {
    min-width: 280px;  /* ขนาดสำหรับมือถือเล็ก */
    aspect-ratio: 1/1 !important;  /* คงสี่เหลี่ยมจัตุรัส */
  }
}

/* Promotion Carousel Section Styling */
.promotion-carousel-section {
    margin-top: 30px;  /* ขยับลงจากด้านบน */
    margin-bottom: 10px;  /* เพิ่มระยะห่างด้านล่าง */
    padding: 10px 0;  /* เพิ่ม padding ด้านบนล่าง */
    position: relative;
    overflow: hidden;
}

/* Auto-slide progress indicator */
.promotion-carousel-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), #00d4aa);
    transition: width 3s linear;
    z-index: 10;
}

/* Partner Logos Section */
.footer-partners {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.partners-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.partner-logo {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: brightness(1.1);
}

.partner-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .partner-logos {
        gap: 20px;
    }
    
    .partner-logo {
        height: 40px;
        max-width: 100px;
        padding: 8px;
    }
    
    .partners-title {
        font-size: 16px;
    }
}
}

.promotion-carousel-section.auto-sliding::after {
    width: 100%;
}

.promotion-carousel-section:hover::after {
    animation-play-state: paused;
}

/* Enhanced carousel container for smoother transitions */
.promotion-carousel-section .cards-container {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover effect on promotion section */
.promotion-carousel-section:hover .cards-container {
    transform-style: preserve-3d;
}

.promotion-carousel-section:hover .apple-card {
    transition: all 0.3s ease;
}

.promotion-carousel-section:hover .apple-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(174, 174, 178, 0.2);
}

/* Auto-slide pause indicator */
.promotion-carousel-section.paused {
    opacity: 0.95;
}

.promotion-carousel-section.paused .carousel-btn {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 30px rgba(174, 174, 178, 0.3);
}

/* ปรับให้เหมาะกับหน้าจอเล็ก */
@media (max-width: 768px) {
    .promotion-carousel-section {
        margin-top: 60px;  /* ลด margin สำหรับหน้าจอเล็ก */
        margin-bottom: 40px;
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .promotion-carousel-section {
        margin-top: 30px;  /* ลด margin สำหรับมือถือ */
        margin-bottom: 30px;
        padding: 20px 0;
    }
}

/* Loading placeholder styles */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    width: 100%;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
