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

body {
    font-family: 'Poppins', sans-serif; /* Updated Font */
    line-height: 1.6;
    color: #4A4A4A; /* Slightly darker gray */
    background-color: #FFFFFF; /* White background */
}

.container {
    width: 90%;
    max-width: 1140px; /* Common container width */
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #007BFF; /* Standard link blue */
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.section-padding {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 2.2rem; /* Slightly smaller */
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-header p {
    color: #6c757d; /* Bootstrap secondary color */
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: #007BFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    color: white;
}

.btn-secondary {
    background-color: #f8f9fa; /* Light gray */
    color: #333;
    border: 1px solid #dee2e6; /* Subtle border */
}

.btn-secondary:hover {
    background-color: #e2e6ea;
    color: #333;
}


/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0; /* Reduced padding */
}

/* Remove Breadcrumbs - Handled in HTML */
.breadcrumbs {
    display: none; 
}

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

.logo a img {
    height: 45px; /* Adjusted logo height */
    width: auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px; /* Increased spacing */
}

.nav-links li a {
    font-weight: 500;
    color: #4A4A4A;
    padding: 15px 0; /* Vertical padding for larger click area */
    position: relative;
    font-size: 0.95rem;
}

.nav-links li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #007BFF;
    bottom: 10px; /* Adjusted position */
    left: 0;
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: #007BFF;
}

.nav-links li a:hover:after, .nav-links li a.active:after {
    width: 100%;
}

.nav-links li a.active {
    color: #007BFF;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none; /* Hide by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Hero Section */
.hero-section {
    /* background-color: #f8f9fa; */ /* Original light background */
    background-color: #0d6efd; /* Changed to blue background like screenshot */
    padding: 80px 0; /* Increased padding */
    color: #fff; /* Added white text color for contrast */
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8rem; /* Larger heading */
    font-weight: 600;
    /* color: #333; */ /* Original dark color */
    color: #fff; /* Changed to white */
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    /* color: #6c757d; */ /* Original gray color */
    color: rgba(255, 255, 255, 0.9); /* Changed to light white */
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}

/* Keep primary button blue, make secondary white/transparent */
.hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: #fff;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 500px; /* Control image size */
    border-radius: 8px;
}

/* Stats Section */
.stats {
    padding: 50px 0;
    background-color: #fff; /* White background */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #007BFF;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    color: #6c757d;
}

/* Kategori Produk */
.categories {
    background-color: #f8f9fa; /* Light background */
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Always 4 columns on desktop */
    gap: 25px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 25px; /* Adjusted padding */
    text-align: center;
    /* border: 1px solid #e9ecef; */ /* Removed border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07); /* Added default subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flexbox for alignment */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* Ensure consistent height */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Slightly stronger hover shadow */
    /* border-color: #007BFF; */ /* Removed border hover effect */
}

.category-icon {
    font-size: 2.8rem;
    color: #007BFF;
    margin-bottom: 20px;
    line-height: 1; /* Ensure icon aligns well */
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.category-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Produk Unggulan */
.featured-products {
    padding: 60px 0;
    background-color: #fff;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    /* border: 1px solid #e9ecef; */ /* Removed border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Adjusted default shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); /* Adjusted hover shadow */
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px; /* Positioned left based on screenshot */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700; /* Bold */
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.bestseller {
    background-color: #ffc107; /* Yellow */
    color: #333;
}

.product-badge.new {
    background-color: #17a2b8; /* Info blue */
    color: white;
}

.product-badge.hot {
    background-color: #dc3545; /* Red */
    color: white;
}

/* Remove .free badge style if not used */

.product-image {
    height: 200px;
    overflow: hidden;
    background-color: #eee; /* Placeholder background */
}

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

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

.product-info {
    padding: 20px;
    flex-grow: 1; /* Allow info to grow */
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.product-info h3.product-title {
    font-size: 1.15rem; /* Slightly larger title */
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1; /* Push elements below down */
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.stars {
    color: #ffc107; /* Yellow stars */
    margin-right: 8px;
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.85rem;
    color: #6c757d;
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline; /* Align baselines */
    flex-wrap: wrap;
    gap: 8px; /* Gap between price elements */
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.old-price {
    font-size: 0.95rem;
    color: #6c757d;
    text-decoration: line-through;
}

.discount {
    background-color: #28a745; /* Green discount */
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-description {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1; /* Push button down */
}

/* Remove .product-meta if not used */

.product-actions {
    margin-top: auto; /* Push button to bottom */
}

.product-actions .btn-primary {
    width: 100%; /* Make button full width */
    padding: 12px 20px; /* Larger button */
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Remove Multi-Affiliate Block - Handled in HTML */
.multi-affiliate-block {
    display: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, #fd7e14, #ffc107); /* Orange gradient */
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.countdown {
    margin-bottom: 40px;
}

.countdown p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.timer-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 80px;
}

.timer-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.1;
}

.timer-item .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 5px;
}

.cta-content .btn-primary {
    background-color: #fff; /* White button */
    color: #fd7e14; /* Orange text */
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-content .btn-primary:hover {
    background-color: #f8f9fa;
    color: #e66a00;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-content p {
    color: #6c757d;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    border-right: none;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.newsletter-form button:hover {
    background-color: #0056b3;
}

/* Footer Styles */
footer {
    background-color: #212529; /* Dark background */
    color: #adb5bd; /* Lighter gray text */
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four columns */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff; /* White heading */
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #adb5bd;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007BFF;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #343a40; /* Darker border */
    color: #6c757d; /* Medium gray */
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image {
        text-align: center;
        margin-top: 30px;
    }
    .hero-image img {
        max-width: 400px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    .nav-links {
        display: none; /* Hide nav links */
        flex-direction: column;
        position: absolute;
        top: 65px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex; /* Show when active */
    }
    .nav-links li {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }
    .nav-links li a {
        padding: 10px 20px;
        display: block;
    }
    .nav-links li a:after {
        display: none; /* Remove underline effect */
    }
    .mobile-menu-toggle {
        display: block; /* Show hamburger */
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-col ul {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .timer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .timer-item {
        width: 80%;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .newsletter-form input[type="email"],
    .newsletter-form button {
        border-radius: 5px;
        border-right: 1px solid #ced4da; /* Add border back */
    }
}

/* Add styles for popup if needed */
/* Add styles for affiliate block if needed */

