/* ============================================================
   MODERN.CSS — Custom layer for Tailwind-based redesign
   ============================================================ */

:root {
    --brand:        #ff3d00;
    --brand-dark:   #c62828;
    --brand-glow:   rgba(255, 61, 0, 0.45);
    --ink:          #0f172a;
    --ink-soft:     #334155;
    --muted:        #64748b;
    --bg:           #f8fafc;
    --surface:      #ffffff;
    --line:         #e2e8f0;
    --success:      #16a34a;
    --warning:      #eab308;

    /* Fluid typography — clamp(min, preferred, max) */
    --fs-xs:  clamp(11px, 0.72rem + 0.05vw, 12px);
    --fs-sm:  clamp(13px, 0.82rem + 0.1vw, 14px);
    --fs-base:clamp(14px, 0.88rem + 0.15vw, 16px);
    --fs-md:  clamp(15px, 0.94rem + 0.2vw, 17px);
    --fs-lg:  clamp(17px, 1.05rem + 0.3vw, 20px);
    --fs-xl:  clamp(20px, 1.2rem + 0.6vw, 24px);
    --fs-2xl: clamp(24px, 1.4rem + 1vw, 32px);
    --fs-3xl: clamp(28px, 1.6rem + 1.6vw, 44px);
    --fs-4xl: clamp(34px, 1.9rem + 2.6vw, 56px);

    /* Bottom safe area for sticky CTA on mobile */
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --sticky-cta-h: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    /* Prevent iOS auto text zoom on landscape */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    margin: 0;
    font-size: var(--fs-base);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Stop horizontal overflow from any wide child */
html, body { max-width: 100%; }

img, video, svg, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reserve space for sticky CTA so content isn't covered */
body.has-sticky-cta {
    padding-bottom: calc(var(--sticky-cta-h) + var(--safe-bottom) + 16px);
}

/* Inputs/selects: prevent iOS zoom (must be ≥ 16px) */
input, select, textarea, button {
    font: inherit;
    font-size: 16px;
}

/* Fluid heading helpers */
.h-display   { font-size: var(--fs-4xl); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.h-section   { font-size: var(--fs-3xl); line-height: 1.1;  letter-spacing: -0.015em; font-weight: 800; }
.h-card      { font-size: var(--fs-lg);  line-height: 1.25; letter-spacing: -0.005em; font-weight: 700; }
.t-eyebrow   { font-size: var(--fs-xs);  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }

/* === Reusable utility helpers (some Tailwind-like) === */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === Brand button === */
.btn-brand {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 12px 30px -10px var(--brand-glow);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px var(--brand-glow);
    filter: brightness(1.05);
}
.btn-brand:active { transform: translateY(0); }

/* === Ana CTA (urun detay "Sepete Ekle") === */
.btn-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .01em;
    cursor: pointer;
    line-height: 1;
}
.btn-cta svg, .btn-cta i { flex-shrink: 0; }

/* === Urun karti "Sepete" butonu === */
.pc-add {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}
.pc-add svg, .pc-add i { flex-shrink: 0; width: 16px; height: 16px; }
.pc-add span { overflow: hidden; text-overflow: ellipsis; }
/* Mobilde sadece ikon, daralan alan icin sabit kare buton */
.pc-add-text { display: none; }
.pc-add { flex: 0 0 auto; width: 44px; padding: 0; }
@media (min-width: 640px) {
    .pc-add { height: 40px; font-size: 14px; border-radius: 14px; flex: 1 1 auto; width: auto; padding: 0 12px; }
    .pc-add-text { display: inline; }
}

/* === Glass card === */
.glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
}

/* === Sticky header polish === */
.app-header {
    position: sticky;
    top: 0;
    z-index: 60;
    transition: backdrop-filter .3s ease, background .3s ease, box-shadow .3s ease;
}
.app-header.is-scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 8px 30px -18px rgba(15,23,42,0.25);
}

/* === Hero === */
.hero-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 28px;
}
.hero-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .55;
    pointer-events: none;
    z-index: -1;
}

/* === Product card (mobile-first, stable heights) === */
.product-card {
    position: relative;
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: layout paint;
}
@media (min-width: 768px) {
    .product-card { border-radius: 22px; }
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -28px rgba(15,23,42,0.28);
    border-color: transparent;
}
.product-card .pc-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
}
.product-card .pc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover .pc-media img { transform: scale(1.06); }

.product-card .pc-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
@media (min-width: 640px) { .product-card .pc-body { padding: 14px; } }
@media (min-width: 1024px) { .product-card .pc-body { padding: 16px; } }

.product-card .pc-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em; /* reserves 2 lines → no CLS */
}
@media (min-width: 1024px) {
    .product-card .pc-title { font-size: var(--fs-base); min-height: 2.7em; }
}

.product-card .pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.product-card .pc-price {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.product-card .pc-price-strike {
    color: var(--muted);
    text-decoration: line-through;
    font-size: var(--fs-xs);
    font-weight: 500;
}

.pc-actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-top: 4px;
}
@media (min-width: 640px) { .pc-actions { gap: 8px; } }

.pc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    letter-spacing: .06em;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 8px 20px -8px var(--brand-glow);
}
@media (min-width: 768px) {
    .pc-badge { top: 14px; left: 14px; font-size: 11px; padding: 6px 10px; }
}

/* === Quantity stepper (touch-friendly 40-44px) === */
.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    height: 40px;
    flex-shrink: 0;
}
.qty button {
    width: 36px;
    height: 100%;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background .2s;
    padding: 0;
}
.qty button:hover { background: #f1f5f9; }
.qty input {
    width: 36px;
    border: 0;
    text-align: center;
    font-weight: 700;
    background: transparent;
    -moz-appearance: textfield;
    color: var(--ink);
    font-size: 14px;
    height: 100%;
    padding: 0;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (min-width: 768px) {
    .qty { height: 44px; }
    .qty button { width: 40px; font-size: 20px; }
    .qty input { width: 44px; font-size: 15px; }
}

/* Card-scoped compact qty */
.product-card .qty {
    height: 38px;
}
.product-card .qty button { width: 30px; font-size: 16px; }
.product-card .qty input { width: 28px; font-size: 13px; }
@media (min-width: 640px) {
    .product-card .qty { height: 40px; }
    .product-card .qty button { width: 34px; }
    .product-card .qty input { width: 34px; font-size: 14px; }
}

/* Card sepete-at button compact on mobile */
.product-card .pc-add {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    height: 38px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .product-card .pc-add { height: 40px; font-size: 13px; padding: 0 14px; }
}
@media (min-width: 1024px) {
    .product-card .pc-add { height: 44px; font-size: 14px; }
}

/* === Form polish (mobile-first floating-style) === */
.input {
    width: 100%;
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px; /* prevent iOS zoom */
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    min-height: 52px;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}
.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255,61,0,0.12);
    background: #fff;
}
.input::placeholder { color: #94a3b8; }

/* Native select arrow restyle */
select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

textarea.input { min-height: 110px; resize: vertical; }

.label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
    letter-spacing: .01em;
}

/* Floating label group */
.field {
    position: relative;
}
.field .input { padding-top: 22px; padding-bottom: 8px; }
.field .floating-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
    transition: all .18s ease;
    background: transparent;
    line-height: 1;
    font-weight: 500;
}
.field .input:focus ~ .floating-label,
.field .input:not(:placeholder-shown) ~ .floating-label,
.field select.input:valid ~ .floating-label {
    top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.field .input:placeholder-shown:not(:focus) ~ .floating-label {
    /* keep label up if placeholder is " " */
}

/* When a select has any value selected, make label float */
.field select.input:not([value=""]) ~ .floating-label,
.field select.input.has-value ~ .floating-label {
    top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* === Pay option pills === */
.pay-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
}
.pay-pill:hover { border-color: #cbd5e1; }
.pay-pill input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-pill.is-active {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(255,61,0,0.06), rgba(255,61,0,0.02));
    box-shadow: 0 0 0 4px rgba(255,61,0,0.08);
}

/* === Cart drawer === */
.drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(4px);
    z-index: 80;
}
.drawer-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 92vw);
    background: #fff;
    z-index: 90;
    display: flex;
    flex-direction: column;
    box-shadow: -30px 0 60px -20px rgba(15,23,42,0.25);
}

/* === Sticky bottom CTA (mobile-aware, safe-area) === */
.sticky-cta {
    position: fixed;
    bottom: calc(8px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: min(680px, calc(100% - 16px));
    background: rgba(15,23,42,0.96);
    color: #fff;
    border-radius: 16px;
    padding: 10px 12px 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 25px 60px -20px rgba(15,23,42,0.55);
    backdrop-filter: blur(10px);
}
.sticky-cta small {
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.2;
    display: block;
}
@media (min-width: 640px) {
    .sticky-cta { bottom: calc(14px + var(--safe-bottom)); border-radius: 20px; padding: 12px 14px 12px 18px; }
}

/* === Scroll-to-top === */
.scroll-top-fab {
    position: fixed;
    right: 12px;
    bottom: calc(80px + var(--safe-bottom));
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    display: grid; place-items: center;
    box-shadow: 0 10px 30px -8px rgba(15,23,42,0.25);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    border: 1px solid var(--line);
}
.scroll-top-fab.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
@media (min-width: 768px) {
    .scroll-top-fab { right: 18px; bottom: calc(90px + var(--safe-bottom)); width: 46px; height: 46px; }
}

/* === Marquee trust bar === */
.trust-bar {
    background: var(--ink);
    color: #e2e8f0;
    overflow: hidden;
    border-bottom: 1px solid #1e293b;
}
.trust-bar .track {
    display: flex;
    gap: 56px;
    padding: 10px 0;
    width: max-content;
    animation: marquee 28s linear infinite;
    font-size: 13px;
    letter-spacing: .04em;
}
.trust-bar .track > span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* === PDP === */
.pdp-thumb {
    width: 72px; height: 72px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
    background: #f1f5f9;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-active { border-color: var(--brand); }
.pdp-thumb:hover { transform: translateY(-2px); }

.pdp-main-image {
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    display: grid; place-items: center;
}
.pdp-main-image img {
    width: 100%; height: 100%; object-fit: contain;
}

.price-strike {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 500;
}

.discount-chip {
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* === Tabs (PDP) === */
.tab-btn {
    padding: 14px 20px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 600;
    transition: all .2s;
    cursor: pointer;
    background: transparent;
    border-left: 0; border-right: 0; border-top: 0;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active { color: var(--brand); border-color: var(--brand); }

/* === PDP Quick order radio cards === */
.qo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    background: #fff;
    transition: all .2s;
}
.qo-card:hover { border-color: #cbd5e1; }
.qo-card input { accent-color: var(--brand); }
.qo-card.is-active {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(255,61,0,0.06), rgba(255,61,0,0.02));
    box-shadow: 0 0 0 4px rgba(255,61,0,0.08);
}
.qo-card .qo-tag {
    background: var(--success);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* === Reveal on scroll baseline === */
[data-anim] { opacity: 0; }

/* === Footer === */
.app-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
}
.app-footer h5 { color: #fff; font-weight: 700; letter-spacing: .03em; }
.app-footer a { color: #cbd5e1; transition: color .2s; }
.app-footer a:hover { color: #fff; }

/* === Responsive tweaks === */
@media (max-width: 640px) {
    .sticky-cta { border-radius: 16px; padding: 10px 12px; }
    .scroll-top-fab { right: 12px; bottom: 100px; }
}

/* ============================================================
   MOBILE-FIRST HARDENING (added)
   ============================================================ */

/* Drawer fills full height including iOS bottom bar */
.drawer-panel {
    width: min(440px, 100vw);
    height: 100dvh;
    height: 100vh;
    padding-bottom: var(--safe-bottom);
}

/* Hero card padding scale */
.hero-shell {
    padding: 28px 20px;
}
@media (min-width: 640px)  { .hero-shell { padding: 40px 32px; border-radius: 24px; } }
@media (min-width: 1024px) { .hero-shell { padding: 64px 56px; border-radius: 32px; } }

/* Trust marquee – ensure does not overflow horizontally */
.trust-bar { font-size: 12px; }
.trust-bar .track { animation-duration: 36s; }
@media (min-width: 768px) { .trust-bar .track { animation-duration: 28s; } }

/* PDP main image stable */
.pdp-main-image {
    border-radius: 20px;
}
@media (min-width: 1024px) { .pdp-main-image { border-radius: 24px; } }

.pdp-thumb {
    width: 60px; height: 60px;
    border-radius: 12px;
}
@media (min-width: 768px) { .pdp-thumb { width: 72px; height: 72px; border-radius: 14px; } }

/* Tabs scroll on mobile */
.tab-btn {
    padding: 12px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .tab-btn { padding: 14px 20px; font-size: 14px; }
}

/* Sticky cart-summary on mobile cart page */
.cart-summary-mobile {
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.95) 30%, #fff 70%);
    padding: 16px 0 8px;
    margin: 0 -16px -16px;
    padding-left: 16px;
    padding-right: 16px;
}

/* === Order form: modern stepper === */
.order-form-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.of-step {
    padding: 18px 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}
@media (min-width: 768px) {
    .of-step { padding: 24px 28px; }
}
.of-step:last-child { border-bottom: 0; }

.of-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.of-step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    display: grid; place-items: center;
    box-shadow: 0 6px 14px -4px var(--brand-glow);
    flex-shrink: 0;
}
.of-step-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.005em;
}
@media (min-width: 768px) {
    .of-step-num { width: 34px; height: 34px; font-size: 14px; }
    .of-step-title { font-size: 17px; }
}

.of-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) {
    .of-grid-2 { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* Pay pill (mobile-friendly) */
.pay-pill {
    padding: 14px;
    border-radius: 14px;
    gap: 10px;
}
.pay-pill input { width: 18px; height: 18px; flex-shrink: 0; }
.pay-pill .pp-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #fff7ed;
    color: var(--brand);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.pay-pill .pp-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}
.pay-pill .pp-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.pay-pill .pp-text span {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
@media (min-width: 640px) {
    .pay-pill { padding: 16px; }
    .pay-pill .pp-text strong { font-size: 15px; }
}

/* Submit CTA full width, large tap target */
.btn-cta {
    width: 100%;
    height: 56px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
@media (min-width: 768px) { .btn-cta { font-size: 16px; height: 60px; } }

/* === Landing-page section embedded inside PDP === */
.landing-embed {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    border-radius: 22px;
    border: 1px solid var(--line);
    overflow: hidden;
    padding: 22px 18px;
}
@media (min-width: 768px) {
    .landing-embed { padding: 36px 36px; border-radius: 28px; }
}
.landing-embed::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, #ff7043 50%, var(--brand) 100%);
}
.landing-embed img {
    border-radius: 14px;
    margin: 14px auto;
    max-width: 100%;
    height: auto;
}
.landing-embed iframe,
.landing-embed video {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    margin: 14px auto;
    display: block;
    border: 0;
}
.landing-embed h1,
.landing-embed h2,
.landing-embed h3 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 18px 0 10px;
}
.landing-embed h1 { font-size: var(--fs-2xl); }
.landing-embed h2 { font-size: var(--fs-xl); }
.landing-embed h3 { font-size: var(--fs-lg); }
.landing-embed p,
.landing-embed li {
    color: var(--ink-soft);
    font-size: var(--fs-base);
    line-height: 1.7;
    margin: 8px 0;
}
.landing-embed ul,
.landing-embed ol {
    padding-left: 22px;
    margin: 10px 0;
}
.landing-embed li { margin: 6px 0; }
.landing-embed table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
    margin: 14px 0;
}
.landing-embed table tr { border-bottom: 1px solid #f1f5f9; }
.landing-embed table td,
.landing-embed table th {
    padding: 10px 12px;
    text-align: left;
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    width: auto !important;
    height: auto !important;
}
.landing-embed * {
    max-width: 100% !important;
}

/* Header polish: smaller height on mobile so body has more room */
.app-header { -webkit-backdrop-filter: blur(0); }

/* Prevent text selection on tap targets like buttons */
button, .btn-brand, .btn-cta, .pay-pill, .qty button {
    -webkit-user-select: none;
    user-select: none;
}

/* Footer pads safely above sticky cta */
.app-footer { padding-bottom: var(--safe-bottom); }

/* Ensure container inner padding consistent */
@media (max-width: 640px) {
    .container, [class*="container"] {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================================================
   PREMIUM ORDER FORM POLISH (cart.php)
   ============================================================ */

/* Top accent gradient line on order form card */
.order-form-card {
    position: relative;
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.18);
}
.order-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, #ff8a65 50%, var(--brand) 100%);
    background-size: 200% 100%;
    animation: ofShimmer 4s linear infinite;
    z-index: 1;
}
@keyframes ofShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Section eyebrow chip used inside steps */
.s-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1.5px solid #ffe0b2;
    border-radius: 99px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Total box with gradient + animated number */
.total-box {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #fff7ed 100%);
    background-size: 200% 200%;
    animation: tbShift 8s ease-in-out infinite;
    border: 1.5px solid #ffe0b2;
    border-radius: 18px;
    padding: 18px 18px;
    position: relative;
    overflow: hidden;
}
@keyframes tbShift { 0%,100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
.total-box::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,61,0,.18) 0%, transparent 70%);
    pointer-events: none;
}
.total-box .tb-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.total-box .tb-amount {
    font-size: clamp(28px, 1.6rem + 1.4vw, 40px);
    font-weight: 900;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}
.total-box .tb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.total-box .tb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 99px;
    letter-spacing: 0.02em;
}
.tb-badge.is-orange { background: linear-gradient(135deg, var(--brand), #ff7043); }
.tb-badge.is-ink    { background: var(--ink); }
.tb-badge.is-green  { background: linear-gradient(135deg, #16a34a, #22c55e); }

/* Glowing CTA submit button */
.btn-glow {
    position: relative;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 24px -6px var(--brand-glow), 0 4px 10px -4px rgba(0,0,0,0.15);
    animation: btnGlow 2.6s ease-in-out infinite;
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 8px 24px -6px var(--brand-glow), 0 0 0 0 rgba(255, 61, 0, 0); }
    50%      { box-shadow: 0 14px 36px -6px var(--brand-glow), 0 0 0 6px rgba(255, 61, 0, 0.12); }
}
.btn-glow:hover  { transform: translateY(-1px); }
.btn-glow:active { transform: translateY(0) scale(0.99); }

/* Pay pill — refined */
.pay-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--line);
    cursor: pointer;
    transition: all .25s;
    position: relative;
}
.pay-pill input { accent-color: var(--brand); }
.pay-pill:hover { border-color: #fed7aa; }
.pay-pill.is-active {
    border-color: var(--brand);
    background: linear-gradient(135deg, #fff7ed, #fff);
    box-shadow: 0 6px 16px -8px var(--brand-glow);
}
.pay-pill.is-active .pp-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

/* Trust mini-strip beneath submit */
.trust-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    font-size: 11px;
    color: var(--muted);
}
.trust-mini > div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 700;
}
.trust-mini i { color: var(--brand); }

/* Pulse ring helper for cart-added modal badge */
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.pulse-ring { animation: pulseRing 1.6s ease-out infinite; }


/* ============================================================
   PAKET KARTLARI (.pk) — ürün detay landing formu
   aoyuncak paletine uyarlandı (--brand / --ink / --line)
   ============================================================ */
#paketAlani { padding-top: 4px; }

.pk {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 18px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    position: relative;
    cursor: pointer;
    margin-top: 18px;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    display: block;
    padding: 16px;
}
.pk::after {
    content: '';
    position: absolute;
    top: 8px; left: 0; bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--brand);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.pk.on {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(255,61,0,.05) 0%, #fff 70%);
    box-shadow: 0 6px 22px rgba(255,61,0,.12), 0 0 0 3px rgba(255,61,0,.1);
}
.pk.on::after { transform: scaleY(1); }
.pk:hover:not(.on) {
    border-color: var(--brand-light, #ff7043);
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -28px rgba(15,23,42,.28);
}

.pk-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "left info" "left price";
    align-items: center;
    column-gap: 13px;
    row-gap: 10px;
}
.pk-left { grid-area: left; align-self: center; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pk-text { grid-area: info; min-width: 0; }
.pk-price-area { grid-area: price; }

.pk-radio { width: 22px; height: 22px; accent-color: var(--brand); flex-shrink: 0; }

.pk-num {
    position: relative;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: #f5f3ef;
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
    transition: all .25s; line-height: 1; overflow: hidden;
    border: 2px solid var(--line);
}
.pk-num img, .pk-num video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-num:not(.media-ok) { display: none; }
.pk-num.media-ok video ~ img { display: none; }
.pk.on .pk-num { border-color: var(--brand); box-shadow: 0 4px 14px rgba(255,61,0,.22); }

.pk-text { }
.pk-name { font-weight: 700; font-size: 14px; color: var(--ink); margin: 0; line-height: 1.25; }
.pk-name-total { font-weight: 800; color: var(--brand); white-space: nowrap; }
.pk-name-qty {
    display: inline-block; font-weight: 900; color: #fff;
    background: var(--brand);
    padding: 1px 8px; border-radius: 7px; margin-right: 3px; letter-spacing: .01em;
    box-shadow: 0 1px 3px rgba(255,61,0,.25);
}
.pk.on .pk-name-qty { background: var(--brand-dark); }

.pk-sub { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin: 3px 0 0; line-height: 1.2; display: inline-flex; align-items: center; gap: 4px; }
.pk-sub.fee { color: #c2410c; }

.pk-price-area { display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 8px; white-space: nowrap; width: 100%; }
.pk-price { grid-column: 1; display: flex; align-items: baseline; gap: 3px; font-weight: 900; font-size: 25px; color: var(--ink); line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; transition: color .2s; }
.pk.on .pk-price { color: var(--brand); }
.pk-price .pk-price-suffix { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.pk-price-old { grid-column: 2; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; line-height: 1; font-variant-numeric: tabular-nums; }

.pk-total {
    grid-column: 3; justify-self: end;
    display: inline-flex; align-items: baseline; gap: 4px;
    font-size: 11.5px; font-weight: 600; color: var(--ink-soft); line-height: 1;
    background: #f1f5f9; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px;
    transition: background .2s, border-color .2s, color .2s;
}
.pk-total strong { font-weight: 900; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pk-total.down { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.pk-total.down strong { color: #16a34a; }
.pk-total-arrow { font-size: 11px; font-weight: 900; line-height: 1; color: #16a34a; margin-right: 1px; }
.pk.on .pk-total { background: rgba(255,61,0,.08); border-color: var(--brand-light, #ff7043); color: var(--brand); }
.pk.on .pk-total strong { color: var(--brand); }
.pk.on .pk-total.down { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.pk.on .pk-total.down strong { color: #16a34a; }

.pk-ribbon {
    position: absolute; top: -11px; left: 16px;
    color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em;
    padding: 5px 13px; border-radius: 99px;
    box-shadow: 0 3px 10px rgba(255,61,0,.35); z-index: 3;
    background: var(--brand);
}
.pk-disc {
    position: absolute; top: -10px; right: 14px;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff; font-size: 11px; font-weight: 800;
    padding: 4px 11px; border-radius: 99px;
    box-shadow: 0 3px 10px rgba(225,29,72,.35); z-index: 3;
    overflow: hidden; display: inline-grid; line-height: 1.1; min-height: 16px;
}
.pk-disc .pk-disc-item { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; justify-content: center; will-change: transform, opacity; backface-visibility: hidden; }
.pk-disc .pk-disc-item:nth-child(1) { animation: pkRotA 6s ease-in-out infinite; }
.pk-disc .pk-disc-item:nth-child(2) { animation: pkRotB 6s ease-in-out infinite; }
@keyframes pkRotA { 0%,42%{transform:translateY(0);opacity:1;} 50%,92%{transform:translateY(-130%);opacity:0;} 100%{transform:translateY(0);opacity:1;} }
@keyframes pkRotB { 0%,42%{transform:translateY(130%);opacity:0;} 50%,92%{transform:translateY(0);opacity:1;} 100%{transform:translateY(130%);opacity:0;} }
.pk-disc[data-single] .pk-disc-item { animation: none !important; transform: none !important; opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { .pk-disc .pk-disc-item { animation: none !important; } .pk-disc .pk-disc-item:nth-child(2){display:none;} }

@media (max-width: 480px) {
    .pk { padding: 14px 13px; }
    .pk-row { column-gap: 11px; row-gap: 8px; }
    .pk-radio { width: 20px; height: 20px; }
    .pk-num { width: 48px; height: 48px; font-size: 23px; border-radius: 12px; }
    .pk-name { font-size: 13.5px; }
    .pk-price { font-size: 22px; }
    .pk-price-area { column-gap: 6px; }
    .pk-total { font-size: 10.5px; padding: 4px 7px; gap: 3px; }
    .pk-total strong { font-size: 12.5px; }
    .pk-price-old { font-size: 11.5px; }
}
@media (max-width: 360px) {
    .pk-price-area { grid-template-columns: auto 1fr; row-gap: 7px; }
    .pk-price { grid-column: 1; grid-row: 1; }
    .pk-price-old { grid-column: 2; grid-row: 1; justify-self: start; }
    .pk-total { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}

/* Varyant slotları */
.exNumara { display: none; margin-top: 10px; }
.exVariantDiv { margin-bottom: 8px; }
.exVariantDiv h3 { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.exVariantDiv select.exVariant {
    width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
    padding: 12px 14px; font-size: 16px; color: var(--ink); outline: none;
}
.exVariantDiv select.exVariant:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,61,0,.12); }

/* ============================================================
   PROMOSYON ÜRÜNLERİ (.promo-*)
   ============================================================ */
.promo-wrap { margin-top: 22px; padding: 20px 0 0; border-top: 1.5px dashed var(--line); }
.promo-head-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.promo-head-row .promo-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #ff6b35, #f59e0b);
    color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 99px;
}
.promo-wrap-sub { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin: 0 0 12px; }
.promo-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 2px solid var(--line); border-radius: 16px;
    padding: 12px; margin-top: 10px; cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s; position: relative;
}
.promo-item.on { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(22,163,74,.1); }
.promo-item:hover:not(.on) { border-color: #86efac; }
.promo-check {
    width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--muted);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: all .2s; background: #fff;
}
.promo-item.on .promo-check { background: #16a34a; border-color: #16a34a; }
.promo-check svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.promo-item.on .promo-check svg { opacity: 1; }
.promo-item-img { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; border: 1.5px solid var(--line); }
.promo-item-info { flex: 1; min-width: 0; }
.promo-item-name { font-weight: 700; font-size: 13px; color: var(--ink); line-height: 1.3; margin: 0; }
.promo-item-tag { font-size: 11.5px; color: var(--ink-soft); font-weight: 500; margin: 2px 0 0; line-height: 1.25; }
.promo-item-price { text-align: right; flex-shrink: 0; white-space: nowrap; }
.promo-item-price .pi-plus { display: block; font-weight: 900; font-size: 17px; color: #16a34a; line-height: 1; }
.promo-item-price .pi-label { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 400px) {
    .promo-item { gap: 9px; padding: 11px; }
    .promo-item-img { width: 46px; height: 46px; }
    .promo-item-name { font-size: 12.5px; }
    .promo-item-price .pi-plus { font-size: 15px; }
}
