/* Kampanyalar: üst geri sayım şeridi, menü bağlantısı, ana sayfa kartları, kampanya sayfası, ürün rozeti, sepet
   satırları ve "çarkı çevir". Renkler storefront.css'teki --sf-* değişkenlerinden gelir. Statik dosya uzun süre
   önbellekte kalır: değişince _Layout'taki v= değeri artırılmalıdır. */

/* Üst geri sayım şeridi */
.sf-countdown { position: relative; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 8px 14px; background: var(--sf-ink, #2b2523); color: #fff; font-family: "Hind", sans-serif; text-align: center; }
.sf-countdown a { color: #fff; }
.sf-countdown-text { font-size: 14px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; }
.sf-countdown-text:hover, .sf-countdown-text:focus { color: #fff; text-decoration: underline; }
.sf-countdown-clock { display: inline-flex; gap: 6px; }
.sf-countdown-clock span { display: inline-flex; flex-direction: column; align-items: center; min-width: 34px; line-height: 1; }
.sf-countdown-clock b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-countdown-clock small { margin-top: 2px; font-size: 9px; letter-spacing: .6px; opacity: .8; }
.sf-countdown-cta { padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; }
.sf-countdown-cta:hover, .sf-countdown-cta:focus { color: #fff; border-bottom-color: #fff; text-decoration: none; }
.sf-countdown[hidden] { display: none; }
@media (max-width: 575px) {
    .sf-countdown { gap: 4px 12px; padding: 7px 10px; }
    .sf-countdown-text { flex-basis: 100%; font-size: 12.5px; }
    .sf-countdown-clock b { font-size: 15px; }
}

/* Menü bağlantısı */
.sf-menu-campaign > a { color: var(--sf-accent-dark, #8f5c45) !important; font-weight: 700 !important; }
.mobile-main-menu .sf-menu-campaign > a { text-transform: uppercase; }

/* Ana sayfa şeridi ve kampanya listesi */
.sf-campaign-row { display: flex; gap: 14px; margin-top: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.sf-campaign-row .sf-campaign-card { flex: 0 0 min(78%, 360px); scroll-snap-align: start; }
@media (min-width: 992px) { .sf-campaign-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); overflow: visible; } }
.sf-campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.sf-campaign-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sf-line, #ece4de); border-radius: 12px; background: #fff; color: var(--sf-ink, #2b2523); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.sf-campaign-card:hover, .sf-campaign-card:focus { color: var(--sf-ink, #2b2523); text-decoration: none; box-shadow: 0 10px 24px rgba(43, 37, 35, .12); transform: translateY(-2px); }
.sf-campaign-card:focus-visible { outline: 2px solid var(--sf-accent, #ad765d); outline-offset: 2px; }
.sf-campaign-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sf-tint, #f8f3ee); }
.sf-campaign-media img, .sf-campaign-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-campaign-media.is-text { background: linear-gradient(135deg, var(--sf-ink, #2b2523), var(--sf-accent-dark, #8f5c45)); }
.sf-campaign-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; color: #fff; font-family: "Hind", sans-serif; font-size: clamp(22px, 5vw, 30px); font-weight: 700; line-height: 1.15; text-align: center; text-transform: uppercase; letter-spacing: .5px; }
.sf-campaign-label { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 4px; background: #ffe14d; color: #2b2523; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.sf-campaign-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.sf-campaign-body strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.sf-campaign-ends { font-size: 12.5px; color: var(--sf-muted, #7d726c); }
.sf-campaign-ends b { color: #b23b2c; font-variant-numeric: tabular-nums; }
.sf-campaign-cta { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--sf-accent-dark, #8f5c45); }
.sf-campaign-notice { padding: 12px 14px; border-radius: 8px; background: #fff6e5; color: #6b4a00; }
.sf-campaign-empty { color: var(--sf-muted, #7d726c); }

/* Kampanya sayfası */
.sf-campaign-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; margin: 6px 0 22px; padding: 18px; border-radius: 14px; background: var(--sf-tint, #f8f3ee); }
.sf-campaign-hero.is-text { grid-template-columns: 1fr; background: linear-gradient(135deg, var(--sf-ink, #2b2523), var(--sf-accent-dark, #8f5c45)); color: #fff; }
.sf-campaign-hero-media { overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: #fff; }
.sf-campaign-hero-media img, .sf-campaign-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-campaign-hero-text { position: relative; }
.sf-campaign-hero-text .sf-campaign-label { position: static; display: inline-block; }
.sf-campaign-hero h1 { margin: 10px 0 8px; font-family: "Hind", sans-serif; font-size: clamp(24px, 4vw, 34px); line-height: 1.15; font-weight: 700; color: inherit; }
.sf-campaign-rule { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.sf-campaign-terms { margin: 0 0 6px; font-size: 13.5px; opacity: .85; white-space: pre-line; }
.sf-campaign-hero .sf-campaign-ends { margin: 8px 0 0; font-size: 13.5px; color: inherit; }
.sf-campaign-hero.is-text .sf-campaign-ends b { color: #ffe14d; }
.sf-campaign-howto { margin: 8px 0 0; font-size: 12.5px; opacity: .75; }
.sf-campaign-count { margin: 0 0 10px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--sf-muted, #7d726c); }
@media (max-width: 767px) { .sf-campaign-hero { grid-template-columns: 1fr; padding: 12px; gap: 14px; } }

/* Ürün kartı ve ürün sayfası rozeti */
.sf-campaign-badge { display: inline-block; margin: 0 0 6px; padding: 3px 8px; border-radius: 3px; background: #ffe14d; color: #2b2523 !important; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .6px; text-transform: uppercase; text-decoration: none !important; }
.sf-campaign-badge:hover, .sf-campaign-badge:focus { background: #ffd31a; }
.sf-product-campaign { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed #e0b400; border-radius: 8px; background: #fffbe6; color: #4a3b00; font-size: 13.5px; text-decoration: none !important; }
.sf-product-campaign .sf-campaign-badge { margin: 0; }
.sf-product-campaign:hover, .sf-product-campaign:focus { color: #2b2523; background: #fff6cc; }

/* Sepet ve ödeme özeti */
.sf-cart-line-campaign { margin: 4px 0 6px; font-size: 12.5px; font-weight: 600; color: #1d7a45; }
.sf-cart-campaign th, .sf-cart-campaign td { color: #1d7a45 !important; }
.sf-cart-coupon-note { font-size: 12.5px; color: #8a5a00 !important; padding-top: 0 !important; }

/* Çarkı çevir */
/* Mobil menü (z-index 22) açıkken menünün altında kalır. */
.sf-wheel-tab { position: fixed; z-index: 20; left: 0; top: 46%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 12px 8px; border: 0; border-radius: 0 10px 10px 0; background: var(--sf-ink, #2b2523); color: #fff; font-family: "Hind", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; writing-mode: vertical-rl; box-shadow: 2px 4px 12px rgba(0, 0, 0, .2); cursor: pointer; }
.sf-wheel-tab span { writing-mode: horizontal-tb; }
.sf-wheel-tab:focus-visible { outline: 2px solid var(--sf-accent, #ad765d); outline-offset: 2px; }
.sf-wheel[hidden] { display: none; }
/* WhatsApp düğmesi (z-index 999999999) çarkın düğmesini örtmesin. */
.sf-wheel { position: fixed; inset: 0; z-index: 1000000000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sf-wheel-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 14, .62); }
.sf-wheel-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.sf-wheel-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: #222; font-size: 22px; line-height: 36px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); cursor: pointer; }
.sf-wheel-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 34px 22px; background: var(--sf-tint, #f8f3ee); }
.sf-wheel-disc { width: min(320px, 100%); height: auto; aspect-ratio: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .18)); transition: transform 4.8s cubic-bezier(.12, .7, .08, 1); }
.sf-wheel-pointer { position: absolute; z-index: 1; top: 22px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 28px solid var(--sf-ink, #2b2523); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.sf-wheel-hub { position: absolute; display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: #fff; color: var(--sf-ink, #2b2523); font-size: 12px; font-weight: 800; letter-spacing: 1px; box-shadow: 0 0 0 4px var(--sf-ink, #2b2523); pointer-events: none; }
.sf-wheel-body { padding: 30px 26px 22px; }
.sf-wheel-kicker { margin: 0; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--sf-muted, #7d726c); }
.sf-wheel-body h2 { margin: 6px 0 8px; font-family: "Hind", sans-serif; font-size: clamp(26px, 4vw, 34px); line-height: 1.05; font-weight: 800; text-transform: uppercase; color: var(--sf-ink, #2b2523); }
.sf-wheel-sub { margin: 0 0 14px; color: #555; }
.sf-wheel-form input[type=email], .sf-wheel-form input[type=tel] { display: block; width: 100%; height: 46px; margin: 0 0 10px; padding: 0 14px; border: 1px solid #d6d0cc; border-radius: 8px; font-size: 15px; }
.sf-wheel-form input:focus { outline: 0; border-color: var(--sf-accent, #ad765d); box-shadow: 0 0 0 3px rgba(173, 118, 93, .2); }
.sf-wheel-check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: #444; cursor: pointer; }
.sf-wheel-check input { flex: none; margin-top: 2px; width: 16px; height: 16px; }
.sf-wheel-check a { color: var(--sf-accent-dark, #8f5c45); text-decoration: underline; }
.sf-wheel-error { min-height: 18px; margin: 6px 0; font-size: 13px; color: #b23b2c; }
.sf-wheel-error:empty { min-height: 0; margin: 0; }
.sf-wheel-submit { display: block; width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--sf-ink, #2b2523); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
.sf-wheel-submit:hover, .sf-wheel-submit:focus { background: #000; color: #fff; }
.sf-wheel-submit:disabled { opacity: .6; cursor: wait; }
.sf-wheel-result { text-align: center; }
.sf-wheel-congrats { margin: 6px 0 2px; font-size: 14px; color: #555; }
.sf-wheel-prize { display: block; margin: 0 0 10px; font-size: 26px; font-weight: 800; color: var(--sf-accent-dark, #8f5c45); }
.sf-wheel-code { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 8px; }
.sf-wheel-code code { padding: 10px 14px; border: 2px dashed var(--sf-ink, #2b2523); border-radius: 8px; background: #fff; color: var(--sf-ink, #2b2523); font-size: 18px; font-weight: 800; letter-spacing: 2px; }
.sf-wheel-code button { padding: 9px 12px; border: 1px solid #d6d0cc; border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.sf-wheel-terms { margin: 0 0 6px; font-size: 12.5px; color: #555; }
.sf-wheel-note { margin: 12px 0 0; font-size: 11.5px; color: #8a817c; }
@media (max-width: 767px) {
    .sf-wheel { align-items: flex-end; padding: 0; }
    .sf-wheel-box { grid-template-columns: 1fr; width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
    .sf-wheel-stage { padding: 26px 16px 18px; }
    .sf-wheel-disc { width: min(250px, 72vw); }
    .sf-wheel-body { padding: 18px 18px 20px; }
    /* Telefonda yan sekme sayfadaki düğmelerin üstüne gelir; WhatsApp düğmesinin karşısında sol altta durur. */
    .sf-wheel-tab { top: auto; bottom: 22px; left: 12px; transform: none; writing-mode: horizontal-tb; padding: 11px 15px; border-radius: 999px; font-size: 12px; letter-spacing: .5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
}
@media (prefers-reduced-motion: reduce) {
    .sf-wheel-disc { transition-duration: .01s; }
    .sf-campaign-card { transition: none; }
}
