/*
 * Magaza on yuzu stilleri.
 * Renkler, yazi tipi ve kose yuvarlakligi panelden yonetilir; bu dosya
 * yalnizca :root altindaki degiskenleri kullanir (bkz. layouts/store.blade.php).
 */

.store-body {
    margin: 0;
    font-family: var(--store-font);
    font-size: var(--store-font-size);
    color: var(--store-text);
    background: var(--store-body-bg);
    line-height: 1.6;
}

.store-container { width: 100%; max-width: var(--store-container); margin: 0 auto; padding: 0 20px; }

/*
 * Basliklar govdeden AYRI bir font ailesi kullanir. Ella'da govde DM Sans,
 * baslik Rubik; ikisi de panelden degistirilebiliyor ve baslik fontu bos
 * birakilirsa govde fontuna duser (bkz. layouts/store.blade.php).
 */
.store-body h1, .store-body h2, .store-body h3,
.store-body h4, .store-body h5, .store-body h6 {
    font-family: var(--store-heading-font);
    font-weight: 700;
    color: var(--store-text);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--store-primary); }

/* ---------------------------------------------------------------- baslik */

.store-header.is-sticky { position: sticky; top: 0; z-index: 1030; }

/* 1. vurgu seridi -------------------------------------------------------- */
.store-bar { background: var(--store-header-dark, #ff6a01); color: #fff; }
.store-bar__inner {
    display: flex; align-items: center; gap: 24px;
    min-height: 86px; padding: 12px 0;
}

.store-burger {
    border: none; background: transparent; color: #fff;
    font-size: 24px; padding: 4px 6px; line-height: 1;
}

.store-logo { flex-shrink: 0; }
.store-logo img { max-height: 46px; width: auto; }
.store-logo span {
    font-family: var(--store-heading-font);
    font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.4px;
}

/*
 * Bootstrap'in d-xl-flex sinifi bu ogeyi flex yapiyor; yon verilmezse
 * ust satir ile numara yan yana yapisiyordu.
 */
.store-bar__phone { color: #fff; line-height: 1.3; white-space: nowrap; flex-direction: column; justify-content: center; }
.store-bar__phone small { display: block; font-size: 13px; opacity: .85; }
.store-bar__phone strong { display: block; font-size: 19px; font-weight: 700; }
.store-bar__phone:hover { color: #fff; opacity: .9; }

/* Arama: hap biciminde, beyaz zemin -- vurgu seridinde en belirgin oge */
.store-search {
    flex: 1; min-width: 0; max-width: 620px;
    display: flex; align-items: stretch;
    background: #fff; border-radius: 999px; overflow: hidden; height: 48px;
}
.store-search input {
    flex: 1; min-width: 0; border: none; background: transparent;
    padding: 0 22px; font-size: 15px; color: var(--store-text);
}
.store-search input:focus { outline: none; }
.store-search button {
    border: none; background: transparent; color: var(--store-text);
    width: 54px; display: grid; place-items: center; cursor: pointer; font-size: 21px;
}
.store-search button:hover { color: var(--store-primary); }

.store-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.store-action {
    display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 12px; color: #fff; font-size: 12px; line-height: 1.2;
    border-radius: var(--store-radius); transition: background .2s ease;
}
.store-action i { font-size: 23px; }
.store-action:hover { background: rgba(255,255,255,.16); color: #fff; }

.store-action__icon { position: relative; display: inline-flex; }
.store-action .badge-count {
    position: absolute; top: -5px; right: -9px;
    background: #fff; color: var(--store-header-dark, #ff6a01);
    font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
    line-height: 18px; border-radius: 9px; text-align: center; padding: 0 5px;
}

/* 2. menu seridi --------------------------------------------------------- */
.store-navbar { background: var(--store-header-bg, #fff); border-bottom: 1px solid rgba(0,0,0,.08); }
.store-navbar__inner { display: flex; align-items: center; gap: 28px; }

/* Kategori acilir paneli */
.store-catmenu { position: relative; flex-shrink: 0; }
.store-catmenu__button {
    display: inline-flex; align-items: center; gap: 10px;
    border: none; background: transparent; cursor: pointer;
    padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--store-text);
}
.store-catmenu__button > i:first-child { font-size: 21px; }
.store-catmenu__caret { font-size: 15px; opacity: .55; transition: transform .2s ease; }
.store-catmenu:hover .store-catmenu__caret { transform: rotate(180deg); }

.store-catmenu__panel {
    display: none; position: absolute; top: 100%; left: 0; z-index: 1040;
    min-width: 268px; background: #fff;
    border: 1px solid rgba(0,0,0,.08); border-radius: var(--store-radius);
    box-shadow: 0 16px 40px rgba(0,0,0,.12); padding: 8px 0;
}
.store-catmenu:hover .store-catmenu__panel { display: block; }

.store-catmenu__item { position: relative; }
.store-catmenu__link {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 18px; font-size: 15px; color: var(--store-text);
}
.store-catmenu__link > i:first-child { font-size: 19px; opacity: .65; }
.store-catmenu__link span { flex: 1; }
.store-catmenu__arrow { font-size: 15px; opacity: .45; }
.store-catmenu__item:hover > .store-catmenu__link { background: rgba(0,0,0,.04); color: var(--store-primary); }

/* Ikinci seviye: panelin sagina acilir */
.store-catmenu__sub {
    display: none; position: absolute; top: -8px; left: 100%;
    min-width: 230px; background: #fff;
    border: 1px solid rgba(0,0,0,.08); border-radius: var(--store-radius);
    box-shadow: 0 16px 40px rgba(0,0,0,.12); padding: 8px 0;
}
.store-catmenu__item:hover > .store-catmenu__sub { display: block; }
.store-catmenu__sub a { display: block; padding: 9px 18px; font-size: 14px; }
.store-catmenu__sub a:hover { background: rgba(0,0,0,.04); color: var(--store-primary); }
.store-catmenu__empty { padding: 14px 18px; font-size: 14px; color: #8b8b8b; }

/* Ana menu */
.store-mainnav { display: flex; align-items: center; gap: 26px; flex: 1; min-width: 0; overflow: hidden; }
.store-mainnav a {
    padding: 16px 0; font-size: 16px; font-weight: 500; white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.store-mainnav a:hover { color: var(--store-primary); border-bottom-color: var(--store-primary); }

.store-navbar__end { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.store-navbar__end a { font-size: 14px; color: #6b6b6b; white-space: nowrap; }
.store-navbar__end a:hover { color: var(--store-primary); }

/* ----------------------------------------------------------------- urunler */

.product-grid { display: grid; gap: 20px; }
/* minmax(0,1fr): 1fr kart icerigine gore buyuyup dar sutunda tasiyordu */
.product-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.product-grid[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.product-card {
    border: 1px solid rgba(0,0,0,.07); border-radius: var(--store-radius);
    background: var(--store-muted, #fff); overflow: hidden;
    display: flex; flex-direction: column; position: relative;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); border-color: rgba(0,0,0,.12); }

.product-card__media { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.product-card__media img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform .4s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__labels { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.product-card__label {
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
    color: #fff; background: var(--store-primary); line-height: 1.4;
}

.product-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card__brand { font-size: 12px; color: #9a9a9a; }
.product-card__name { font-size: 15px; font-weight: 400; line-height: 1.4; min-height: 42px; }
.product-card__name:hover { color: var(--store-primary); }
.product-card__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card__old { font-size: 14px; color: #9a9a9a; text-decoration: line-through; }
.product-card__new { font-size: 17px; font-weight: 700; color: var(--store-text); }
.product-card__out { font-size: 13px; color: #c0392b; }

/*
 * Hizli islem dugmeleri (favori, hizli bakis, karsilastir) kartin
 * sagina, YALNIZCA hover'da gelir. Dokunmatik cihazda hover olmadigi
 * icin orada kalici gosterilir -- aksi halde erisilemez olurlardi.
 */
.product-card__quick {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
}
.product-card:hover .product-card__quick { opacity: 1; transform: none; }
.product-card__quick button,
.product-card__quick a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.08); background: #fff; color: var(--store-text);
    display: grid; place-items: center; cursor: pointer; font-size: 17px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.product-card__quick button:hover,
.product-card__quick a:hover { background: var(--store-primary); color: #fff; border-color: var(--store-primary); }

@media (hover: none) {
    .product-card__quick { opacity: 1; transform: none; }
}

.btn-store {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--store-primary); color: #fff; border: 1px solid var(--store-primary);
    padding: 11px 24px; border-radius: var(--store-btn-radius, 40px);
    font-weight: 500; cursor: pointer; font-size: 15px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-store:hover { background: color-mix(in srgb, var(--store-primary) 85%, #000); border-color: transparent; color: #fff; }
.btn-store:disabled { opacity: .5; cursor: not-allowed; }

/*
 * Ella'nin kart butonu: normalde cerceveli, hover'da vurgu rengiyle
 * doluyor. Urun izgarasinda onlarca buton yan yana durdugu icin
 * dolu hali gorsel gurultu yaratiyordu.
 */
.btn-store--outline {
    background: transparent; color: var(--store-text); border-color: var(--store-text);
}
.btn-store--outline:hover {
    background: var(--store-primary); color: #fff; border-color: var(--store-primary);
}
.btn-store--block { width: 100%; }
.btn-store--sm { padding: 8px 18px; font-size: 14px; }
.btn-store--lg { padding: 14px 32px; font-size: 16px; }

/* ------------------------------------------------------------------ bolum */

.store-section { padding: 34px 0; }
.store-section__head {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.store-section__title {
    font-family: var(--store-heading-font);
    font-size: 24px; font-weight: 700; margin: 0;
    text-transform: var(--store-heading-transform, uppercase);
    letter-spacing: .2px;
}
/* Baslik altindaki vurgu cizgisi Ella'da yok; "Tumunu gor" baglantisi var */
.store-section__more {
    font-size: 15px; color: var(--store-text);
    text-decoration: underline; text-underline-offset: 4px;
}
.store-section__more:hover { color: var(--store-primary); }

.category-tile {
    display: block; text-align: center; padding: 20px 12px;
    border: 1px solid rgba(0,0,0,.08); border-radius: var(--store-radius); background: #fff;
}
.category-tile:hover { border-color: var(--store-primary); }
.category-tile img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 8px; }

/* --------------------------------------------------------------- altbilgi */

.store-footer { background: var(--store-footer-bg, #f5f5f5); color: var(--store-text); margin-top: 48px; }

/* 1. bulten */
.store-newsletter { text-align: center; padding: 54px 0 42px; }
.store-newsletter__title {
    font-family: var(--store-heading-font);
    font-size: 22px; font-weight: 700; margin: 0 0 8px;
    text-transform: var(--store-heading-transform, uppercase);
}
.store-newsletter__text { font-size: 15px; color: #6b6b6b; margin: 0 0 22px; }
.store-newsletter__form {
    display: flex; gap: 12px; justify-content: center;
    max-width: 620px; margin: 0 auto; flex-wrap: wrap;
}
.store-newsletter__form input {
    flex: 1; min-width: 240px; height: 50px;
    border: 1px solid rgba(0,0,0,.14); border-radius: 999px;
    padding: 0 24px; font: inherit; font-size: 15px; background: #fff; color: var(--store-text);
}
.store-newsletter__form input:focus { outline: none; border-color: var(--store-primary); }
.store-newsletter__form .btn-store { height: 50px; }
.store-newsletter__note { font-size: 12px; color: #8b8b8b; margin: 14px 0 0; }
.store-newsletter__note a { text-decoration: underline; }

/* 2. sutunlar */
.store-footer__cols {
    display: grid; gap: 32px; padding: 10px 20px 48px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr;
}
.store-footer__col h5 {
    font-family: var(--store-heading-font);
    font-size: 17px; font-weight: 700; margin: 0 0 16px; color: var(--store-text);
}
.store-footer__col ul { list-style: none; padding: 0; margin: 0; }
.store-footer__col li { margin-bottom: 11px; font-size: 15px; }
.store-footer__col a { color: #5b5b5b; }
.store-footer__col a:hover { color: var(--store-primary); }

.store-footer__logo { display: inline-block; margin-bottom: 20px; }
.store-footer__logo img { max-height: 42px; width: auto; }
.store-footer__logo span {
    font-family: var(--store-heading-font);
    font-size: 24px; font-weight: 700; color: var(--store-text);
}
.store-footer__contact { list-style: none; padding: 0; margin: 0; }
.store-footer__contact li {
    display: flex; gap: 11px; align-items: flex-start;
    margin-bottom: 13px; font-size: 15px; color: #5b5b5b;
}
.store-footer__contact i { font-size: 19px; color: var(--store-text); flex-shrink: 0; }

/* 3. telif */
.store-footer__bottom { border-top: 1px solid rgba(0,0,0,.09); padding: 18px 0; }
.store-footer__bottom-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 8px; font-size: 13px; color: #7a7a7a;
}

@media (max-width: 1199px) {
    .store-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .store-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-newsletter { padding: 36px 0 28px; }
}

/* ------------------------------------------------------------------ diger */

.store-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 2000; max-width: 320px; }

.store-breadcrumb { font-size: 12px; color: #888; padding: 14px 0; }
.store-breadcrumb a:hover { color: var(--store-primary); }

.store-empty { text-align: center; padding: 60px 20px; color: #888; }

@media (max-width: 991px) {
    .product-grid[data-cols] { grid-template-columns: repeat(3, 1fr); }
    .store-header__main { flex-wrap: wrap; gap: 12px; }
    .store-search { order: 3; flex-basis: 100%; }
}

@media (max-width: 575px) {
    .product-grid[data-cols] { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .store-nav ul { flex-wrap: nowrap; overflow-x: auto; }
    .store-section { padding: 24px 0; }
}

/* ------------------------------------------------------------ mobil menu */

.store-burger {
    border: none; background: transparent; color: var(--store-text);
    padding: 8px; border-radius: var(--store-radius); cursor: pointer;
    line-height: 0;
}
.store-burger:hover { background: rgba(0,0,0,.05); }

.store-offcanvas { max-width: 88vw; }
.store-offcanvas__list { list-style: none; margin: 0; padding: 0; }
.store-offcanvas__list > li > a {
    display: block; padding: 12px 4px; font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.store-offcanvas__list ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; }
.store-offcanvas__list ul a {
    display: block; padding: 9px 4px; font-size: 13px; color: #6b625a;
}
.store-offcanvas__list a:active { background: rgba(0,0,0,.04); }

/* ------------------------------------------------------------ yildiz puani */

.rating { display: inline-flex; align-items: center; gap: 1px; color: #f0a500; font-size: 13px; }
.rating__count { color: #9a938c; font-size: 11px; margin-left: 4px; }

/* ----------------------------------------------------------------
   Paket ürün içeriği — müşteri pakette ne olduğunu ürün sayfasında
   görmeli; aksi halde "paket" ile normal ürün ayırt edilemiyor.
   ---------------------------------------------------------------- */
.product-bundle {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid var(--line, #e6e6f0);
    border-radius: 12px;
    background: var(--surface-alt, #f7f7fb);
}
.product-bundle__title { margin: 0 0 10px; font-size: .95rem; font-weight: 700; }
.product-bundle__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.product-bundle__item { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; }
.product-bundle__qty { font-weight: 700; color: var(--primary, #6c4cf1); flex: none; }
.product-bundle__variant { color: var(--muted, #8a8aa3); font-size: .82rem; }
