/* =========================================
   Ici Store - Main Style (Dark Mode & Glassmorphism)
   ========================================= */

/* --- Variabel Warna --- */
:root {
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Background Shapes (Aesthetic Blur) --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #3b82f6;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: #8b5cf6;
}

/* --- Utility Class: Glassmorphism --- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- Header --- */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-area h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-area p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Section Titles --- */
.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* --- Features Section --- */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-box {
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Product Section --- */
.product-section {
    margin-bottom: 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(5px);
}

.status-available { background: rgba(16, 185, 129, 0.9); }
.status-soldout { background: rgba(239, 68, 68, 0.9); }

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.product-variant {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 15px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover:not(.disabled) {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-primary.disabled {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.7;
}

.hero-btn {
    border-radius: 30px;
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- FAQ Section --- */
.faq-section {
    margin-bottom: 80px;
}

.faq-container {
    padding: 10px 20px;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 25px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 10px;
}

.faq-answer p {
    padding-bottom: 25px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Class aktif untuk JS nanti */
.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Footer --- */
.main-footer {
    padding-bottom: 100px; /* Padding ekstra biar nggak ketutup tombol WA */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px;
    margin-bottom: 20px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-links i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Floating Action Button (WA) --- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    border-radius: 50px;
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s;
    background: rgba(37, 211, 102, 0.2); /* Sentuhan hijau WA pada glass */
    border-color: rgba(37, 211, 102, 0.3);
}

.floating-btn i {
    font-size: 1.6rem;
    color: #25d366;
}

.floating-btn:hover {
    transform: scale(1.05);
    background: rgba(37, 211, 102, 0.3);
}

/* --- Responsif Mobile --- */
@media (max-width: 768px) {
    .hero-text h2 { font-size: 2rem; }
    .footer-content { flex-direction: column; }
    .floating-btn span { display: none; }
    .floating-btn { padding: 15px; border-radius: 50%; }
}
