@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0A2540;
    --primary-light: #1E3A5F;
    --accent: #FFB800;
    --accent-dark: #E6A500;
    --success: #25D366;
    --success-dark: #128C7E;
    --danger: #DC3545;
    --text: #1A1A1A;
    --text-light: #6B7280;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ========== HEADER ========== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    position: relative;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
}

.admin-link {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.admin-link:hover { color: var(--accent); }

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #0A2540 0%, #1E3A5F 50%, #2C5282 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.1em; opacity: 0.95; position: relative; z-index: 1; }

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* ========== SECTIONS ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--accent);
    border-radius: 5px;
}

.view-all { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ========== PRODUCT GRID ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #F8FAFC;
    padding: 20px;
}

.card-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.5s;
}

.card:hover .card-image-wrapper img { transform: scale(1.08); }

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-brand {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 42px;
}

.card h3 a { color: var(--text); transition: color 0.3s; }
.card h3 a:hover { color: var(--accent); }

.card-toner-no { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 10px;
    flex-wrap: wrap;
}

.card .price { font-size: 20px; font-weight: 800; color: var(--primary); }

.card .price-old {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 5px;
}

/* ========== BUTTONS ========== */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--success);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: var(--success-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp.large {
    padding: 16px 30px;
    font-size: 16px;
    width: 100%;
    border-radius: 12px;
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.product-gallery img {
    width: 100%;
    border-radius: var(--radius);
    background: #F8FAFC;
    padding: 30px;
}

.product-info h1 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-info .meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.product-info .meta span {
    background: #F1F5F9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.product-info .price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.product-info .price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}

.product-info .price-old {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-info .stock {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.stock-in { background: #DCFCE7; color: #166534; }
.stock-out { background: #FEE2E2; color: #991B1B; }

.product-info .description {
    margin: 25px 0;
    padding: 20px;
    background: #F8FAFC;
    border-radius: var(--radius);
}

.product-info .description h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h3 { color: var(--accent); margin-bottom: 15px; font-size: 16px; }

.footer p, .footer a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ========== FLOATING WHATSAPP ========== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: stretch; }
    .search-form { max-width: 100%; }
    .hero { padding: 50px 20px; }
    .hero h1 { font-size: 1.8em; }
    .section-title { font-size: 1.4em; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .card-image-wrapper img { height: 140px; }
    .card h3 { font-size: 13px; min-height: 36px; }
    .card .price { font-size: 16px; }
    .btn-whatsapp { font-size: 11px; padding: 8px 10px; }
    .product-detail { grid-template-columns: 1fr; gap: 25px; padding: 20px; }
    .product-info h1 { font-size: 1.5em; }
    .product-info .price { font-size: 32px; }
    .floating-whatsapp { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 26px; }
}