/* ============================================== 
   LensPoly Market - Fully Responsive CSS
   Mobile-first, clean & modern
============================================== */

:root {
    --primary: #157c57;          /* your main green */
    --primary-dark: #0d5a45;
    --primary-light: #e8f5e9;
    --gray: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 70px; /* space for fixed navbar */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Fixed Navbar */
.navbar {
    background: white !important;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-brand img {
    max-height: 45px;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.6rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Search Bar */
.search-form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.search-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 50px 0 0 50px;
    padding: 0.6rem 1.2rem;
}

.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.6rem 1.4rem;
}

/* Categories Dropdown */
.btn-outline-success.dropdown-toggle {
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.65rem 1.25rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Product Cards - Mobile First, Matches Your Screenshot */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-card .ratio-4x5 img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.product-card .badge {
    font-size: 0.78rem;
    padding: 0.45em 0.8em;
    top: 8px;
    right: 8px;
}

.product-card .card-body {
    padding: 12px 14px;
    text-align: center;
}

.product-card .card-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 6px;
    min-height: 38px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* ==============================================
   Product Cards - Mobile-First & Matches lautechmarket style
============================================== */

.product-card {
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:active {
    transform: scale(0.98);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.product-card .ratio-4x5 {
    aspect-ratio: 4 / 5;
}

.product-card img {
    object-fit: cover;
}

.product-card .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.7em;
    top: 6px;
    right: 6px;
    z-index: 2;
}

.product-card .card-body {
    padding: 10px 12px;
    text-align: center;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35;
    min-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .fw-bold.text-success {
    font-size: 1.3rem;
    margin: 2px 0 6px;
}

.product-card .text-muted {
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.product-card .btn-sm {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
}

/* Mobile-specific tweaks */
@media (max-width: 576px) {
    .product-card .card-body {
        padding: 10px !important;
    }

    .product-card .card-title {
        font-size: 0.96rem !important;
    }

    .product-card .fw-bold.text-success {
        font-size: 1.25rem !important;
    }

    .product-card .btn-sm {
        padding: 0.65rem !important;
        font-size: 0.94rem !important;
    }

    .product-card .card-footer {
        padding: 10px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .product-card .btn {
        width: 100% !important;
    }
}

