/*
 * AliExpress theme (custom, Ayat Global).
 * Loaded only when Website Setup -> Select Homepage = "AliExpress". Everything is scoped to .aiz-aliexpress.
 * Colours follow the admin main colour through var(--primary).
 */

.aiz-aliexpress {
    --ae-bg: #f5f5f5;
    --ae-card: #ffffff;
    --ae-text: #191919;
    --ae-muted: #757575;
    --ae-line: #ececec;
    --ae-radius: 12px;
    --ae-radius-sm: 8px;
    --ae-gold: #fea41b;
    --ae-shadow: 0 6px 22px -10px rgba(0, 0, 0, .22);
    background: var(--ae-bg) !important;
    color: var(--ae-text);
}
.aiz-aliexpress .ae-home { padding: 14px 0 8px; }

/* ---------- Shared bits ---------- */
.aiz-aliexpress .ae-panel {
    background: var(--ae-card);
    border-radius: var(--ae-radius);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.aiz-aliexpress .ae-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.aiz-aliexpress .ae-section-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--ae-text);
    letter-spacing: -.01em;
}
.aiz-aliexpress .ae-section-title i { color: var(--primary); }
.aiz-aliexpress .ae-section-sub { font-size: 13px; color: var(--ae-muted); margin-top: 2px; }
.aiz-aliexpress .ae-view-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--ae-text);
    white-space: nowrap;
}
.aiz-aliexpress .ae-view-more:hover { color: var(--primary); }

.aiz-aliexpress .ae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: 0;
    transition: filter .15s, background-color .15s;
}
.aiz-aliexpress .ae-btn-primary { background: var(--primary); color: #fff; }
.aiz-aliexpress .ae-btn-primary:hover { filter: brightness(.93); color: #fff; }
.aiz-aliexpress .ae-btn-light { background: var(--soft-primary, #fdece8); color: var(--primary); }
.aiz-aliexpress .ae-btn-light:hover { filter: brightness(.97); color: var(--primary); }

.aiz-aliexpress .ae-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    background: #222;
    color: #fff;
}
.aiz-aliexpress .ae-badge-off { background: var(--primary); color: #fff; }

.aiz-aliexpress .ae-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--ae-text);
    line-height: 1.2;
    letter-spacing: -.01em;
}
.aiz-aliexpress .ae-price-old { font-size: 12px; color: var(--ae-muted); }

/* ---------- Product card ---------- */
.aiz-aliexpress .ae-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ae-card);
    border-radius: var(--ae-radius-sm);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    text-align: left;
}
.aiz-aliexpress .ae-card:hover { box-shadow: var(--ae-shadow); }
.aiz-aliexpress .ae-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border-radius: var(--ae-radius-sm);
    overflow: hidden;
}
.aiz-aliexpress .ae-card-media img { width: 100%; height: 100%; object-fit: cover; }
.aiz-aliexpress .ae-card:hover .product-main-image { transform: scale(1.04); }
.aiz-aliexpress .ae-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}
.aiz-aliexpress .ae-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .2s, transform .2s;
}
.aiz-aliexpress .ae-card:hover .ae-card-actions,
.aiz-aliexpress .ae-card:focus-within .ae-card-actions { opacity: 1; transform: none; }
.aiz-aliexpress .ae-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ae-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.aiz-aliexpress .ae-icon-btn:hover { color: var(--primary); }
.aiz-aliexpress .ae-cart-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ae-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    transition: background-color .15s, color .15s, opacity .2s;
}
.aiz-aliexpress .ae-cart-btn:hover { background: var(--primary); color: #fff; }
@media (hover: hover) and (min-width: 768px) {
    .aiz-aliexpress .ae-cart-btn { opacity: 0; }
    .aiz-aliexpress .ae-card:hover .ae-cart-btn,
    .aiz-aliexpress .ae-card:focus-within .ae-cart-btn { opacity: 1; }
}
.aiz-aliexpress .ae-bid-btn {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.aiz-aliexpress .ae-bid-btn:hover { color: #fff; filter: brightness(.93); }
.aiz-aliexpress .ae-card-body { padding: 8px 4px 10px; }
.aiz-aliexpress .ae-card-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ae-text);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.aiz-aliexpress .ae-card-title a:hover { color: var(--primary) !important; }
.aiz-aliexpress .ae-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 6px;
}
.aiz-aliexpress .ae-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ae-muted);
}
.aiz-aliexpress .ae-rating { color: var(--ae-text); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.aiz-aliexpress .ae-rating i { color: var(--ae-text); font-size: 13px; }
.aiz-aliexpress .ae-rating + .ae-sold::before { content: "|"; color: #d0d0d0; margin-right: 8px; }
.aiz-aliexpress .ae-card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.aiz-aliexpress .ae-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 3px;
}

/* Carousel rows of cards */
.aiz-aliexpress .ae-row-carousel .carousel-box { padding: 0 6px; }
.aiz-aliexpress .ae-row-carousel .slick-list { margin: 0 -6px; }
.aiz-aliexpress .ae-row-carousel .slick-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    top: 35%;
    z-index: 2;
}

/* "More to love" grid */
.aiz-aliexpress .ae-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 12px;
}
@media (max-width: 1399px) { .aiz-aliexpress .ae-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .aiz-aliexpress .ae-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .aiz-aliexpress .ae-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .aiz-aliexpress .ae-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; } }
.aiz-aliexpress .ae-grid .ae-card { padding: 0; background: transparent; }
.aiz-aliexpress .ae-grid .ae-card:hover { background: #fff; }
.aiz-aliexpress .ae-more-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0 16px;
}
.aiz-aliexpress .ae-more-line { flex: 1; height: 1px; background: #ddd; }
.aiz-aliexpress .ae-more-title { font-size: 22px; font-weight: 800; margin: 0; }
.aiz-aliexpress .ae-load-more { min-width: 220px; height: 44px; margin: 22px auto 30px; }

/* ---------- Home: hero ---------- */
.aiz-aliexpress .ae-hero {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 260px;
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 1199px) { .aiz-aliexpress .ae-hero { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 991px)  { .aiz-aliexpress .ae-hero { grid-template-columns: minmax(0, 1fr); } }
.aiz-aliexpress .ae-hero-cats,
.aiz-aliexpress .ae-hero-welcome {
    background: #fff;
    border-radius: var(--ae-radius);
    padding: 10px 0;
}
.aiz-aliexpress .ae-hero-cats-title { font-weight: 800; font-size: 15px; padding: 4px 16px 8px; }
.aiz-aliexpress .ae-hero-cats li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    font-size: 14px;
    color: var(--ae-text);
}
.aiz-aliexpress .ae-hero-cats li a img { width: 18px; height: 18px; object-fit: contain; flex: none; opacity: .75; }
.aiz-aliexpress .ae-hero-cats li a i { color: #b5b5b5; font-size: 12px; }
.aiz-aliexpress .ae-hero-cats li a:hover { background: var(--ae-bg); color: var(--primary); }
.aiz-aliexpress .ae-hero-cats-all { display: block; padding: 8px 16px 2px; font-size: 13px; font-weight: 700; color: var(--primary); }
/* Hero: sub categories panel over the slider (hover a category) */
.aiz-aliexpress .ae-hero { position: relative; }
/* Keep the slider's / welcome box's own layers (slick slides, video) under the panel. */
.aiz-aliexpress .ae-hero-slider,
.aiz-aliexpress .ae-hero-welcome { isolation: isolate; }
.aiz-aliexpress .ae-hero-cats .ae-cat-item.active > a { background: var(--ae-bg); color: var(--primary); }
.aiz-aliexpress .ae-hero-cats .ae-cat-item.active > a i { color: var(--primary); }
.aiz-aliexpress .ae-hero-flyout {
    position: absolute; top: 0; bottom: 0; left: calc(240px + 14px); right: 0; z-index: 40;
    background: #fff; border-radius: var(--ae-radius); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .35);
    padding: 18px 22px; overflow-y: auto;
}
@media (max-width: 1199px) { .aiz-aliexpress .ae-hero-flyout { left: calc(220px + 14px); } }
@media (max-width: 991px) { .aiz-aliexpress .ae-hero-flyout { display: none !important; } }
[dir="rtl"] .aiz-aliexpress .ae-hero-flyout { left: 0; right: calc(240px + 14px); }
@media (max-width: 1199px) { [dir="rtl"] .aiz-aliexpress .ae-hero-flyout { right: calc(220px + 14px); } }
[dir="rtl"] .aiz-aliexpress .ae-hero-cats .ae-cat-item i.la-angle-right { transform: scaleX(-1); }
.aiz-aliexpress .ae-flyout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--ae-line); }
.aiz-aliexpress .ae-flyout-title { font-size: 17px; font-weight: 800; }
.aiz-aliexpress .ae-flyout-all { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.aiz-aliexpress .ae-flyout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 22px; }
.aiz-aliexpress .ae-flyout-sub { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ae-text); margin-bottom: 6px; }
.aiz-aliexpress .ae-flyout-sub img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--ae-bg); flex: none; transition: transform .2s; }
.aiz-aliexpress .ae-flyout-sub:hover { color: var(--primary); }
.aiz-aliexpress .ae-flyout-sub:hover img { transform: scale(1.06); }
.aiz-aliexpress .ae-flyout-group ul { padding-inline-start: 54px; }
.aiz-aliexpress .ae-flyout-group li a { display: block; font-size: 13px; color: var(--ae-muted); padding: 2px 0; }
.aiz-aliexpress .ae-flyout-group li a:hover { color: var(--primary); }
.aiz-aliexpress .ae-flyout-group .ae-flyout-more { color: var(--primary); font-weight: 600; }
.aiz-aliexpress .ae-flyout-loading { height: 100%; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.aiz-aliexpress .ae-hero-slider { min-width: 0; }
.aiz-aliexpress .ae-hero-slide {
    display: block;
    height: 400px;
    border-radius: var(--ae-radius);
    overflow: hidden;
    background: #eaeaea;
}
.aiz-aliexpress .ae-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.aiz-aliexpress .ae-hero-empty {
    display: flex;
    align-items: center;
    padding: 40px;
    color: #fff;
    background: linear-gradient(120deg, var(--primary), #ff7a45);
}
/* Phone / tablet sizes: see "Touch screens" below (2:1 banner) */
.aiz-aliexpress .ae-hero-slider .slick-dots { bottom: 10px; }
.aiz-aliexpress .ae-hero-welcome { flex-direction: column; padding: 18px; }
.aiz-aliexpress .ae-welcome-head { display: flex; gap: 10px; align-items: center; }
.aiz-aliexpress .ae-avatar {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--ae-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ae-muted);
}
.aiz-aliexpress .ae-welcome-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 18px 0 14px;
    text-align: center;
}
.aiz-aliexpress .ae-welcome-links a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--ae-text); }
.aiz-aliexpress .ae-welcome-links a i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ae-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.aiz-aliexpress .ae-welcome-links a:hover i { background: var(--soft-primary, #fdece8); color: var(--primary); }
.aiz-aliexpress .ae-welcome-perks { margin-top: auto; border-top: 1px solid var(--ae-line); padding-top: 12px; }
.aiz-aliexpress .ae-welcome-perks li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; color: var(--ae-muted); }
.aiz-aliexpress .ae-welcome-perks li i { color: var(--primary); font-size: 18px; }

/* ---------- Home: hero right card (greeting band, stats, colour tiles, deals shortcut) ---------- */
.aiz-aliexpress .ae-hero-welcome { padding: 0; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, .04); justify-content: space-between; }
.aiz-aliexpress .ae-hw-band {
    position: relative; overflow: hidden; padding: 18px 16px 16px; color: #fff;
    background: linear-gradient(135deg, var(--primary), #ff8a3d);
}
.aiz-aliexpress .ae-hw-bubble { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.aiz-aliexpress .ae-hw-bubble-1 { width: 120px; height: 120px; top: -50px; right: -30px; }
.aiz-aliexpress .ae-hw-bubble-2 { width: 70px; height: 70px; bottom: -30px; left: 40%; }
.aiz-aliexpress .ae-hw-band .ae-welcome-head { position: relative; }
.aiz-aliexpress .ae-hw-avatar {
    width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); background: #fff;
}
.aiz-aliexpress .ae-hw-hi { font-size: 15px; font-weight: 800; line-height: 1.25; }
.aiz-aliexpress .ae-hw-sub { font-size: 12px; opacity: .9; line-height: 1.3; margin-top: 2px; }
.aiz-aliexpress .ae-hw-auth { position: relative; display: flex; gap: 8px; margin-top: 14px; }
.aiz-aliexpress .ae-hw-btn {
    flex: 1 1 0; height: 36px; line-height: 34px; border-radius: 18px; text-align: center;
    font-size: 13px; font-weight: 700; border: 1px solid #fff; transition: .15s ease;
}
.aiz-aliexpress .ae-hw-btn-solid { background: #fff; color: var(--primary) !important; }
.aiz-aliexpress .ae-hw-btn-solid:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.aiz-aliexpress .ae-hw-btn-ghost { background: transparent; color: #fff !important; }
.aiz-aliexpress .ae-hw-btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.aiz-aliexpress .ae-hw-stats {
    position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px;
    background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 8px 0;
}
.aiz-aliexpress .ae-hw-stats a { display: flex; flex-direction: column; align-items: center; color: #fff !important; line-height: 1.2; }
.aiz-aliexpress .ae-hw-stats a + a { border-left: 1px solid rgba(255, 255, 255, .25); }
.aiz-aliexpress .ae-hw-stats strong { font-size: 18px; font-weight: 800; }
.aiz-aliexpress .ae-hw-stats span { font-size: 11px; opacity: .9; }
.aiz-aliexpress .ae-hero-welcome .ae-welcome-links { margin: 14px 12px 10px; gap: 2px; }
.aiz-aliexpress .ae-welcome-links a { padding: 6px 0; border-radius: 10px; transition: background .15s ease; }
.aiz-aliexpress .ae-welcome-links a:hover { background: var(--ae-bg); color: var(--ae-text); }
.aiz-aliexpress .ae-welcome-links a i { width: 42px; height: 42px; border-radius: 14px; font-size: 21px; transition: transform .15s ease; }
.aiz-aliexpress .ae-welcome-links a:hover i { transform: translateY(-2px); }
.aiz-aliexpress .ae-welcome-links a.ae-hw-c1 i, .aiz-aliexpress .ae-welcome-links a.ae-hw-c1:hover i { background: #e8f0fe; color: #1868e0; }
.aiz-aliexpress .ae-welcome-links a.ae-hw-c2 i, .aiz-aliexpress .ae-welcome-links a.ae-hw-c2:hover i { background: #ffe9ee; color: #ff2d55; }
.aiz-aliexpress .ae-welcome-links a.ae-hw-c3 i, .aiz-aliexpress .ae-welcome-links a.ae-hw-c3:hover i { background: #fff4e0; color: #f59e0b; }
.aiz-aliexpress .ae-welcome-links a.ae-hw-c4 i, .aiz-aliexpress .ae-welcome-links a.ae-hw-c4:hover i { background: #e6f7ef; color: #12a150; }
.aiz-aliexpress .ae-hw-deal {
    display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 10px 12px; border-radius: 12px;
    color: var(--ae-text) !important; background: linear-gradient(90deg, #fff1ec, #fff8e6);
    border: 1px solid #ffe0d2; transition: .15s ease;
}
.aiz-aliexpress .ae-hw-deal:hover { box-shadow: 0 4px 14px rgba(255, 71, 71, .15); transform: translateY(-1px); }
.aiz-aliexpress .ae-hw-deal-icon {
    flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; background: linear-gradient(135deg, #ff2d55, #ff8a00);
}
.aiz-aliexpress .ae-hw-deal-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.aiz-aliexpress .ae-hw-deal-text strong { font-size: 14px; font-weight: 800; color: #ff2d55; }
.aiz-aliexpress .ae-hw-deal-text small { font-size: 11px; color: var(--ae-muted); line-height: 1.3; }
.aiz-aliexpress .ae-hw-order {
    display: flex; align-items: center; gap: 10px; margin: 0 12px 14px; padding: 9px 12px; border-radius: 12px;
    color: var(--ae-text) !important; background: var(--ae-bg); transition: background .15s ease;
}
.aiz-aliexpress .ae-hw-order:hover { background: #ececec; }
.aiz-aliexpress .ae-hw-order > i { font-size: 22px; color: var(--primary); }
.aiz-aliexpress .ae-hw-order-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; text-align: start; }
.aiz-aliexpress .ae-hw-order-text small { font-size: 11px; color: var(--ae-muted); }
.aiz-aliexpress .ae-hw-order-text strong { font-size: 13px; font-weight: 700; }
.aiz-aliexpress .ae-hw-status {
    margin-left: auto; flex: none; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 700;
    color: #b26a00; background: #fff4e0;
}
.aiz-aliexpress .ae-hw-status-delivered { color: #12a150; background: #e6f7ef; }
.aiz-aliexpress .ae-hw-status-on_the_way, .aiz-aliexpress .ae-hw-status-picked_up { color: #1868e0; background: #e8f0fe; }
.aiz-aliexpress .ae-hw-status-cancelled { color: #e62e04; background: #ffe9e4; }
[dir="rtl"] .aiz-aliexpress .ae-hw-status { margin-left: 0; margin-right: auto; }
.aiz-aliexpress .ae-hw-deal-arrow { margin-left: auto; font-size: 16px; color: var(--ae-muted); }
.aiz-aliexpress .ae-hero-welcome .ae-welcome-perks {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: auto 12px 0; padding: 12px 0 14px;
}
.aiz-aliexpress .ae-hero-welcome .ae-welcome-perks li {
    flex-direction: column; justify-content: center; gap: 4px; padding: 0; text-align: center;
    font-size: 11px; line-height: 1.2; color: var(--ae-muted);
}
.aiz-aliexpress .ae-hero-welcome .ae-welcome-perks li i { font-size: 20px; }
[dir="rtl"] .aiz-aliexpress .ae-hw-stats a + a { border-left: 0; border-right: 1px solid rgba(255, 255, 255, .25); }
[dir="rtl"] .aiz-aliexpress .ae-hw-deal-arrow { margin-left: 0; margin-right: auto; transform: scaleX(-1); }
[dir="rtl"] .aiz-aliexpress .ae-hw-bubble-1 { right: auto; left: -30px; }

/* ---------- Home: hero slider upgrade (video slide, zoom, progress dots) ---------- */
.aiz-aliexpress .ae-hero { align-items: stretch; }
.aiz-aliexpress .ae-hero-slider { position: relative; border-radius: var(--ae-radius); box-shadow: 0 14px 34px -18px rgba(15, 23, 42, .45); }
.aiz-aliexpress .ae-hero-carousel { border-radius: var(--ae-radius); overflow: hidden; }
@media (min-width: 992px) { .aiz-aliexpress .ae-hero-slide { height: 420px; } }
.aiz-aliexpress .ae-hero-image img { transform: scale(1); transition: transform 6s ease-out; }
.aiz-aliexpress .ae-hero-carousel .slick-current .ae-hero-image img { transform: scale(1.06); }
/* Video slide */
.aiz-aliexpress .ae-hero-video { position: relative; background: #0f172a; }
.aiz-aliexpress .ae-hero-video video,
.aiz-aliexpress .ae-hero-video .ae-hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aiz-aliexpress .ae-hero-video .ae-hero-poster { transition: opacity .6s ease; }
.aiz-aliexpress .ae-hero-video.is-playing .ae-hero-poster { opacity: 0; }
.aiz-aliexpress .ae-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 36px 40px;
    background: linear-gradient(90deg, rgba(10, 16, 32, .72) 0%, rgba(10, 16, 32, .25) 55%, rgba(10, 16, 32, 0) 80%);
}
[dir="rtl"] .aiz-aliexpress .ae-hero-overlay { background: linear-gradient(270deg, rgba(10, 16, 32, .72) 0%, rgba(10, 16, 32, .25) 55%, rgba(10, 16, 32, 0) 80%); }
.aiz-aliexpress .ae-hero-copy { max-width: 460px; color: #fff; animation: ae-hero-in .8s ease both; }
.aiz-aliexpress .ae-hero-title { font-size: 36px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.aiz-aliexpress .ae-hero-sub { font-size: 16px; opacity: .92; margin: 0 0 18px; }
.aiz-aliexpress .ae-hero-cta { height: 46px; padding: 0 24px; font-size: 15px; box-shadow: 0 10px 22px -10px var(--primary); }
.aiz-aliexpress .ae-hero-cta i { transition: transform .2s; }
.aiz-aliexpress .ae-hero-cta:hover i { transform: translateX(4px); }
@keyframes ae-hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.aiz-aliexpress .ae-hero-mute {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
}
.aiz-aliexpress .ae-hero-video.is-playing .ae-hero-mute { display: flex; }
[dir="rtl"] .aiz-aliexpress .ae-hero-mute { right: auto; left: 16px; }
/* Arrows: round "glass" buttons (sizes beat thecore.css's 24x64 !important) */
.aiz-aliexpress .ae-hero-carousel .slick-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0;
    border: 0;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .9) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #191919 !important;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 6px 18px -4px rgba(15, 23, 42, .35) !important;
    opacity: 0;
    z-index: 3;
    transition: opacity .2s, transform .2s, background .15s;
}
.aiz-aliexpress .ae-hero-carousel .slick-arrow i { font-size: 20px; font-weight: 900; }
.aiz-aliexpress .ae-hero-carousel .slick-prev { left: 14px; transform: translate(-8px, -50%); }
.aiz-aliexpress .ae-hero-carousel .slick-next { right: 14px; transform: translate(8px, -50%); }
.aiz-aliexpress .ae-hero-slider:hover .slick-arrow,
.aiz-aliexpress .ae-hero-carousel .slick-arrow:focus-visible { opacity: 1; transform: translate(0, -50%); }
.aiz-aliexpress .ae-hero-carousel .slick-arrow:hover { background: #fff !important; transform: translate(0, -50%) scale(1.08); }
.aiz-aliexpress .ae-hero-carousel .slick-arrow:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--primary) !important; }
[dir="rtl"] .aiz-aliexpress .ae-hero-carousel .slick-prev { left: auto; right: 14px; }
[dir="rtl"] .aiz-aliexpress .ae-hero-carousel .slick-next { right: auto; left: 14px; }
[dir="rtl"] .aiz-aliexpress .ae-hero-carousel .slick-arrow i { transform: scaleX(-1); }
[dir="rtl"] .aiz-aliexpress .ae-hero-cta i { transform: scaleX(-1); }
[dir="rtl"] .aiz-aliexpress .ae-hero-cta:hover i { transform: scaleX(-1) translateX(4px); }
/* Image slides: soft shade at the bottom so the dots stay readable on light banners */
.aiz-aliexpress .ae-hero-image { position: relative; }
.aiz-aliexpress .ae-hero-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .28));
    pointer-events: none;
}
/* Dots as progress bars */
.aiz-aliexpress .ae-hero-carousel .slick-dots { bottom: 14px; display: flex !important; justify-content: center; gap: 6px; }
.aiz-aliexpress .ae-hero-carousel .slick-dots li { width: auto; height: auto; margin: 0; }
.aiz-aliexpress .ae-hero-carousel .slick-dots li button {
    position: relative;
    width: 26px;
    height: 4px;
    padding: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .5) !important;
    overflow: hidden;
    font-size: 0;
    opacity: 1 !important;
}
.aiz-aliexpress .ae-hero-carousel .slick-dots li button::before { display: none !important; }
.aiz-aliexpress .ae-hero-carousel .slick-dots li.slick-active button { width: 40px; }
.aiz-aliexpress .ae-hero-carousel .slick-dots li.slick-active button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform-origin: left center;
    transform: scaleX(0);
}
.aiz-aliexpress .ae-hero-carousel.ae-progress-run .slick-dots li.slick-active button::after { animation: ae-hero-progress var(--ae-hero-dur, 5s) linear forwards; }
.aiz-aliexpress .ae-hero-carousel.ae-progress-paused .slick-dots li.slick-active button::after { animation-play-state: paused; }
@keyframes ae-hero-progress { to { transform: scaleX(1); } }
@media (max-width: 991.98px) {
    .aiz-aliexpress .ae-hero-overlay { padding: 16px; }
    .aiz-aliexpress .ae-hero-title { font-size: 20px; margin-bottom: 4px; }
    .aiz-aliexpress .ae-hero-sub { font-size: 12px; margin-bottom: 10px; }
    .aiz-aliexpress .ae-hero-cta { height: 34px; padding: 0 14px; font-size: 12px; }
    /* Touch screens: arrows always visible, a bit smaller */
    .aiz-aliexpress .ae-hero-carousel .slick-arrow,
    .aiz-aliexpress .ae-hero-slider:hover .slick-arrow { width: 36px !important; height: 36px !important; opacity: .8; transform: translate(0, -50%); }
    .aiz-aliexpress .ae-hero-carousel .slick-arrow i { font-size: 17px; }
    .aiz-aliexpress .ae-hero-carousel .slick-prev { left: 10px; }
    .aiz-aliexpress .ae-hero-carousel .slick-next { right: 10px; }
    [dir="rtl"] .aiz-aliexpress .ae-hero-carousel .slick-prev { left: auto; right: 10px; }
    [dir="rtl"] .aiz-aliexpress .ae-hero-carousel .slick-next { right: auto; left: 10px; }
    /* Banner follows the screen width (2:1) instead of a fixed height */
    .aiz-aliexpress .ae-hero-slide { height: auto; aspect-ratio: 2 / 1; }
}
@media (max-width: 575.98px) {
    .aiz-aliexpress .ae-hero-slide { border-radius: 10px; }
    .aiz-aliexpress .ae-hero-carousel .slick-arrow,
    .aiz-aliexpress .ae-hero-slider:hover .slick-arrow { width: 30px !important; height: 30px !important; opacity: .7; }
    .aiz-aliexpress .ae-hero-carousel .slick-arrow i { font-size: 15px; }
    .aiz-aliexpress .ae-hero-carousel .slick-prev { left: 8px; }
    .aiz-aliexpress .ae-hero-carousel .slick-next { right: 8px; }
    [dir="rtl"] .aiz-aliexpress .ae-hero-carousel .slick-prev { left: auto; right: 8px; }
    [dir="rtl"] .aiz-aliexpress .ae-hero-carousel .slick-next { right: auto; left: 8px; }
    /* Text: smaller, and room under the button for the dots */
    .aiz-aliexpress .ae-hero-overlay { padding: 12px 44px 24px; }
    .aiz-aliexpress .ae-hero-copy { min-width: 0; max-width: 100%; }
    .aiz-aliexpress .ae-hero-title { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .aiz-aliexpress .ae-hero-sub { font-size: 12px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .aiz-aliexpress .ae-hero-cta { height: 30px; padding: 0 12px; font-size: 12px; }
    .aiz-aliexpress .ae-hero-carousel .slick-dots { bottom: 8px; gap: 4px; }
    .aiz-aliexpress .ae-hero-carousel .slick-dots li button { width: 16px; height: 3px; }
    .aiz-aliexpress .ae-hero-carousel .slick-dots li.slick-active button { width: 26px; }
    .aiz-aliexpress .ae-hero-image::after { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .aiz-aliexpress .ae-hero-image img { transition: none; transform: none !important; }
    .aiz-aliexpress .ae-hero-copy { animation: none; }
}

/* ---------- Home: category strip ---------- */
.aiz-aliexpress .ae-cat-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px 8px;
    padding: 18px 16px;
}
@media (max-width: 991px) {
    .aiz-aliexpress .ae-cat-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .aiz-aliexpress .ae-cat-strip::-webkit-scrollbar { display: none; }
    .aiz-aliexpress .ae-cat-chip { flex: 0 0 78px; scroll-snap-align: start; }
}
.aiz-aliexpress .ae-cat-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ae-text); text-align: center; }
.aiz-aliexpress .ae-cat-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ae-bg);
    transition: box-shadow .2s;
}
.aiz-aliexpress .ae-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.aiz-aliexpress .ae-cat-chip:hover .ae-cat-img { box-shadow: 0 0 0 2px var(--primary); }
.aiz-aliexpress .ae-cat-name {
    font-size: 12px;
    line-height: 1.3;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 575px) { .aiz-aliexpress .ae-cat-img { width: 58px; height: 58px; } }

/* ---------- Home: SuperDeals ---------- */
.aiz-aliexpress .ae-superdeals {
    background: linear-gradient(180deg, var(--soft-primary, #fdece8) 0, #fff 140px);
}
.aiz-aliexpress .ae-superdeals-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.aiz-aliexpress .ae-superdeals .ae-section-title { font-size: 24px; color: var(--primary); }
.aiz-aliexpress .ae-ends { font-size: 13px; color: var(--ae-muted); margin: 0 8px 0 14px; }
.aiz-aliexpress .ae-countdown { display: inline-flex; align-items: center; gap: 3px; }
.aiz-aliexpress .ae-countdown .countdown-item {
    min-width: 28px;
    height: 26px;
    padding: 0 4px;
    border-radius: 5px;
    background: var(--ae-text);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.aiz-aliexpress .ae-countdown .countdown-separator { font-weight: 800; color: var(--ae-text); }
.aiz-aliexpress .ae-superdeals .ae-price { color: var(--primary); }

/* ---------- Home: two deal panels ---------- */
.aiz-aliexpress .ae-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.aiz-aliexpress .ae-duo .ae-panel { margin-bottom: 0; }
@media (min-width: 992px) { .aiz-aliexpress .ae-duo-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aiz-aliexpress .ae-duo-deal { background: linear-gradient(180deg, #fff4e5 0, #fff 120px); }
.aiz-aliexpress .ae-duo-best { background: linear-gradient(180deg, #fde9ec 0, #fff 120px); }
.aiz-aliexpress .ae-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aiz-aliexpress .ae-duo:not(.ae-duo-2) .ae-mini-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 767px) {
    .aiz-aliexpress .ae-mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .aiz-aliexpress .ae-duo:not(.ae-duo-2) .ae-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aiz-aliexpress .ae-duo-2 .ae-mini .ae-price { font-size: 13px; }
    .aiz-aliexpress .ae-duo-2 .ae-mini .ae-price-old { font-size: 10px; }
    .aiz-aliexpress .ae-duo-2 .ae-mini-img .ae-badge { font-size: 10px; padding: 3px 4px; }
    .aiz-aliexpress .ae-row-carousel .slick-arrow { display: none !important; }
}
.aiz-aliexpress .ae-mini { display: flex; flex-direction: column; color: var(--ae-text); min-width: 0; }
.aiz-aliexpress .ae-mini-img {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--ae-radius-sm);
    overflow: hidden;
    background: #f7f7f7;
    margin-bottom: 6px;
}
.aiz-aliexpress .ae-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.aiz-aliexpress .ae-mini:hover .ae-mini-img img { transform: scale(1.05); }
.aiz-aliexpress .ae-mini-img .ae-badge { position: absolute; left: 6px; bottom: 6px; }
.aiz-aliexpress .ae-mini .ae-price { font-size: 16px; color: var(--primary); }

/* ---------- Home: banners & featured categories ---------- */
.aiz-aliexpress .ae-banners { margin-bottom: 16px; }
.aiz-aliexpress .ae-banner { border-radius: var(--ae-radius); overflow: hidden; height: 180px; background: #eaeaea; }
.aiz-aliexpress .ae-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.aiz-aliexpress .ae-banner:hover img { transform: scale(1.03); }
.aiz-aliexpress .ae-banner-wide { height: auto; }
.aiz-aliexpress .ae-feat-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 991px) { .aiz-aliexpress .ae-feat-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575px) { .aiz-aliexpress .ae-feat-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aiz-aliexpress .ae-feat-cat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ae-text);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.aiz-aliexpress .ae-feat-cat img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--ae-radius-sm); background: var(--ae-bg); }
.aiz-aliexpress .ae-feat-cat:hover { color: var(--primary); }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 575px) {
    .aiz-aliexpress .ae-home { padding-top: 8px; }
    .aiz-aliexpress .ae-panel { padding: 14px 12px; border-radius: 10px; margin-bottom: 10px; }
    .aiz-aliexpress .ae-section-title { font-size: 17px; }
    .aiz-aliexpress .ae-superdeals .ae-section-title { font-size: 19px; }
    .aiz-aliexpress .ae-ends { display: none; }
    .aiz-aliexpress .ae-countdown { margin-left: 8px; }
    .aiz-aliexpress .ae-price { font-size: 16px; }
    .aiz-aliexpress .ae-card-title { font-size: 13px; }
    .aiz-aliexpress .ae-banner { height: 130px; }
    .aiz-aliexpress .ae-more-title { font-size: 18px; }
}

/* RTL */
[dir="rtl"] .aiz-aliexpress .ae-card { text-align: right; }
[dir="rtl"] .aiz-aliexpress .ae-card-badges { left: auto; right: 8px; align-items: flex-end; }
[dir="rtl"] .aiz-aliexpress .ae-card-actions { right: auto; left: 8px; }
[dir="rtl"] .aiz-aliexpress .ae-cart-btn { right: auto; left: 8px; }
[dir="rtl"] .aiz-aliexpress .ae-rating + .ae-sold::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .aiz-aliexpress .ae-mini-img .ae-badge { left: auto; right: 6px; }
[dir="rtl"] .aiz-aliexpress .la-angle-right { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
    .aiz-aliexpress .ae-card,
    .aiz-aliexpress .ae-card *,
    .aiz-aliexpress .ae-mini-img img,
    .aiz-aliexpress .ae-banner img { transition: none !important; }
}

/* ======================================================================
   Shared pages (listing, product, shop) when the AliExpress theme is on
   ====================================================================== */

/* Carousels with few items start on the left instead of the centre */
.aiz-aliexpress .slick-track { margin-left: 0; }
[dir="rtl"] .aiz-aliexpress .slick-track { margin-left: auto; margin-right: 0; }
/* Old card cells: drop the grid lines, the card has its own look */
.aiz-aliexpress .carousel-box.hov-animate-outline,
.aiz-aliexpress .col.hov-shadow-out { border: 0 !important; box-shadow: none !important; }
.aiz-aliexpress .carousel-box.hov-animate-outline::before,
.aiz-aliexpress .carousel-box.hov-animate-outline::after { display: none !important; }

/* Header search: bold rounded bar like AliExpress */
.aiz-aliexpress .front-header-search #search {
    border: 2px solid var(--ae-text) !important;
    border-radius: 999px !important;
    height: 42px;
    padding-left: 20px;
}
.aiz-aliexpress .front-header-search #search:focus { border-color: var(--primary) !important; box-shadow: none; }

/* ---------- Listing / search ---------- */
.aiz-aliexpress #products-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 12px;
    margin: 0;
    border: 0 !important;
}
.aiz-aliexpress #products-row > .col {
    max-width: none;
    padding: 0;
    border: 0 !important;
    background: transparent;
}
@media (min-width: 1400px) { .aiz-aliexpress #products-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 992px) {
    .aiz-aliexpress #products-row.row-cols-lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aiz-aliexpress #products-row.row-cols-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aiz-aliexpress #products-row.row-cols-lg-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 991px) { .aiz-aliexpress #products-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .aiz-aliexpress #products-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; } }
.aiz-aliexpress #products-row .ae-card { background: transparent; }
.aiz-aliexpress #products-row .ae-card:hover { background: #fff; }
.aiz-aliexpress .aiz-filter-sidebar .collapse-sidebar,
.aiz-aliexpress .aiz-filter-sidebar .bg-white { border-radius: var(--ae-radius); }
.aiz-aliexpress .ae-sort-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 15px 16px;
    padding: 10px 14px;
    background: #fff;
    border-radius: var(--ae-radius);
}
.aiz-aliexpress .ae-sort-label { font-size: 13px; color: var(--ae-muted); margin-right: 4px; }
.aiz-aliexpress .ae-sort-pill {
    border: 1px solid var(--ae-line);
    background: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ae-text);
    cursor: pointer;
}
.aiz-aliexpress .ae-sort-pill:hover { border-color: var(--ae-text); }
.aiz-aliexpress .ae-sort-pill.active { background: var(--ae-text); border-color: var(--ae-text); color: #fff; }
.aiz-aliexpress .ae-sort-pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 575px) {
    .aiz-aliexpress .ae-sort-pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 0 12px; scrollbar-width: none; }
    .aiz-aliexpress .ae-sort-pills::-webkit-scrollbar { display: none; }
    .aiz-aliexpress .ae-sort-pill { white-space: nowrap; }
}

/* ---------- Product page ---------- */
.aiz-aliexpress .product-details > .container > .pt-30px {
    background: #fff;
    border-radius: var(--ae-radius);
    padding: 24px !important;
    margin-top: 16px;
    margin-bottom: 16px;
}
.aiz-aliexpress .product-details h1 { font-size: 22px !important; font-weight: 700 !important; line-height: 1.35; }
.aiz-aliexpress .ae-pd-sold {
    font-size: 14px;
    color: var(--ae-muted);
    padding-left: 10px;
    margin-left: 10px;
    border-left: 1px solid #ddd;
}
.aiz-aliexpress .ae-price-box {
    background: linear-gradient(90deg, var(--soft-primary, #fdece8), #fff) !important;
    border-radius: var(--ae-radius) !important;
}
.aiz-aliexpress .ae-price-box h6 {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    letter-spacing: -.01em;
}
.aiz-aliexpress .ae-price-box del { font-size: 15px !important; padding: 0 8px 0 0 !important; }
.aiz-aliexpress .ae-pd-off {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
}
.aiz-aliexpress #chosen_price { color: var(--primary); font-size: 28px !important; }
.aiz-aliexpress .product-details .buy-now,
.aiz-aliexpress .product-details .add-to-cart {
    border-radius: 999px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    font-size: 16px !important;
}
.aiz-aliexpress .product-details .buy-now { background: var(--primary) !important; color: #fff !important; }
.aiz-aliexpress .product-details .add-to-cart { background: var(--soft-primary, #fdece8) !important; color: var(--primary) !important; }
.aiz-aliexpress .product-details .add-to-cart:hover { filter: brightness(.96); }
.aiz-aliexpress .product-details .variant-item-select { border-radius: 6px !important; }
.aiz-aliexpress .product-details .aiz-megabox input:checked + .aiz-megabox-elem {
    border-color: var(--ae-text) !important;
    box-shadow: 0 0 0 1px var(--ae-text);
}
.aiz-aliexpress .product-details .border-dashed { border-style: solid !important; border-color: var(--ae-line) !important; border-radius: var(--ae-radius) !important; }
.aiz-aliexpress .product-details-nav-tab .nav-tab-header { background: transparent !important; }
.aiz-aliexpress .product-details-nav-tab .nav-link,
.aiz-aliexpress #tabLinks a { font-weight: 700; color: var(--ae-muted); }
.aiz-aliexpress #tabLinks a.active,
.aiz-aliexpress .product-details-nav-tab .nav-link.active { color: var(--ae-text) !important; border-color: var(--ae-text) !important; }
.aiz-aliexpress .product-details-nav-tab .bg-white.border,
.aiz-aliexpress .product-details-nav-tab section > .container > div,
.aiz-aliexpress .product-details-nav-tab .border.rounded,
.aiz-aliexpress .product-details-nav-tab .bg-white { border-radius: var(--ae-radius) !important; }

.aiz-aliexpress .ae-visit-store {
    flex: none;
    align-self: center;
    padding: 7px 14px;
    border: 1px solid var(--ae-text);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ae-text);
    white-space: nowrap;
}
.aiz-aliexpress .ae-visit-store:hover { background: var(--ae-text); color: #fff; }

/* ---------- Product page: desktop gallery stays in view while the details scroll ---------- */
@media (min-width: 992px) {
    .aiz-aliexpress .product-details .pt-30px > .row { align-items: flex-start; }
    .aiz-aliexpress .product-details .pt-30px > .row > div:first-child { position: sticky; top: 16px; }
}

/* ---------- Product page on phones (AliExpress app look) ---------- */
@media (max-width: 991.98px) {
    .aiz-aliexpress .product-details > .container { padding-left: 0; padding-right: 0; }
    .aiz-aliexpress .product-details > .container > .pt-30px {
        padding: 0 !important;
        margin: 0 0 8px;
        background: transparent;
        border-radius: 0;
    }
    .aiz-aliexpress .product-details > .container > .pt-30px > .row { margin: 0; }
    .aiz-aliexpress .product-details > .container > .pt-30px > .row > [class*="col-"] { padding: 0; }

    /* Gallery: full width, swipe instead of thumbnails, photo counter + share */
    .aiz-aliexpress .product-slider-wrapper { margin-bottom: 0 !important; background: #fff; }
    .aiz-aliexpress .product-slider-wrapper .breadcrumb { display: none !important; }
    .aiz-aliexpress .product-slider-wrapper > .row { margin: 0; }
    .aiz-aliexpress .product-slider-wrapper > .row > .order-2 { display: none !important; }
    .aiz-aliexpress .product-slider-wrapper > .row > .order-1 { padding: 0 !important; flex: 0 0 100%; max-width: 100%; }
    .aiz-aliexpress .product-slider-wrapper .main-slider,
    .aiz-aliexpress .product-slider-wrapper .main-slider img { border-radius: 0 !important; border: 0 !important; }
    .aiz-aliexpress .product-slider-wrapper .swiper-button-prev,
    .aiz-aliexpress .product-slider-wrapper .swiper-button-next { display: none !important; }
    .aiz-aliexpress .ae-gallery-count {
        display: inline-flex !important;
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 5;
        padding: 3px 10px;
        border-radius: 12px;
        background: rgba(0, 0, 0, .45);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .02em;
    }
    .aiz-aliexpress .ae-gallery-share {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 12px;
        top: 12px;
        z-index: 5;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
        font-size: 18px;
        color: var(--ae-text);
    }
    [dir="rtl"] .aiz-aliexpress .ae-gallery-count,
    [dir="rtl"] .aiz-aliexpress .ae-gallery-share { right: auto; left: 12px; }

    /* Details as a white card under the photo */
    .aiz-aliexpress .product-details > .container > .pt-30px > .row > [class*="col-"]:nth-child(2) {
        background: #fff;
        margin-top: 8px;
        padding: 14px 14px 6px !important;
        border-radius: 12px 12px 0 0;
    }
    .aiz-aliexpress .product-details .right-side-cws { display: none !important; }
    .aiz-aliexpress .product-details h1 { font-size: 17px !important; line-height: 1.4; margin-bottom: 8px !important; }
    .aiz-aliexpress .ae-price-box { padding: 14px !important; }
    .aiz-aliexpress .ae-price-box h6 { font-size: 26px !important; }
    .aiz-aliexpress .ae-pd-sold { font-size: 13px; }

    /* The sticky bottom bar replaces the in-page buttons */
    .aiz-aliexpress .product-details .buy-now,
    .aiz-aliexpress .product-details .add-to-cart,
    .aiz-aliexpress .product-details .out-of-stock { display: none !important; }

    /* Section tabs stick to the top and scroll sideways */
    .aiz-aliexpress .product-details-nav-tab { margin-bottom: 8px !important; }
    .aiz-aliexpress .product-details-nav-tab .nav-tab-header {
        position: sticky;
        top: 0;
        z-index: 20;
        background: #fff !important;
        box-shadow: 0 1px 0 var(--ae-line);
    }
    .aiz-aliexpress .product-details-nav-tab .nav-tab-header .container { margin-bottom: 0 !important; }
    .aiz-aliexpress #tabLinks { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .aiz-aliexpress #tabLinks::-webkit-scrollbar { display: none; }
    .aiz-aliexpress #tabLinks li { margin-right: 18px !important; flex: none; }
    .aiz-aliexpress #tabLinks a { padding-top: 12px !important; padding-bottom: 12px !important; font-size: 14px !important; }
    .aiz-aliexpress .product-details-nav-tab > .container { padding-left: 8px; padding-right: 8px; }
}

/* ---------- Product page v19: cleaner price, options, buy card, services, description ---------- */
.aiz-aliexpress .ae-price-box { padding: 16px 20px !important; }
.aiz-aliexpress .ae-price-box h6 { display: inline-block; font-size: 32px !important; line-height: 1.1; }
.aiz-aliexpress .ae-price-box del { vertical-align: middle; }
.aiz-aliexpress .ae-pd-off { vertical-align: middle; }

/* Options: no outer box, "Color: Khaki", picture swatches */
.aiz-aliexpress .ae-var-head { justify-content: flex-end !important; margin: 16px 0 -38px !important; position: relative; z-index: 1; }
.aiz-aliexpress .ae-var-head:not(:has(button)) { display: none !important; }
.aiz-aliexpress .product-variant.ae-variants { border: 0 !important; padding: 0 !important; margin-top: 16px; }
.aiz-aliexpress .ae-price-box h6 .opacity-70 { margin-right: 8px; }
.aiz-aliexpress .ae-variants .py-10px { padding: 8px 0 !important; }
.aiz-aliexpress .ae-variants .variant-item { border-top: 0 !important; }
.aiz-aliexpress .ae-variants p.fw-bold { font-size: 15px !important; margin-bottom: 8px !important; }
.aiz-aliexpress .ae-opt-val { font-weight: 400; color: var(--ae-muted); }
.aiz-aliexpress .ae-opt-val:not(:empty)::before { content: ": "; color: var(--ae-text); font-weight: 700; }
.aiz-aliexpress .ae-variants .variant-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
.aiz-aliexpress .ae-variants .aiz-megabox { margin: 0 !important; }
.aiz-aliexpress .ae-variants .variant-item-select {
    display: flex;
    align-items: center;
    min-width: 52px;
    min-height: 38px;
    justify-content: center;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
}
.aiz-aliexpress .ae-variants .variant-item-select > span.px-15px { padding: 0 !important; }
.aiz-aliexpress .ae-variants .aiz-megabox:hover .variant-item-select { border-color: var(--ae-text) !important; }
.aiz-aliexpress .ae-variants .aiz-megabox input:checked + .aiz-megabox-elem {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px var(--primary) !important;
    color: var(--primary);
}
.aiz-aliexpress .ae-swatch .variant-item-select {
    flex-direction: column;
    width: 72px;
    padding: 4px !important;
    gap: 3px;
}
.aiz-aliexpress .ae-swatch-img { width: 62px; height: 62px; object-fit: cover; border-radius: 6px; background: #f5f5f5; }
.aiz-aliexpress .ae-swatch .variant-item-select > span:last-child {
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.25;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Buy card: Quantity first, small total, slimmer buttons */
.aiz-aliexpress .ae-buy-card { border: 0 !important; padding: 16px 0 0 !important; margin-top: 8px !important; overflow: visible !important; }
.aiz-aliexpress .ae-buy-card > .d-flex:first-child { flex-direction: column; align-items: flex-start !important; gap: 6px; padding-bottom: 14px !important; }
.aiz-aliexpress .ae-buy-card > .d-flex:first-child > div:last-child { order: -1; }
.aiz-aliexpress .ae-buy-card .aiz-plus-minus { border-radius: 999px !important; border-color: #d9d9d9 !important; }
.aiz-aliexpress .ae-buy-card > .d-flex:first-child > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.aiz-aliexpress .ae-buy-card > .d-flex:first-child > div:first-child > div { margin: 0 !important; }
.aiz-aliexpress .ae-buy-card #chosen_price_div { order: 2; margin: 0 !important; }
.aiz-aliexpress .ae-buy-card .product-price { display: flex; align-items: baseline; gap: 6px; }
.aiz-aliexpress .ae-total-label { font-size: 14px; color: var(--ae-muted); }
.aiz-aliexpress .ae-buy-card #chosen_price { font-size: 18px !important; }
.aiz-aliexpress .ae-buy-card #available-quantity + * , .aiz-aliexpress .ae-buy-card p.text-blue { color: var(--ae-muted) !important; opacity: 1 !important; font-weight: 400 !important; }
.aiz-aliexpress .ae-buy-card .buy-now,
.aiz-aliexpress .ae-buy-card .add-to-cart { padding-top: 13px !important; padding-bottom: 13px !important; }
.aiz-aliexpress .ae-wish-btn {
    width: 48px;
    height: 48px;
    margin-left: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
    color: var(--ae-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, color .15s;
}
.aiz-aliexpress .ae-wish-btn:hover { border-color: var(--primary); color: var(--primary); }
[dir="rtl"] .aiz-aliexpress .ae-wish-btn { margin-left: 0; margin-right: 8px; }

/* Delivery & services card */
.aiz-aliexpress .ae-svc { border: 1px solid var(--ae-line); border-radius: var(--ae-radius); padding: 14px 16px 6px; }
.aiz-aliexpress .ae-svc-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.aiz-aliexpress .ae-svc-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.45; }
.aiz-aliexpress .ae-svc-row + .ae-svc-row { border-top: 1px dashed var(--ae-line); }
.aiz-aliexpress .ae-svc-row > i { font-size: 20px; color: var(--ae-text); flex: none; width: 22px; text-align: center; margin-top: -1px; }
.aiz-aliexpress .ae-svc-sub { font-size: 13px; color: var(--ae-muted); }
.aiz-aliexpress .ae-seller-row { padding-top: 12px !important; padding-bottom: 12px !important; }
.aiz-aliexpress .ae-seller-row > div { padding: 14px 16px !important; border-radius: var(--ae-radius) !important; }
.aiz-aliexpress .ae-seller-row a.pl-15px { padding-left: 6px !important; }
[dir="rtl"] .aiz-aliexpress .ae-seller-row a.pl-15px { padding-left: 0 !important; padding-right: 6px !important; }
.aiz-aliexpress .product-details .warranty-section { padding-bottom: 8px !important; }

/* Description: centred, images not wider than 760px, long ones cut with "View more" */
.aiz-aliexpress #description .aiz-editor-data { max-width: 800px !important; margin: 0 auto; font-size: 14px; line-height: 1.6; position: relative; }
.aiz-aliexpress #description .aiz-editor-data img { display: block; max-width: 100% !important; width: auto; height: auto !important; margin: 0 auto; }
.aiz-aliexpress #description .aiz-editor-data table { max-width: 100%; display: block; overflow-x: auto; }
.aiz-aliexpress #description .aiz-editor-data.ae-desc-cut { overflow: hidden !important; }
.aiz-aliexpress #description .aiz-editor-data.ae-desc-cut::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}
.aiz-aliexpress .ae-desc-more { text-align: center; padding-top: 14px; }
.aiz-aliexpress .ae-desc-btn {
    padding: 9px 28px;
    border: 1px solid var(--ae-text);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: var(--ae-text);
}
.aiz-aliexpress .ae-desc-btn:hover { background: var(--ae-text); color: #fff; }

@media (min-width: 992px) {
    /* Section tabs stay visible while scrolling */
    .aiz-aliexpress .product-details-nav-tab .nav-tab-header {
        position: sticky;
        top: 0;
        z-index: 30;
        background: #fff !important;
        box-shadow: 0 1px 0 var(--ae-line);
        border-radius: 0 !important;
        margin-bottom: 16px;
    }
    .aiz-aliexpress .product-details-nav-tab .nav-tab-header .container { margin-bottom: 0 !important; }
    .aiz-aliexpress #tabLinks a { padding-top: 14px !important; padding-bottom: 14px !important; }
}
@media (max-width: 991.98px) {
    .aiz-aliexpress .ae-price-box h6 { font-size: 26px !important; }
    .aiz-aliexpress .ae-svc { padding: 12px 12px 4px; }
    .aiz-aliexpress #description > div { padding: 16px 12px !important; }
    .aiz-aliexpress .ae-wish-btn { display: none; }
}

/* ---------- Shop page ---------- */
.aiz-aliexpress .ae-shop-head {
    background: linear-gradient(120deg, var(--primary), #ff7a45) !important;
    border: 0 !important;
    color: #fff;
    margin-bottom: 0 !important;
}
.aiz-aliexpress .ae-shop-head .text-dark,
.aiz-aliexpress .ae-shop-head .text-secondary,
.aiz-aliexpress .ae-shop-head a.text-dark { color: #fff !important; }
.aiz-aliexpress .ae-shop-head .rating i { color: #fff; }
.aiz-aliexpress .ae-shop-head .rating i.active { color: #ffd23f; }
.aiz-aliexpress .ae-shop-head .border-md-right,
.aiz-aliexpress .ae-shop-head .border-lg-right { border-color: rgba(255, 255, 255, .35) !important; }
.aiz-aliexpress .ae-shop-head .follow-btn:not(.followed) {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--primary) !important;
}
.aiz-aliexpress .ae-shop-tabs {
    margin-top: 0 !important;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 1px 0 var(--ae-line);
}
.aiz-aliexpress .ae-shop-tabs .container > div { gap: 4px; }
.aiz-aliexpress .ae-shop-tabs a {
    opacity: 1 !important;
    margin: 0 !important;
    padding: 14px 16px;
    font-size: 14px !important;
    color: var(--ae-muted) !important;
    border-bottom: 3px solid transparent;
}
.aiz-aliexpress .ae-shop-tabs a.opacity-100 { color: var(--ae-text) !important; border-bottom-color: var(--primary); }
.aiz-aliexpress .ae-shop-tabs a:hover { color: var(--ae-text) !important; }
@media (max-width: 575px) {
    .aiz-aliexpress .ae-shop-tabs .container > div { flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important; scrollbar-width: none; }
    .aiz-aliexpress .ae-shop-tabs a { white-space: nowrap; padding: 12px 10px; }
}
