/* IndiaWix - Complete PriceBefore Front Page Stylesheet */

:root {
    --pb-bg: #f8fafc;
    --pb-card-bg: #ffffff;
    --pb-border: #e2e8f0;
    --pb-primary: #0284c7;
    --pb-yellow-btn: #fbbd08;
    --pb-yellow-btn-hover: #f59e0b;
    --pb-text-dark: #1e293b;
    --pb-text-muted: #64748b;
}

body {
    background-color: var(--pb-bg) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--pb-text-dark) !important;
}

.pb-homepage-wrapper {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 10px 40px 10px;
}

/* ========================================================
   1. HERO SEARCH BAR CARD (PriceBefore Style)
   ======================================================== */
.pb-hero-search-wrap {
    margin: 15px auto 12px auto;
}

.pb-search-box-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 3px 6px;
}

.pb-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pb-search-select {
    border: none !important;
    background: transparent !important;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    padding: 10px 6px 10px 10px;
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 0;
    outline: none !important;
    cursor: pointer;
    max-width: 135px;
}

.pb-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 14px;
    padding: 10px 8px;
    background: transparent !important;
    color: #0f172a;
}

.pb-search-input::placeholder {
    color: #94a3b8;
}

.pb-search-submit {
    background: #1e293b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.pb-search-submit:hover {
    background: #0f172a !important;
}

/* ========================================================
   2. CATEGORY NAV BAR (PriceBefore Style)
   ======================================================== */
.pb-category-nav-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pb-nav-scroll {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 3px;
}
.pb-nav-scroll::-webkit-scrollbar { display: none; }

.pb-nav-item {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #475569 !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.pb-nav-item:hover,
.pb-nav-item.active {
    color: #0284c7 !important;
    background: #f0f9ff;
}

.pb-highlight-tab {
    color: #e11d48 !important;
    background: #fff1f2;
}

/* ========================================================
   3. HORIZONTAL QUICK PRICE PILLS
   ======================================================== */
.pb-pills-bar {
    margin-bottom: 18px;
}

.pb-pills-scroll {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 2px 0 6px 0;
    scrollbar-width: none;
}
.pb-pills-scroll::-webkit-scrollbar { display: none; }

.pb-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.pb-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #334155 !important;
    border: 1px solid var(--pb-border);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pb-pill:hover,
.pb-pill.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.pb-deal-pill {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

/* ========================================================
   4. SECTION CONTAINERS & HEADINGS
   ======================================================== */
.pb-section-container {
    margin-bottom: 28px;
}

.pb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.pb-sec-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.pb-view-all {
    font-size: 13px;
    font-weight: 700;
    color: #0284c7 !important;
    text-decoration: none !important;
}

.pb-view-all:hover {
    text-decoration: underline !important;
}

/* ========================================================
   5. 4-COLUMN EXACT PRICEBEFORE CARD GRID (Matches Screenshot)
   ======================================================== */
.pb-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pb-deal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.pb-deal-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.pb-store-badge {
    height: 24px;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

/* Amazon Logo */
.pb-logo-amazon {
    display: inline-flex;
    align-items: baseline;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    position: relative;
}

.pb-smile-curve {
    position: absolute;
    bottom: -3px;
    left: 2px;
    width: 48px;
    height: 6px;
    border-bottom: 2.5px solid #ff9900;
    border-radius: 0 0 50% 50%;
}

/* Flipkart Logo */
.pb-logo-flipkart {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14.5px;
    font-weight: 700;
    font-style: italic;
    color: #2874f0;
}

.pb-fk-icon {
    font-size: 14px;
    background: #ffd600;
    border-radius: 3px;
    padding: 1px 2px;
    line-height: 1;
}

/* Product Thumbnail */
.pb-thumb-wrap {
    height: 160px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 10px 0;
    padding: 4px;
    box-sizing: border-box;
}

.pb-thumb-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pb-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.pb-deal-card:hover .pb-product-img {
    transform: scale(1.04);
}

/* Product Title */
.pb-deal-title {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #1e293b !important;
    margin: 0 0 6px 0 !important;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pb-deal-title a {
    color: #1e293b !important;
    text-decoration: none !important;
}

.pb-deal-title a:hover {
    color: #0284c7 !important;
}

/* Dotted Divider */
.pb-divider {
    border-top: 1px dotted #cbd5e1;
    margin: 8px 0 10px 0;
}

/* Price Line */
.pb-price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 13px;
}

.pb-curr-price {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.pb-mrp-price {
    font-size: 12.5px;
    color: #64748b;
    text-decoration: line-through;
}

.pb-off-badge {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}

/* Yellow "Get Deal" Button */
.pb-deal-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--pb-yellow-btn) !important;
    color: #111827 !important;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease;
}

.pb-deal-btn:hover {
    background: var(--pb-yellow-btn-hover) !important;
}

/* ========================================================
   6. POPULAR CATEGORIES (PriceBefore Category Tile Grid)
   ======================================================== */
.pb-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.pb-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    padding: 12px 6px 10px 6px;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.pb-cat-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.pb-cat-img-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.pb-cat-img-wrap img {
    max-height: 75px;
    max-width: 100%;
    object-fit: contain;
}

.pb-cat-btn {
    font-size: 12px;
    font-weight: 700;
    color: #334155 !important;
}

/* ========================================================
   7. SEO INFO & DISCLAIMER BOX
   ======================================================== */
.pb-info-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    margin-top: 24px;
}

.pb-info-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
}

.pb-info-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.pb-disclaimer {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

/* ========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ======================================================== */
@media (max-width: 1024px) {
    .pb-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .pb-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .pb-search-select {
        display: none !important; /* Hide dropdown on small screens */
    }

    .pb-grid-container {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
        gap: 8px !important;
    }

    .pb-deal-card {
        padding: 10px 8px;
    }

    .pb-thumb-wrap {
        height: 120px;
    }

    .pb-deal-title {
        font-size: 12px !important;
        height: 32px;
    }

    .pb-price-line {
        font-size: 11.5px;
        gap: 4px;
    }

    .pb-curr-price {
        font-size: 13.5px;
    }

    .pb-mrp-price {
        font-size: 11px;
    }

    .pb-off-badge {
        font-size: 10.5px;
    }

    .pb-deal-btn {
        font-size: 12.5px;
        padding: 8px 0;
        border-radius: 5px;
    }

    .pb-categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .pb-cat-img-wrap {
        height: 65px;
    }

    .pb-cat-img-wrap img {
        max-height: 60px;
    }

    .pb-cat-btn {
        font-size: 11px;
    }
}
