/* ==========================================================================
   MAMUCART - Product Listing & Details CSS
   Galleries, Zoom, Filter Sidebars, Specs, Reviews, Offers
   ========================================================================== */

/* ==========================================================================
   FILTER SIDEBAR
   ========================================================================== */
.filter-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.filter-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.filter-clear-all {
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 700;
    cursor: pointer;
}

.filter-group {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    margin-bottom: 0.45rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--text-dark);
    cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-green);
    width: 16px;
    height: 16px;
}

.filter-count {
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-left: auto;
}

/* Custom Price Slider / Inputs */
.price-inputs-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.price-input-box {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.btn-price-apply {
    background-color: var(--dark-teal);
    color: var(--white);
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================================
   PRODUCT LISTING HEADER & TOOLBAR
   ========================================================================== */
.listing-toolbar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.listing-results-count {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.listing-results-count strong {
    color: var(--text-dark);
}

.listing-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.84rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.sort-select {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    background-color: var(--white);
    cursor: pointer;
}

/* Offcanvas Filter Button for Mobile */
.btn-mobile-filter {
    display: none;
}

/* ==========================================================================
   PRODUCT DETAILS PAGE
   ========================================================================== */
.product-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Gallery Section */
.gallery-wrapper {
    position: sticky;
    top: 90px;
}

.main-image-display {
    position: relative;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    margin-bottom: 1rem;
    overflow: hidden;
    cursor: crosshair;
}

.main-image-display img {
    max-height: 380px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out;
}

.gallery-thumbs-row {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.thumb-item {
    width: 68px;
    height: 68px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(80, 174, 18, 0.2);
}

.thumb-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Details Info Column */
.product-info-col {
    padding-left: 0.5rem;
}

.product-detail-brand {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.65rem;
}

.product-detail-rating-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Big Price Box */
.detail-price-box {
    background: #fbfdf9;
    border: 1px solid #e1f0d7;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.price-main-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.price-mrp-val {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.price-discount-pill {
    background-color: #eaf6e1;
    color: #276b05;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
}

.price-taxes-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Bank Offers Strip */
.bank-offers-box {
    border: 1px dashed var(--border);
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.offers-box-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--dark-teal);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
}

.offer-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-bullet-list li {
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-bottom: 0.45rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.offer-bullet-list li i {
    color: var(--primary-green);
    margin-top: 3px;
}

/* Delivery PIN code checker */
.pincode-check-wrap {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    max-width: 320px;
}

.pincode-input {
    flex-grow: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
}

/* Buy Box CTA Column */
.buybox-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background-color: #fafbfc;
}

.buybox-stock-status {
    font-size: 1.05rem;
    font-weight: 800;
    color: #108e00;
    margin-bottom: 0.5rem;
}

.quantity-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.qty-btn {
    width: 34px;
    height: 34px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--light-green);
    border-color: var(--primary-green);
}

.qty-input {
    width: 50px;
    height: 34px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.btn-buybox-cart {
    width: 100%;
    margin-bottom: 0.65rem;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.btn-buybox-buy {
    width: 100%;
    background-color: #ff9900;
    color: #ffffff;
    border: 1px solid #e68a00;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buybox-buy:hover {
    background-color: #e68a00;
    color: #ffffff;
}

/* Specifications Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-light);
}

.spec-table th {
    width: 35%;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
}

.spec-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Review Breakdown Bars */
.review-rating-hero {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
}

.rating-big-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.review-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.review-star-lbl {
    min-width: 45px;
    font-weight: 600;
}

.review-bar-track {
    flex-grow: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: #f59e0b;
}

.review-pct-lbl {
    min-width: 35px;
    text-align: right;
    color: var(--text-muted);
}
