/* Pooja Traders - customer website styles (Bootstrap 5 + brand layer). */
:root {
    --brand: #12355b;
    --brand-dark: #0b2440;
    --brand-light: #e8eef6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --whatsapp: #25d366;
    --whatsapp-dark: #1da851;
    --surface: #f6f8fb;
    --radius: 14px;
}

body {
    background-color: var(--surface);
    color: #1f2937;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    background: #fff;
    padding: .5rem 1rem;
    border-radius: 8px;
}

/* Brand helpers */
.bg-brand { background-color: var(--brand) !important; }
.text-brand { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }

.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
}

.btn-accent {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-color: #1f2937;
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-hover-color: #fff;
}

.btn-whatsapp {
    --bs-btn-bg: var(--whatsapp);
    --bs-btn-border-color: var(--whatsapp);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--whatsapp-dark);
    --bs-btn-hover-border-color: var(--whatsapp-dark);
    --bs-btn-hover-color: #fff;
}

/* Header */
.site-header .navbar { padding-top: .75rem; padding-bottom: .75rem; }

.brand-logo { height: 40px; width: auto; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--brand-dark);
    font-size: 1.25rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, #1d4f86 100%);
}

.hero-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .15);
}

.feature-list li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .45rem 0;
}

.feature-list i { color: #16a34a; font-size: 1.1rem; }

/* Info tiles */
.info-tile {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.info-tile > i {
    font-size: 1.6rem;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 12px;
    padding: .5rem .7rem;
}

/* Footer */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, .7);
}

.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .25);
    z-index: 1030;
    text-decoration: none;
}

.whatsapp-float:hover { background: var(--whatsapp-dark); color: #fff; }

/* Forms */
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin-bottom: 0; padding-left: 1rem; }
.input-validation-error { border-color: var(--bs-danger); }

@media (max-width: 575.98px) {
    .hero .display-5 { font-size: 2rem; }
}

/* ---------------------------------------------------------------- Header search */
.header-search { width: 100%; }

@media (min-width: 992px) {
    .header-search { width: auto; max-width: 560px; }
}

.site-search { position: relative; }

.site-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 3px;
}

.site-search-icon { color: #6b7280; padding: 0 .5rem 0 .75rem; }

.site-search-input {
    border: 0;
    box-shadow: none !important;
    padding-left: 0;
}

.site-search-button { border-radius: 10px; font-weight: 600; }

.site-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    list-style: none;
    margin: 0;
    padding: .35rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .18);
    max-height: 70vh;
    overflow-y: auto;
}

.site-search-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .45rem .5rem;
    border-radius: 8px;
    color: #111827;
    text-decoration: none;
}

.site-search-results [role=option].active .site-search-item,
.site-search-item:hover { background: var(--brand-light); }

.site-search-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
    overflow: hidden;
}

.site-search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-search-text { display: flex; flex-direction: column; min-width: 0; }
.site-search-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-search-subtitle { font-size: .8rem; color: #6b7280; }
.site-search-empty { padding: .6rem; font-size: .9rem; color: #6b7280; }

.site-search-all {
    display: block;
    padding: .6rem .5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: .25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand);
}

/* ---------------------------------------------------------------- Category strip */
.category-strip { background: #fff; border-bottom: 1px solid #e5e7eb; }

.category-strip-list {
    display: flex;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: .55rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-pill {
    display: inline-block;
    white-space: nowrap;
    padding: .3rem .85rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: .875rem;
    text-decoration: none;
}

.category-pill:hover,
.category-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- Sections */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem .5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    text-decoration: none;
    color: #111827;
    height: 100%;
    text-align: center;
}

.category-tile:hover { border-color: var(--brand); box-shadow: 0 .5rem 1rem rgba(18, 53, 91, .08); }

.category-tile-image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand);
    overflow: hidden;
}

.category-tile-image img { width: 100%; height: 100%; object-fit: cover; }
.category-tile-name { font-weight: 600; font-size: .9rem; }

.bulk-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand) 0%, #1d4f86 100%);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius);
}

.empty-state > i { font-size: 2.5rem; color: #9ca3af; }

/* ---------------------------------------------------------------- Product card */
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.product-card:hover { border-color: #c7d2e0; box-shadow: 0 .75rem 1.5rem rgba(18, 53, 91, .08); }

.product-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f9fafb;
}

.product-card-image img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }

.product-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbd5e1;
}

.product-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: #16a34a;
    font-weight: 600;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem;
    flex-grow: 1;
}

.product-card-title { font-size: .95rem; font-weight: 600; margin: 0; line-height: 1.3; }

.product-card-title a {
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta { font-size: .78rem; color: #6b7280; }
.product-card-price { margin: .25rem 0; }
.product-card-price .price { font-weight: 700; font-size: 1.1rem; color: #111827; }
.product-card-price .unit { font-size: .8rem; color: #6b7280; }
.product-card-price .wholesale-note { font-size: .78rem; color: #16a34a; font-weight: 600; }
.price-hidden { font-weight: 700; color: var(--accent-dark); }

.product-card-actions { display: flex; gap: .4rem; margin-top: auto; padding-top: .5rem; }

/* ---------------------------------------------------------------- Product page */
.product-gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.product-gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }

.gallery-thumb {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    padding: 2px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.gallery-thumb.active { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }

.price-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.price-large { font-size: 1.75rem; font-weight: 800; color: #111827; }
.price-tiers th { font-weight: 600; font-size: .8rem; color: #6b7280; }

.enquiry-box {
    background: var(--brand-light);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.quantity-input { max-width: 180px; }
.quantity-input input { font-weight: 600; }

.spec-table th { width: 40%; font-weight: 600; }
.product-description { white-space: normal; line-height: 1.7; }

.filter-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: .5rem;
}

@media (min-width: 992px) {
    .filter-panel {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: var(--radius);
        padding: 1rem;
        position: sticky;
        top: 8rem;
    }
}
