/* STYLE.CSS FINAL - VERSION 2026.1
    Optimasi: Responsive Grid, Fixed Aspect Ratio, Modern UI, & Admin Form Padding
*/

:root {
    --primary: #1e3c72;
    --secondary: #2a5298;
    --dark: #0f2027;
    --accent: #ff4757;
    --success: #2ecc71;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Global Header (For Admin/Sub-pages) --- */
header {
    text-align: center;
    padding: 60px 20px 20px;
    color: var(--dark);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary);
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Hero Section (Home Page Only) --- */
.hero {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Container & Grid --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

/* --- Product Card --- */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3; 
    object-fit: cover;
    background-color: #fff;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

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

.badge {
    align-self: flex-start;
    background: #f1f5f9;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.product-info h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-shopee { background: #ee4d2d; color: var(--white); width: 100%; }
.btn-admin { background: var(--success); color: var(--white); }
.btn-logout { background: var(--text-muted); color: var(--white); }
.btn-submit { background: var(--primary); color: var(--white); flex: 2; }
.btn-cancel { background: #e2e8f0; color: var(--text-main); flex: 1; text-align: center; }

.btn:hover {
    filter: brightness(1.1);
}

/* --- Form Admin --- */
.form-container {
    max-width: 600px;
    width: 90%;
    margin: 30px auto 60px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--primary); 
    outline: none; 
    background-color: #f8fafc;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero { padding: 60px 20px; border-radius: 0 0 25px 25px; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .product-grid { grid-template-columns: 1fr; }
    .form-container { padding: 25px; }
    .button-group { flex-direction: column; }
}
