:root {
    --primary-color: #1a1a1a; /* Hitam Pekat */
    --secondary-color: #ff0000; /* Merah Terang */
    --accent-color: #ffd700; /* Emas */
    --text-color: #f0f0f0;
    --card-bg: #2c2c2c;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 25px rgba(255, 215, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color, #1a1a1a);
    color: var(--text-color, #f0f0f0);
    line-height: 1.6;
    font-size: clamp(14px, 2vw, 18px);
}

a {
    color: var(--accent-color, #ffd700);
    text-decoration: none;
}

header {
    background-color: #111;
    padding: clamp(0.5rem, 2vw, 1rem) 5%;
    border-bottom: 2px solid var(--accent-color, #ffd700);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo a {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: bold;
    color: var(--accent-color, #ffd700);
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav .logo a:hover {
    color: var(--secondary-color, #ff0000);
}

nav ul {
    list-style: none;
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
}

nav ul li a {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-color, #f0f0f0);
    transition: all 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color, #ff0000);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--secondary-color, #ff0000);
}

main {
    padding: 2rem 5%;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url(https://source.unsplash.com/1600x600/?digital,store);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: clamp(4rem, 10vw, 6rem) 1rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
    color: var(--accent-color, #ffd700);
    text-shadow: 2px 2px 4px #000;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-button {
    background-color: var(--secondary-color, #ff0000);
    color: white;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: #cc0000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover, 0 8px 25px rgba(255, 215, 0, 0.2));
    border-color: var(--accent-color, #ffd700);
}

/* General Section Titles */
.categories h2, .product-list-section h2, .product-detail-section h2, .contact-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--accent-color, #ffd700);
    border-bottom: 2px solid var(--secondary-color, #ff0000);
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.5rem;
    position: relative;
}

.categories h2::after, .product-list-section h2::after, .product-detail-section h2::after, .contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color, #ffd700);
    transition: width 0.3s ease;
}

.categories h2:hover::after, .product-list-section h2:hover::after, .product-detail-section h2:hover::after, .contact-section h2:hover::after {
    width: 100%;
}

/* Categories Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 25vw, 250px), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
}

.category-card {
    background-color: var(--card-bg, #2c2c2c);
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    border-radius: 12px;
    border: 1px solid #444;
    transition: all 0.3s ease;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover, 0 8px 25px rgba(255, 215, 0, 0.2));
    border-color: var(--secondary-color, #ff0000);
}

.category-card h3 {
    color: var(--secondary-color, #ff0000);
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    position: relative;
    z-index: 1;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 30vw, 320px), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
}

.product-card {
    background-color: var(--card-bg, #2c2c2c);
    border: 1px solid var(--accent-color, #ffd700);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
    position: relative;
}

/* Penyesuaian Style untuk Headline Produk di Product Card (produk.html) */
.product-card .product-headline {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--secondary-color, #ff0000); /* Merah Mencolok */
    color: white;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    border-bottom-right-radius: 8px;
    z-index: 5; /* Pastikan di atas gambar */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Efek visual tambahan */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover, 0 8px 25px rgba(255, 215, 0, 0.2));
    border-color: var(--secondary-color, #ff0000);
}

.product-card .product-image {
    width: 100%;
    height: clamp(150px, 20vw, 200px);
    background: linear-gradient(45deg, #111, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color, #ffd700);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    position: relative;
    transition: background 0.3s ease;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.product-card .product-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #222, #444);
    border-radius: 8px;
    color: var(--accent-color, #ffd700);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    word-wrap: break-word;
    overflow: hidden;
}

.product-card:hover .product-image {
    background: linear-gradient(45deg, #222, #444);
}

.product-card-content {
    padding: clamp(0.8rem, 2vw, 1rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: var(--text-color, #f0f0f0);
    transition: color 0.3s ease;
}

.product-card:hover h3 {
    color: var(--accent-color, #ffd700);
}

.product-card .price {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: bold;
    color: var(--accent-color, #ffd700);
    margin: auto 0 1rem 0;
    transition: color 0.3s ease;
}

.product-card:hover .price {
    color: var(--secondary-color, #ff0000);
}

.product-card .view-details {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--secondary-color, #ff0000);
    color: white;
    padding: clamp(0.6rem, 1.5vw, 0.7rem);
    border-radius: 8px;
    margin-top: auto;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card .view-details:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    border-color: var(--accent-color, #ffd700);
}

/* Detail Page */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(1.5rem, 4vw, 2rem);
    background-color: var(--card-bg, #2c2c2c);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 12px;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
    margin: 0 auto;
    max-width: 1200px;
    align-items: start;
}

/* Penyesuaian Style untuk Headline Produk di Detail Page (detail.html) */
.product-detail-info .detail-headline {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--accent-color, #ffd700);
    background-color: var(--secondary-color, #ff0000);
    display: inline-block;
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.product-detail-image {
    width: 100%;
    height: clamp(300px, 40vw, 400px);
    background: linear-gradient(45deg, #111, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}

.product-detail-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #222, #444);
    border-radius: 12px;
    color: var(--accent-color, #ffd700);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    word-wrap: break-word;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-detail-image .image-placeholder:hover {
    transform: scale(1.02);
}

.product-detail-info h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: var(--accent-color, #ffd700);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.product-detail-info .price {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--secondary-color, #ff0000);
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: block;
}

.product-detail-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.product-detail-info .meta {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    background-color: #3a3a3a;
    padding: clamp(0.8rem, 2vw, 1rem);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color, #ffd700);
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
    justify-content: center;
}

.quantity-control button {
    background-color: var(--secondary-color, #ff0000);
    color: white;
    border: none;
    width: clamp(35px, 8vw, 45px);
    height: clamp(35px, 8vw, 45px);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
}

.quantity-control button:hover {
    background-color: #cc0000;
    transform: scale(1.1);
    box-shadow: var(--shadow-hover, 0 8px 25px rgba(255, 215, 0, 0.2));
}

.quantity-control input {
    width: clamp(50px, 12vw, 70px);
    height: clamp(35px, 8vw, 45px);
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    border: 2px solid var(--accent-color, #ffd700);
    background-color: var(--primary-color, #1a1a1a);
    color: var(--text-color, #f0f0f0);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-control input:focus {
    outline: none;
    border-color: var(--secondary-color, #ff0000);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.checkout-buttons {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    justify-content: center;
}

.checkout-button {
    flex-grow: 1;
    padding: clamp(0.7rem, 2vw, 0.8rem);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    max-width: 200px;
}

.whatsapp { background-color: #25D366; }
.telegram { background-color: #0088cc; }

.checkout-button:hover {
    opacity: 0.9;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover, 0 8px 25px rgba(255, 215, 0, 0.2));
    border-color: var(--accent-color, #ffd700);
}


/* Contact Page */
.contact-section {
    text-align: center;
    max-width: clamp(400px, 80vw, 600px);
    margin: 0 auto;
    background-color: var(--card-bg, #2c2c2c);
    padding: clamp(2rem, 6vw, 3rem);
    border-radius: 12px;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03), transparent);
    pointer-events: none;
}

.contact-buttons {
    margin-top: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 2vw, 1rem);
}

.contact-button {
    padding: clamp(0.8rem, 2.5vw, 1rem);
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.3));
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover, 0 8px 25px rgba(255, 215, 0, 0.2));
    border-color: var(--accent-color, #ffd700);
}

/* Footer */
footer {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem) 5%;
    margin-top: 3rem;
    background-color: #111;
    border-top: 3px solid var(--accent-color, #ffd700);
    color: #999;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.02), transparent);
    pointer-events: none;
}

footer p {
    margin: 0;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    nav {
        padding: 0 2rem;
    }

    .hero {
        padding: clamp(3rem, 8vw, 5rem) 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 28vw, 280px), 1fr));
    }
}

@media (max-width: 1024px) {
    .product-detail-container {
        gap: clamp(1rem, 3vw, 1.5rem);
        padding: clamp(1rem, 3vw, 1.5rem);
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 22vw, 220px), 1fr));
    }

    .contact-section {
        max-width: clamp(350px, 70vw, 500px);
    }
}

@media (max-width: 768px) {
    nav ul {
       /* Hide nav on mobile for simplicity, or use a hamburger menu */
       display: none;
    }

    nav {
        justify-content: center;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 4vw, 1.5rem);
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .hero p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .checkout-buttons {
        flex-direction: column;
        gap: clamp(0.8rem, 3vw, 1rem);
    }

    .checkout-button {
        max-width: none;
    }

    main {
        padding: clamp(1rem, 4vw, 1.5rem) 5%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 45vw, 250px), 1fr));
        gap: clamp(0.8rem, 3vw, 1rem);
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 40vw, 180px), 1fr));
    }

    .contact-buttons {
        gap: clamp(0.6rem, 2vw, 0.8rem);
    }
}

@media (max-width: 480px) {
    header {
        padding: clamp(0.3rem, 1.5vw, 0.5rem) 3%;
    }

    nav .logo a {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .hero {
        padding: clamp(2rem, 6vw, 3rem) 1rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: clamp(0.5rem, 2vw, 0.7rem) clamp(0.8rem, 3vw, 1.2rem);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .categories h2, .product-list-section h2, .product-detail-section h2, .contact-section h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: clamp(1rem, 3vw, 1.5rem);
    }

    .product-card-content {
        padding: clamp(0.6rem, 2vw, 0.8rem);
    }

    .product-card h3 {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }

    .product-card .price {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .product-detail-info h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .product-detail-info .price {
        font-size: clamp(1.3rem, 4vw, 1.7rem);
    }

    .quantity-control {
        gap: 0.3rem;
    }

    .quantity-control button {
        width: clamp(30px, 10vw, 40px);
        height: clamp(30px, 10vw, 40px);
        font-size: clamp(1rem, 3vw, 1.3rem);
    }

    .quantity-control input {
        width: clamp(45px, 15vw, 60px);
        height: clamp(30px, 10vw, 40px);
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .checkout-button {
        padding: clamp(0.6rem, 2vw, 0.7rem);
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }

    .contact-section {
        padding: clamp(1.5rem, 5vw, 2rem);
    }

    .contact-button {
        padding: clamp(0.7rem, 2vw, 0.9rem);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    footer {
        padding: clamp(1rem, 3vw, 1.5rem) 3%;
    }

    footer p {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }

    main {
        padding: clamp(0.8rem, 3vw, 1rem) 3%;
    }
}