/* Amazing offers (پیشنهادات شگفت‌انگیز) — main page */

.amazing-offers {
    --ao-navy: #163a72;
    --ao-navy-2: #1f4f9a;
    --ao-gold: #ffc107;
    --ao-red: #e53935;
    --ao-text: #1f2937;
    --ao-muted: #9ca3af;
    padding: 8px 0 24px;
    overflow-x: hidden;
}

.amazing-offers .ao-shell {
    background: linear-gradient(145deg, var(--ao-navy-2) 0%, var(--ao-navy) 55%, #122a55 100%);
    border-radius: 16px;
    padding: 18px 16px 18px 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(18, 42, 85, 0.22);
}

.amazing-offers .ao-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(circle at 88% 80%, rgba(66, 133, 244, 0.18), transparent 40%);
    pointer-events: none;
}

.amazing-offers .ao-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 14px;
}

.amazing-offers .ao-promo {
    flex: 0 0 180px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    color: #fff;
}

.amazing-offers .ao-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-family: yekan, iransans, sans-serif;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.amazing-offers .ao-badge i {
    color: var(--ao-gold);
}

.amazing-offers .ao-title {
    margin: 0;
    font-family: yekan, iransans, sans-serif;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.35;
    color: var(--ao-gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.amazing-offers .ao-sub {
    margin: 10px 0 0;
    font-family: yekan, iransans, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.amazing-offers .ao-mobile-head {
    display: none;
}

.amazing-offers .ao-track {
    flex: 1 1 auto;
    min-width: 0;
}

.amazing-offers .ao-carousel {
    direction: ltr;
}

.amazing-offers .ao-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.amazing-offers .ao-carousel .owl-item {
    display: flex;
    height: auto;
}

.amazing-offers .ao-carousel .owl-item .item {
    width: 100%;
    display: flex;
}

.amazing-offers .ao-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    text-decoration: none !important;
    color: var(--ao-text);
    transition: box-shadow .2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: none !important;
}

.amazing-offers .ao-card:hover,
.amazing-offers .ao-card:focus {
    transform: none !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    color: var(--ao-text);
}

.amazing-offers .ao-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.amazing-offers .ao-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

.amazing-offers .ao-sale-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    font-family: yekan, iransans, sans-serif;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

.amazing-offers .ao-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 10px 12px 14px;
    direction: rtl;
    text-align: right;
}

.amazing-offers .ao-card-title {
    margin: 0 0 12px;
    font-family: yekan, iransans2, sans-serif;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.7;
    color: #374151;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.amazing-offers .ao-price-row {
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    direction: rtl;
    min-height: 44px;
}

.amazing-offers .ao-prices {
    text-align: right;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
}

.amazing-offers .ao-price {
    font-family: iransans, yekan, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #111827;
    line-height: 22px;
    height: 22px;
    white-space: nowrap;
}

.amazing-offers .ao-price span {
    font-size: 11px;
    font-weight: normal;
    color: #6b7280;
    margin-right: 2px;
}

.amazing-offers .ao-old {
    font-family: iransans, yekan, sans-serif;
    font-size: 12px;
    color: var(--ao-muted);
    text-decoration: line-through;
    margin-top: 2px;
    height: 18px;
    line-height: 18px;
}

.amazing-offers .ao-old-spacer {
    visibility: hidden;
    text-decoration: none;
}

.amazing-offers .ao-contact {
    font-family: yekan, iransans, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #4285F4;
    line-height: 22px;
    height: 22px;
}

.amazing-offers .ao-off {
    flex: 0 0 auto;
    min-width: 40px;
    width: 40px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--ao-red);
    color: #fff;
    font-family: iransans, yekan, sans-serif;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 0;
    box-sizing: border-box;
}

.amazing-offers .ao-off-spacer {
    visibility: hidden;
    background: transparent;
    pointer-events: none;
}

/* Owl nav on dark panel */
.amazing-offers .ao-carousel .owl-nav {
    margin: 0;
}

.amazing-offers .ao-carousel .owl-nav button.owl-prev,
.amazing-offers .ao-carousel .owl-nav button.owl-next {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #334155 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.amazing-offers .ao-carousel .owl-nav button.owl-prev {
    left: 4px;
}

.amazing-offers .ao-carousel .owl-nav button.owl-next {
    right: 4px;
}

.amazing-offers .ao-carousel .owl-nav button.owl-prev i,
.amazing-offers .ao-carousel .owl-nav button.owl-next i,
.amazing-offers .ao-carousel .owl-nav button.owl-prev span,
.amazing-offers .ao-carousel .owl-nav button.owl-next span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    font-size: 14px !important;
    position: relative;
    top: 0;
    left: 0;
}

.amazing-offers .ao-carousel .owl-dots {
    margin-top: 10px;
    text-align: center;
}

.amazing-offers .ao-carousel .owl-dot span {
    background: rgba(255, 255, 255, 0.35) !important;
}

.amazing-offers .ao-carousel .owl-dot.active span {
    background: #fff !important;
}

@media screen and (max-width: 991px) {
    .amazing-offers {
        padding: 4px 0 16px;
    }

    .amazing-offers .ao-shell {
        border-radius: 14px;
        padding: 0;
        overflow: hidden;
    }

    .amazing-offers .ao-layout {
        flex-direction: column;
        gap: 0;
    }

    .amazing-offers .ao-promo {
        display: none;
    }

    .amazing-offers .ao-mobile-head {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 14px;
        background: #fff;
        border-radius: 14px 14px 0 0;
        position: relative;
        z-index: 2;
    }

    .amazing-offers .ao-mobile-head .ao-title {
        font-size: 18px;
        color: #e6a800;
        text-shadow: none;
        margin: 0;
    }

    .amazing-offers .ao-track {
        padding: 12px 14px 14px;
        overflow: hidden;
    }

    .amazing-offers .ao-carousel {
        width: 100%;
        overflow: hidden;
    }

    .amazing-offers .ao-carousel .owl-stage-outer {
        overflow: hidden;
        margin: 0;
        padding: 0 1px;
        box-sizing: border-box;
    }

    .amazing-offers .ao-carousel .owl-item {
        box-sizing: border-box;
    }

    .amazing-offers .ao-card {
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        border: 1px solid #e8ecf1;
    }

    .amazing-offers .ao-card-img {
        padding: 10px;
    }

    .amazing-offers .ao-card-title {
        font-size: 12px;
        min-height: 40px;
        max-height: 40px;
    }

    .amazing-offers .ao-price {
        font-size: 14px;
    }

    .amazing-offers .ao-carousel .owl-nav {
        display: none;
    }

    .amazing-offers .ao-carousel .owl-dots {
        display: none;
    }
}

@media screen and (min-width: 992px) {
    .amazing-offers .ao-shell {
        padding: 20px 18px 20px 14px;
    }

    .amazing-offers .ao-promo {
        flex-basis: 200px;
        width: 200px;
    }

    .amazing-offers .ao-title {
        font-size: 28px;
    }
}
