/* Brand Colors as accents only */
:root {
    --peach-muda: #ffe6d7;
    --coklat-tua: #6c321f;
    --merah-cerah: #c02422;
    --hijau-cerah: #8fc450;
    --putih-pucat: #f9f4f0;

    --black: #111111;
    --white: #fff3eb;
    --gray-base: #6b7280;
    /* neutral gray for body text */
    --gray-light: #e5e7eb;
    --gray-lighter: #f1e2d8;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.12);

    --font-family: 'Poppins', sans-serif;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family);
    font-size: 0.8rem;
    color: var(--coklat-tua);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Dark mode colors (toggle theme) */
body.dark {
    --white: #111;
    --black: #fff;
    --gray-base: #cbd5e1;
    --gray-light: #273449;
    --gray-lighter: #1a202e;
    background-color: var(--black);
    color: var(--gray-base);
}

/* Reset and base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: var(--white);
    color: var(--gray-base);
    font-size: 12px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--merah-cerah);
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--hijau-cerah);
    outline: none;
}

/* Container */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow-light);
    z-index: 10000;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark header {
    background: var(--gray-lighter);
    box-shadow: 0 2px 10px var(--shadow-medium);
}

/* Logo - simple with brand colors accent */
.logo {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.04em;
    user-select: none;
    color: var(--coklat-tua);
    display: flex;
    align-items: center;
    line-height: 1;
    cursor: default;
}

.logo-e {
    color: var(--merah-cerah);
    font-weight: 900;
    position: relative;
    font-size: 3rem;
}

.logo-hat {
    width: 42px;
    height: 22px;
    margin-left: 8px;
    background: var(--coklat-tua);
    border-radius: 12px 12px 0 0;
    clip-path: polygon(0% 100%, 10% 0%, 90% 0%, 100% 100%);
    box-shadow:
        inset 0 4px 2px rgba(255 255 255 / 0.15),
        0 2px 6px rgba(0 0 0 / 0.1);
}

/* Navigation */
nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

nav button,
nav a {
    background: none;
    border: none;
    color: var(--gray-base);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

nav button:hover,
nav a:hover,
nav button:focus,
nav a:focus {
    color: var(--merah-cerah);
    outline-offset: 4px;
    outline: 3px solid var(--merah-cerah);
    outline-radius: 6px;
}

nav button[aria-current="true"] {
    color: var(--merah-cerah);
    font-weight: 700;
}

nav button[aria-current="true"]::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--merah-cerah);
    border-radius: 2px;
}

/* Theme toggle button */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-base);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

#theme-toggle:hover,
#theme-toggle:focus {
    color: var(--merah-cerah);
    outline-offset: 4px;
    outline: 3px solid var(--merah-cerah);
    outline-radius: 6px;
}

/* Main content */
main {
    flex-grow: 1;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

/* Hero Section */
.hero {
    margin-bottom: 4rem;
    text-align: center;
}

.hero h1 {
    font-weight: 800;
    font-size: 4rem;
    margin: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
    user-select: none;
    color: var(--coklat-tua);
    transition: color 0.3s ease;
}

body.dark .hero h1 {
    color: var(--gray-base);
}

.hero .highlight {
    color: var(--merah-cerah);
}

.hero p {
    max-width: 500px;
    margin: 1rem auto 2rem;
    color: var(--gray-base);
    font-weight: 500;
    font-size: 1.25rem;
}

body.dark .hero p {
    color: var(--gray-lighter);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    padding: 1rem 3rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-primary svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--merah-cerah);
    color: var(--white);
    transform: scale(1.07);
    outline: none;
    box-shadow: 0 8px 30px rgba(192, 36, 34, 0.7);
}

/* Section Titles */
section h2 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--coklat-tua);
    user-select: none;
}

body.dark section h2 {
    color: var(--gray-lighter);
}
#produk-unggulan {
  background-color: #fffdf8;
  padding: 2rem;
  text-align: center;
}

.kue-kacang-info {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.kue-kacang-info li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.produk-gallery,
.hampers-preview {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.produk-gallery img,
.hampers-preview img {
  width: 200px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.produk-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.produk-gallery img {
  width: 180px;
  height: 240px; /* bisa sesuaikan, pastikan seragam */
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Content paragraphs */
section p {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-base);
    margin-top: 0;
    margin-bottom: 1.2rem;
    user-select: text;
}

body.dark section p {
    color: var(--gray-light);
}

/* Cards Grid */
#products .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.7rem;
}

.product-card {
    background: var(--gray-lighter);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px var(--shadow-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
    min-width: 0;
    width: 100%;
}

body.dark .product-card {
    background: var(--gray-lighter);
    border-color: rgba(255 255 255 / 0.12);
    box-shadow: none;
}

.product-card:hover,
.product-card:focus-within {
    box-shadow: 0 10px 38px var(--shadow-medium);
    outline: none;
    border-color: var(--merah-cerah);
    transform: translateY(-5px);
}

.product-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    border-bottom: 4px solid var(--hijau-cerah);
    transition: filter 0.4s ease;
}

body.dark .product-image {
    filter: brightness(0.85);
}

.product-content {
    padding: 1.5rem 1.7rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 0.7rem 0;
    color: var(--coklat-tua);
}

body.dark .product-title {
    color: var(--white);
}

.product-desc {
    font-size: 1rem;
    color: var(--gray-base);
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

body.dark .product-desc {
    color: var(--gray-light);
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--merah-cerah);
    text-align: right;
    user-select: text;
}

/* Contact page */
#contact-page {
    max-width: 700px;
    margin: 4rem auto 5rem;
    padding: 3rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 36px var(--shadow-light);
    background: var(--gray-lighter);
    display: none;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

/* Dropdown Tujuan Pesan */
#contact-page select#purpose {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

/* Tujuan Pesan Dropdown */
#purpose {
    padding: 0.6rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 400px;
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 1rem 0;
}
.testimonial-card {
    background-color: #fffaf2;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 0.5rem;
}
.testimonial-author {
    font-weight: bold;
    text-align: right;
    color: #c97d60;
}


body.dark #contact-page {
    background: var(--gray-lighter);
    box-shadow: 0 10px 40px var(--shadow-medium);
}

#contact-page.active {
    display: flex;
}

#contact-page h2 {
    color: var(--coklat-tua);
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2.75rem;
    user-select: none;
}

body.dark #contact-page h2 {
    color: var(--white);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.9rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-base);
}

body.dark form {
    color: var(--gray-light);
}

label {
    font-weight: 600;
    user-select: text;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 0.9rem 1.2rem;
    border-radius: 0.6rem;
    border: 2px solid var(--gray-light);
    font-family: var(--font-family);
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

body.dark input[type="text"],
body.dark input[type="email"],
body.dark textarea {
    background: var(--gray-lighter);
    color: var(--white);
    border-color: rgba(255 255 255 / 0.3);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--merah-cerah);
    box-shadow: 0 0 18px rgba(192 36 34 / 0.6);
    background: var(--white);
    color: var(--black);
}

body.dark input[type="text"]:focus,
body.dark input[type="email"]:focus,
body.dark textarea:focus {
    background: var(--gray-lighter);
    color: var(--white);
}

textarea {
    min-height: 140px;
    line-height: 1.45;
}

button[type="submit"] {
    background: var(--black);
    color: var(--white);
    padding: 1.2rem 3.2rem;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    user-select: none;
    align-self: flex-start;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
    background: var(--merah-cerah);
    box-shadow: 0 8px 28px rgba(192 36 34 / 0.75);
    outline: none;
    transform: scale(1.07);
}

/* Footer */
footer {
    background: var(--gray-lighter);
    padding: 3rem 2rem 4rem;
    color: var(--gray-base);
    user-select: none;
    border-top: 1px solid var(--gray-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark footer {
    background: var(--gray-lighter);
    color: var(--gray-light);
    border-color: rgba(255 255 255 / 0.12);
}

.social-icon i {
    font-size: 24px;
    /* atau pakai rem: 1.5rem */
    color: #333;
    margin: 0 10px;
    transition: color 0.3s;
}

footer .container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-width: 180px;
}

footer .footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--coklat-tua);
    user-select: none;
}

body.dark footer .footer-logo {
    color: var(--white);
}

footer .footer-logo .logo-e {
    font-weight: 900;
    font-size: 2rem;
    color: var(--merah-cerah);
    position: relative;
    line-height: 1;
}

footer .footer-logo .logo-e::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--merah-cerah);
    border-radius: 3px;
}

footer .footer-logo .logo-nase {
    margin-left: 7px;
}

footer .footer-hat {
    width: 30px;
    height: 14px;
    background: var(--coklat-tua);
    border-radius: 8px 8px 0 0;
    clip-path: polygon(0% 100%, 10% 0%, 90% 0%, 100% 100%);
    box-shadow:
        inset 0 3px 1.5px rgba(255 255 255 / 0.15),
        0 1px 3px rgba(0 0 0 / 0.1);
    margin-left: 7px;
    margin-bottom: 3px;
}

footer .footer-slogan {
    font-style: italic;
    font-weight: 500;
    color: var(--gray-base);
    font-size: 1rem;
    user-select: text;
}

body.dark footer .footer-slogan {
    color: var(--gray-light);
}

footer nav.footer-menu {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    font-size: 1rem;
}

footer nav.footer-menu a {
    color: var(--gray-base);
    transition: color 0.3s ease;
    user-select: none;
}

footer nav.footer-menu a:hover,
footer nav.footer-menu a:focus {
    color: var(--merah-cerah);
    outline: none;
}

body.dark footer nav.footer-menu a {
    color: var(--gray-light);
}

footer .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-weight: 500;
    color: var(--gray-base);
    min-width: 200px;
    user-select: text;
}

footer .footer-contact a {
    color: var(--gray-base);
    word-break: break-word;
}

footer .footer-contact a:hover,
footer .footer-contact a:focus {
    color: var(--merah-cerah);
    outline: none;
}

body.dark footer .footer-contact,
body.dark footer .footer-contact a {
    color: var(--gray-light);
}

/* Social icons */
footer .footer-social {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.social-icon {
    width: 28px;
    height: 28px;
    stroke: var(--coklat-tua);
    fill: none;
    stroke-width: 1.75;
    cursor: pointer;
    transition: stroke 0.3s ease, fill 0.3s ease;
    user-select: none;
}

body.dark .social-icon {
    stroke: var(--gray-light);
}

.social-icon:hover,
.social-icon:focus {
    stroke: var(--merah-cerah);
    outline: none;
    fill: var(--merah-cerah);
}

/* Accessibility */
button:focus-visible,
a:focus-visible {
    outline-offset: 3px;
    outline: 3px solid var(--merah-cerah);
    outline-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0 1rem;
    }

    nav {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    main {
        width: 95%;
        padding: 3rem 1rem 3rem;
    }

    #products .product-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }

    @media (max-width: 1024px) {
        #products .product-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 640px) {
        #products .product-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    footer nav.footer-menu {
        gap: 1rem;
        font-size: 0.95rem;
    }

    footer .footer-contact {
        min-width: auto;
    }
}

/* Tambahan CSS Responsif */

/* 1. Grid Produk Responsif: 6, 4, 3, 2 kolom */
#products .product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    #products .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    #products .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    #products .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2. Galeri Gambar Seragam dan Responsif */
.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid img {
        height: 140px;
    }
}

/* 3. Hero Section Responsif */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}

/* 4. Flex-wrap universal */
.container,
nav,
footer .container {
    flex-wrap: wrap;
}

/* 5. Cegah overflow */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}