/* =========================================================
   Ece Parfümeri — Site teması
   Renk/font/boyut değişkenleri /theme.css'ten gelir (--ep-*).
   Mobile-first; masaüstü geliştirmeleri media query'lerde.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

/* hidden niteliği her zaman kazanır (lightbox/menü gibi display tanımlı katmanlarda şart) */
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: var(--ep-font-body, system-ui, sans-serif);
    font-size: var(--ep-font-size, 16px);
    line-height: 1.55;
    color: var(--ep-primary, #1f1b16);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    /* Footer her zaman tabanda: kısa sayfalarda altta beyaz boşluk kalmaz */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main#icerik { flex: 1; }

h1, h2, h3, h4 { font-family: var(--ep-font-heading, Georgia, serif); line-height: 1.25; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ep-accent); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: #777; }
.small { font-size: .85em; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--ep-primary); color: #fff;
    padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Bal küpü alanı görünmez */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 6px; margin: 12px 0; font-size: .95em; }
.flash-success { background: #e8f6ec; color: #1c6b34; border: 1px solid #bfe5cb; }
.flash-error { background: #fdecec; color: #9c2121; border: 1px solid #f3c6c6; }

/* ---------- Header ---------- */
.topbar { background: var(--ep-primary); color: #eee; font-size: .82em; }
.topbar-in { display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.topbar-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar-links a, .topbar-links .linklike { color: #eee; background: none; border: 0; padding: 0; }
.topbar-links a:hover, .topbar-links .linklike:hover { color: var(--ep-accent); }
.inline-form { display: inline; }

.header-main { border-bottom: 1px solid #eee; }
.header-main-in {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    gap: 12px; padding-top: 12px; padding-bottom: 12px;
}
.menu-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--ep-primary); display: block; }

.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.brand img { max-height: 52px; width: auto; }
.brand-text {
    font-family: var(--ep-font-heading); font-size: 1.5em; font-weight: 700;
    letter-spacing: .04em; color: var(--ep-primary);
}
.brand-tagline { font-size: .72em; color: var(--ep-accent); letter-spacing: .18em; text-transform: uppercase; }

.header-search { display: none; }
.header-actions { display: flex; gap: 14px; align-items: center; }
.header-action {
    position: relative; display: flex; flex-direction: column; align-items: center;
    font-size: .72em; color: #555; gap: 2px;
}
.header-action .ico { font-size: 1.6rem; }
.header-action .count {
    position: absolute; top: -6px; right: -2px; background: var(--ep-accent); color: #fff;
    min-width: 18px; height: 18px; border-radius: 9px; font-size: 11px; line-height: 18px;
    text-align: center; padding: 0 4px; font-style: normal;
}
.header-action span { display: none; }

/* ---------- Ana menü (mega) ---------- */
.mainnav { display: none; background: #fff; border-bottom: 1px solid #eee; }
.mainnav-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px; }
.mainnav-item > a {
    display: block; padding: 14px 18px; font-weight: 600; font-size: .92em;
    text-transform: uppercase; letter-spacing: .06em;
}
.mainnav-item > a:hover { color: var(--ep-accent); }
.mainnav-item.has-mega { position: static; }
.mega {
    display: none; position: absolute; left: 0; right: 0; background: #fff;
    border-top: 2px solid var(--ep-accent); box-shadow: 0 14px 30px rgba(0,0,0,.12); z-index: 90;
}
.mainnav-item.has-mega:hover .mega,
.mainnav-item.has-mega:focus-within .mega { display: block; }
.mega-in {
    max-width: 1280px; margin: 0 auto; padding: 24px 16px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
}
.mega-title { font-weight: 700; display: block; margin-bottom: 10px; font-size: .95em; }
.mega-title small { color: #999; font-weight: 400; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 4px 0; color: #666; font-size: .9em; }
.mega-col li a:hover { color: var(--ep-accent); }

/* ---------- Mobil menü ---------- */
.mobile-menu {
    position: fixed; inset: 0 auto 0 0; width: min(320px, 85vw); background: #fff; z-index: 120;
    overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.2); padding: 0 0 24px;
    transform: translateX(-100%); transition: transform .25s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; border-bottom: 1px solid #eee;
}
.mobile-menu-head button { background: none; border: 0; font-size: 26px; line-height: 1; }
.mobile-menu details { border-bottom: 1px solid #f2f2f2; }
.mobile-menu summary { padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; }
.mobile-menu details.sub summary { padding-left: 28px; font-weight: 500; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0 0 8px; }
.mobile-menu ul a { display: block; padding: 8px 16px 8px 44px; color: #666; }
.mobile-link { display: block; padding: 12px 16px; font-weight: 600; border-bottom: 1px solid #f2f2f2; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 110; }

/* ---------- Hero slider ----------
   SABİT FORMAT: her slayt aynı yükseklikte (ekrana göre 240–500px);
   görsel ne boyutta olursa olsun kadrajı doldurur (cover). */
.hero { position: relative; overflow: hidden; background: var(--ep-secondary); }
.hero-slide { display: none; position: relative; height: clamp(240px, 34vw, 500px); }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-caption {
    position: absolute; inset: 0; z-index: 2; padding: 24px;
    max-width: 1280px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; justify-content: center;
}
.hero-caption h2 {
    margin: 0; font-size: clamp(1.4rem, 4vw, 2.6rem); color: var(--ep-primary);
    background: rgba(255,255,255,.75); padding: 4px 12px;
}
.hero-caption p { margin: 0; background: rgba(255,255,255,.75); padding: 2px 12px; }
.hero-btn {
    margin-top: 8px; background: var(--ep-primary); color: #fff; padding: 12px 32px;
    letter-spacing: .12em; font-weight: 600; font-size: .85em;
}
.hero-btn:hover { background: var(--ep-accent); color: #fff; }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    background: rgba(255,255,255,.85); border: 0; width: 40px; height: 40px; border-radius: 50%;
    font-size: 20px; display: grid; place-items: center;
}
.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 5; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); padding: 0; }
.hero-dots button.active { background: var(--ep-accent); }

/* ---------- Bölümler & karusel ---------- */
.home-section { margin: 40px auto; }
.section-head { text-align: center; margin-bottom: 20px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.section-head h2::after {
    content: ""; display: block; width: 56px; height: 2px; background: var(--ep-accent); margin: 10px auto 0;
}
.section-desc { color: #777; max-width: 720px; margin: 8px auto 0; font-size: .95em; }
.section-more { display: inline-block; margin-top: 8px; color: var(--ep-accent); font-weight: 600; font-size: .9em; }

.carousel { position: relative; }
.carousel-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 70%; scroll-snap-align: start; }
.carousel-nav {
    position: absolute; top: 40%; z-index: 5; background: #fff; border: 1px solid #e5e5e5;
    width: 38px; height: 38px; border-radius: 50%; font-size: 18px; display: none; place-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.carousel-nav.prev { left: -8px; }
.carousel-nav.next { right: -8px; }

/* ---------- Ürün kartı ---------- */
.product-card {
    position: relative; border: 1px solid #eee; border-radius: 8px; background: #fff;
    display: flex; flex-direction: column; height: 100%; transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.09); transform: translateY(-2px); }
.pc-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--ep-accent); color: #fff;
    font-size: .68em; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 3px;
    text-transform: uppercase;
}
.pc-media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px 8px 0 0; background: #faf8f5; }
.pc-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .pc-media img { transform: scale(1.04); }
.pc-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-brand { font-size: .74em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #999; }
.pc-name { margin: 0; font-size: .92em; font-family: var(--ep-font-body); font-weight: 500; }
.pc-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pc-reviews { font-size: .74em; color: #aaa; }
.pc-price { margin-top: auto; display: flex; gap: 8px; align-items: baseline; }
.pc-price del { color: #bbb; font-size: .85em; }
.pc-price strong { font-size: 1.05em; color: var(--ep-primary); }
.pc-actions { display: flex; gap: 8px; margin-top: 8px; }
.pc-actions form:first-child { flex: 1; }
.btn-add {
    width: 100%; background: var(--ep-primary); color: #fff; border: 0; border-radius: 6px;
    padding: 9px 8px; font-size: .8em; font-weight: 600; letter-spacing: .03em;
}
.btn-add:hover:not(:disabled) { background: var(--ep-accent); }
.btn-add:disabled { background: #ccc; cursor: not-allowed; }
.btn-wish {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; width: 38px; height: 100%;
    display: grid; place-items: center; color: #999;
}
.btn-wish:hover { color: var(--ep-accent); border-color: var(--ep-accent); }

/* ---------- Marka ızgarası ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.brand-card {
    border: 1px solid #eee; border-radius: 8px; padding: 20px 12px; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 100px; transition: box-shadow .2s;
}
.brand-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.brand-card img { max-height: 44px; width: auto; object-fit: contain; }
.brand-card-name { font-family: var(--ep-font-heading); font-size: 1.05em; font-weight: 600; }
.brand-card small { color: #aaa; }
.letter-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 24px; }
.letter-nav a {
    border: 1px solid #e5e5e5; border-radius: 4px; min-width: 34px; text-align: center;
    padding: 5px 8px; font-weight: 600; font-size: .9em;
}
.letter-nav a:hover { border-color: var(--ep-accent); color: var(--ep-accent); }
.brand-letter { margin-bottom: 28px; }
.brand-letter h2 { border-bottom: 1px solid #eee; padding-bottom: 6px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 14px 0 6px; font-size: .82em; color: #999; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #ccc; }
.breadcrumb a:hover { color: var(--ep-accent); }

/* ---------- Listeleme ---------- */
.listing-head h1 { margin: 8px 0 4px; font-size: clamp(1.4rem, 3vw, 2rem); }
.listing-desc { color: #777; max-width: 900px; font-size: .93em; }
.listing-body { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 16px; }

.filters-toggle {
    width: 100%; background: var(--ep-secondary); border: 1px solid #e8e2d8; border-radius: 6px;
    padding: 10px; font-weight: 600;
}
.filters-in { display: none; padding-top: 12px; }
.filters.open .filters-in { display: block; }
.filter-group { margin-bottom: 20px; }
.filter-group h3 {
    font-size: .82em; text-transform: uppercase; letter-spacing: .1em; color: #888;
    border-bottom: 1px solid #eee; padding-bottom: 6px; font-family: var(--ep-font-body);
}
.filter-cats, .filter-brands { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.filter-cats li a {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 5px 0; font-size: .9em; color: #555;
}
.filter-cats small, .filter-brands small { color: #aaa; }
.filter-brands label {
    display: flex; gap: 8px; align-items: center; padding: 5px 2px;
    font-size: .9em; color: #555; cursor: pointer; margin: 0; font-weight: 400;
    border-radius: 5px; text-align: left;
}
.filter-brands label:hover { background: #faf8f5; }
.filter-brands small { margin-left: auto; }
.filter-price { display: flex; align-items: center; gap: 8px; }
.filter-price input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 5px; }
.filter-apply {
    width: 100%; background: var(--ep-primary); color: #fff; border: 0; border-radius: 6px;
    padding: 10px; font-weight: 600; margin-top: 4px;
}
.filter-apply:hover { background: var(--ep-accent); }
.filter-clear { display: block; text-align: center; margin-top: 8px; color: #999; font-size: .85em; }

.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    border: 1px solid #eee; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: .88em;
}
.toolbar-count { color: #888; }
.toolbar-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar-controls select { padding: 6px 8px; border: 1px solid #ddd; border-radius: 5px; }
.view-toggle button { background: #fff; border: 1px solid #ddd; border-radius: 5px; padding: 5px 10px; color: #999; }
.view-toggle button.active { color: var(--ep-accent); border-color: var(--ep-accent); }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-grid.as-list { grid-template-columns: 1fr; }
.product-grid.as-list .product-card { flex-direction: row; }
.product-grid.as-list .pc-media { flex: 0 0 180px; border-radius: 8px 0 0 8px; }
.empty-state { background: var(--ep-secondary); border-radius: 8px; padding: 32px; text-align: center; color: #777; }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination b, .pagination span {
    min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px;
    border: 1px solid #e5e5e5; padding: 0 8px; font-size: .9em;
}
.pagination b { background: var(--ep-primary); color: #fff; border-color: var(--ep-primary); }
.pagination a:hover { border-color: var(--ep-accent); color: var(--ep-accent); }
.pagination span { border: 0; }

/* ---------- Ürün detay ---------- */
.product-top { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 12px; }
.gallery-main { margin: 0; border: 1px solid #eee; border-radius: 8px; background: #faf8f5; position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
/* Fareyle büyüteç (iç zoom): imleç gezindikçe görselin büyütülmüş hali gösterilir */
.gallery-main.zooming { background-repeat: no-repeat; background-color: #faf8f5; }
.gallery-main.zooming img { opacity: 0; }
.gallery-hint { text-align: center; font-size: .75em; color: #bbb; padding: 6px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { border: 1px solid #eee; border-radius: 6px; background: #fff; padding: 2px; width: 68px; height: 68px; }
.gallery-thumbs button.active { border-color: var(--ep-accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-brand { font-size: .82em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ep-accent); }
.product-title { margin: 6px 0 10px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.product-meta { display: flex; gap: 16px; font-size: .82em; color: #999; margin-bottom: 10px; }
.product-badge {
    display: inline-block; background: var(--ep-accent); color: #fff; font-size: .74em; font-weight: 700;
    padding: 4px 10px; border-radius: 3px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px;
}
.product-price { display: flex; align-items: baseline; gap: 12px; margin: 8px 0; }
.product-price del { color: #bbb; }
.product-price strong { font-size: 1.7em; }
.stock { font-weight: 600; font-size: .9em; }
.stock.in { color: #1c8a3f; }
.stock.out { color: #c0392b; }
.product-short { color: #666; }

.product-buy { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 10px; }
.buy-form { display: flex; gap: 10px; }
.qty { display: flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.qty button { width: 36px; background: #f7f7f7; border: 0; font-size: 18px; }
.qty input { width: 48px; text-align: center; border: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-primary {
    display: inline-block; background: var(--ep-primary); color: #fff; border: 0; border-radius: 6px;
    padding: 12px 22px; font-weight: 600; letter-spacing: .04em; text-align: center;
}
.btn-primary:hover:not(:disabled) { background: var(--ep-accent); color: #fff; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.btn-primary.big { padding: 15px 28px; font-size: 1.05em; width: 100%; }
.btn-primary.block, .btn-ghost.block { display: block; width: 100%; }
.btn-dark {
    display: inline-block; width: 100%; background: #fff; color: var(--ep-primary); border: 2px solid var(--ep-primary);
    border-radius: 6px; padding: 10px 22px; font-weight: 700; text-align: center;
}
.btn-dark:hover:not(:disabled) { background: var(--ep-primary); color: #fff; }
.btn-ghost {
    display: inline-block; background: #fff; border: 1px solid #ddd; color: #555; border-radius: 6px;
    padding: 11px 22px; text-align: center; margin-top: 8px;
}
.buy-form .btn-primary { flex: 1; }

.product-secondary { display: flex; gap: 20px; margin: 8px 0 16px; }
.linklike { background: none; border: 0; color: #777; padding: 0; font-size: .9em; }
.linklike:hover { color: var(--ep-accent); }
.assurance { list-style: none; margin: 0; padding: 14px 16px; background: var(--ep-secondary); border-radius: 8px; font-size: .88em; display: grid; gap: 6px; }

.product-tabs { margin: 40px 0; }
.tab-nav { display: flex; gap: 4px; border-bottom: 2px solid #eee; overflow-x: auto; }
.tab-nav button {
    background: none; border: 0; padding: 12px 18px; font-weight: 600; color: #888;
    border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.tab-nav button.active { color: var(--ep-primary); border-bottom-color: var(--ep-accent); }
.tab-pane { display: none; padding: 20px 4px; }
.tab-pane.active { display: block; }
.rich-text { color: #555; max-width: 900px; }
.spec-table { border-collapse: collapse; width: 100%; max-width: 560px; }
.spec-table th, .spec-table td { border: 1px solid #eee; padding: 10px 14px; text-align: left; font-size: .92em; }
.spec-table th { background: #faf8f5; width: 40%; font-weight: 600; }

.review-summary { color: #555; }
.review-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.review-list li { border: 1px solid #eee; border-radius: 8px; padding: 14px 16px; }
.review-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .88em; }
.review-head time { color: #aaa; }
.stars { color: var(--ep-accent); letter-spacing: 2px; }
.review-title { font-weight: 600; margin: 6px 0 2px; }
.review-form { max-width: 560px; border-top: 1px solid #eee; padding-top: 20px; }
.review-form h3 { margin-top: 0; }

.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 150;
    display: grid; place-items: center; padding: 24px;
}
.lightbox img { width: min(92vw, 900px); height: auto; max-height: 88vh; object-fit: contain; }
.lightbox button {
    position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 36px;
}

/* ---------- Formlar ---------- */
label { display: block; margin-bottom: 12px; font-size: .92em; font-weight: 500; }
label input, label select, label textarea {
    display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 6px; background: #fff;
}
label input:focus, label textarea:focus, label select:focus { outline: 2px solid var(--ep-accent); border-color: var(--ep-accent); }
/* Onay kutuları/radyolar global %100 genişlik kuralından MUAF (filtre paneli düzeni) */
input[type="checkbox"], input[type="radio"] {
    width: auto !important; display: inline-block; margin: 0; flex: 0 0 auto;
}
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.field-error { color: #c0392b; font-size: .85em; margin: -6px 0 10px; }

/* ---------- Statik sayfalar ---------- */
.static-page { padding-bottom: 48px; }
.static-page h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.center-page { max-width: 720px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact-info ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.store-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.store-card { border: 1px solid #eee; border-radius: 8px; padding: 20px; }
.store-card h2 { margin-top: 0; font-size: 1.15em; }
.store-city { color: var(--ep-accent); font-weight: 600; text-transform: uppercase; font-size: .8em; letter-spacing: .08em; }
.store-map iframe { width: 100%; height: 220px; border: 0; border-radius: 6px; margin-top: 10px; }

/* ---------- Sipariş listesi / checkout ---------- */
.order-list-wrap, .checkout-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.order-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.order-table th { text-align: left; border-bottom: 2px solid #eee; padding: 10px 8px; font-size: .82em; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.order-table td { border-bottom: 1px solid #f2f2f2; padding: 12px 8px; vertical-align: middle; }
.order-table tfoot td { font-size: 1.05em; border-bottom: 0; }
.ot-media img { border: 1px solid #eee; border-radius: 6px; object-fit: contain; background: #faf8f5; }
.ot-name small { display: block; color: #999; text-transform: uppercase; font-size: .74em; letter-spacing: .06em; }
.qty-inline { display: flex; gap: 6px; align-items: center; }
.qty-inline input { width: 58px; padding: 6px; border: 1px solid #ddd; border-radius: 5px; text-align: center; }
.btn-mini { background: #fff; border: 1px solid #ddd; border-radius: 5px; padding: 5px 10px; font-size: .82em; }
.btn-mini:hover { border-color: var(--ep-accent); color: var(--ep-accent); }
.btn-remove { background: none; border: 0; color: #c0392b; font-size: 20px; }
.btn-remove-text { background: none; border: 0; color: #c0392b; font-size: .85em; padding: 0; }

.order-summary { background: var(--ep-secondary); border-radius: 8px; padding: 20px; }
.order-summary h2 { margin-top: 0; font-size: 1.1em; }
.order-total { font-size: 1.15em; }
.summary-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: .88em; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #e3dccf; padding-bottom: 6px; }

.checkout-section { border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-bottom: 18px; }
.checkout-section h2 { margin-top: 0; font-size: 1.05em; }
.saved-addresses { display: grid; gap: 10px; }
.saved-address { display: flex; gap: 10px; align-items: center; border: 1px solid #eee; border-radius: 6px; padding: 10px 12px; cursor: pointer; }
.saved-address input { width: auto; margin: 0; }

.thanks-box { text-align: center; padding: 48px 16px; }
.thanks-icon {
    width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #e8f6ec;
    color: #1c8a3f; font-size: 38px; display: grid; place-items: center;
}
.thanks-no { font-size: 1.1em; }

.track-form { max-width: 440px; margin: 20px 0; }
.track-result { margin-top: 24px; }
.track-status { font-size: 1.05em; }
.status-pill { display: inline-block; border-radius: 12px; padding: 3px 12px; font-size: .8em; font-weight: 600; }
.status-yeni, .status-pill.status-yeni { color: #0b6aa8; }
.status-pill.status-yeni { background: #e3f1fa; }
.status-onaylandi, .status-pill.status-onaylandi { color: #6c4bd3; }
.status-pill.status-onaylandi { background: #ede8fb; }
.status-hazirlaniyor, .status-pill.status-hazirlaniyor { color: #a8730b; }
.status-pill.status-hazirlaniyor { background: #faf1de; }
.status-tamamlandi, .status-pill.status-tamamlandi { color: #1c8a3f; }
.status-pill.status-tamamlandi { background: #e8f6ec; }
.status-iptal, .status-pill.status-iptal { color: #c0392b; }
.status-pill.status-iptal { background: #fdecec; }

/* ---------- Aktif filtre etiketleri (chips) ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; background: var(--ep-secondary);
    border: 1px solid #e8e2d8; border-radius: 16px; padding: 5px 12px; font-size: .82em;
}
.chip span { color: #b00; font-weight: 700; }
.chip:hover { border-color: var(--ep-accent); }
.chip-clear { background: #fff; color: #999; }
.filter-search {
    width: 100%; padding: 7px 10px; border: 1px solid #ddd; border-radius: 5px;
    margin-bottom: 8px; font-size: .88em;
}

/* ---------- Canlı arama önerileri ---------- */
.header-search { position: relative; }
.search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
    border: 1px solid #e5e5e5; border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.14);
    z-index: 95; overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.ss-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: .88em;
    border-bottom: 1px solid #f4f4f4;
}
.ss-row:hover { background: #faf8f5; }
.ss-row img { border-radius: 5px; object-fit: contain; background: #faf8f5; flex: 0 0 40px; }
.ss-name { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.ss-name small { color: #999; text-transform: uppercase; font-size: .74em; letter-spacing: .05em; }
.ss-row b { white-space: nowrap; }
.ss-link { color: var(--ep-accent); font-weight: 600; }
.ss-empty { padding: 14px; color: #999; font-size: .88em; }
.ss-all {
    display: block; text-align: center; padding: 10px; background: var(--ep-secondary);
    font-weight: 600; font-size: .85em;
}

/* ---------- Kampanyalar ---------- */
.campaign-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 18px 0 30px; }
.campaign-card {
    border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff;
    display: flex; flex-direction: column;
}
.campaign-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.campaign-media { display: block; aspect-ratio: 2/1; background: var(--ep-secondary); }
.campaign-media img { width: 100%; height: 100%; object-fit: cover; }
.campaign-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.campaign-body h2 { margin: 0; font-size: 1.15em; }
.campaign-body strong { font-family: var(--ep-font-heading); font-size: 1.15em; }
.campaign-body small { color: #777; line-height: 1.5; }
.campaign-code {
    font-style: normal; background: var(--ep-primary); color: #fff; border-radius: 4px;
    padding: 3px 10px; font-size: .8em; letter-spacing: .08em; font-weight: 600;
}
.campaign-cta { color: var(--ep-accent); font-weight: 600; font-size: .88em; margin-top: 2px; }

/* Görselsiz kampanya: boş kutu değil, tasarlanmış duyuru bandı */
.campaign-card.no-image {
    flex-direction: row; align-items: center; gap: 4px;
    background: linear-gradient(120deg, var(--ep-secondary), #fff 70%);
    border-color: #e8e2d8;
}
.campaign-icon {
    flex: 0 0 auto; width: 64px; height: 64px; margin: 16px 0 16px 18px; border-radius: 50%;
    background: var(--ep-accent); color: #fff; display: grid; place-items: center; font-size: 26px;
}

/* Tek kampanya: üç sütunda yalnız kalmasın, tam genişlik bant olsun */
.campaign-grid.single { grid-template-columns: 1fr; }
.campaign-grid.single .campaign-card.no-image { min-height: 96px; }

@media (min-width: 768px) {
    .campaign-grid { grid-template-columns: repeat(3, 1fr); }
    .campaign-grid.single { grid-template-columns: 1fr; }
}

/* ---------- Karşılaştırma ---------- */
.compare-wrap { overflow-x: auto; margin: 20px 0 40px; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .92em; }
.compare-table th, .compare-table td {
    border: 1px solid #eee; padding: 12px 14px; text-align: center; vertical-align: top;
    min-width: 160px;
}
.compare-table .compare-label, .compare-table tbody th {
    background: #faf8f5; text-align: left; font-weight: 600; min-width: 130px;
    font-family: var(--ep-font-body);
}
.compare-product { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.compare-product img { object-fit: contain; background: #faf8f5; border-radius: 8px; }
.compare-name { font-weight: 600; }
.compare-remove { position: absolute; top: -4px; right: -4px; }
.compare-remove button { background: none; border: 0; color: #c0392b; font-size: 20px; line-height: 1; }
.compare-table .btn-add { padding: 10px 12px; }

/* ---------- Üyelik / hesap ---------- */
.auth-card { max-width: 440px; margin: 24px auto 48px; border: 1px solid #eee; border-radius: 10px; padding: 28px; }
.auth-card h1 { margin-top: 0; font-size: 1.4rem; text-align: center; }
.auth-card hr { border: 0; border-top: 1px solid #eee; margin: 20px 0; }
.auth-links { text-align: right; font-size: .85em; margin-bottom: 12px; }
.auth-alt { text-align: center; }
.auth-alt h2 { font-size: 1.05em; }

.account-page { padding-bottom: 48px; }
.account-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.account-nav { border: 1px solid #eee; border-radius: 8px; padding: 8px 0; }
.account-nav ul { list-style: none; margin: 0; padding: 0; }
.account-nav li a { display: block; padding: 10px 18px; color: #555; }
.account-nav li.active a { color: var(--ep-accent); font-weight: 600; border-left: 3px solid var(--ep-accent); }
.account-nav form { padding: 10px 18px; border-top: 1px solid #f2f2f2; margin-top: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
    border: 1px solid #eee; border-radius: 8px; padding: 16px; text-align: center;
    display: flex; flex-direction: column; gap: 4px;
}
.stat-card strong { font-size: 1.5em; }
.stat-card span { color: #999; font-size: .82em; }
.account-section { border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-bottom: 18px; }
.account-section h2 { margin-top: 0; font-size: 1.05em; }
.address-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
.address-card { border: 1px solid #eee; border-radius: 8px; padding: 16px; }
.address-card h3 { margin: 0 0 8px; font-size: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ep-primary); color: #cfc9c0; margin-top: 56px; font-size: .9em; }
.footer-newsletter { background: var(--ep-accent); color: #fff; }
.footer-newsletter-in {
    display: flex; flex-direction: column; gap: 12px; padding: 22px 16px;
}
.footer-newsletter strong { font-size: 1.1em; font-family: var(--ep-font-heading); }
.footer-newsletter p { margin: 4px 0 0; opacity: .9; font-size: .9em; }
.newsletter-form { display: flex; gap: 0; max-width: 440px; width: 100%; }
.newsletter-form input {
    flex: 1; border: 0; border-radius: 6px 0 0 6px; padding: 12px 14px;
}
.newsletter-form button {
    background: var(--ep-primary); color: #fff; border: 0; border-radius: 0 6px 6px 0;
    padding: 0 20px; font-weight: 700; letter-spacing: .06em; font-size: .82em;
}
.footer-cols {
    display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px;
}
.footer-col h3 {
    color: #fff; font-size: .88em; text-transform: uppercase; letter-spacing: .12em;
    font-family: var(--ep-font-body); margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a:hover { color: var(--ep-accent); }
.footer-adv li, .footer-contact li { display: flex; gap: 8px; align-items: baseline; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; font-size: 1.3em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: .82em; color: #8d867c; }

/* ---------- Mikro etkileşim ve erişilebilirlik ----------
   Ölçülü hareket: yalnız renk/gölge/ufak kayma; hareket azaltma tercihine saygı. */
a, button, .btn-add, .btn-primary, .btn-dark, .btn-ghost, .btn-wish, .chip, .product-card, .brand-card, .campaign-card {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease,
                box-shadow .22s ease, transform .22s ease;
}
.btn-primary:hover:not(:disabled), .btn-add:hover:not(:disabled), .hero-btn:hover { transform: translateY(-1px); }
:focus-visible { outline: 2px solid var(--ep-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Yapışkan üst bölge: menü kaydırınca da elin altında */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 #eee; }

/* Kampanya şeridi (ürün sayfası) */
.campaign-strip {
    display: flex; align-items: center; gap: 10px; margin: 10px 0;
    background: color-mix(in srgb, var(--ep-accent) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--ep-accent) 35%, #fff);
    border-radius: 8px; padding: 10px 14px; font-size: .9em;
}
.campaign-strip .bi { color: var(--ep-accent); font-size: 1.2em; }
.campaign-strip:hover { border-color: var(--ep-accent); }

/* Kupon kutusu (sipariş özeti) */
.coupon-box { margin: 12px 0; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input {
    flex: 1; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px;
    text-transform: uppercase;
}
.coupon-applied {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #e8f6ec; border: 1px solid #bfe5cb; border-radius: 6px; padding: 9px 12px; font-size: .88em;
}
.summary-items .discount-line { color: #1c8a3f; }

/* Aldığım ürünler / doğrulama uyarısı */
.purchased-meta { margin: 6px 2px 0; }
.verify-notice .inline-form { display: inline; }

/* ---------- WhatsApp düğmesi (Site Ayarları → WhatsApp Numarası doluysa görünür) ---------- */
.whatsapp-fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center;
    font-size: 28px; box-shadow: 0 6px 18px rgba(37, 211, 102, .4);
}
.whatsapp-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, .5); }

/* ---------- Tablet ve üstü ---------- */
@media (min-width: 768px) {
    .header-search { display: flex; max-width: 520px; margin: 0 auto; width: 100%; }
    .header-search input {
        flex: 1; border: 2px solid var(--ep-primary); border-right: 0; border-radius: 6px 0 0 6px;
        padding: 10px 14px; font-size: .92em;
    }
    .header-search button {
        background: var(--ep-primary); color: #fff; border: 0; border-radius: 0 6px 6px 0; padding: 0 18px;
    }
    .header-action span { display: block; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-grid { grid-template-columns: repeat(4, 1fr); }
    .carousel-item { flex-basis: calc(33.333% - 11px); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1.4fr; }
    .store-grid { grid-template-columns: repeat(2, 1fr); }
    .product-top { grid-template-columns: minmax(320px, 480px) 1fr; }
    .product-buy { flex-direction: row; align-items: stretch; }
    .product-buy form:last-child { flex: 0 0 auto; }
    .order-list-wrap { grid-template-columns: 1fr 300px; }
    .checkout-grid { grid-template-columns: 1fr 320px; }
    .address-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-newsletter-in { flex-direction: row; align-items: center; justify-content: space-between; }
    .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Masaüstü ---------- */
@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    .mainnav { display: block; position: relative; }
    .header-main-in { grid-template-columns: 220px 1fr 260px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .brand-grid { grid-template-columns: repeat(5, 1fr); }
    .carousel-item { flex-basis: calc(25% - 12px); }
    .carousel-nav { display: grid; }
    .listing-body { grid-template-columns: 250px 1fr; }
    .filters-toggle { display: none; }
    .filters-in { display: block; padding-top: 0; }
    .account-grid { grid-template-columns: 240px 1fr; }
    .hero-caption { padding: 48px; }
}

@media (min-width: 1280px) {
    .carousel-item { flex-basis: calc(20% - 13px); }
}
