/* Reset dan Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Typography */

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

/* Header */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: #8B4513;
    font-weight: 700;
    margin: 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #8B4513;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B4513;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-icons button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.nav-icons button:hover {
    background: rgba(139, 69, 19, 0.1);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */

.hero {
    margin-top: 80px;
    min-height: 90vh;
    background: linear-gradient(135deg, #f8f4f0 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Buttons */

.cta-btn,
.buy-btn,
.promo-btn,
.cta-btn-large {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.cta-btn:hover,
.buy-btn:hover,
.promo-btn:hover,
.cta-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.cta-btn-large {
    font-size: 1.2rem;
    padding: 1.5rem 3rem;
}

/* Section Headers */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Catalog Section */

.catalog {
    padding: 6rem 0;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.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-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF6B35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.discount {
    background: #E74C3C;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B4513;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.buy-btn {
    width: 100%;
    margin: 0;
}

/* Materials Section */

.materials {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f4f0 0%, #ffffff 100%);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.material-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.material-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.material-card p {
    color: #666;
    line-height: 1.6;
}

/* Promo Banner */

.promo-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    text-align: center;
}

.promo-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.promo-btn {
    background: white;
    color: #8B4513;
}

.promo-btn:hover {
    background: #f0f0f0;
}

/* Testimonials */

.testimonials {
    padding: 6rem 0;
    background: #fff;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    text-align: center;
    padding: 2rem;
    background: #f8f4f0;
    border-radius: 15px;
    margin: 0 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
}

.rating {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.customer-info strong {
    color: #333;
    font-size: 1.1rem;
}

.customer-info span {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-dot.active {
    background: #8B4513;
}

/* Final CTA */

.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f4f0 0%, #ffffff 100%);
    text-align: center;
}

.cta-content h2 {
    color: #333;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */

.footer {
    background: #222;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: #8B4513;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8B4513;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #8B4513;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #A0522D;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Responsive Design */

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    .nav-menu ul li {
        border-bottom: 1px solid #eee;
    }
    .nav-menu ul li:last-child {
        border-bottom: none;
    }
    .nav-menu a {
        display: block;
        padding: 1rem 0;
    }
    .hero {
        margin-top: 70px;
        min-height: 80vh;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .container {
        padding: 0 15px;
    }
    .section-header,
    .cta-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .cta-btn-large {
        font-size: 1rem;
        padding: 1.2rem 2rem;
    }
    .promo-content h2 {
        font-size: 1.5rem;
    }
}

/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}

/* Loading animations */

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

.product-card,
.material-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Additional hover effects */

.logo h1:hover {
    color: #A0522D;
    transition: color 0.3s ease;
}

.nav-icons button:active {
    transform: scale(0.95);
}

.buy-btn:active,
.cta-btn:active,
.promo-btn:active,
.cta-btn-large:active {
    transform: translateY(0);
}

/* Search and Cart functionality (placeholder styles) */

.search-overlay,
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.search-modal,
.cart-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
}