/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Offers / Discount — New Theme Styles
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Discount Badge ── */
.nt-discount-badge {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    vertical-align: middle;
}

.nt-discount-badge-lg {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
}

/* position badge on product card images */
.new_pro_img {
    position: relative;
}

.new_pro_img .nt-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

html[dir="rtl"] .new_pro_img .nt-discount-badge {
    left: auto;
    right: 12px;
}

/* ── Price Display ── */
.nt-price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.nt-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.nt-price-final {
    color: var(--theme-color);
    font-weight: 700;
}

/* Product details page discount */
.nt-detail-price-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.nt-detail-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 15px;
    font-weight: 400;
}

.nt-detail-price-final {
    color: var(--theme-color);
    font-weight: 700;
    font-size: 18px;
}

/* ── Offer Card Badge ── */
.hm_offer_card {
    position: relative;
}

.hm_offer_card .nt-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

html[dir="rtl"] .hm_offer_card .nt-discount-badge {
    left: auto;
    right: 10px;
}

/* ── Cart Drawer Discount ── */
.nt-cd-price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.nt-cd-price-original {
    text-decoration: line-through;
    color: #aaa;
    font-size: 12px;
}

.nt-cd-price-discounted {
    color: var(--theme-color);
    font-weight: 600;
}

/* ── Cart Page Discount ── */
.nt-ct-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nt-ct-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.nt-ct-discounted-price {
    color: var(--theme-color);
    font-weight: 600;
}

/* ── Offers Page ── */
.nt-offers-page .hm_bread_wrapper h1 {
    text-transform: none;
}

.nt-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.nt-offer-card-full {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.nt-offer-card-full:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.nt-offer-card-full .nt-offer-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.nt-offer-card-full .nt-offer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nt-offer-card-full:hover .nt-offer-img img {
    transform: scale(1.06);
}

.nt-offer-card-full .nt-offer-body {
    padding: 18px 20px 22px;
}

.nt-offer-card-full .nt-offer-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #333;
}

.nt-offer-card-full .nt-offer-body p {
    font-size: 14px;
    color: #777;
    margin: 0 0 12px;
}

.nt-offer-card-full .nt-offer-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.nt-offer-card-full .nt-offer-prices .nt-price-original {
    font-size: 15px;
}

.nt-offer-card-full .nt-offer-prices .nt-price-final {
    font-size: 18px;
}

.nt-offer-card-full .nt-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

html[dir="rtl"] .nt-offer-card-full .nt-discount-badge {
    left: auto;
    right: 12px;
}

.nt-offers-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* ── Related product badges ── */
.hm_pro_img {
    position: relative;
}

.hm_pro_img .nt-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

html[dir="rtl"] .hm_pro_img .nt-discount-badge {
    left: auto;
    right: 10px;
}

/* View All Offers button */
.nt-view-all-offers {
    text-align: center;
    margin-top: 25px;
}

/* ── Offers Section Header & Left Button Layout ── */
.hm_home_offers_wrapper h1.hm_heading {
    color: #484848 !important;
    padding-bottom: 0px !important;
}

.nt-offers-header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
    padding: 0 15px;
}

.nt-view-all-offers-header {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.nt-offers-btn-link {
    display: inline-block;
    background-color: var(--theme-color);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px; /* rounded corners */
    border: 2px solid var(--theme-color);
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: normal;
}

.nt-offers-btn-link:hover,
.nt-offers-btn-link:focus,
.nt-offers-btn-link:active {
    background-color: transparent !important;
    color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    text-decoration: none !important;
}

/* Prevent layout mirroring in RTL locales to keep the button on the left visually */
html[dir="rtl"] .nt-view-all-offers-header,
body.rtl .nt-view-all-offers-header {
    left: 15px !important;
    right: auto !important;
}

/* Mobile responsive rules */
@media (max-width: 767px) {
    .nt-offers-header-row {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 !important;
    }
    .nt-view-all-offers-header {
        position: static !important;
        transform: none !important;
        align-self: flex-start !important;
    }
    html[dir="rtl"] .nt-view-all-offers-header,
    body.rtl .nt-view-all-offers-header {
        align-self: flex-start !important;
    }
}

/* ── Offer images: clear, no blur/lazy loading ── */
.nt-offer-card-full .nt-offer-img img,
.hm_offer_card .hm_offer_card_img img,
.hm_main_offer_banner > img,
.nt-offers-page .nt-offer-img img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* ── Checkout discount ── */
.nt-checkout-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.nt-checkout-discount-badge {
    font-size: 11px;
    color: var(--theme-color);
    font-weight: 600;
}
