:root {
    --primary: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --whatsapp: #25d366;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-contact span {
    margin-right: 20px;
}

.top-contact a {
    color: #fff;
    text-decoration: none;
}

.admin-btn {
    background: transparent;
    border: 1px solid #475569;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.admin-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo-area .highlight {
    color: var(--accent);
}

.logo-area p {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 0.5px;
}

.search-bar {
    display: flex;
    width: 45%;
    border: 2px solid var(--accent);
    border-radius: 6px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.action-icon.whatsapp-link {
    color: var(--whatsapp);
}

.cart-trigger {
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    position: relative;
}

.badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Navbar */
.navbar {
    background: #0f172a;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    overflow-x: auto;
}

.nav-links li a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #fff;
    background: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1591799264318-7e6ef8ddb7ea?auto=format&fit=crop&w=1400&q=80') center/cover;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.hero-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 15px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #38bdf8;
}

/* Shop Section */
.main-shop {
    padding: 40px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.section-title h3 {
    font-size: 22px;
    color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.product-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background: #f1f5f9;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 5px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-moq {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
}

.add-to-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.add-to-cart-btn:hover {
    background: var(--accent);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.cart-footer {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 90;
    text-decoration: none;
}

/* Modal / Admin */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.admin-modal-box {
    background: white;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.admin-tabs {
    display: flex;
    background: #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background: white;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.tab-pane {
    display: none;
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.tab-pane.active {
    display: block;
}

.add-product-form input, .add-product-form select, .tab-pane form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.inventory-list {
    margin-top: 25px;
}

.admin-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.delete-prod-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 20px 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-content h3, .footer-content h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 13px;
}