/* ============================================================================
   LocalMart — Main Stylesheet
   ============================================================================
   VERBATIM port of LocalMart6 original styles.css design system.
   All colors, spacing, radii, gradients, hover effects match the original.
   
   Sections (in order):
   1. Body & base (LocalMart6)
   2. Header (LocalMart6)
   3. Nav desktop/mobile (LocalMart6)
   4. Search bar with suggestions (LocalMart6)
   5. Sections (LocalMart6)
   6. Hero with filters (LocalMart6)
   7. Card container & cards (LocalMart6)
   8. View-all link (LocalMart6)
   9. Details pages (LocalMart6)
   10. Footer (LocalMart6)
   11. Media queries (LocalMart6)
   12. LocalMart ADDITIONS — forms, alerts, admin shims (new — for features
       LocalMart6 doesn't have: auth, admin, favorites, inquiries)
   ============================================================================ */

/* ====== 1. Body & base ====== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fa;
    color: #1a202c;
    line-height: 1.6;
}

* { box-sizing: border-box; }
a { color: #4f46e5; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #7c3aed; }
img { max-width: 100%; display: block; }

/* ====== 2. Header (verbatim LocalMart6) ====== */
header {
    background: linear-gradient(to right, #ffffff, #f8fafc);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.scrolled {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header .logo a {
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 10px;
    padding-right: 40px;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

header .logo a:hover { opacity: 0.9; }

/* ====== 3. Desktop & mobile nav ====== */
.desktop-nav { margin-left: auto; }

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.desktop-nav ul li a:hover {
    background-color: #edf2f7;
    color: #4f46e5;
}

/* LocalMart addition: CTA variant for "Register Your Shop" */
.desktop-nav ul li a.nav-cta {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 0.6rem 1rem;
}
.desktop-nav ul li a.nav-cta:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2d3748;
    transition: color 0.3s ease;
    background: none;
    border: none;
    margin-left: auto;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover { color: #4f46e5; }

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav ul li a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.mobile-nav ul li a:hover { background-color: #f7fafc; }

@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .mobile-nav.open { display: block; }
}

/* ====== 4. Search bar ====== */
.search-bar {
    position: relative;
    max-width: 600px;
    margin: 1rem auto;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Search bar form variant — with inline button for submission */
.search-bar form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.search-bar form input { flex: 1; }

.search-bar form button {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.search-bar form button:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: scale(1.02);
}

.search-bar .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    display: none;
}

.search-bar .suggestions.visible { display: block; }

.search-bar .suggestions div {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-bar .suggestions div:hover { background-color: #f7fafc; }

.search-bar .suggestions div i { margin-right: 0.75rem; color: #4f46e5; }

.search-bar .suggestions div strong {
    font-weight: 500;
    color: #1a202c;
}

.search-bar .suggestions div span {
    display: block;
    font-size: 0.85rem;
    color: #718096;
}

/* ====== 5. Sections ====== */
section {
    padding: 5rem 2rem 3rem;
    max-width: 1280px;
    margin: 0 auto;
}

section > h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem;
}

section > p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0 0 1rem;
}

/* ====== 6. Hero ====== */
.hero {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.hero p {
    font-size: 1.1rem;
    margin: 0.5rem 0 1.5rem;
    opacity: 0.9;
    color: #fff;
}

/* Hero's internal search bar — override backgrounds so it shows on gradient */
.hero .search-bar input {
    background-color: #fff;
}

/* Hero stats (LocalMart addition) */
.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.hero-stat { color: #fff; }
.hero-stat-value { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1; }
.hero-stat-label { font-size: 0.85rem; opacity: 0.85; margin-top: 0.25rem; }

/* ====== Filters ====== */
.filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filters button, .filters a {
    padding: 0.6rem 1.5rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.filters button:hover, .filters a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.filters button.active, .filters a.active {
    background-color: #fff;
    color: #4f46e5;
}

/* ====== 7. Cards ====== */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.card-content { padding: 1.5rem; }

.card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
}

.card p { margin: 0.25rem 0; color: #4a5568; font-size: 0.9rem; }

.card .badge-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.card .discount {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.card .new-badge {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* LocalMart additions — verified & rating badges match the pill style */
.card .verified-badge {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.card .rating-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Card with image overlay badges (product cards) */
.card-badges-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.card .price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card .price-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4f46e5;
}

.card .price-original {
    font-size: 0.9rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.card .buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.card button, .card .btn-card {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.card button:hover, .card .btn-card:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    color: #fff;
}

/* Secondary card button (outline) */
.card .btn-card-outline {
    background: #fff;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}
.card .btn-card-outline:hover {
    background: #4f46e5;
    color: #fff;
}

/* ====== 8. View-all link ====== */
.view-all {
    display: inline-block;
    margin: 1rem 0;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover { color: #7c3aed; }

/* Float view-all to the right when placed in section header row */
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-head-row h2 { margin-bottom: 0; }

/* ====== 9. Details page ====== */
.details {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.details img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.details h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1a202c;
}

.details h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #1a202c;
}

.details .meta {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.details .meta-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.details .meta-row span i {
    color: #4f46e5;
    margin-right: 0.35rem;
}

/* Two-column detail layout (product: image left, info right) */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
}

.detail-ctas {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary-gradient, .btn-whatsapp, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}
.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    color: #fff;
    transform: scale(1.02);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}
.btn-whatsapp:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    transform: scale(1.02);
}

.btn-outline {
    background: #fff;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}
.btn-outline:hover {
    background: #4f46e5;
    color: #fff;
}

/* Detail price block */
.detail-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.detail-price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
}

.detail-price-original {
    font-size: 1.1rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.detail-price-save {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ====== 10. Footer (verbatim LocalMart6) ====== */
footer {
    background: linear-gradient(to bottom, #1a202c, #2d3748);
    color: #fff;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-section h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.footer-section p, .footer-section ul {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section ul li a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover { color: #fff; }

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #93c5fd;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover { color: #fff; }

.subscribe-form {
    display: flex;
    gap: 0.5rem;
}

.subscribe-form input {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    font-family: inherit;
}

.subscribe-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.subscribe-form button:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #e2e8f0;
}

/* ====== 11. LocalMart6 Media Queries ====== */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }
    .search-bar {
        margin: 1rem auto;
        max-width: 90%;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .card-container { grid-template-columns: 1fr; }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons { justify-content: center; }
    .subscribe-form { flex-direction: column; }
    section { padding: 4rem 1rem 2rem; }
}

@media (max-width: 480px) {
    header .logo a {
        font-size: 1.5rem;
        padding-right: 0;
    }
    nav ul li a {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    .hero h1 { font-size: 1.75rem; }
    .hero { padding: 3rem 1rem; border-radius: 16px; }
}

/* ============================================================================
   12. LocalMart ADDITIONS — features LocalMart6 doesn't have
   (auth, admin, forms, alerts, favorites, inquiries)
   ============================================================================ */

/* --- Alerts/flash messages --- */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-size: 0.95rem;
    font-weight: 500;
}
.alert i { font-size: 1.2rem; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1rem;
}
.breadcrumb a { color: #4f46e5; font-weight: 500; }
.breadcrumb a:hover { color: #7c3aed; }
.breadcrumb span.separator { color: #cbd5e0; }
.breadcrumb .current { color: #1a202c; font-weight: 500; }

/* --- Auth/form card (login, register, forgot password) --- */
.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 2rem auto;
}
.form-card-wide { max-width: 600px; }
.form-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1a202c;
    text-align: center;
}
.form-card .subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.form-control,
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], input[type="number"],
input[type="search"], input[type="time"], input[type="file"],
select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    color: #1a202c;
    transition: all 0.3s ease;
    font-family: inherit;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
textarea { resize: vertical; min-height: 80px; }

.btn-submit, button[type="submit"].btn-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-submit:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: scale(1.02);
}

.form-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
}
.form-link a { color: #4f46e5; font-weight: 500; }

/* Role picker (register page) */
.role-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.role-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}
.role-option:hover { border-color: #4f46e5; }
.role-option.selected {
    border-color: #4f46e5;
    background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(124,58,237,0.05));
}
.role-option input { display: none; }
.role-option .role-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #4f46e5;
}
.role-option h4 { font-size: 1rem; margin: 0.25rem 0; color: #1a202c; }
.role-option p { font-size: 0.8rem; color: #718096; margin: 0; }

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.empty-state-icon { font-size: 4rem; color: #4f46e5; margin-bottom: 1rem; opacity: 0.7; }
.empty-state h2 { color: #2d3748; margin-bottom: 0.5rem; }
.empty-state p { color: #718096; margin-bottom: 1.5rem; }

/* --- Favorite button --- */
.favorite-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.favorite-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
    transform: scale(1.05);
}
.favorite-btn.favorited {
    color: #ef4444;
    background: #fee2e2;
    border-color: #ef4444;
}

/* --- Sticky mobile contact bar --- */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    z-index: 900;
    border-top: 1px solid #e2e8f0;
    gap: 0.5rem;
}
.mobile-contact-bar > a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    min-height: 48px;
    transition: all 0.3s ease;
    font-family: inherit;
}
.mobile-contact-bar .btn-sticky-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}
.mobile-contact-bar .btn-sticky-call {
    background: #fff;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}
@media (max-width: 768px) {
    .mobile-contact-bar.show { display: flex; }
    body.has-sticky-bar { padding-bottom: 5rem; }
}

/* --- Star rating display --- */
.stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 1rem;
    display: inline-block;
}

/* --- Review block --- */
.review-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.review-item:last-child { border-bottom: none; }
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.review-author { font-weight: 600; color: #1a202c; }
.review-date { color: #a0aec0; font-size: 0.85rem; }
.review-comment { color: #4a5568; line-height: 1.6; }
.vendor-reply {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f7fafc;
    border-left: 3px solid #4f46e5;
    border-radius: 0 8px 8px 0;
}
.vendor-reply-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

/* --- Admin/Vendor compatibility shims (Bootstrap-to-LocalMart6) --- */
/* These keep admin/ and vendor/ pages working with reasonable styling */
.container-fluid { max-width: 1600px; margin: 0 auto; padding: 0 1.5rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.row > [class*="col-"] { padding: 0 0.75rem; flex: 1 1 100%; }
@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}
@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    color: #fff;
}
.btn-outline-primary {
    background: #fff;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}
.btn-outline-primary:hover { background: #4f46e5; color: #fff; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-outline-secondary { background: #fff; color: #718096; border: 2px solid #e2e8f0; }
.btn-outline-secondary:hover { border-color: #2d3748; color: #2d3748; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-outline-danger { background: #fff; color: #ef4444; border: 2px solid #ef4444; }
.btn-success { background: linear-gradient(135deg, #22c55e, #4ade80); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.bg-primary { background: #4f46e5; color: #fff; }
.bg-success { background: #22c55e; color: #fff; }
.bg-warning { background: #f59e0b; color: #fff; }
.bg-danger { background: #ef4444; color: #fff; }
.bg-info { background: #3b82f6; color: #fff; }
.bg-secondary { background: #718096; color: #fff; }
.bg-light { background: #f7fafc; color: #1a202c; }

.text-primary { color: #4f46e5; }
.text-success { color: #22c55e; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-muted { color: #718096; }
.text-white { color: #fff; }
.small { font-size: 0.85rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.table th { background: #f7fafc; font-weight: 600; font-size: 0.85rem; color: #2d3748; }

.card-header {
    background: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}
.card-header.bg-primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.card-body { padding: 1.25rem; }

.list-group { list-style: none; padding: 0; margin: 0; }
.list-group-item-action {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background: #fff;
}
.list-group-item-action:hover { background: #edf2f7; color: #4f46e5; }
.list-group-item-action.active { background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(124,58,237,0.08)); color: #4f46e5; font-weight: 600; }

/* Utility classes */
.d-flex { display: flex; }
.gap-2 { gap: 1rem; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.text-center { text-align: center; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* Focus-visible accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Bootstrap Icons fallback (admin pages use bi-* icons) */
[class^="bi-"]::before, [class*=" bi-"]::before {
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    display: inline-block;
}
.bi-shop::before, .bi-shop-window::before { content: "\f54e"; }
.bi-person::before { content: "\f007"; }
.bi-person-plus::before { content: "\f234"; }
.bi-envelope::before { content: "\f0e0"; }
.bi-telephone::before { content: "\f095"; }
.bi-lock::before { content: "\f023"; }
.bi-eye::before { content: "\f06e"; }
.bi-eye-slash::before { content: "\f070"; }
.bi-box::before { content: "\f466"; }
.bi-search::before { content: "\f002"; }
.bi-geo-alt::before { content: "\f3c5"; }
.bi-star::before, .bi-star-fill::before { content: "\f005"; }
.bi-pencil::before { content: "\f303"; }
.bi-trash::before { content: "\f2ed"; }
.bi-plus::before { content: "\f055"; }
.bi-check::before, .bi-check-circle::before { content: "\f00c"; }
.bi-x::before, .bi-x-circle::before { content: "\f00d"; }
.bi-exclamation-triangle::before { content: "\f071"; }
.bi-info-circle::before { content: "\f05a"; }
.bi-people::before { content: "\f0c0"; }
.bi-city::before { content: "\f64f"; }
.bi-tag::before, .bi-tags::before { content: "\f02b"; }
.bi-clock::before { content: "\f017"; }
.bi-heart::before, .bi-heart-fill::before { content: "\f004"; }
.bi-gear::before { content: "\f013"; }
.bi-list::before { content: "\f0c9"; }
.bi-grid::before { content: "\f00a"; }
.bi-graph-up::before { content: "\f201"; }
.bi-bag::before { content: "\f290"; }
.bi-chat::before, .bi-chat-left-text::before { content: "\f075"; }
.bi-arrow-left::before { content: "\f060"; }
.bi-arrow-right::before { content: "\f061"; }

/* Print */
@media print {
    header, footer, .mobile-contact-bar, .filters, .mobile-nav, .mobile-menu-toggle { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #e2e8f0; }
}

/* ============================================================================
   Extended Bootstrap utility shims (admin + vendor coverage)
   Gives admin/ and vendor/ pages consistent LocalMart6 design without
   needing to rewrite their Bootstrap-based markup.
   ============================================================================ */

/* Font size utilities */
.fs-1 { font-size: 2.5rem; }
.fs-2 { font-size: 2rem; }
.fs-3 { font-size: 1.75rem; }
.fs-4 { font-size: 1.5rem; }
.fs-5 { font-size: 1.25rem; }
.fs-6 { font-size: 1rem; }
.fs-sm { font-size: 0.875rem; }

/* Font weight utilities */
.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* H class utilities (as text, not as heading tags) */
.h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin: 0 0 0.5rem; }
.h2 { font-size: 2rem; font-weight: 700; line-height: 1.25; margin: 0 0 0.5rem; }
.h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.5rem; }
.h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.5rem; }
.h5 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin: 0 0 0.5rem; }
.h6 { font-size: 1rem; font-weight: 600; line-height: 1.5; margin: 0 0 0.5rem; }

/* Display utilities */
.display-1 { font-size: 4rem; font-weight: 700; }
.display-4 { font-size: 2.75rem; font-weight: 700; }
.display-5 { font-size: 2.25rem; font-weight: 700; }
.display-6 { font-size: 1.75rem; font-weight: 600; }

/* Margin/padding utilities (Bootstrap-style) */
.m-0 { margin: 0; } .m-1 { margin: 0.25rem; } .m-2 { margin: 0.5rem; } .m-3 { margin: 1rem; } .m-4 { margin: 1.5rem; } .m-5 { margin: 3rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.ms-0 { margin-left: 0; } .ms-1 { margin-left: 0.25rem; } .ms-2 { margin-left: 0.5rem; } .ms-3 { margin-left: 1rem; } .ms-auto { margin-left: auto; }
.me-0 { margin-right: 0; } .me-1 { margin-right: 0.25rem; } .me-2 { margin-right: 0.5rem; } .me-3 { margin-right: 1rem; } .me-auto { margin-right: auto; }
.p-0 { padding: 0; } .p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; }
.pt-0 { padding-top: 0; } .pt-3 { padding-top: 1rem; } .pt-4 { padding-top: 1.5rem; }
.pb-0 { padding-bottom: 0; } .pb-3 { padding-bottom: 1rem; } .pb-4 { padding-bottom: 1.5rem; } .pb-5 { padding-bottom: 3rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-3 { padding-top: 1rem; padding-bottom: 1rem; } .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 1rem; padding-right: 1rem; } .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Gap utilities for flex/grid */
.g-0 { gap: 0; margin: 0; } .g-1 { gap: 0.25rem; } .g-2 { gap: 0.5rem; } .g-3 { gap: 1rem; } .g-4 { gap: 1.5rem; }
.row.g-3 > * { padding: 0.5rem; }
.row.g-4 > * { padding: 0.75rem; }

/* Opacity */
.opacity-25 { opacity: 0.25; } .opacity-50 { opacity: 0.5; } .opacity-75 { opacity: 0.75; } .opacity-90 { opacity: 0.9; }

/* Borders */
.border-0 { border: 0; }
.border { border: 1px solid #e2e8f0; }
.border-bottom { border-bottom: 1px solid #e2e8f0; }
.border-top { border-top: 1px solid #e2e8f0; }
.rounded { border-radius: 8px; } .rounded-1 { border-radius: 4px; } .rounded-3 { border-radius: 12px; } .rounded-pill { border-radius: 999px; }

/* Flex helpers */
.d-none { display: none; } .d-block { display: block; } .d-inline { display: inline; } .d-inline-block { display: inline-block; } .d-flex { display: flex; } .d-inline-flex { display: inline-flex; } .d-grid { display: grid; }
.flex-column { flex-direction: column; } .flex-row { flex-direction: row; } .flex-grow-1 { flex-grow: 1; } .flex-shrink-0 { flex-shrink: 0; }
.justify-content-start { justify-content: flex-start; } .justify-content-center { justify-content: center; } .justify-content-end { justify-content: flex-end; } .justify-content-between { justify-content: space-between; } .justify-content-around { justify-content: space-around; }
.align-items-start { align-items: flex-start; } .align-items-center { align-items: center; } .align-items-end { align-items: flex-end; } .align-items-baseline { align-items: baseline; }
.text-start { text-align: left; } .text-end { text-align: right; } .text-center { text-align: center; }
.text-nowrap { white-space: nowrap; } .text-wrap { white-space: normal; } .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Display helpers */
@media (min-width: 768px) {
    .d-md-block { display: block; } .d-md-flex { display: flex; } .d-md-none { display: none; }
}

/* Sizing */
.w-25 { width: 25%; } .w-50 { width: 50%; } .w-75 { width: 75%; } .w-100 { width: 100%; } .w-auto { width: auto; }
.h-100 { height: 100%; } .mh-100 { max-height: 100%; } .mw-100 { max-width: 100%; }

/* Text colors extended */
.text-muted { color: #718096 !important; }
.text-body { color: #2d3748; }
.text-dark { color: #1a202c; }
.text-secondary { color: #4a5568; }

/* Background variants more complete */
.bg-primary { background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; color: #fff; }
.bg-success-subtle { background: #d1fae5; }
.bg-warning-subtle { background: #fef3c7; }
.bg-danger-subtle { background: #fee2e2; }
.bg-info-subtle { background: #dbeafe; }

/* Card enhancements */
.card {
    /* Override card default hover — only apply to grid cards, not admin panels */
}
/* Admin/vendor cards should NOT have the grid-card hover */
.admin-panel .card:hover,
.card.card-admin:hover,
.col-lg-2 .card:hover,
.col-lg-3 .card:hover,
.col-lg-4 .card:hover,
.col-lg-6 .card:hover,
.col-lg-10 .card:hover,
.col-md-3 .card:hover,
.col-md-4 .card:hover,
.col-md-6 .card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Admin sidebar active state */
.list-group-flush .list-group-item-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form inputs in Bootstrap style */
.form-label { display: block; font-weight: 500; color: #2d3748; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-text { font-size: 0.8rem; color: #718096; margin-top: 0.25rem; }
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.form-check-input { width: auto; margin: 0; }
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
}
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.input-group > .form-control, .input-group > .form-select {
    flex: 1 1 auto;
    min-width: 0;
}
.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    border-right: none;
    border-radius: 12px 0 0 12px;
}
.input-group > input:first-child, .input-group > .form-control:first-child { border-radius: 0 12px 12px 0; }
.input-group > input:last-child, .input-group > .form-control:last-child { border-radius: 12px; }

/* Dropdown */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.3rem;
    vertical-align: 0.1rem;
    content: "▾";
    font-size: 0.75rem;
}

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Make sure admin/vendor pages don't hide behind fixed header */
body.admin-panel,
body.vendor-panel,
.admin-panel-page,
.vendor-panel-page {
    padding-top: 5rem;
}

/* When admin/vendor use container-fluid directly at root, give it top padding */
body > .container-fluid:first-of-type,
body > .main-content:first-of-type {
    padding-top: 5rem;
}

/* Alert variants full coverage */
.alert { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-radius: 12px; margin: 1rem 0; font-weight: 500; }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert i { font-size: 1.2rem; }

/* Button enhancements */
.btn-secondary { background: #718096; color: #fff; border: none; }
.btn-light { background: #f7fafc; color: #2d3748; border: 1px solid #e2e8f0; }
.btn-link { background: transparent; color: #4f46e5; border: none; padding: 0.5rem; }
.btn-link:hover { color: #7c3aed; text-decoration: underline; }

/* Shadow utilities */
.shadow { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }

/* ============================================================================
   Product detail page aliases (used by product.php)
   Maps .product-* classes to the LocalMart6 detail pattern
   ============================================================================ */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.product-image-wrap {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    aspect-ratio: 1;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-image-placeholder {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-icon { font-size: 5rem; color: #fff; }

.badge-container-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.badge-discount, .badge-new, .badge-featured {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.badge-discount { background: linear-gradient(135deg, #ef4444, #f87171); }
.badge-new { background: linear-gradient(135deg, #22c55e, #4ade80); }
.badge-featured { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1a202c; }

.product-info { padding: 0.5rem 0; }

.product-category-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #4f46e5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: #1a202c;
}
.product-title-ur {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 1rem;
    direction: rtl;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.price-current { font-size: 2rem; font-weight: 700; color: #4f46e5; }
.price-original { font-size: 1.1rem; color: #a0aec0; text-decoration: line-through; }
.price-save {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.avail-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.avail-in-stock { background: #d1fae5; color: #065f46; }
.avail-out, .avail-discontinued { background: #fee2e2; color: #991b1b; }
.stock-count { font-size: 0.85rem; color: #718096; }

.product-description { margin-bottom: 1.5rem; }
.product-description h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-description p { color: #4a5568; line-height: 1.7; }

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tag {
    background: #f7fafc;
    color: #4a5568;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.tag:hover { background: #4f46e5; color: #fff; }

.product-ctas {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.product-ctas > a { flex: 1; min-width: 180px; }

.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: #fff;
    color: #1a202c;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-call:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: scale(1.02);
}

/* "Section" variants for product/shop page layout */
.section.section-breadcrumb { padding-top: 6rem; padding-bottom: 0; }
.section.section-compact { padding: 1.5rem 2rem; }

/* Admin/Vendor dashboard wrapper — ensures no content hidden under fixed header */
body > .container-fluid.py-4,
body > .container-fluid.py-5 { padding-top: 6rem !important; }

/* Ensure cards on admin/vendor pages (nested in col-*) keep their look stable */
.container-fluid .card,
.container-fluid .card:hover {
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
}
.container-fluid .card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Admin h3 class (used a lot) */
.h3.fw-bold { font-size: 1.5rem; font-weight: 700; color: #1a202c; }

/* ============================================================================
   ADMIN + VENDOR PANEL LAYOUT (Phase 4)
   Sidebar + main content. Indigo brand. Replaces Bootstrap card sidebars.
   ============================================================================ */

.panel-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}
@media (max-width: 900px) {
    .panel-layout {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

.panel-sidebar {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 5rem;
}
@media (max-width: 900px) {
    .panel-sidebar { position: static; }
}

.panel-sidebar-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}
.panel-sidebar-header i {
    font-size: 1.1rem;
}

.panel-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}
.panel-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.15s;
}
.panel-nav a i {
    width: 20px;
    text-align: center;
    color: #718096;
}
.panel-nav a:hover {
    background: #f7fafc;
}
.panel-nav a:hover i {
    color: #4f46e5;
}
.panel-nav a.active {
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(124,58,237,0.1));
    color: #4f46e5;
    font-weight: 500;
}
.panel-nav a.active i {
    color: #4f46e5;
}
.panel-nav a .badge {
    margin-left: auto;
    background: #4f46e5;
    color: #fff;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-main { min-width: 0; }

/* Page header within main */
.panel-header {
    margin-bottom: 1.5rem;
}
.panel-header h1 {
    font-size: 1.75rem;
    margin: 0 0 0.25rem;
}
.panel-header .subtitle {
    color: #718096;
    margin: 0;
}

/* Stat tiles for dashboards */
.panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.panel-stat-tile {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #4f46e5;
}
.panel-stat-tile .stat-icon {
    font-size: 1.5rem;
    color: #4f46e5;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}
.panel-stat-tile .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.panel-stat-tile .stat-label {
    font-size: 0.85rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.panel-stat-tile.stat-success { border-left-color: #22c55e; }
.panel-stat-tile.stat-success .stat-icon { color: #22c55e; }
.panel-stat-tile.stat-warning { border-left-color: #f59e0b; }
.panel-stat-tile.stat-warning .stat-icon { color: #f59e0b; }
.panel-stat-tile.stat-danger { border-left-color: #ef4444; }
.panel-stat-tile.stat-danger .stat-icon { color: #ef4444; }

/* Panel cards (for sections within main) */
.panel-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}
.panel-card h2,
.panel-card h3 {
    margin-top: 0;
}

/* Panel tables */
.panel-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.panel-table th,
.panel-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.panel-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.panel-table tbody tr:hover { background: #f7fafc; }
.panel-table tbody tr:last-child td { border-bottom: none; }

/* Status pills */
.status-pill {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status-pill.active { background: #d1fae5; color: #065f46; }
.status-pill.pending { background: #fef3c7; color: #92400e; }
.status-pill.suspended,
.status-pill.rejected { background: #fee2e2; color: #991b1b; }
.status-pill.inactive { background: #e2e8f0; color: #4a5568; }

/* Action buttons */
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Hide footer subscribe form on panel pages — too cluttered */
body.panel-page footer .subscribe { display: none; }
