/* ==========================================================================
   Yıl Sonu Fırsatları (YILSONU İNDİRİMLERİ) – Yılbaşı temalı vitrin
   ========================================================================== */

:root {
    --fys-red-900: #4a0a0e;
    --fys-red-800: #6e0f15;
    --fys-red-700: #8f1d1d;
    --fys-red-600: #b3131f;
    --fys-red-500: #d4202f;
    --fys-gold: #e9c47c;
    --fys-gold-light: #fbe7b5;
    --fys-cream: #fff8ef;
    --fys-green: #1f6b45;
}

/* ---------------- Bölüm ---------------- */
.fys-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 72px 0 64px;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(233, 196, 124, .18), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(212, 32, 47, .45), transparent 60%),
        linear-gradient(160deg, var(--fys-red-700) 0%, var(--fys-red-800) 45%, var(--fys-red-900) 100%);
}

/* İnce altın çerçeve çizgileri */
.fys-section::before,
.fys-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: repeating-linear-gradient(90deg, var(--fys-gold) 0 24px, #fff 24px 32px, var(--fys-red-500) 32px 56px, #fff 56px 64px);
    opacity: .85;
}
.fys-section::before { top: 0; }
.fys-section::after { bottom: 0; }

.fys-container {
    position: relative;
    z-index: 3;
    max-width: 2450px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 640px)  { .fys-container { padding: 0 24px; } }
@media (min-width: 768px)  { .fys-container { padding: 0 40px; } .fys-section { padding: 88px 0 72px; } }
@media (min-width: 1024px) { .fys-container { padding: 0 64px; } }

/* ---------------- Işık Zinciri ---------------- */
.fys-garland {
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 46px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5%;
    pointer-events: none;
}
.fys-garland::before {
    /* Kablo */
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    top: -14px;
    height: 34px;
    border-bottom: 1.5px solid rgba(0, 0, 0, .45);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.fys-garland i {
    position: relative;
    display: block;
    width: 9px;
    height: 14px;
    top: calc(10px + 6px * var(--wave, 0));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--fys-gold);
    box-shadow: 0 0 10px 2px rgba(233, 196, 124, .8);
    animation: fys-twinkle 1.8s ease-in-out infinite;
    animation-delay: calc(var(--b) * -0.23s);
}
.fys-garland i::before {
    /* Duy */
    content: "";
    position: absolute;
    top: -4px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: #2b2b2b;
}
.fys-garland i:nth-child(4n+1) { background: #ff5a5f; box-shadow: 0 0 10px 2px rgba(255, 90, 95, .85); --wave: 1; }
.fys-garland i:nth-child(4n+2) { background: var(--fys-gold); box-shadow: 0 0 10px 2px rgba(233, 196, 124, .85); --wave: 1.6; }
.fys-garland i:nth-child(4n+3) { background: #5fd38d; box-shadow: 0 0 10px 2px rgba(95, 211, 141, .8); --wave: 1.2; }
.fys-garland i:nth-child(4n)   { background: #fff;   box-shadow: 0 0 10px 2px rgba(255, 255, 255, .85); --wave: .5; }
.fys-garland i:nth-child(n+15) { display: none; }
@media (min-width: 768px) {
    .fys-garland i:nth-child(n+15) { display: block; }
}

@keyframes fys-twinkle {
    0%, 100% { opacity: 1; filter: brightness(1.15); }
    50%      { opacity: .35; filter: brightness(.7); box-shadow: none; }
}

/* ---------------- Kar ---------------- */
.fys-snow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.fys-flake {
    position: absolute;
    top: -5%;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    filter: blur(.4px);
    opacity: .75;
    animation:
        fys-fall var(--d) linear infinite,
        fys-sway calc(var(--d) / 3) ease-in-out infinite alternate;
    animation-delay: var(--dl), var(--dl);
    will-change: top, transform;
}
.fys-flake--glyph {
    width: auto;
    height: auto;
    background: none;
    filter: none;
    color: rgba(255, 255, 255, .55);
    font-size: calc(var(--s) * 2.2);
    line-height: 1;
}
@keyframes fys-fall {
    0%   { top: -5%; }
    100% { top: 105%; }
}
@keyframes fys-sway {
    0%   { transform: translateX(-14px) rotate(0deg); }
    100% { transform: translateX(14px) rotate(180deg); }
}

/* Sağ üstte yumuşak ışık */
.fys-glow {
    position: absolute;
    z-index: 0;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 231, 181, .28), transparent 65%);
    animation: fys-breathe 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes fys-breathe {
    0%, 100% { transform: scale(1); opacity: .8; }
    50%      { transform: scale(1.12); opacity: 1; }
}

/* ---------------- Yönetici rozeti ---------------- */
.fys-admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px 11px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fys-gold-light);
    background: rgba(0, 0, 0, .28);
    border: 1px dashed rgba(233, 196, 124, .55);
    border-radius: 999px;
}

/* ---------------- Başlık alanı ---------------- */
.fys-head {
    display: grid;
    gap: 28px;
    align-items: end;
    margin-bottom: 36px;
}
@media (min-width: 1024px) {
    .fys-head { grid-template-columns: 1fr auto; gap: 48px; margin-bottom: 44px; }
}

.fys-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fys-gold-light);
    margin-bottom: 10px;
}
.fys-gift {
    font-size: 18px;
    color: var(--fys-gold);
    transform-origin: 50% 90%;
    animation: fys-wiggle 3.2s ease-in-out infinite;
}
@keyframes fys-wiggle {
    0%, 70%, 100% { transform: rotate(0) scale(1); }
    74% { transform: rotate(-14deg) scale(1.12); }
    80% { transform: rotate(12deg) scale(1.12); }
    86% { transform: rotate(-8deg) scale(1.06); }
    92% { transform: rotate(4deg) scale(1); }
}

.fys-title {
    margin: 0 0 14px;
    font-size: clamp(32px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .25);
}
.fys-title-accent {
    display: inline-block;
    background: linear-gradient(100deg, var(--fys-gold) 0%, var(--fys-gold-light) 25%, #fff 40%, var(--fys-gold) 55%, var(--fys-gold-light) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--fys-gold);
    animation: fys-shimmer 5s linear infinite;
}
@keyframes fys-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -150% 0; }
}

.fys-sub {
    max-width: 640px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}
@media (min-width: 768px) { .fys-sub { font-size: 16px; } }

/* ---------------- Geri sayım ---------------- */
.fys-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
@media (min-width: 1024px) { .fys-countdown { align-items: flex-end; } }

.fys-cd-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.fys-cd-boxes {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}
.fys-cd-box {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}
.fys-cd-box b {
    display: inline-block;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.fys-cd-box b.is-tick { animation: fys-tick .45s ease-out; }
.fys-cd-box small {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fys-gold-light);
}
.fys-cd-sep {
    align-self: center;
    width: 1px;
    height: 22px;
    background: rgba(233, 196, 124, .35);
}
@keyframes fys-tick {
    0%   { transform: translateY(-6px); opacity: .2; }
    100% { transform: translateY(0); opacity: 1; }
}
@media (max-width: 380px) {
    .fys-cd-boxes { gap: 10px; }
    .fys-cd-box b { font-size: 24px; }
}
.fys-countdown.is-ended .fys-cd-boxes { opacity: .45; }

/* ---------------- Ürün ızgarası ---------------- */
.fys-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 640px)  { .fys-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .fys-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1536px) { .fys-grid { gap: 32px; } }

.fys-item {
    position: relative;
    overflow: hidden;
    padding: 10px 10px 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.fys-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(233, 196, 124, .6);
}
@media (min-width: 768px) { .fys-item { padding: 14px 14px 18px; } }

/* JS hazırken kartlar görünüme girince sırayla yükselerek gelir */
.fys-js:not(.is-visible) .fys-item { opacity: 0; }
.fys-grid.is-entering .fys-item {
    animation: fys-rise .6s cubic-bezier(.2, .8, .2, 1) backwards;
    animation-delay: calc(var(--fys-i, 0) * 55ms);
}
@keyframes fys-rise {
    0%   { opacity: 0; transform: translateY(22px) scale(.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Köşe kurdelesi */
.fys-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 12;
    width: 92px;
    height: 92px;
    overflow: hidden;
    pointer-events: none;
}
.fys-ribbon span {
    position: absolute;
    top: 18px;
    right: -30px;
    width: 120px;
    padding: 4px 0;
    transform: rotate(45deg);
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--fys-red-600), var(--fys-red-500), var(--fys-red-600));
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    overflow: hidden;
}
.fys-ribbon span::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: skewX(-20deg);
    animation: fys-shine 3.6s ease-in-out infinite;
}
.fys-item:nth-child(3n+2) .fys-ribbon span::after { animation-delay: 1.2s; }
.fys-item:nth-child(3n) .fys-ribbon span::after { animation-delay: 2.4s; }
@keyframes fys-shine {
    0%, 60% { left: -60%; }
    100%    { left: 140%; }
}
@media (max-width: 639.98px) {
    .fys-ribbon { width: 74px; height: 74px; }
    .fys-ribbon span { top: 14px; right: -32px; font-size: 7.5px; padding: 3px 0; }
}

/* Kart içi ince ayarlar (mevcut product card bileşeni üzerinde) */
.fys-section .product-card { color: #111; }
.fys-section .product-card .custom-art-badge {
    background: var(--fys-red-600) !important;
    color: #fff !important;
    border: 0 !important;
    font-size: 11px;
    padding: 4px 8px;
    animation: fys-pulse 2.4s ease-in-out infinite;
}
@keyframes fys-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 32, 47, .55); }
    50%      { box-shadow: 0 0 0 6px rgba(212, 32, 47, 0); }
}
.fys-section .product-card .product-price { font-size: 14px; }
.fys-section .product-card .product-price del { color: #9ca3af; font-weight: 400; margin-right: 6px; }
.fys-section .product-card .product-price ins { color: var(--fys-red-600); text-decoration: none; font-weight: 800; }
.fys-section .product-card a.underline { text-decoration-color: var(--fys-red-500); }
.fys-section .product-card a.underline:hover { color: var(--fys-red-600); opacity: 1; }
@media (max-width: 639.98px) {
    .fys-section .product-card h3 { font-size: 12px; }
    .fys-section .product-card .product-price { font-size: 12.5px; }
}

/* Yükleniyor iskeleti */
.fys-skel { padding-bottom: 18px; }
.fys-skel-img,
.fys-skel-line {
    border-radius: 4px;
    background: linear-gradient(90deg, #f3f3f3 0%, #fbe9e9 40%, #f3f3f3 80%);
    background-size: 220% 100%;
    animation: fys-skel 1.2s linear infinite;
}
.fys-skel-img { aspect-ratio: 1 / 1; margin-bottom: 12px; }
.fys-skel-line { height: 10px; margin: 7px auto 0; }
.fys-skel-line.w40 { width: 40%; }
.fys-skel-line.w70 { width: 70%; }
.fys-skel-line.w30 { width: 30%; }
@keyframes fys-skel {
    0%   { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

.fys-empty {
    grid-column: 1 / -1;
    padding: 48px 16px;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    border: 1px dashed rgba(255, 255, 255, .3);
    border-radius: 8px;
}
.fys-empty i { font-size: 28px; margin-bottom: 10px; color: var(--fys-gold); }

/* ---------------- Sayfalandırma ---------------- */
.fys-pagination-wrap { margin-top: 36px; text-align: center; }
.fys-pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.fys-page {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.fys-page:hover:not(:disabled):not(.is-active) {
    background: rgba(255, 255, 255, .18);
    border-color: var(--fys-gold);
    transform: translateY(-2px);
}
.fys-page.is-active {
    color: var(--fys-red-800);
    background: linear-gradient(135deg, var(--fys-gold-light), var(--fys-gold));
    border-color: var(--fys-gold);
    box-shadow: 0 6px 18px -6px rgba(233, 196, 124, .8);
    cursor: default;
}
.fys-page:disabled { opacity: .35; cursor: not-allowed; }
.fys-page:focus-visible { outline: 2px solid var(--fys-gold-light); outline-offset: 2px; }
.fys-page-gap { color: rgba(255, 255, 255, .6); padding: 0 2px; }
.fys-section.is-loading .fys-pagination { pointer-events: none; opacity: .6; }
.fys-error { margin: 12px 0 0; font-size: 13px; color: var(--fys-gold-light); }

/* ---------------- CTA ---------------- */
.fys-cta { margin-top: 32px; text-align: center; }
.fys-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 15px 30px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fys-red-800);
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fys-btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(233, 196, 124, .55), transparent);
    transform: skewX(-20deg);
    animation: fys-shine 4s ease-in-out infinite;
}
.fys-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .6); color: var(--fys-red-600); }
.fys-btn i { transition: transform .2s ease; }
.fys-btn:hover i { transform: translateX(4px); }

/* ==========================================================================
   Header Butonu (Kırmızı)
   ========================================================================== */
.fys-header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    overflow: hidden;
    height: 36px;
    padding: 0 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff !important;
    background: linear-gradient(135deg, var(--fys-red-500), var(--fys-red-600) 55%, var(--fys-red-700));
    border-radius: 2px;
    box-shadow: 0 4px 14px -4px rgba(212, 32, 47, .7);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    animation: fys-header-glow 2.6s ease-in-out infinite;
}
.fys-header-btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    animation: fys-shine 3.2s ease-in-out infinite;
}
.fys-header-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 20px -6px rgba(212, 32, 47, .85);
}
.fys-header-btn:active { transform: scale(.96); }
.fys-header-gift {
    font-size: 13px;
    color: var(--fys-gold-light);
    transform-origin: 50% 90%;
    animation: fys-wiggle 3.2s ease-in-out infinite;
}
@keyframes fys-header-glow {
    0%, 100% { box-shadow: 0 4px 14px -4px rgba(212, 32, 47, .7); }
    50%      { box-shadow: 0 4px 22px -2px rgba(212, 32, 47, .95); }
}

/* Duyarlı etiketler: <640 üst barda gizli (mobil menüde tam genişlik), 640–1279 "Yılsonu", ≥1280 tam metin */
.fys-header-label--long { display: none; }
.fys-header-label--short { display: none; }
@media (max-width: 639.98px) {
    .fys-header-btn:not(.fys-header-btn--mobile) { display: none; }
}
@media (min-width: 640px) and (max-width: 1279.98px) {
    .fys-header-label--short { display: inline; }
}
@media (min-width: 1280px) {
    .fys-header-label--long { display: inline; }
}

/* Mobil menüdeki tam genişlik buton */
.fys-header-btn--mobile {
    width: 100%;
    height: auto;
    padding: 14px 16px;
    font-size: 12.5px;
    letter-spacing: .14em;
    border-radius: 2px;
}
.fys-header-flake {
    font-size: 12px;
    opacity: .85;
    animation: fys-spin 6s linear infinite;
}
@keyframes fys-spin { to { transform: rotate(360deg); } }

/* ---------------- Hareket azaltma tercihi ---------------- */
@media (prefers-reduced-motion: reduce) {
    .fys-section *,
    .fys-section *::before,
    .fys-section *::after,
    .fys-header-btn,
    .fys-header-btn * ,
    .fys-header-btn::after {
        animation: none !important;
        transition: none !important;
    }
    .fys-snow { display: none; }
    .fys-js:not(.is-visible) .fys-item { opacity: 1; }
}
