/* ===========================
   Global & Theme Variables
   =========================== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f8f9f4;
    transition: background-color 0.3s, color 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


/* जब JS active करेगा */
body.page-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Motion preference respect */
@media (prefers-reduced-motion: reduce) {
    body {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

/* ===== HEADER & NAVBAR ===== */
header {
    width: 100%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    font: 0.9em sans-serif;
    transition: background-color 0.3s, color 0.3s;
    background: linear-gradient(135deg, #A5D6A7, #E8F5E9);
    position: relative;
    z-index: 10;
    /* 👈 nav top par rahe */
}

body.dark-mode nav {
    background: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* ===== DESKTOP VIEW (Navbar fixed top) ===== */
@media (min-width: 769px) {
    nav {
        top: 0;
        left: 0;
        z-index: 1000;
    }
}

.logo {
    height: 47px;
    margin-right: 10px;
}

/* 🔎 Search box */
.search-box {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 10px 0;
    min-width: 180px;
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #064E3B;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    background: white;
    color: black;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body.dark-mode .search-box input {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #ffff;
}

#searchBtn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #064E3B;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

body.dark-mode #searchBtn {
    color: white;
}

#searchBtn:hover {
    background: #1e3a21;
}

/* 🔎 Suggestions dropdown */
#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode #suggestions {
    background: #2d2d2d;
    color: #e0e0e0;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

/* ✅ Navbar Links */
.menu {
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    gap: 10px;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: #064E3B;
    transition: color 0.3s;
}

body.dark-mode .menu a {
    color: #e0e0e0;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #4caf50;
    transition: width 0.3s;
}

.menu a:hover {
    color: #4caf50;
}

.menu a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
    margin: 0;
    line-height: 1.2;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    min-width: 100px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    transition: max-height 0.4s ease, background-color 0.3s;
}

body.dark-mode .dropdown-menu {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.dropdown-menu li a {
    padding: 7px 20px;
    white-space: nowrap;
    font-size: 12px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .dropdown-menu li a {
    color: #e0e0e0;
}

.dropdown-menu li a:hover {
    background: #f0f0f0;
}

body.dark-mode .dropdown-menu li a:hover {
    background: #3d3d3d;
}

/* Arrow */
.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown.open .arrow {
    transform: rotate(180deg);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li a {
    display: inline-block;
    padding: 10px 7px;
    color: black;
    text-decoration: none;
    position: relative;
    font-size: 0.95rem;
    font-weight: bold;
    transition: color 0.3s;
}

body.dark-mode nav ul li a {
    color: #e0e0e0;
}

/* nav icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

/* Icons */
.nav-icons img {
    height: 22px;
    width: 22px;
    cursor: pointer;
    margin: 5px 10px;
    transition: filter 0.3s;
}

body.dark-mode .nav-icons img {
    filter: invert(1);
}

.nav-icons a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-icons a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #4caf50;
    transition: width 0.3s;
}

.nav-icons a:hover::after {
    width: 100%;
}

/* ✅ Responsive Layout for Small Screens */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-box {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
    }

    .nav-icons {
        justify-content: center;
        margin: 0;
    }
}

:root {
    --primary: #4caf50;
    --primary-dark: #388e3c;
    --accent-dark: #166534;

    --bg-page: #f8f9f4;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;

    --text-main: #222;
    --text-muted: #666;

    --border-soft: #ddd;

    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.06);

    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Basic reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
}

/* Dark mode basics */

body.dark-mode {
    --bg-page: #111827;
    --bg-card: #1f2933;
    --bg-elevated: #111827;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-soft: #374151;
}

/* Wrapper for inner content */

.wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: var(--space-md);
}

/* Small tweak so header का नीचे content चिपके नहीं */
header+.wrap {
    margin-top: var(--space-sm);
}

/* ===========================
   Mobile Sort / Filter Top Bar
   =========================== */

.mobile-filter-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-card);
    padding: var(--space-sm);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: var(--space-sm);
    justify-content: space-between;
}

.mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: #f3f4f6;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.mobile-btn svg {
    flex-shrink: 0;
}

.mobile-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

body.dark-mode .mobile-filter-bar {
    background: var(--bg-card);
}

body.dark-mode .mobile-btn {
    background: #111827;
    border-color: var(--border-soft);
}

.body.dark-mode .mobile-btn:hover {
    background: #020617;
}

.divider {
    width: 1px;
    background: #d4d4d8;
}

/* दिखाना सिर्फ tablet + mobile पर */
.mobile-filter-bar {
    display: none;
}

@media (max-width: 900px) {
    .mobile-filter-bar {
        display: flex;
    }
}

/* ===========================
   Main Layout: Filters + Grid
   =========================== */

.container {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    align-items: flex-start;
}

/* Filters sidebar (desktop) */

.filters {
    width: 270px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: var(--space-md);
    position: sticky;
    top: 90px;
    /* header height के हिसाब से approx */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    transition: transform var(--transition-normal), left var(--transition-normal);
}

/* Dark mode */

body.dark-mode .filters {
    background: var(--bg-card);
    box-shadow: none;
    border: 1px solid var(--border-soft);
}

/* Filters inner scroll content */

.filters-scroll-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Main products area */

.main-content {
    flex: 1;
    min-width: 0;
}

/* ===========================
   Filter Overlay (for mobile)
   =========================== */

.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 30;
}

.filter-overlay.active {
    display: block;
}

/* Mobile sheet header inside filters */

.mobile-sheet-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.mobile-sheet-header h2 {
    font-size: 1.1rem;
}

.close-sheet-btn {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* Desktop-only header (inside filters) */

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: var(--space-sm);
}

.filter-header h2 {
    font-size: 1.1rem;
}

.clear-filters-btn {
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* Utility classes */

.desktop-only {
    display: flex;
}

/* ===========================
   Responsive behavior
   =========================== */

/* Tablet + Mobile: filters drawer, layout stacked */
/* Mobile & small tablets */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .filters {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 80%;
        max-width: 350px;
        border-radius: 0 12px 12px 0;
        z-index: 999;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .filters.open {
        left: 0;
    }
}

/* Mobile tightening */

@media (max-width: 640px) {
    .wrap {
        padding: var(--space-sm);
    }

    .filters {
        width: 85%;
    }
}

/* ===========================
   Filter Group Styles
   =========================== */

.filter-group {
    border-bottom: 1px solid var(--border-soft);
    padding: var(--space-sm) 0 var(--space-md);
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group-toggle {
    border: none;
    background: transparent;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: var(--space-xs) 0;
}

.filter-group-toggle h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform var(--transition-normal);
}

.filter-group.expanded .toggle-icon {
    transform: rotate(180deg);
}

.filter-group-content {
    display: none;
    margin-top: var(--space-sm);
}

.filter-group.expanded .filter-group-content {
    display: block;
}

/* Filter lists */

.filter-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-height: 220px;
    overflow-y: auto;
}

.filter-checkbox-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Price slider */

.price-slider-container {
    margin-top: var(--space-xs);
}

.price-range {
    width: 100%;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--space-sm);
}

.preset-btn {
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 4px 10px;
    font-size: 0.8rem;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.preset-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.search-in-filter input {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    margin-bottom: var(--space-sm);
}

/* Rating badge */

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5f4ea;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-dark);
}

body.dark-mode .rating-badge {
    background: #022c22;
}

/* ===========================
   Sort Bar (Desktop)
   =========================== */

.desktop-sort-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-md);
}

.sort-label {
    font-weight: 600;
    margin-right: var(--space-xs);
    font-size: 0.9rem;
}

.sort-chip {
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 6px 12px;
    font-size: 0.85rem;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.sort-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sort-chip:hover:not(.active) {
    background: #e5f4ea;
}

/* Mobile: hide desktop sort bar */

@media (max-width: 1024px) {
    .desktop-sort-bar {
        display: none;
    }
}

/* ===========================
   Section Wrapper
   =========================== */

.section-white {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    /* padding: var(--space-md); */
    box-shadow: var(--shadow-soft);
}

.section-header {
    margin-bottom: var(--space-md);
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 2rem);
    margin: 0;
    padding-left: 20px;
    color: #064E3B;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    justify-content: center;
}

body.dark-mode .section-header h2 {
    color: #e0e0e0;
}

/* ===========================
   Product Grid
   =========================== */

#product-grid,
.best-selling-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

/* ≥480px: 2 columns */
@media (min-width: 480px) {

    #product-grid,
    .best-selling-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Force 2 products per row on mobile */
@media (max-width: 600px) {

    #product-grid,
    .best-selling-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ≥768px: 3 columns */
@media (min-width: 768px) {

    #product-grid,
    .best-selling-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ≥1200px: 4 columns */
@media (min-width: 1200px) {

    #product-grid,
    .best-selling-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* ===========================
   Product Card
   =========================== */

.product-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
}

body.dark-mode .product-card {
    background: var(--bg-card);
    box-shadow: none;
    border: 1px solid var(--border-soft);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Badge (future use) */

.product-card .badge {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Discount badge */

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Image */

.product-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Text content */

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: var(--space-sm);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.price del {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Button */

.btn-product {
    margin-top: var(--space-sm);
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-product:hover {
    background: #2e7d32;
    transform: translateY(-1px);
}

/* Empty state */

#product-grid:empty::before {
    content: "Loading products...";
    display: block;
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .product-card {
        padding: 6px !important;
    }

    .product-card img {
        aspect-ratio: 1/1 !important;
        /* Square image */
        border-radius: 8px;
    }

    .card-title {
        font-size: 0.8rem !important;
        line-height: 1.1;
    }

    .price {
        font-size: 0.85rem !important;
        margin-top: 2px;
    }

    .price del {
        font-size: 0.7rem !important;
    }

    .btn-product {
        padding: 6px !important;
        font-size: 0.75rem !important;
    }

    .discount-badge {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
        top: 6px;
        left: 6px;
    }
}

/* ===========================
   Footer (light styling, अगर style.css में न हो)
   =========================== */

.footer {
    margin-top: var(--space-xl);
    background: linear-gradient(135deg, #a5d6a7, #e8f5e9);
    padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.footer-section h3 {
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li+li {
    margin-top: 4px;
}

.footer-section a {
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.social-icons img {
    width: 26px;
    height: 26px;
}

.footer-bottom {
    margin-top: var(--space-lg);
    text-align: center;
    font-size: 0.85rem;
}

/* ===========================
   PERFECT MOBILE GRID FIX
   =========================== */

@media (max-width: 600px) {

    /* Remove slider behavior from any CSS */
    .product-grid,
    #product-grid,
    .best-selling-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    /* Product card compact and equal height */
    .product-card {
        padding: 8px !important;
        border-radius: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }

    /* Square images (ideal for 2-column grid) */
    .product-card img {
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
        width: 100% !important;
        border-radius: 8px !important;
    }

    /* Text sizes smaller = no squeeze */
    .card-title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }

    .price {
        font-size: 0.9rem !important;
    }

    .price del {
        font-size: 0.75rem !important;
    }

    .btn-product {
        font-size: 0.75rem !important;
        padding: 6px !important;
        margin-top: 6px !important;
    }

    /* Stop flex slider rules from style.css */
    .product-card {
        flex: none !important;
        min-width: 100% !important;
    }
}

/* ---------------------------------------------------
   FINAL PRODUCT CARD DESIGN (Same as style.css)
   For products.html & pots.html
---------------------------------------------------- */

/* Card container */
.product-card {
    background-color: #F9F7F3;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Dark mode support */
body.dark-mode .product-card {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

/* Image */
.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Title */
.card-title {
    font-size: 1rem;
    margin: 6px 0;
    color: #333;
    font-weight: 500;
}

/* Price */
.price {
    color: #166534;
    font-size: 1rem;
    font-weight: 600;
    margin: 3px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.price del {
    color: #888;
    font-size: 0.85rem;
}

/* Button */
.btn-product {
    background: #064E3B;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-product:hover {
    background: #00a651;
}

/* ---------------------------------------------
   GRID FIX (2 columns on phones, no squeeze)
---------------------------------------------- */
#product-grid,
.best-selling-grid {
    display: grid;
    gap: 15px;
}

/* Desktop */
@media (min-width: 900px) {
    #product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablets */
@media (max-width: 900px) {
    #product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Phones */
@media (max-width: 600px) {
    #product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .product-card {
        padding: 10px;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .price {
        font-size: 0.9rem;
    }
}