:root {
    --primary: #001d3d;
    --primary-hover: #003566;
    --accent: #00a8e8;
    --accent-hover: #0096cc;
    --primary-light: #e0f2fe;
    --whatsapp: #25D366;
    --whatsapp-hover: #1ebe57;
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #001d3d;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-card: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.01);
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1 { font-size: 3rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }

/* Navbar */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s;
}
.logo:hover {
    transform: scale(1.02);
}
.logo img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}
.logo span { 
    display: flex;
    flex-direction: column;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 0.85;
    letter-spacing: -0.01em;
}
.logo span small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
}


.search-bar {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.2rem 0.2rem 0.2rem 1rem;
    transition: all 0.2s;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.search-bar i { color: var(--text-muted); font-size: 1.15rem; }

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.45rem 0.75rem;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 99px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.search-btn:hover { 
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-main); }

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-large { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-primary { 
    background: linear-gradient(135deg, var(--accent), var(--accent-hover)); 
    color: white;
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.25);
}
.btn-primary:hover { 
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.35);
}
.btn-outline { border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-main); }
.btn-secondary { background: var(--bg-card); color: var(--text-main); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-main); }
.btn-whatsapp { background: var(--whatsapp); color: white; width: 100%; border-radius: var(--radius-md); }
.btn-whatsapp:hover { background: var(--whatsapp-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-whatsapp i { font-size: 1.15rem; }

/* Hero */
.hero {
    max-width: 1280px;
    margin: 3rem auto 2rem;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.badge {
    background: var(--primary-light);
    color: var(--accent);
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}

.highlight { color: var(--accent); }

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
}

/* Sections */
section {
    max-width: 1280px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.cat-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* REDESIGNED Product Card - Compact & Attractive */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card.hide {
    display: none;
}

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

.product-image {
    position: relative;
    padding-top: 60%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-details {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.brand {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vendor-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.6rem;
    background: var(--bg-main);
    border-radius: 8px;
}

.vendor-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.vendor-details-text {
    display: flex;
    flex-direction: column;
}

.vendor-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.vendor-rating {
    font-size: 0.7rem;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 2px;
}

.price-section {
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.product-brand-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.75rem;
    max-width: 280px;
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--primary); }

/* Auth pages */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-title { text-align: center; margin-bottom: 1.5rem; }

/* Forms */
.alert { padding: 0.85rem 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-weight: 500; font-size: 0.9rem; }
.alert-error { background-color: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.alert-success { background-color: #dcfce7; color: #166534; border: 1px solid #4ade80; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; color: var(--text-main); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Auth type selector */
.auth-type-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.auth-type-card {
    flex: 1;
    padding: 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}
.auth-type-card:hover, .auth-type-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.auth-type-card i {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}
.auth-type-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.auth-type-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-banned { background: #fee2e2; color: #991b1b; }
.status-new { background: #f5f3ff; color: #6d28d9; }

/* Info grid for admin detail views */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}
.info-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
}
.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.footer-links a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}

/* RESPONSIVE */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    .nav-links.show .btn { width: 100%; justify-content: center; }
    .mobile-menu-btn { display: block; }

    .search-bar { display: none; }
    .search-bar.show {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    .hero { margin: 2rem auto 1.5rem; }
    .hero p { font-size: 0.95rem; }

    .section-header { flex-direction: column; align-items: flex-start; }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-image { padding-top: 55%; }
    .product-details { padding: 0.75rem; }
    .product-title { font-size: 0.85rem; margin-bottom: 0.35rem; }
    .vendor-info { display: none; }
    .price { font-size: 1.1rem; }
    .price-section { margin-bottom: 0.5rem; }
    .btn-whatsapp { padding: 0.45rem; font-size: 0.8rem; }

    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }

    .auth-container { margin: 1.5rem; padding: 1.5rem; }

    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .product-details { padding: 0.6rem; }
    .product-title { font-size: 0.8rem; }
    .price { font-size: 1rem; }
}

/* Footer Bottom Bar — Powered by Abaci */
.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.powered-by-abaci a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.powered-by-abaci a:hover { text-decoration: underline; }

/* Show vendor name on mobile product cards */
@media (max-width: 768px) {
    .vendor-info { display: flex !important; padding: 0.3rem 0.5rem; }
    .vendor-name { font-size: 0.7rem; }
}

/* Product Details Page Grid */
.pd-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.pd-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.product-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}
@media (max-width: 900px) {
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .pd-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    .pd-card {
        padding: 1.25rem;
    }
}

