/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a1a; background: #f9f9f9; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ===== NAVBAR ===== */
.navbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.2rem; color: #e53e3e; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-weight: 500; color: #333; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #e53e3e; }
.cart-link { position: relative; }
.cart-count { background: #e53e3e; color: #fff; border-radius: 50%; padding: 0 6px; font-size: 0.75rem; margin-left: 4px; }
.btn-whatsapp { background: #25D366; color: #fff !important; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; transition: background 0.2s; }
.btn-whatsapp:hover { background: #1ebe5d; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 25px; height: 3px; background: #333; border-radius: 3px; transition: all 0.3s; }

/* ===== FLASH MESSAGES ===== */
.flash { padding: 1rem; text-align: center; font-weight: 500; display: flex; justify-content: center; align-items: center; gap: 1rem; }
.flash button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.flash-success { background: #c6f6d5; color: #276749; }
.flash-error { background: #fed7d7; color: #9b2c2c; }
.flash-info { background: #bee3f8; color: #2a69ac; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #e53e3e 100%); color: #fff; padding: 5rem 1rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.75rem 2rem; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: #e53e3e; color: #fff; }
.btn-primary:hover { background: #c53030; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #e53e3e; }
.btn-secondary { background: #fff; color: #e53e3e; }
.btn-secondary:hover { background: #f0f0f0; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 0; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { color: #666; margin-bottom: 2rem; }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.category-card { background: #fff; border-radius: 12px; padding: 1.5rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; display: block; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.category-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.category-card h3 { font-size: 1rem; font-weight: 600; }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.product-image { height: 180px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-info { padding: 1rem; }
.product-brand { font-size: 0.8rem; color: #888; margin-bottom: 0.25rem; }
.product-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.4; }
.product-price { color: #e53e3e; font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.product-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-cart { background: #e53e3e; color: #fff; border: none; padding: 0.6rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.2s; width: 100%; }
.btn-cart:hover { background: #c53030; }
.btn-view { display: block; text-align: center; padding: 0.6rem; border-radius: 8px; border: 2px solid #e53e3e; color: #e53e3e; font-weight: 600; transition: all 0.2s; }
.btn-view:hover { background: #e53e3e; color: #fff; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: flex; flex-direction: column; gap: 2rem; padding: 2rem 0; }
.product-detail-image { background: #f5f5f5; border-radius: 12px; padding: 2rem; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.product-detail-image img { max-height: 300px; object-fit: contain; }
.product-detail-info { flex: 1; }
.product-detail-info h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-detail-info .price { font-size: 2rem; color: #e53e3e; font-weight: 700; margin: 1rem 0; }
.product-meta { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; color: #555; }
.product-meta span { font-size: 0.95rem; }
.stock-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.in-stock { background: #d1fae5; color: #065f46; }
.out-of-stock { background: #fee2e2; color: #991b1b; }
.quantity-selector { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.qty-btn { background: #f0f0f0; border: none; width: 36px; height: 36px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; transition: background 0.2s; }
.qty-btn:hover { background: #e53e3e; color: #fff; }
.qty-input { width: 60px; text-align: center; border: 1.5px solid #ddd; border-radius: 8px; padding: 0.4rem; font-size: 1rem; }

/* ===== SHOP FILTERS ===== */
.shop-layout { display: flex; gap: 2rem; align-items: flex-start; }
.filters-sidebar { width: 240px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.filters-sidebar h3 { font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; color: #444; }
.filter-group select { width: 100%; padding: 0.6rem; border: 1.5px solid #ddd; border-radius: 8px; font-size: 0.9rem; }
.filter-group input[type="text"] { width: 100%; padding: 0.6rem; border: 1.5px solid #ddd; border-radius: 8px; font-size: 0.9rem; }
.btn-filter { width: 100%; padding: 0.7rem; background: #e53e3e; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-reset { width: 100%; padding: 0.7rem; background: #f0f0f0; color: #333; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 0.5rem; }
.shop-main { flex: 1; }
.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.results-count { color: #666; font-size: 0.9rem; }

/* ===== CART ===== */
.cart-layout { display: flex; gap: 2rem; align-items: flex-start; }
.cart-items { flex: 1; }
.cart-item { background: #fff; border-radius: 12px; padding: 1rem; display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cart-item-image { width: 80px; height: 80px; object-fit: contain; background: #f5f5f5; border-radius: 8px; padding: 0.5rem; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 0.25rem; }
.cart-item-price { color: #e53e3e; font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item-qty { width: 50px; text-align: center; border: 1.5px solid #ddd; border-radius: 6px; padding: 0.3rem; }
.btn-remove { background: none; border: none; color: #e53e3e; cursor: pointer; font-size: 1.2rem; }
.cart-summary { width: 300px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 100px; }
.cart-summary h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.95rem; }
.summary-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid #eee; padding-top: 0.75rem; margin-top: 0.75rem; }
.cart-empty { text-align: center; padding: 4rem 0; color: #666; }
.cart-empty h2 { margin-bottom: 1rem; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: flex; gap: 2rem; align-items: flex-start; }
.checkout-form { flex: 1; background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.checkout-form h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.order-review { width: 340px; flex-shrink: 0; }
.order-review-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 1rem; }
.order-review-card h3 { font-weight: 700; margin-bottom: 1rem; }
.review-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.review-item:last-child { border-bottom: none; }

/* ===== ORDER SUCCESS ===== */
.success-page { text-align: center; padding: 4rem 1rem; }
.success-icon { font-size: 5rem; margin-bottom: 1rem; }
.success-page h1 { font-size: 2rem; font-weight: 700; color: #065f46; margin-bottom: 0.5rem; }
.order-details-card { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); max-width: 600px; margin: 2rem auto; text-align: left; }
.order-details-card h2 { font-weight: 700; margin-bottom: 1rem; font-size: 1.1rem; }
.detail-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; }
.detail-row:last-child { border-bottom: none; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; background: #25D366; color: #fff; border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; transition: transform 0.2s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: #ccc; padding: 3rem 0 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #ccc; transition: color 0.2s; }
.footer-col ul li a:hover { color: #e53e3e; }
.footer-col p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.btn-whatsapp-footer { display: inline-block; margin-top: 0.75rem; background: #25D366; color: #fff !important; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; }
.footer-bottom { border-top: 1px solid #2d2d4e; text-align: center; padding: 1rem; font-size: 0.85rem; color: #888; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #ddd; border-radius: 8px; font-size: 1rem; font-family: inherit; transition: border-color 0.2s; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #e53e3e; }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
thead { background: #f5f5f5; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid #eee; font-size: 0.95rem; }
th { font-weight: 600; color: #444; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #1a1a2e; color: #ccc; flex-shrink: 0; padding: 1.5rem 0; }
.admin-sidebar .logo { padding: 0 1.5rem 1.5rem; color: #e53e3e; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid #2d2d4e; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.admin-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.5rem; color: #ccc; transition: all 0.2s; font-size: 0.95rem; }
.admin-nav a:hover, .admin-nav a.active { background: #e53e3e; color: #fff; }
.admin-main { flex: 1; padding: 2rem; background: #f9f9f9; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-card .stat-label { font-size: 0.85rem; color: #888; margin-bottom: 0.5rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: #e53e3e; }
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border-radius: 8px; border: 1.5px solid #ddd; color: #333; font-weight: 500; transition: all 0.2s; }
.pagination a:hover, .pagination .current { background: #e53e3e; color: #fff; border-color: #e53e3e; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .shop-layout { flex-direction: column; }
    .filters-sidebar { width: 100%; }
    .cart-layout { flex-direction: column; }
    .cart-summary { width: 100%; position: static; }
    .checkout-layout { flex-direction: column; }
    .order-review { width: 100%; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); gap: 1rem; }
    .nav-links.open { display: flex; }
    .hero { padding: 3rem 1rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .product-detail { flex-direction: column; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* ===== NAVBAR SEARCH ===== */
.navbar-search { display: flex; align-items: center; gap: 0; flex: 1; max-width: 400px; margin: 0 1.5rem; }
.navbar-search input { width: 100%; padding: 0.5rem 1rem; border: 1.5px solid #ddd; border-radius: 8px 0 0 8px; font-size: 0.9rem; outline: none; font-family: inherit; }
.navbar-search input:focus { border-color: #e53e3e; }
.navbar-search button { padding: 0.5rem 0.9rem; background: #e53e3e; color: #fff; border: none; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; }
.navbar-search button:hover { background: #c53030; }
@media (max-width: 768px) { .navbar-search { display: none; } }
