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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Top Navigation */
.top-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-center {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: #4a90e2;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #4a90e2;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-time {
    color: #888;
    font-size: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid #e0e0e0;
}

.search-input {
    border: none;
    background: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
    width: 150px;
}

.search-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
}

.login-btn, .join-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.login-btn {
    background-color: transparent;
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.login-btn:hover {
    background-color: #4a90e2;
    color: white;
}

.join-btn {
    background: linear-gradient(135deg, #ff9500, #ff6b00);
    color: white;
    border: none;
}

.join-btn:hover {
    background: linear-gradient(135deg, #ff6b00, #ff4500);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Remove Simplified Hero Image Style */
/*
.simplified-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
*/

/* Restore styles for hero content and product showcase */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 400px; /* Ensure enough height */
}

.hero-text {
    flex: 1;
    max-width: 500px;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.bk8-logo {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.rewards-text {
    display: block;
    font-size: 36px;
    color: #ffffff;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-tagline {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #e0e7ff;
}

.hero-description {
    font-size: 18px;
    color: #c7d2fe;
    margin-bottom: 5px;
}

.hero-products {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Restore original styles */
}

.product-showcase {
    position: relative;
    width: 400px; /* Restore original size */
    height: 300px; /* Restore original size */
    margin: 0 auto; /* Center the showcase */
}

.phone-device {
    position: absolute;
    top: 20px; /* Keep position, now z-index 1 */
    left: 50px; /* Keep position, now z-index 1 */
    transform: rotate(-15deg);
    z-index: 1; /* Phone in the back */
}

.watch-box {
    position: absolute;
    top: 0px; /* Adjusted position to reveal it */
    right: 50px; /* Adjusted position */
    z-index: 4; /* Watch level 2 */
    transform: rotate(15deg);
}

.earbuds {
    position: absolute;
    top: 0px; /* Adjusted position */
    left: 40px; /* Adjusted position */
    transform: rotate(-15deg);
    z-index: 3; /* Earbuds level 3 */
}

.tv-screen {
    position: absolute;
    bottom: 0px; /* Adjusted position */
    right: 0px; /* Adjusted position */
    z-index: 3; /* TV in the front */
    transform: rotate(15deg);
}

.product-showcase img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

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

/* Category Navigation */
.category-nav {
    background-color: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
    /* Remove margin-top if it caused overlap */
    margin-top: 0; 
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.category-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 50px 0 50px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-width: 120px;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item.active .category-icon {
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-icon img {
    width: 40px;
    height: 40px;
}

.category-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.category-sublabel {
    font-size: 14px;
    color: #666;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-arrow:hover {
    background-color: #4a90e2;
    color: white;
}

.nav-arrow-right {
    right: 10px;
}

/* New Arrivals Section */
/* Removed .new-arrivals as it's replaced by .product-section */

.product-section {
    background-color: #ffffff; /* Ensure background matches */
    padding: 60px 0; /* Add vertical padding */
    /* Ensure no full-width properties here */
}

.container {
    max-width: 1400px; /* Ensure content max width */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add horizontal padding */
    position: relative; /* Add position relative for absolute positioning of arrows */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.more-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.more-link:hover {
    text-decoration: underline;
}

/* Removed: .products-carousel styles */
/*
.products-carousel {
    position: relative;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.products-carousel::-webkit-scrollbar {
    display: none;
}
*/

/* Added Swiper container style */
.swiper {
    width: 100%; /* Swiper takes the full width of its container */
    /* padding: 20px 0; Removed or adjusted padding here if arrows are outside */
    /* Keep padding if arrows are inside but need space */
    padding: 0;
}

/* Removed: .products-track styles */
/*
.products-track {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}
*/

.product-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    /* min-width: 280px; Removed min-width, Swiper controls slide width */
    /* width: 350px; Removed fixed width, Swiper controls slide width based on slidesPerView */
    flex-shrink: 0; /* Keep flex-shrink */
    position: relative; /* Keep position relative */
    display: flex; /* Keep flex display */
    flex-direction: column; /* Keep flex direction */
    height: 450px; /* Keep fixed height */
    justify-content: space-between; /* Keep space distribution */
    scroll-snap-align: center; /* Keep scroll-snap-align for potential fallback or specific effects */
}

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

/* Restore product card internal element styles */
.product-category {
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

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

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

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 50px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #ff6b00;
    margin-bottom: 20px;
}

.redeem-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff9500, #ff6b00);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redeem-btn:hover {
    background: linear-gradient(135deg, #ff6b00, #ff4500);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Added Swiper navigation styles */
.swiper-button-prev, .swiper-button-next {
    pointer-events: auto; /* Ensure pointer events are enabled */

    /* Added Swiper navigation styles - Styled to look like .nav-arrow */
    color: #4a90e2 !important; /* Set arrow color */
    width: 40px !important; /* Match .nav-arrow size */
    height: 40px !important; /* Match .nav-arrow size */
    background: #ffffff !important; /* Match .nav-arrow background */
    border: 1px solid #e0e0e0 !important; /* Match .nav-arrow border */
    border-radius: 50% !important; /* Match .nav-arrow shape */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important; /* Match .nav-arrow shadow */
    transition: all 0.3s ease !important; /* Add transition */
    z-index: 110 !important; /* Keep z-index high */

    position: absolute !important; /* Set position to absolute */
    top: 50% !important; /* Center vertically */
    transform: translateY(-50%) !important; /* Adjust for vertical centering */

}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
    /* Hover styles similar to .nav-arrow:hover */
    background-color: #4a90e2 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important; /* Slightly stronger hover shadow */
}

/* Adjust position relative to container */
.swiper-button-prev {
    left: 10px !important; /* Position 10px from the left edge of the container */
}

.swiper-button-next {
    right: 10px !important; /* Position 10px from the right edge of the container */
}

/* Added Swiper pagination styles */
.swiper-pagination-bullet {
    background: #c1c1c1; /* Default bullet color */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #4a90e2; /* Active bullet color */
    opacity: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #74b9ff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #74b9ff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    flex-wrap: wrap;
    gap: 20px;
}

.country-selector {
    color: #ecf0f1;
    font-weight: 500;
}

.footer-badges,
.payment-methods {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-badges img,
.payment-methods img {
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-badges img:hover,
.payment-methods img:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .category-items {
        padding: 0 20px ;
    }
    
    .products-track {
        gap: 20px;
    }
    
    .product-card {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-right {
        gap: 10px;
    }
    
    .date-time {
        display: none;
    }
    
    .search-input {
        width: 100px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .category-items {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .category-item {
        min-width: 100px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon img {
        width: 30px;
        height: 30px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
    
    .product-card {
        width: 350px;
    }
    
    .hero-section {
        min-height: 400px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-products {
        flex: none; /* Remove flex grow on small screens */
        width: 100%;
    }

    .product-showcase {
        width: 250px; /* Smaller width for mobile */
        height: 200px; /* Smaller height for mobile */
        margin: 20px auto; /* Center and add some margin */
    }

    .phone-device {
        top: 10px; /* Adjusted for mobile */
        left: 10px; /* Adjusted for mobile */
        transform: rotate(-10deg); /* Slightly less rotation */
        width: 45%; /* Smaller size */
    }

    .watch-box {
        top: 30px; /* Adjusted for mobile */
        right: 10px; /* Adjusted for mobile */
        transform: rotate(10deg); /* Adjusted rotation */
        width: 35%; /* Smaller size */
    }

    .earbuds {
        bottom: 10px; /* Adjusted for mobile */
        left: 80px; /* Adjusted for mobile */
        width: 30%; /* Smaller size */
    }

    .tv-screen {
        bottom: 10px; /* Adjusted for mobile */
        right: 80px; /* Adjusted for mobile */
        transform: rotate(10deg); /* Adjusted rotation */
        width: 40%; /* Smaller size */
    }

    .category-items {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-section {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .product-showcase {
        width: 300px;
        height: 200px;
    }
    
    .arrivals-container {
        padding: 0 10px;
    }
    
    .products-track {
        gap: 15px;
    }
    
    .product-card {
        width: 300px;
    }
    
    .carousel-arrow {
        display: none;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.product-showcase img {
    animation: float 6s ease-in-out infinite;
}

.product-showcase img:nth-child(2) {
    animation-delay: -2s;
}

.product-showcase img:nth-child(3) {
    animation-delay: -4s;
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Hide scrollbar for the products carousel */
.products-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.products-carousel {
    -ms-overflow-style: none;  /* Hide scrollbar for Internet Explorer and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
} 