/* ============================================================
   ISMAR HOMEPAGE SECTIONS — Premium v1.0.9
   Random Categories & Random Products
   CSS keyframe marquee · rich card design · edge masks
   ============================================================ */

/* ── Elementor Responsive Override ──
   Elementor "Hide on Mobile" özelliğini bizim bölümler için devre dışı bırak.
   Elementor bu class'ları ekliyor: elementor-hidden-phone, elementor-hidden-mobile,
   elementor-hidden-tablet, e-hidden--phone vb.
   Hedef div'lerimizi içeren widget'ları HER CİHAZDA göstermek istiyoruz.
   :has() desteği: Chrome 105+, Safari 15.4+, Firefox 121+ — çoğu mobil tarayıcıda var.
   JS fallback da mevcut, CSS sadece ek güvence.
   ───────────────────────────────────────────────────────────── */
:is([class*="elementor-hidden"], [class*="e-hidden"]):has(#ismar-random-categories),
:is([class*="elementor-hidden"], [class*="e-hidden"]):has(#ismar-random-products) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Aynı özellik — parent zincirindeki tüm gizlenen Elementor katmanlarını aç */
:is([class*="elementor-hidden"], [class*="e-hidden"]):has(.ismar-rnd-cats-section),
:is([class*="elementor-hidden"], [class*="e-hidden"]):has(.ismar-rnd-prods-section) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── :has() Kullanmayan Fallback — Tüm Tarayıcılar İçin ── */
@media (max-width: 1024px) {
    .elementor-hidden-phone,
    .elementor-hidden-mobile,
    .elementor-hidden-tablet,
    [class*="e-hidden--phone"],
    [class*="e-hidden--mobile"],
    [class*="e-hidden--tablet"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* data-ismar-forced attribute fallback (JS tarafından eklenir) */
[data-ismar-forced="1"],
[data-ismar-forced="1"] > * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── Shared Variables ── */
.ismar-rnd-cats-section,
.ismar-rnd-prods-section {
    --is-primary: #0d2d5a;
    --is-accent: #1E6FB3;
    --is-gold: #FFD216;
    --is-bg: #f2f5f9;
    --is-white: #ffffff;
    --is-text: #1c2a3a;
    --is-text-mid: #4a5c72;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    line-height: 1.5;
    /* Prevent horizontal overflow on mobile */
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.ismar-rnd-cats-section *,
.ismar-rnd-prods-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADERS — Premium
   ══════════════════════════════════════════════════════════════ */

.ismar-rnd-section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.ismar-rnd-header-badge {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--is-gold, #FFD216) !important;
    background: rgba(255, 210, 22, 0.1) !important;
    border: 1px solid rgba(255, 210, 22, 0.25) !important;
    border-radius: 20px !important;
    padding: 6px 20px !important;
    margin-bottom: 16px;
    line-height: 1.4;
}

.ismar-rnd-section-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: var(--is-primary, #0d2d5a) !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
}

.ismar-rnd-section-header-line {
    width: 80px !important;
    height: 4px !important;
    background: rgba(13, 45, 90, 0.1) !important;
    border-radius: 2px;
    margin: 0 auto 16px;
    border: none !important;
    overflow: hidden !important;
    position: relative;
}

.ismar-rnd-section-header-line span {
    display: block !important;
    width: 0;
    height: 100% !important;
    background: var(--is-gold, #FFD216) !important;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: ismarLineExpand 1.2s 0.3s cubic-bezier(.4,0,.2,1) forwards;
}

.ismar-rnd-section-subtitle {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: var(--is-text-mid, #4a5c72) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    max-width: 480px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ══════════════════════════════════════════════════════════════
   MARQUEE SYSTEM — CSS Keyframe
   ══════════════════════════════════════════════════════════════ */

.ismar-rnd-marquee-outer {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 0 !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.ismar-marquee {
    display: flex !important;
    width: max-content !important;
    will-change: transform;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

/* Prevent the marquee from causing page-level horizontal scroll */
.ismar-rnd-cats-section .ismar-rnd-marquee-outer,
.ismar-rnd-prods-section .ismar-rnd-marquee-outer {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* Elementor target containers — prevent overflow */
#ismar-random-categories,
#ismar-random-products {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

.ismar-marquee-set {
    display: flex !important;
    gap: 28px;
    padding-right: 28px;
    flex-shrink: 0 !important;
}

/* Direction classes — added by JS after cloning */
.ismar-marquee-ltr {
    animation: ismarMarqueeLTR var(--marquee-duration, 25s) linear infinite !important;
}

.ismar-marquee-rtl {
    animation: ismarMarqueeRTL var(--marquee-duration, 25s) linear infinite !important;
}

/* Static mode — few cards, no scrolling, centered */
.ismar-marquee-static {
    width: 100% !important;
    justify-content: center !important;
    animation: none !important;
}

.ismar-marquee-static .ismar-marquee-set {
    justify-content: center !important;
    padding-right: 0 !important;
}

.ismar-marquee-static + .ismar-marquee-set {
    display: none !important;
}

/* Pause on hover — desktop only */
@media (hover: hover) {
    .ismar-rnd-marquee-outer {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    }
    .ismar-rnd-marquee-outer:hover .ismar-marquee {
        animation-play-state: paused !important;
    }
}

@keyframes ismarMarqueeLTR {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

@keyframes ismarMarqueeRTL {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════
   TOP STRIPE (shared on all cards)
   ══════════════════════════════════════════════════════════════ */

.ismar-rnd-card-stripe {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    height: 3px !important;
    background: linear-gradient(90deg, var(--is-primary, #0d2d5a), var(--is-accent, #1E6FB3)) !important;
    z-index: 3;
    transition: height 0.4s cubic-bezier(.4,0,.2,1);
    border: none !important;
}

.ismar-rnd-cat-card:hover .ismar-rnd-card-stripe,
.ismar-rnd-prod-card:hover .ismar-rnd-card-stripe {
    height: 5px !important;
}

/* ══════════════════════════════════════════════════════════════
   SHIMMER / SHINE EFFECT
   ══════════════════════════════════════════════════════════════ */

.ismar-rnd-shimmer {
    position: absolute !important;
    top: 0;
    left: -100%;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255,255,255,0.15) 42%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0.15) 58%,
        transparent 65%
    ) !important;
    z-index: 5;
    pointer-events: none;
}

.ismar-rnd-cat-card:hover .ismar-rnd-shimmer,
.ismar-rnd-prod-card:hover .ismar-rnd-shimmer {
    animation: ismarShimmer 0.8s ease-out forwards;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 1 — RANDOM CATEGORIES
   ══════════════════════════════════════════════════════════════ */

.ismar-rnd-cats-section {
    padding: 0;
    width: 100%;
}

/* ─── Category Card ─── */
.ismar-rnd-cat-card {
    flex: 0 0 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    min-height: 440px;
    background: var(--is-white, #fff) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit;
    border: 1px solid rgba(13, 45, 90, 0.06) !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(13, 45, 90, 0.06);
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1),
                box-shadow 0.45s cubic-bezier(.4, 0, .2, 1),
                border-color 0.45s ease;
    cursor: pointer;
}

.ismar-rnd-cat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(30, 111, 179, 0.2) !important;
    box-shadow:
        0 8px 20px rgba(13, 45, 90, 0.08),
        0 20px 48px rgba(13, 45, 90, 0.12),
        0 0 0 1px rgba(30, 111, 179, 0.08);
    text-decoration: none !important;
    color: inherit;
}

.ismar-rnd-cat-card:visited,
.ismar-rnd-cat-card:active,
.ismar-rnd-cat-card:focus {
    text-decoration: none !important;
    color: inherit;
    outline: none !important;
}

/* Arrow Badge (top-right) */
.ismar-rnd-cat-arrow {
    position: absolute !important;
    top: 16px;
    right: 16px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    background: var(--is-primary, #0d2d5a);
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: translate(6px, -6px);
    transition: opacity 0.35s, transform 0.35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(13, 45, 90, 0.3);
}

.ismar-rnd-cat-card:hover .ismar-rnd-cat-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.ismar-rnd-cat-arrow svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: block;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Image Area */
.ismar-rnd-cat-img-wrap {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    min-width: unset !important;
    max-width: 100% !important;
    overflow: hidden !important;
    flex-shrink: 0;
    position: relative;
    background: #f8f9fa;
}

.ismar-rnd-cat-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 50% !important;
    display: block !important;
    background-size: cover !important;
    background-position: center 50% !important;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.ismar-rnd-cat-card:hover .ismar-rnd-cat-img {
    transform: scale(1.1);
}

/* Gradient overlay on image bottom — görsel ile içerik arası yumuşak geçiş */
.ismar-rnd-cat-img-overlay {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px !important;
    background: linear-gradient(
        to top,
        rgba(255,255,255,0.98) 0%,
        rgba(255,255,255,0.6) 55%,
        rgba(255,255,255,0) 100%
    ) !important;
    pointer-events: none;
    z-index: 1;
}

/* Content Area */
.ismar-rnd-cat-content {
    padding: 20px 22px 22px !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    z-index: 2;
    background: var(--is-white, #fff);
    margin-top: -2px;
}

/* Arrow Circle Button + Pulse Animation */
.ismar-rnd-cat-arrow-circle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border: 2px solid var(--is-primary, #0d2d5a) !important;
    border-radius: 50% !important;
    color: var(--is-primary, #0d2d5a);
    margin-bottom: 14px;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
    animation: ismarPulse 2.8s ease-in-out infinite;
}

.ismar-rnd-cat-arrow-circle svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block;
}

.ismar-rnd-cat-card:hover .ismar-rnd-cat-arrow-circle {
    background: var(--is-primary, #0d2d5a);
    color: #fff;
    border-color: var(--is-primary, #0d2d5a) !important;
    animation: none;
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(13, 45, 90, 0.1);
}

.ismar-rnd-cat-card:hover .ismar-rnd-cat-arrow-circle svg {
    stroke: #fff;
}

/* Tag Label */
.ismar-rnd-cat-tag {
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--is-accent, #1E6FB3) !important;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Title */
.ismar-rnd-cat-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--is-primary, #0d2d5a) !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    text-align: left;
}

/* Divider */
.ismar-rnd-cat-divider {
    width: 36px !important;
    height: 3px !important;
    background: var(--is-gold, #FFD216) !important;
    border-radius: 2px;
    margin-bottom: 14px;
    border: none !important;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.ismar-rnd-cat-card:hover .ismar-rnd-cat-divider {
    width: 60px !important;
}

/* Sub-product Chips */
.ismar-rnd-cat-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.ismar-rnd-cat-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: var(--is-bg, #f2f5f9) !important;
    border: 1px solid rgba(13, 45, 90, 0.06) !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 600;
    color: var(--is-text, #1c2a3a) !important;
    white-space: nowrap;
    line-height: 1.4;
    transition: background 0.3s, border-color 0.3s;
}

.ismar-rnd-cat-card:hover .ismar-rnd-cat-chip {
    background: rgba(30, 111, 179, 0.06) !important;
    border-color: rgba(30, 111, 179, 0.12) !important;
}

.ismar-rnd-cat-chip-icon {
    display: inline-flex !important;
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
}

.ismar-rnd-cat-chip-icon svg {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    fill: var(--is-accent, #1E6FB3);
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 2 — RANDOM PRODUCTS
   ══════════════════════════════════════════════════════════════ */

.ismar-rnd-prods-section {
    padding: 0;
    width: 100%;
}

/* ─── Product Card ─── */
.ismar-rnd-prod-card {
    flex: 0 0 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    min-height: 440px;
    background: var(--is-white, #fff) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit;
    border: 1px solid rgba(13, 45, 90, 0.06) !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(13, 45, 90, 0.06);
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1),
                box-shadow 0.45s cubic-bezier(.4, 0, .2, 1),
                border-color 0.45s ease;
    cursor: pointer;
}

.ismar-rnd-prod-card:hover {
    transform: translateY(-10px);
    border-color: rgba(30, 111, 179, 0.2) !important;
    box-shadow:
        0 8px 20px rgba(13, 45, 90, 0.08),
        0 20px 48px rgba(13, 45, 90, 0.12),
        0 0 0 1px rgba(30, 111, 179, 0.08);
    text-decoration: none !important;
    color: inherit;
}

.ismar-rnd-prod-card:visited,
.ismar-rnd-prod-card:active,
.ismar-rnd-prod-card:focus {
    text-decoration: none !important;
    color: inherit;
    outline: none !important;
}

/* Product Image Area (full-width cover) */
.ismar-rnd-prod-img-wrap {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    min-width: unset !important;
    max-width: 100% !important;
    overflow: hidden !important;
    flex-shrink: 0;
    position: relative;
    background: #f8f9fa;
}

.ismar-rnd-prod-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 50% !important;
    display: block !important;
    background-size: cover !important;
    background-position: center 50% !important;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.ismar-rnd-prod-card:hover .ismar-rnd-prod-img {
    transform: scale(1.08);
}

/* Gradient overlay on image bottom — görsel ile içerik arası yumuşak geçiş */
.ismar-rnd-prod-img-overlay {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px !important;
    background: linear-gradient(
        to top,
        rgba(255,255,255,0.98) 0%,
        rgba(255,255,255,0.6) 55%,
        rgba(255,255,255,0) 100%
    ) !important;
    pointer-events: none;
    z-index: 1;
}

/* Arrow Badge (top-right, appears on hover) */
.ismar-rnd-prod-arrow-badge {
    position: absolute !important;
    top: 16px;
    right: 16px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    background: var(--is-primary, #0d2d5a);
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: translate(6px, -6px);
    transition: opacity 0.35s, transform 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 12px rgba(13, 45, 90, 0.3);
}

.ismar-rnd-prod-card:hover .ismar-rnd-prod-arrow-badge {
    opacity: 1;
    transform: translate(0, 0);
}

.ismar-rnd-prod-arrow-badge svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
    stroke: #fff;
    stroke-width: 2;
}

/* Content Area */
.ismar-rnd-prod-content {
    padding: 20px 22px 22px !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    z-index: 2;
    background: var(--is-white, #fff);
    margin-top: -2px;
}

/* Circle Arrow Button */
.ismar-rnd-prod-arrow-circle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border: 2px solid var(--is-primary, #0d2d5a) !important;
    border-radius: 50% !important;
    color: var(--is-primary, #0d2d5a);
    margin-bottom: 14px;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
    background: transparent;
    animation: ismarPulse 2.8s ease-in-out infinite;
}

.ismar-rnd-prod-arrow-circle svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block;
    stroke: currentColor;
}

.ismar-rnd-prod-card:hover .ismar-rnd-prod-arrow-circle {
    background: var(--is-primary, #0d2d5a);
    color: #fff;
    border-color: var(--is-primary, #0d2d5a) !important;
    animation: none;
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(13, 45, 90, 0.1);
}

.ismar-rnd-prod-card:hover .ismar-rnd-prod-arrow-circle svg {
    stroke: #fff;
}

/* Tag Label */
.ismar-rnd-prod-tag {
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--is-accent, #1E6FB3) !important;
    margin-bottom: 5px;
    line-height: 1.4;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Product Title */
.ismar-rnd-prod-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--is-primary, #0d2d5a) !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    text-align: left;
}

/* Divider */
.ismar-rnd-prod-divider {
    width: 36px !important;
    height: 3px !important;
    background: var(--is-gold, #FFD216) !important;
    border-radius: 2px;
    margin-bottom: 12px;
    border: none !important;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.ismar-rnd-prod-card:hover .ismar-rnd-prod-divider {
    width: 60px !important;
}

/* Description */
.ismar-rnd-prod-desc {
    font-size: 13px !important;
    color: var(--is-text-mid, #4a5c72) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
    text-align: left;
}

/* ══════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ══════════════════════════════════════════════════════════════ */

/* Shimmer sweep */
@keyframes ismarShimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* Pulse — arrow circle breathes gently */
@keyframes ismarPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13,45,90,0.12); }
    50%      { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(13,45,90,0); }
}

/* Star twinkle — individual stars glow in sequence */
@keyframes ismarTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); text-shadow: 0 0 6px rgba(255,210,22,0.4); }
    50%      { opacity: 0.55; transform: scale(0.88); text-shadow: 0 0 2px rgba(255,210,22,0.1); }
}

/* Section header line expand from center */
@keyframes ismarLineExpand {
    from { width: 0; }
    to   { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════════ */

.ismar-rnd-cats-section .mh-reveal,
.ismar-rnd-prods-section .mh-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ismar-rnd-cats-section .mh-reveal.visible,
.ismar-rnd-prods-section .mh-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.ismar-rnd-cats-section .mh-reveal.d1,
.ismar-rnd-prods-section .mh-reveal.d1 { transition-delay: 0.1s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Force everything visible on mobile */
    .ismar-rnd-cats-section,
    .ismar-rnd-prods-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ismar-rnd-cats-section .mh-reveal,
    .ismar-rnd-prods-section .mh-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .ismar-rnd-section-header {
        display: block !important;
        visibility: visible !important;
    }

    .ismar-rnd-section-title {
        font-size: 26px !important;
    }

    .ismar-rnd-section-subtitle {
        font-size: 13px !important;
    }

    .ismar-rnd-header-badge {
        font-size: 10px !important;
        padding: 5px 14px !important;
    }

    /* Mobilde mask-image kesinlikle kaldır */
    .ismar-rnd-marquee-outer {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        overflow: hidden !important;
        overflow-x: auto !important;
        padding: 12px 0 !important;
        display: block !important;
        visibility: visible !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* Mobilde marquee yerine scroll yap */
    .ismar-marquee {
        animation: none !important;
        width: auto !important;
        max-width: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 8px 16px;
        display: flex !important;
        visibility: visible !important;
        transform: none !important;
    }

    .ismar-marquee-set {
        display: flex !important;
        gap: 16px;
        padding-right: 16px;
        padding-left: 0 !important;
        visibility: visible !important;
    }

    /* Section overflow kontrol — mobilde sayfa genişliğini aşmasın */
    .ismar-rnd-cats-section,
    .ismar-rnd-prods-section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Klonlanan 2. set mobilde gizle */
    .ismar-marquee > .ismar-marquee-set:nth-child(2) {
        display: none !important;
    }

    .ismar-rnd-cat-card {
        flex: 0 0 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        min-height: 360px;
        scroll-snap-align: start;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ismar-rnd-cat-img-wrap {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }

    .ismar-rnd-cat-title {
        font-size: 16px !important;
    }

    .ismar-rnd-prod-card {
        flex: 0 0 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        min-height: 380px;
        padding: 0 !important;
        scroll-snap-align: start;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ismar-rnd-prod-img-wrap {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }

    .ismar-rnd-prod-title {
        font-size: 16px !important;
    }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ismar-rnd-cat-arrow-circle { animation: none !important; }
    .ismar-rnd-prod-arrow-circle { animation: none !important; }
    .ismar-rnd-shimmer { display: none !important; }
    .ismar-marquee { animation: none !important; }
    .ismar-rnd-section-header-line span { animation: none !important; width: 100% !important; }
    .ismar-rnd-cats-section .mh-reveal,
    .ismar-rnd-prods-section .mh-reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   FALLBACK — Source div'ler doğrudan gösterildiğinde
   (Elementor hedef div bulunamazsa JS tarafından etkinleştirilir)
   ══════════════════════════════════════════════════════════════ */
#ismar-rnd-cats-src[style*="display"],
#ismar-rnd-prods-src[style*="display"] {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    overflow: hidden !important;
    overflow-y: visible !important;
    opacity: 1 !important;
}

#ismar-rnd-cats-src[style*="display"] .ismar-rnd-cats-section,
#ismar-rnd-prods-src[style*="display"] .ismar-rnd-prods-section,
#ismar-rnd-cats-src[style*="display"] .marquee-outer,
#ismar-rnd-prods-src[style*="display"] .marquee-outer,
#ismar-rnd-cats-src[style*="display"] .ismar-marquee,
#ismar-rnd-prods-src[style*="display"] .ismar-marquee,
#ismar-rnd-cats-src[style*="display"] .ismar-marquee-set,
#ismar-rnd-prods-src[style*="display"] .ismar-marquee-set,
#ismar-rnd-cats-src[style*="display"] .ismar-rnd-section-header,
#ismar-rnd-prods-src[style*="display"] .ismar-rnd-section-header,
#ismar-rnd-cats-src[style*="display"] .mh-reveal,
#ismar-rnd-prods-src[style*="display"] .mh-reveal {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

#ismar-rnd-cats-src[style*="display"] .ismar-marquee,
#ismar-rnd-prods-src[style*="display"] .ismar-marquee {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    animation: none !important;
}

#ismar-rnd-cats-src[style*="display"] .ismar-marquee-set,
#ismar-rnd-prods-src[style*="display"] .ismar-marquee-set {
    display: flex !important;
    gap: 16px;
}

/* Fallback: klonlanan 2. set gizle */
#ismar-rnd-cats-src[style*="display"] .ismar-marquee > .ismar-marquee-set:nth-child(2),
#ismar-rnd-prods-src[style*="display"] .ismar-marquee > .ismar-marquee-set:nth-child(2) {
    display: none !important;
}

#ismar-rnd-cats-src[style*="display"] .ismar-rnd-cat-card,
#ismar-rnd-prods-src[style*="display"] .ismar-rnd-prod-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
