/*
Theme Name: Toko Besi Baja
Theme URI: https://domainanda.com/
Description: Child Theme Astra khusus untuk Toko Besi Baja. Dioptimasi untuk SEO 2026 & Mobile-First.
Author: Asep Rahmattulloh
Template: astra
Version: 1.1.0
Text Domain: tokobesibaja
*/

/* --- 1. Import Font Premium (Inter) & Variabel Warna --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #d32f2f; /* Merah Baja */
    --primary-hover: #b71c1c;
    --secondary-color: #1a202c; /* Gelap Besi */
    --bg-body: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

/* --- 2. Global Reset & Typography --- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- 3. Tombol CTA Premium --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e53935 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

/* --- 4. Hero Section Homepage --- */
.hero-section {
    background: linear-gradient(rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.85)), url('https://images.unsplash.com/photo-1504307651254-35680f356f58?q=80&w=2000&auto=format&fit=crop') center/cover;
    color: white;
    border-radius: var(--border-radius);
    margin: 20px auto 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-section .hero-title {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem); /* Ukuran font responsif otomatis */
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 30px;
}

/* --- 5. Grid Katalog Produk (Marketplace Style) --- */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.produk-card {
    background: var(--card-bg);
    border: 1px solid #edf2f7 !important; /* Override inline style */
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.produk-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: #e2e8f0 !important;
}

.produk-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.produk-card h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.produk-card h3 a:hover {
    color: var(--primary-color);
}

.produk-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 6. Styling Detail Post, Page & Sidebar --- */
.entry-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.harga-box {
    display: inline-block;
    background: #fff0f0;
    padding: 10px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.entry-footer, #secondary .widget {
    background: var(--card-bg) !important;
    border: 1px solid #edf2f7;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 30px !important;
    text-align: center;
}

#secondary .widget h2 {
    margin-bottom: 20px;
    font-weight: 700;
}

/* --- 7. Penyesuaian Mobile Friendly Khusus --- */
@media (max-width: 768px) {
    .entry-content {
        padding: 20px;
    }
    .produk-grid {
        gap: 20px;
    }
    #secondary {
        width: 100% !important;
        margin-top: 30px;
    }
}