/* 1. Global Reset - Essential for Browser Consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #f4f4f4; /* Light gray background to see the container */
    margin: 0;
    display: flex;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* 2. Main Container */
.phone-container {
    width: 100%;
    max-width: 414px;
    background-color: white;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling on mobile */
}

/* 3. Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { 
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.menu-btn {
    width: 30px;
    height: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.menu-btn span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* Add this to your CSS file */
.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.nav-overlay {
    position: fixed;
    top: 0;
    /* Change left: 0 to these lines to keep it centered and constrained */
    left: 50%;
    transform: translate(-50%, -100%); 
    width: 100%;
    max-width: 414px; /* Matches your phone-container */
    height: 100%;
    background: white;
    z-index: 999;
    transition: transform 0.5s ease;
    padding-top: 100px;
}

/* Update the open class to handle the centering */
.nav-overlay.open { 
    transform: translate(-50%, 0); 
}

.nav-list {
    list-style: none;
}

.nav-item {
    border-bottom: 1px solid #eee;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    font-weight: bold;
    font-size: 18px;
}

/* The container that holds the slider */
.slider-window {
    width: 100%;
    /* This ensures the height is always perfectly proportional to the width */
    /* If your image is taller, change 4 to a higher number like 3 / 4.5 */
    aspect-ratio: 3 / 4; 
    overflow: hidden;
    background-color: #000; /* Fallback color */
}

.slider-track {
    display: flex;
    width: 300%; /* 3 images x 100% */
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    /* This forces the image to stretch/fill every pixel of the container */
    background-size: 100% 100%; 
    background-position: center;
    background-repeat: no-repeat;
}

/* Fix for Safari (iOS) which sometimes ignores aspect-ratio on old versions */
@supports not (aspect-ratio: 3 / 4) {
    .slider-window {
        height: 550px; 
    }
}

.hero-section, .premium, .bottom-product-image, .about-us, .down-us, .sales, .footer {
    width: 100%;
    line-height: 0; /* Removes the 4px gap under images */
}

.hero-section img, .premium img, .bottom-product-image img, .about-us img, .down-us img, .sales img, .footer img {
    width: 100%;
    height: auto;
    display: block;
}
	

/* 5. Typography & Accents */
.suggestion-text {
    padding: 30px 10px; 
    text-align: center;
}

.suggestion-text h2 {
    font-family: "Londrina Solid", sans-serif;
    color: #6a0dad;
    font-size: 32px;
    margin: 0;
	text-align: center;
}

.contents-title {
    text-align: center;
    color: #FF7A00; 
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    font-size: 42px;
    padding: 40px 0 20px 0;
}

/* 6. Video Grid */
.video-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
}

.video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9 / 16;
}

.tiktok-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-container {
    width: 100%;
    /* This calculation (1080/424) matches your original image size exactly */
    aspect-ratio: 1080 / 424; 
    overflow: hidden;
    position: relative;
    /* Remove any large margins that might be adding extra empty space */
    margin: 0; 
    /* Essential: prevents images from having a tiny 4px gap at the bottom */
    line-height: 0; 
}

.carousel-track {
    display: flex;
    width: 400%; /* Matches your 4 slides in HTML */
    height: 100%;
    animation: slide-animation 12s infinite ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    /* This forces the image to fill the exact 1080x424 container area */
    object-fit: cover; 
    display: block;
}

@keyframes slide-animation {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

/* 8. Contact Section (Merged & Cleaned) */
.contact-section {
    padding: 40px 15px;
    background: #fff;
}

.contact-title {
    color: #FF7A00;
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    text-align: center;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.icon-box {
    font-size: 20px;
    color: #000;
    min-width: 25px;
}

.action-text {
    font-size: 14px;
    color: #FF5C5C;
    font-weight: 700;
}

.label {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
}

.info-text {
    font-size: 10px;
    color: #333;
    word-break: break-word;
}

/* 9. Map & Footer Area */
.mobile-container {
    padding: 20px;
}

.map-card {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* New Overlay Logic */
/* Ensure the container doesn't have extra padding */
.sales {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden; /* Clips any sub-pixel overflow */
    background-color: white; /* Matches your container background */
}

/* Ensure the image is treated as a block and removes the baseline gap */
.sales .main-bg {
    width: 100.1%; /* Slightly over-scale to prevent sub-pixel gaps */
    height: auto;
    display: block;
    margin-bottom: -110px; /* Forces overlap to hide the background color */
}

.buy-btn-overlay {
    position: absolute;
    bottom: 16%;   /* Adjusts vertical position */
    right: 8%;    /* Adjusts horizontal position */
    width: 45%;    /* Adjusts size of the button */
    z-index: 10;
}

.buy-btn-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

.buy-btn-overlay:hover img {
    transform: scale(1.05);
}
/* 10. Responsive Adjustments */
@media (max-width: 400px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack on very small screens */
    }
    .contents-title {
        font-size: 32px;
    }
	.content-section {
		text-align: center;
		padding-bottom: 10px;
	}
}