/* Modern CSS for Xpreshit */

/* --- CSS Variables (Palet Warna & Font) --- */
:root {
    --color-background: #121212; /* Hitam pekat / Sangat gelap */
    --color-surface: #1E1E1E;    /* Sedikit lebih terang dari background untuk card, dll. */
    --color-primary-text: #E0E0E0; /* Putih keabuan untuk teks utama */
    --color-secondary-text: #A0A0A0; /* Abu-abu lebih gelap untuk teks sekunder */
    --color-accent: #FF007A; /* Pink Elektrik / Magenta */
    --color-accent-hover: #E6006D;
    --color-border: #333333;

    --font-primary: 'Poppins', sans-serif;
    --font-headings: 'Montserrat', sans-serif;

    --container-width: 1280px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-primary-text);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color var(--transition-speed) ease;
}
a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-primary-text);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(18, 18, 18, 0.85); /* Semi transparan saat sticky */
    backdrop-filter: blur(10px); /* Efek blur untuk modernitas */
    padding: 1.5em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 2.2em;
    font-weight: 900; /* Sangat Bold */
    letter-spacing: 1px; /* Sedikit jarak antar huruf */
    color: var(--color-primary-text);
    text-transform: uppercase;
}
.logo-text:hover {
    color: var(--color-accent);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--color-secondary-text);
    font-weight: 500;
    font-size: 1em;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
nav ul li a::after { /* Efek underline modern */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--color-primary-text);
}
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.header-slogan {
    font-style: italic;
    color: var(--color-secondary-text);
    font-size: 0.9em;
    opacity: 0.8;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.95)), url('../images/hero-banner.jpg') no-repeat center center/cover;
    color: var(--color-primary-text);
    text-align: center;
    padding: 120px 20px 150px; /* Lebih banyak padding */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-headings);
    font-size: clamp(2.5rem, 6vw, 5rem); /* Ukuran font responsif */
    font-weight: 900;
    margin-bottom: 0.3em;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero h2 { /* Slogan di hero */
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1em;
    font-weight: 400;
    color: var(--color-secondary-text);
    letter-spacing: 1px;
}

.hero p { /* Deskripsi di hero */
    font-size: 1.1em;
    margin-bottom: 2.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-primary-text);
    opacity: 0.9;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease, box-shadow var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff; /* Teks putih kontras dengan aksen */
    box-shadow: 0 4px 15px rgba(var(--color-accent), 0.3);
}
.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--color-accent), 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-text);
    border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* --- Product Sections --- */
.featured-products, .product-listing, .related-products {
    padding: 80px 0;
    text-align: center;
}
.featured-products h2, .product-listing h1, .related-products h2 {
    font-size: clamp(1.8rem, 4vw, 3rem); /* Ukuran font responsif */
    margin-bottom: 0.5em;
    font-weight: 800;
    text-transform: uppercase;
}
.product-listing > .container > p:first-of-type { /* Deskripsi di halaman produk */
    margin-bottom: 60px;
    font-size: 1.1em;
    color: var(--color-secondary-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Sedikit lebih besar */
    gap: 40px; /* Jarak lebih besar */
    margin-top: 50px;
    text-align: left;
}

.product-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.product-card img {
    width: 100%;
    height: 350px; /* Tinggi gambar konsisten */
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.05); /* Efek zoom halus pada gambar */
}

.product-card-content { /* Wrapper untuk konten di bawah gambar */
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Agar tombol tetap di bawah */
}

.product-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--color-primary-text);
}
.product-card h3 a:hover {
    color: var(--color-accent);
}

.product-card .description {
    font-size: 0.95em;
    color: var(--color-secondary-text);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.6;
}

.product-card .price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.product-card .btn {
    margin-top: auto; /* Mendorong tombol ke bawah jika konten bervariasi */
    width: 100%;
}


/* --- Product Detail Page --- */
.product-detail-page {
    padding: 60px 0;
}
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default satu kolom */
    gap: 50px;
    align-items: flex-start;
}
@media (min-width: 992px) { /* Dua kolom untuk layar lebih besar */
    .product-detail-layout {
        grid-template-columns: 1.2fr 1fr; /* Gambar sedikit lebih besar */
    }
}

.product-detail-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    width: 100%;
}

.product-detail-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 15px;
}
.product-detail-info .category-tag {
    display: inline-block;
    background-color: var(--color-surface);
    color: var(--color-secondary-text);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-border);
}
.product-detail-info .price-detail {
    font-size: 2em;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 25px;
}
.product-detail-info .description-full {
    margin-bottom: 30px;
    color: var(--color-primary-text);
    opacity: 0.9;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-secondary-text);
}
.quantity-input {
    width: 80px;
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    background-color: var(--color-surface);
    color: var(--color-primary-text);
    font-size: 1em;
}
.btn-add-to-cart {
    width: 100%;
    padding: 18px;
    font-size: 1.1em;
}
.share-buttons {
    margin-top: 30px;
}
.share-buttons p {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-secondary-text);
}
.social-share {
    margin-right: 15px;
    color: var(--color-secondary-text);
    font-size: 0.9em;
    opacity: 0.8;
}
.social-share:hover {
    color: var(--color-accent);
    opacity: 1;
}

/* Related Products */
.related-products {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}


/* --- Footer --- */
footer {
    background-color: var(--color-surface);
    color: var(--color-secondary-text);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
}
footer p {
    margin-bottom: 8px;
    font-size: 0.95em;
}
.slogan-footer {
    font-style: italic;
    opacity: 0.7;
}


/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    nav ul {
        /* Implementasi menu mobile (hamburger) akan memerlukan JavaScript.
           Untuk CSS saja, kita bisa sembunyikan atau buat jadi block. */
        /* display: none;  ATAU: */
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }
    nav ul li {
        margin: 10px 0;
    }
    header .container {
        flex-direction: column;
    }
    .header-slogan { display: none; } /* Sembunyikan slogan di mobile untuk header lebih ringkas */
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    .product-card img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 2rem; }
    .hero h2 { font-size: 1rem; }
    .hero p { font-size: 1em; }
    .btn { padding: 12px 25px; font-size: 0.9em; }
    .product-grid {
        grid-template-columns: 1fr; /* Satu produk per baris di layar sangat kecil */
    }
}