/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Poppins:wght@300;400;500;600&display=swap');

/* Variabel Warna SuperKayu */
:root {
    --bg-cream: #FFFCF7; 
    --text-dark: #333333; 
    --text-brown: #5C4033; 
    --primary-green: #0F753C; 
    --primary-green-hover: #0a5229;
    --footer-brown: #8A674B; 
    --footer-text: #FFFFFF;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-brown);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header & Navigasi */
header {
    background-color: #FFFFFF;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px; 
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--text-brown);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-brown);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Sembunyikan Tombol Menu di Desktop */
.menu-toggle {
    display: none; 
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 50px;
}

/* Section Hero (Beranda) */
.hero {
    background: linear-gradient(rgba(87, 62, 37, 0.7), rgba(87, 62, 37, 0.7)), url('../assets/home.png') center/cover no-repeat;
    height: 350px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Button Global */
.btn-primary {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(15, 117, 60, 0.3);
}

/* Card Produk (Beranda) */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
}

.product-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 220px; 
    object-fit: cover; 
}

.card h3 {
    margin: 15px 0;
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

/* Footer Aktif */
footer {
    background-color: var(--footer-brown);
    color: var(--footer-text);
    padding: 40px 50px 20px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-right {
    flex: 1;
    min-width: 300px;
}

.footer-right h4 {
    color: white;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.footer-right p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 18px; 
    align-items: center; 
}

.social-icons img {
    height: 32px; 
    width: auto; 
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icons img[alt="TikTok"] {
    transform: scale(1.25); 
}

.social-icons img[alt="Instagram"] {
    transform: scale(1.15); 
}

.social-icons a:hover img {
    transform: translateY(-5px);
}

.social-icons a:hover img[alt="TikTok"] {
    transform: scale(1.25) translateY(-5px);
}

.social-icons a:hover img[alt="Instagram"] {
    transform: scale(1.15) translateY(-5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 14px;
}

/* ===============================
   CSS HALAMAN TENTANG KAMI
   =============================== */
.about-container {
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    max-width: 900px;
    margin: 0 auto;
}
.about-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}
.about-quote {
    font-size: 32px;
    text-align: center;
    font-style: italic;
    color: var(--text-brown);
    margin-bottom: 30px;
}
.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.about-list {
    margin-left: 20px;
    margin-bottom: 20px;
}
.about-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}
.about-list strong {
    color: var(--text-brown);
}

/* ===============================
   CSS HALAMAN KONTAK (INTERAKTIF)
   =============================== */
.contact-container {
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    max-width: 900px;
    margin: 0 auto;
}
.contact-subtitle {
    font-size: 28px;
    color: var(--text-brown);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}
.contact-desc {
    margin-bottom: 30px;
    line-height: 1.6;
}
.contact-info-group {
    margin-bottom: 10px;
}
.contact-info-group h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.contact-interactive {
    display: flex;
    align-items: center; 
    gap: 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    padding: 12px 15px;
    border-radius: 10px; 
    margin-left: -15px; 
}
.contact-interactive:hover {
    background-color: rgba(138, 103, 75, 0.08); 
    transform: translateX(10px); 
    color: var(--text-brown); 
}
.contact-interactive img {
    width: 26px; 
    height: 26px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.contact-interactive:hover img {
    transform: scale(1.2) rotate(8deg); 
}
.contact-item-text {
    font-size: 15px;
    line-height: 1.5;
}

/* ===============================
   CSS HALAMAN PRODUK & PAGINASI
   =============================== */
.product-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.product-list-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.product-list-card:hover {
    transform: translateY(-5px);
}
.product-list-img {
    width: 300px;
    height: 220px;
    object-fit: cover;
}
.product-list-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.product-list-info h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
}
.product-list-info p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.product-list-info .btn-primary {
    align-self: center;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination button {
    background-color: #E0E0E0;
    color: var(--text-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}
.pagination button.active {
    background-color: var(--text-brown);
    color: white;
}
.pagination button:hover:not(.active) {
    background-color: #d1d1d1;
}

/* ===============================
   CSS HALAMAN DETAIL PRODUK
   =============================== */
.detail-page-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif; 
    color: var(--text-dark); 
    font-weight: 600;
}
.detail-container {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    max-width: 800px;
    margin: 0 auto;
}
.detail-img-container {
    text-align: center;
    margin-bottom: 30px;
}
.detail-img-container img {
    width: 300px; 
    height: 220px; 
    object-fit: cover;
    border-radius: 12px;
}
.detail-section {
    margin-bottom: 25px;
}
.detail-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.detail-section p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}
.detail-action {
    text-align: center;
    margin-top: 40px;
}
.detail-action .btn-primary {
    padding: 12px 40px;
    font-size: 16px;
}

/* ===============================
   RESPONSIVE MOBILE (Hamburger Menu)
   =============================== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px; 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center; 
    }
    
    .logo img {
        height: 35px; 
    }

    /* CSS Pure Hamburger Button */
    .menu-toggle {
        display: flex; 
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001; 
    }

    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: #333; 
        border-radius: 2px;
        transition: all 0.3s ease; 
    }

    /* Dropdown Navigation */
    nav {
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98); 
        padding: 10px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); 
        border-top: 1px solid #eee;
    }

    nav.active {
        display: flex; 
    }

    nav a {
        width: 100%;
        text-align: center; 
        padding: 15px 0;
        margin: 0;
        border-bottom: 1px solid #f9f9f9; 
    }

    nav a:last-child {
        border-bottom: none; 
    }

    nav a::after {
        display: none !important; 
    }

    main {
        padding: 20px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .footer-container {
        flex-direction: column;
    }
    .product-list-card {
        flex-direction: column;
    }
    .product-list-img {
        width: 100%;
        height: 200px;
    }
}