
/* ============================================================
   FIX 2: PRODUCT ATTRIBUTES — display properly
============================================================ */
.product-attribute-group {
    margin-bottom: 14px;
}
.product-attribute-group h6,
.product-attribute-group .attr-label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.attribute-options label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    background: #fff;
    color: #333;
    min-width: 40px;
    text-align: center;
}
.attribute-options label:hover {
    border-color: var(--color-orange, #e07b39);
    color: var(--color-orange, #e07b39);
}
.attribute-options input[type="radio"]:checked + label,
.attribute-options label.selected,
.attribute-options label.active {
    border-color: var(--color-orange, #e07b39);
    background: var(--color-orange, #e07b39);
    color: #fff;
    font-weight: 600;
}
.attribute-options input[type="radio"] {
    display: none;
}
/* Color swatches */
.attr-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.15s, border-color 0.15s;
}
.attr-color-swatch:hover,
.attr-color-swatch.selected {
    transform: scale(1.15);
    border-color: #333;
}


/* ============================================================
   FIX 5: PRODUCT RATINGS — visible on listing pages
============================================================ */
.product-rating-display {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 4px 0;
    font-size: 12px;
    min-height: 18px;
}
.product-rating-display .fa-star,
.product-rating-display .fa-star-half-o {
    color: #f5a623;
}
.product-rating-display .fa-star-o {
    color: #ccc;
}
.product-rating-display small {
    color: #888;
    font-size: 11px;
    margin-left: 2px;
}
/* Rating stars in cards */
.product-card .star-rating,
.product-card .rating-wrap {
    display: flex !important;
    align-items: center;
    gap: 2px;
}

/* ============================================================
   FIX 6–10: FILTER SIDEBAR — multi-filter, price range, brand
============================================================ */
.sidebar-filter {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
/* Filter section headers */
.filter-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    padding: 10px 0 6px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
/* Checkbox filter items */
.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
}
.filter-checkbox-item input[type="checkbox"] {
    accent-color: var(--color-orange, #e07b39);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.filter-checkbox-item label {
    cursor: pointer;
    font-size: 13px;
    color: #555;
    margin: 0;
    flex: 1;
}
.filter-checkbox-item:hover label {
    color: var(--color-orange, #e07b39);
}

/* FIX 9: Price range slider */
.price-range-wrap {
    padding: 10px 0;
}
.price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}
.price-range-inputs input[type="number"] {
    width: 90px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    text-align: center;
}
.price-range-inputs input[type="number"]:focus {
    border-color: var(--color-orange, #e07b39);
    outline: none;
}
input[type="range"].price-range-slider {
    width: 100%;
    accent-color: var(--color-orange, #e07b39);
    height: 4px;
}
.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Apply / Clear filter buttons */
.filter-action-btns {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.product_filter_btn, .btn-apply-filter {
    flex: 1;
    background: var(--color-orange, #e07b39);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.product_filter_btn:hover, .btn-apply-filter:hover {
    background: #c96820;
}
.clear-filters-btn, #reload {
    flex: 1;
    background: #f5f5f5;
    color: #555;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.clear-filters-btn:hover, #reload:hover {
    background: #ffe8d6;
    border-color: var(--color-orange, #e07b39);
    color: var(--color-orange, #e07b39);
}

/* ============================================================
   FIX 11: PAGINATION — visible and styled
============================================================ */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}
.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border: 1.5px solid #ddd;
    border-radius: 8px !important;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0 10px;
}
.pagination .page-item .page-link:hover {
    background: var(--color-orange, #e07b39);
    border-color: var(--color-orange, #e07b39);
    color: #fff;
}
.pagination .page-item.active .page-link {
    background: var(--color-orange, #e07b39);
    border-color: var(--color-orange, #e07b39);
    color: #fff;
    font-weight: 700;
}
.pagination .page-item.disabled .page-link {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}

/* ============================================================
   FIX 12: SORT-BY DROPDOWN
============================================================ */
#product_sort_by,
.sort-by-select {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
}
#product_sort_by:focus,
.sort-by-select:focus {
    border-color: var(--color-orange, #e07b39);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224,123,57,0.15);
}

/* ============================================================
   FIX 14: PRODUCT ICONS ("Not Returnable", etc.)
============================================================ */
.product-badge-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}
.product-badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e0e0e0;
}
.product-badge-icon img {
    height: 18px;
    width: 18px;
    object-fit: contain;
}
.badge-not-returnable { background: #fff3f3; color: #c62828; border-color: #ffcdd2; }
.badge-not-cancellable { background: #fff8e1; color: #ef6c00; border-color: #ffe0b2; }
.badge-returnable { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }

/* ============================================================
   FIX 15: RUPEE SYMBOL — better design
============================================================ */
.rupee-symbol,
.price .currency,
.amount:before,
.product-price .currency {
    font-family: -apple-system, 'Segoe UI', sans-serif;
    font-weight: 600;
}
/* Inline rupee fix */
.price-display {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}
.price-display .currency-symbol {
    font-size: 0.8em;
    line-height: 1;
    vertical-align: middle;
    font-weight: 700;
}

/* ============================================================
   FIX 16 & 17: PRODUCT IMAGE HOVER — alternate image on hover
============================================================ */
.img-box,
.product-card-img-wrap,
.card-img-wrap {
    position: relative;
    overflow: hidden;
}
.img-box img,
.product-card-img-wrap img,
.card-img-wrap img {
    transition: opacity 0.3s ease;
}
.img-box .hover-img,
.product-card-img-wrap .hover-img,
.card-img-wrap .secondary-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.img-box:hover .main-img,
.product-card-img-wrap:hover .main-img,
.card-img-wrap:hover .primary-img {
    opacity: 0;
}
.img-box:hover .hover-img,
.product-card-img-wrap:hover .hover-img,
.card-img-wrap:hover .secondary-img {
    opacity: 1;
}

/* ============================================================
   FIX 18: PROFILE PHOTO UPLOAD
============================================================ */
.profile-photo-wrap {
    position: relative;
    display: inline-block;
}
.profile-photo-wrap .profile-photo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-orange, #e07b39);
}
.profile-photo-edit-btn,
#profile-photo-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-orange, #e07b39);
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    z-index: 5;
    padding: 0;
}
.profile-photo-edit-btn:hover,
#profile-photo-upload-btn:hover {
    background: #c96820;
}

/* ============================================================
   FIX 19: ORDER SUCCESS IMAGE — show in profile
============================================================ */
.order-success-img-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}
.order-success-img-wrap img {
    max-height: 120px;
    object-fit: contain;
}

/* ============================================================
   FIX 21 & 22: MODAL CENTER FIX — Payment & Address popups
============================================================ */
.modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.modal.fade:not(.show) {
    display: none !important;
}
.modal-dialog {
    margin: 0 auto;
    width: 100%;
}
.modal-dialog-centered {
    min-height: calc(100% - 1rem);
    display: flex;
    align-items: center;
}
/* iziModal centering */
.iziModal {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
}

/* ============================================================
   FIX 23: CITY INPUT — Select2 custom style
============================================================ */
.select2-container--default .select2-selection--single {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    height: 42px;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 12px;
    color: #333;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--color-orange, #e07b39);
    box-shadow: 0 0 0 3px rgba(224,123,57,0.12);
}
.select2-results__option--highlighted[aria-selected] {
    background-color: var(--color-orange, #e07b39) !important;
}

/* ============================================================
   FIX 25: CART SHOW MORE
============================================================ */
.cart-show-more,
#cart-show-more {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
    border: 1.5px dashed #ddd;
    border-radius: 8px;
    color: var(--color-orange, #e07b39);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
    text-decoration: none;
}
.cart-show-more:hover,
#cart-show-more:hover {
    background: #fff3e0;
    border-color: var(--color-orange, #e07b39);
}

/* ============================================================
   FIX 26 & 27: PROMO CODE INPUT & APPLY BUTTON
============================================================ */
.promo-code-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.promocode_input,
#promocode_input {
    flex: 1;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    transition: border-color 0.2s;
}
.promocode_input:focus,
#promocode_input:focus {
    border-color: var(--color-orange, #e07b39);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224,123,57,0.12);
}
#apply-promo-btn,
.apply-promo-btn {
    background: var(--color-orange, #e07b39);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
#apply-promo-btn:hover,
.apply-promo-btn:hover {
    background: #c96820;
}
.promo-discount-display {
    color: #2e7d32;
    font-weight: 600;
}

/* ============================================================
   FIX 28: NOTIFICATION ICON — badge + animation
============================================================ */
.notification-icon-wrap {
    position: relative;
    display: inline-block;
}
.notification-icon-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
    animation: badge-pop 0.3s ease;
}
@keyframes badge-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.notification-bell.has-notification {
    animation: bell-shake 0.5s ease 0.2s;
}
@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-8deg); }
}

/* ============================================================
   FIX 29: SHOP BY CATEGORY
============================================================ */
.shop-by-category-item {
    cursor: pointer;
    display: block;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.shop-by-category-item:hover {
    background: #fff3e0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(224,123,57,0.15);
    color: var(--color-orange, #e07b39);
    text-decoration: none;
}
.shop-by-category-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}
.shop-by-category-item span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

/* ============================================================
   FIX 30: SPECIAL PICKS — improved UI
============================================================ */
.special-picks-section {
    padding: 32px 0;
}
.special-picks-section .section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.special-picks-section .section-title::after {
    content: "";
    display: block;
    height: 3px;
    width: 40%;
    background: var(--color-orange, #e07b39);
    border-radius: 2px;
    margin-top: 4px;
}
#specialPicks .owl-nav button {
    background: #fff !important;
    border: 1.5px solid #eee !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}
#specialPicks .owl-nav button:hover {
    background: var(--color-orange, #e07b39) !important;
    border-color: var(--color-orange, #e07b39) !important;
    color: #fff !important;
}

/* ============================================================
   FIX 15 IMPROVED: RUPEE SYMBOL DESIGN
============================================================ */
.price-amount,
.product-price,
.item-price,
.final-price {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-weight: 700;
    color: #111;
}
.price-amount .currency,
.product-price .currency {
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1;
}
.price-amount .original-price {
    text-decoration: line-through;
    color: #aaa;
    font-weight: 400;
    font-size: 0.85em;
    margin-left: 6px;
}
.price-amount .discount-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
}

/* ============================================================
   GENERAL POLISH
============================================================ */
/* Smooth page transitions */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent layout shift on image load */
.product-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f5f5f5;
}

/* Input focus states across the board */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-orange, #e07b39) !important;
    box-shadow: 0 0 0 3px rgba(224,123,57,0.12) !important;
    outline: none !important;
}

/* Active filter chip display */
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #fff3e0;
    border: 1px solid var(--color-orange, #e07b39);
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-orange, #e07b39);
    font-weight: 600;
}
.filter-chip .remove-chip {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    color: var(--color-orange, #e07b39);
    text-decoration: none;
}
.filter-chip .remove-chip:hover {
    color: #c62828;
}

/* ═══════════════════════════════════════════════════
   CLEAN NUMBERED PAGINATION (no arrows, no boxes)
═══════════════════════════════════════════════════ */
.cretzo-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 32px;
}
.cretzo-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid #eee;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0 12px;
}
.cretzo-page-btn:hover {
    background: #f78b77;
    border-color: #f78b77;
    color: #fff;
    text-decoration: none;
}
.cretzo-page-btn.active {
    background: #f78b77;
    border-color: #f78b77;
    color: #fff;
    pointer-events: none;
}
/* Hide old Bootstrap pagination completely */
#products-pagination-nav,
.pagination {
    display: none !important;
}

/* ═══════════════════════════════════════════════════
   RUPEE SYMBOL — clean consistent look
═══════════════════════════════════════════════════ */
.discounted-price,
.original-price,
.price-container,
.wl-price-current,
.wl-price-original {
    font-family: -apple-system, 'Segoe UI', Arial, sans-serif;
}
/* Make sure ₹ never looks broken */
.discounted-price { font-weight: 700; color: #111; }
.original-price   { text-decoration: line-through; color: #aaa; font-weight: 400; }



/* ═══════════════════════════════════════════════════
   ADDRESS MODAL — dropdown stays INSIDE the modal box
═══════════════════════════════════════════════════ */
#add-address-modal  .select2-container,
#edit-address-modal .select2-container {
    width: 100% !important;
}
#add-address-modal  .select2-dropdown,
#edit-address-modal .select2-dropdown {
    z-index: 99999 !important;
}
/* Make the modal itself scroll if content is tall */
#add-address-modal  .modal-body,
#edit-address-modal .modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

/* ═══════════════════════════════════════════════════
   CART SHOW MORE — styled arrow + text
═══════════════════════════════════════════════════ */
.show-more-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f78b77;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    transition: color 0.2s;
}
.show-more-text:hover { color: #e06a58; }
.show-more-img { height: 14px; transition: transform 0.2s; }



/* ═══════════════════════════════════════════════════
   FIX: STICKY PRODUCT IMAGE — stays in view on scroll
═══════════════════════════════════════════════════ */
.product-container {
    align-items: flex-start !important;
}
.img-container {
    position: sticky !important;
    top: 80px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 100px);
    overflow: visible;
}
@media screen and (max-width: 800px) {
    .img-container {
        position: relative !important;
        top: auto !important;
    }
}