/* ================================================ */
/* STYLING CAROUSEL SLIDER                          */
/* ================================================ */
.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Penting untuk memotong slide di ujung */
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero-slider {
    display: flex;
    align-items: center; /* Membuat slide sejajar di tengah secara vertikal */
    /* transisi akan ditambahkan oleh JavaScript */
}

.hero-slider .slide {
    min-width: 60%; 
    width: 60%;
    margin: 0 2%; /* Jarak antar slide diperlebar */
    transform: scale(0.85);
    opacity: 0.6;
    transition: transform 0.5s ease, opacity 0.5s ease;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-slider .slide.active {
    transform: scale(1);
    opacity: 1;
}

.slide-link {
    display: block;
    width: 100%;
    height: 350px;
    text-decoration: none;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 1.5rem;
    color: white;
    text-align: center;
    box-sizing: border-box;
}

.slide-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #FFFFFF;
    transform: scale(1.2);
}


/* Reset & Body Styling Dasar (Menggunakan Variabel Tema) */
body {
    font-family: var(--font-family-base, 'Inter', sans-serif);
    background-color: var(--color-bg, #F9FAFB);
    color: var(--color-text, #111827);
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px; /* Memberi ruang agar konten tidak tertutup menu sticky */
}

main {
    flex-grow: 1; /* Mendorong footer ke bawah */
}

/* Container utama untuk membatasi lebar konten */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #1F2937);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: #4B5563;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--color-primary, #3B82F6);
}

.header-search {
    display: flex;
}

.header-search input {
    border: 1px solid #D1D5DB;
    padding: 0.5rem;
    border-right: none;
    border-radius: 6px 0 0 6px;
}

.header-search button {
    background-color: var(--color-primary, #3B82F6);
    color: white;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

/* Header Halaman Depan */
.main-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 3rem;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text, #1F2937);
}

.main-header p {
    font-size: 1.125rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* Styling Section Produk */
.product-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary, #3B82F6);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Grid untuk Kartu Produk */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Styling Kartu Produk */
.product-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Gambar Produk */
.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-coupon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-accent, #EC4899);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Konten Kartu Produk */
.product-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text, #1F2937);
    margin: 0 0 0.5rem;
    flex-grow: 1;
}

.product-price {
    margin: 0.5rem 0;
    font-weight: 700;
}

.price-normal {
    font-size: 1.125rem;
    color: var(--color-primary, #3B82F6);
}

.price-strike {
    font-size: 0.875rem;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Tombol Aksi */
.product-actions {
    margin-top: 1rem;
}

.btn-detail {
    font-size: 0.875rem;
    color: #6B7280;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
}

.btn-detail:hover {
    text-decoration: underline;
}

.main-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    flex-grow: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, filter 0.2s;
}

.btn-primary {
    background-color: var(--color-primary, #3B82F6);
}
.btn-primary:hover {
    filter: brightness(90%);
}

.btn-secondary {
    background-color: var(--color-secondary, #8B5CF6);
}
.btn-secondary:hover {
    filter: brightness(90%);
}


/* Styling Section Blog di Homepage */
.blog-section {
    background-color: #FFFFFF;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 4rem;
}

.article-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card-mini {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #E5E7EB;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.article-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.article-image-link {
    display: block;
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background-color: #F3F4F6;
}

.article-card-mini .article-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-mini .article-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.article-card-mini .article-title a {
    text-decoration: none;
    color: var(--color-text, #1F2937);
    transition: color 0.2s;
}

.article-card-mini .article-title a:hover {
    color: var(--color-primary, #3B82F6);
}

.article-card-mini .article-excerpt {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0 0 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.article-card-mini .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9CA3AF;
    border-top: 1px solid #F3F4F6;
    padding-top: 1rem;
    margin-top: auto;
}

.article-card-mini .btn-read-more {
    text-decoration: none;
    color: var(--color-primary, #3B82F6);
    font-weight: 500;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background-color: #1F2937;
    color: #D1D5DB;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Menu Sticky Mobile */
.mobile-sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #FFFFFF;
    box-shadow: 0 -2px 10px rgb(0 0 0 / 0.1);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
}

.mobile-sticky-footer .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6B7280;
    font-size: 0.75rem;
    gap: 4px;
}

.mobile-sticky-footer .nav-item.active {
    color: var(--color-primary, #3B82F6);
}

.mobile-sticky-footer .nav-item svg {
    transition: transform 0.2s;
}

.mobile-sticky-footer .nav-item:hover svg {
    transform: scale(1.1);
}

/* Aturan Responsive */
@media (max-width: 768px) {
    .site-header .main-nav,
    .site-header .header-search {
        display: none;
    }
    .mobile-sticky-footer {
        display: flex;
    }
}

