/* Zhop temel mağaza teması (OpenCart 4 / Bootstrap 5). Renkler ve köşeler değişkenlerdedir. */
:root {
	--z-ink: #15171c;
	--z-muted: #6b6f78;
	--z-line: #e7e6e1;
	--z-soft: #f4f4f1;
	--z-bg: #ffffff;
	--z-accent: #15171c;
	--z-accent-text: #ffffff;
	--z-sale: #c2410c;
	--z-radius: 14px;
	--z-font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bs-body-font-family: var(--z-font);
	--bs-body-color: var(--z-ink);
	--bs-link-color: var(--z-ink);
	--bs-link-color-rgb: 21, 23, 28;
	--bs-link-hover-color: var(--z-ink);
	--bs-border-color: var(--z-line);
	--bs-border-radius: var(--z-radius);
}

body.z-store { font-family: var(--z-font); color: var(--z-ink); background: var(--z-bg); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.z-store h1, .z-store h2, .z-store h3, .z-store h4, .z-store h5 { font-family: var(--z-font); color: var(--z-ink); font-weight: 700; letter-spacing: -0.02em; }
.z-store a { text-decoration: none; }
.z-store a:hover { text-decoration: underline; text-underline-offset: 3px; }
.z-store :focus-visible { outline: 2px solid var(--z-ink); outline-offset: 2px; }
.z-store main { min-height: 50vh; }
.z-store #container { overflow-x: clip; }

/* Üst kısım */
.z-header { position: sticky; top: 0; z-index: 1020; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--z-line); }
.z-header-bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.z-logo { flex: none; margin: 0; }
.z-logo img { max-height: 44px; width: auto; }
.z-logo-text { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; color: var(--z-ink); }
.z-logo-text:hover { text-decoration: none; }
.z-search { flex: 1 1 auto; max-width: 460px; margin-left: auto; }
.z-search-form { position: relative; margin: 0; }
.z-search-form > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--z-muted); font-size: 14px; pointer-events: none; }
.z-search-form .form-control { height: 44px; border-radius: 999px; border: 1px solid transparent; background: var(--z-soft); padding: 0 18px 0 42px; font-size: 14px; box-shadow: none; }
.z-search-form .form-control:focus { background: #fff; border-color: var(--z-ink); box-shadow: none; }
.z-actions { flex: none; display: flex; align-items: center; gap: 4px; }
.z-search + .z-actions { margin-left: 0; }
.z-header-bar > .z-actions:first-of-type { margin-left: auto; }
.z-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--z-ink); font-size: 18px; position: relative; }
.z-icon-btn:hover { background: var(--z-soft); text-decoration: none; }
.z-cart { margin: 0; }
.z-cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--z-accent); color: var(--z-accent-text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.z-cart-btn:hover { opacity: .9; }
.z-cart-drop { min-width: 340px; border-radius: var(--z-radius); border: 1px solid var(--z-line); box-shadow: 0 20px 50px rgba(21, 23, 28, .14); }
.z-cart-drop .table { font-size: 14px; }
.z-cart-drop .img-thumbnail { border-radius: 10px; }
.z-remove { border: 0; background: var(--z-soft); color: var(--z-muted); width: 28px; height: 28px; border-radius: 999px; }
.z-cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.z-actions .dropdown-menu { border-radius: 12px; border-color: var(--z-line); box-shadow: 0 20px 50px rgba(21, 23, 28, .12); padding: 6px; }
.z-actions .dropdown-item { border-radius: 8px; padding: 8px 12px; }

/* Menü */
.z-nav { border-top: 1px solid var(--z-line); }
.z-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.z-menu-link { display: block; padding: 13px 14px; color: var(--z-ink); font-weight: 500; font-size: 14px; }
.z-menu-link:hover, .z-menu-item.show > .z-menu-link { text-decoration: none; color: var(--z-ink); box-shadow: inset 0 -2px 0 var(--z-ink); }
.z-menu-link.dropdown-toggle::after { border: 0; content: "\f107"; font: var(--fa-font-solid); font-size: 11px; vertical-align: 1px; margin-left: 6px; }
.z-menu-drop { border-radius: 0 0 var(--z-radius) var(--z-radius); border-color: var(--z-line); box-shadow: 0 20px 50px rgba(21, 23, 28, .12); padding: 8px; min-width: 220px; margin-top: 0 !important; }
.z-menu-drop .dropdown-item { border-radius: 8px; padding: 8px 12px; }
.z-menu-all { display: block; padding: 10px 12px 4px; margin-top: 6px; border-top: 1px solid var(--z-line); font-weight: 600; font-size: 14px; }

@media (max-width: 991.98px) {
	.z-header-bar { gap: 8px; min-height: 64px; }
	.z-logo { margin-right: auto; }
	.z-cart-text { display: none; }
	.z-cart-btn { width: 42px; padding: 0; justify-content: center; }
	.z-nav .container { padding-top: 12px; padding-bottom: 12px; }
	.z-menu-list { flex-direction: column; }
	.z-menu-link { padding: 12px 4px; border-bottom: 1px solid var(--z-line); }
	.z-menu-link:hover { box-shadow: none; }
	.z-menu-drop { position: static !important; transform: none !important; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
	.z-search { max-width: none; margin: 0 0 8px; }
}

/* Genel öğeler */
.z-store .breadcrumb { margin: 24px 0 20px; font-size: 13px; --bs-breadcrumb-divider-color: var(--z-muted); }
.z-store .breadcrumb a { color: var(--z-muted); }
.z-store .btn { border-radius: 999px; font-weight: 600; padding: 10px 20px; }
.z-store .btn-lg { padding: 14px 26px; font-size: 16px; }
.z-store .btn-primary, .z-store .btn-primary:hover, .z-store .btn-primary:focus, .z-store .btn-primary:active { background: var(--z-accent); border-color: var(--z-accent); color: var(--z-accent-text); }
.z-store .btn-primary:hover { opacity: .9; }
.z-store .btn-light { background: #fff; border-color: var(--z-line); color: var(--z-ink); }
.z-store .btn-light:hover { background: var(--z-soft); }
.z-store .form-control, .z-store .form-select { border-radius: 12px; border-color: #d9d8d2; min-height: 44px; }
.z-store .form-control:focus, .z-store .form-select:focus { border-color: var(--z-ink); box-shadow: 0 0 0 3px rgba(21, 23, 28, .08); }
.z-store .card, .z-store .list-group-item:first-child, .z-store .list-group-item:last-child { border-radius: var(--z-radius); }
.z-store .nav-tabs { border-bottom: 1px solid var(--z-line); gap: 24px; }
.z-store .nav-tabs .nav-link { border: 0; padding: 12px 0; color: var(--z-muted); font-weight: 600; background: none; }
.z-store .nav-tabs .nav-link.active { color: var(--z-ink); box-shadow: inset 0 -2px 0 var(--z-ink); }
.z-store .pagination .page-link { border-radius: 10px; margin: 0 2px; color: var(--z-ink); }
.z-store .pagination .active > .page-link { background: var(--z-ink); border-color: var(--z-ink); color: #fff; }
.z-store .alert { border-radius: 12px; }

/* Ana sayfa */
#common-home { padding-top: 24px; }
#common-home h3 { font-size: 26px; margin: 48px 0 20px; }
#common-home .carousel { border-radius: calc(var(--z-radius) + 6px); overflow: hidden; margin-bottom: 8px; background: var(--z-soft); }
#common-home .carousel img { width: 100%; height: auto; }

/* Ürün kartı */
.z-card { height: 100%; }
.z-card form { height: 100%; display: flex; flex-direction: column; }
.z-card-media { position: relative; aspect-ratio: 1; background: var(--z-soft); border-radius: var(--z-radius); overflow: hidden; display: grid; place-items: center; padding: 18px; }
.z-card-media img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.z-card:hover .z-card-media img { transform: scale(1.04); }
.z-badge { position: absolute; top: 12px; left: 12px; background: var(--z-sale); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.z-card-quick { position: absolute; top: 12px; right: 12px; display: grid; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.z-card:hover .z-card-quick, .z-card-quick:focus-within { opacity: 1; transform: none; }
.z-card-quick button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: #fff; color: var(--z-ink); box-shadow: 0 4px 14px rgba(21, 23, 28, .12); }
.z-card-quick button:hover { background: var(--z-ink); color: #fff; }
.z-card-body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.z-card-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; line-height: 1.4; letter-spacing: -0.01em; }
.z-card-title a { color: var(--z-ink); }
.z-card-rating { color: #e0a100; font-size: 12px; margin-bottom: 4px; }
.z-card-price { margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.z-card-price .price-old { color: var(--z-muted); font-weight: 500; text-decoration: line-through; margin-left: 6px; font-size: 13px; }
.z-card-price .price-new { color: var(--z-ink); }
.z-card .price-old ~ * , .z-card .price-new:has(+ .price-old) { color: var(--z-sale); }
.z-card-cart { margin-top: auto; height: 42px; border: 1px solid var(--z-ink); border-radius: 999px; background: #fff; color: var(--z-ink); font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.z-card-cart:hover { background: var(--z-accent); border-color: var(--z-accent); color: var(--z-accent-text); }
@media (hover: none) { .z-card-quick { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .z-card-media img, .z-card-quick, .z-card-cart { transition: none; } }

/* Ürün sayfası */
#product-info { padding-bottom: 24px; }
#product-info h1 { font-size: 32px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
#product-info .image .img-thumbnail { border: 0; border-radius: var(--z-radius); background: var(--z-soft); padding: 24px; mix-blend-mode: normal; }
#product-info .image .img-thumbnail img, #product-info .image img { mix-blend-mode: multiply; }
#product-info .image a + div .img-thumbnail, #product-info .image-additional .img-thumbnail { padding: 8px; }
#product-info .price-new { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
#product-info .price-old { color: var(--z-muted); text-decoration: line-through; }
#product-info #button-cart { width: auto; flex: 1 1 auto; }
#product-info .btn-group .btn { border-radius: 999px !important; margin-right: 6px; }
#product-info ul.list-unstyled { color: var(--z-muted); font-size: 14px; }
#product-info ul.list-unstyled a { color: var(--z-ink); font-weight: 600; }
#product-info .tab-content { padding: 20px 0; line-height: 1.75; max-width: 75ch; }

/* Alt kısım */
.z-footer { margin-top: 72px; background: var(--z-soft); border-top: 1px solid var(--z-line); padding: 56px 0 28px; font-size: 14px; }
.z-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.z-footer h5 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.z-footer li { margin-bottom: 8px; }
.z-footer a { color: var(--z-muted); }
.z-footer a:hover { color: var(--z-ink); }
.z-footer-bottom { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--z-line); color: var(--z-muted); font-size: 13px; }

/* OpenCart ve tasarımcı stillerinden gelen çerçeveler */
.z-store .product-thumb { border: 0; }
#common-home .carousel, #common-home .carousel-inner, #common-home .carousel img { border: 0 !important; box-shadow: none !important; padding: 0 !important; }

/* Yol (breadcrumb): OpenCart'ın ok desenli şeridi yerine sade metin */
.z-store .breadcrumb { border: 0; background: none; padding: 0; margin: 24px 0 20px; font-size: 13px; }
.z-store .breadcrumb > li.breadcrumb-item { padding: 0; text-shadow: none; }
.z-store .breadcrumb > li.breadcrumb-item:after { display: none; }
.z-store .breadcrumb > li.breadcrumb-item + li:before { content: "/"; color: var(--z-muted); padding: 0 10px; }
.z-store .breadcrumb a { color: var(--z-muted); }

/* Ürün sayfası düzeni */
#product-info #content > .row.mb-3 { --bs-gutter-x: 48px; }
#product-info .image .img-thumbnail { display: block; }
#product-info .image .img-thumbnail img { width: 100%; height: auto; }
#product-info .image > div, #product-info .image-additional { display: flex; flex-wrap: wrap; gap: 10px; }
#product-info .image > div a { flex: 0 0 auto; width: 88px; }
#product-info #form-product .input-group { max-width: none; flex-wrap: nowrap; align-items: stretch; }
#product-info #form-product .input-group .input-group-text { border-radius: 999px 0 0 999px; }
#product-info #form-product .input-group #input-quantity { flex: 0 0 90px; width: 90px; }
#product-info #form-product .input-group .form-control { text-align: center; }
#product-info #button-cart { border-radius: 999px !important; height: 54px; margin-left: 10px; }

/* Hover ile açılan mega menü ve sepet (masaüstü) */
.z-header-bar { position: relative; }
.z-menu-item { position: static; }
.z-menu-drop { display: none; }
.z-menu-drop-inner { max-width: 1296px; margin: 0 auto; padding: 20px 12px 24px; }
.z-menu-drop-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--z-ink); margin-bottom: 14px; }
.z-menu-drop-title i { font-size: 12px; transition: transform .15s; }
.z-menu-drop-title:hover i { transform: translateX(3px); }
.z-menu-cols { columns: 4 200px; column-gap: 24px; margin: 0; }
.z-menu-cols li { break-inside: avoid; }
.z-menu-cols .dropdown-item { padding: 7px 10px; border-radius: 8px; color: var(--z-muted); font-size: 14px; }
.z-menu-cols .dropdown-item:hover { background: var(--z-soft); color: var(--z-ink); }

@media (min-width: 992px) and (hover: hover) {
	.z-menu-item.dropdown.z-open > .z-menu-drop, .z-menu-item.dropdown:focus-within > .z-menu-drop { display: block; }
	.z-menu-drop { position: absolute; left: 0; right: 0; top: 100%; width: auto; margin: 0 !important; padding: 0; border: 0; border-top: 1px solid var(--z-line); border-radius: 0 0 var(--z-radius) var(--z-radius); background: #fff; box-shadow: 0 24px 40px rgba(21, 23, 28, .10); animation: z-drop .14s ease-out; }
	.z-menu-link.dropdown-toggle { pointer-events: auto; }
	#cart .dropdown.z-open > .z-cart-drop { display: block; }
	.z-cart .dropdown { position: relative; }
	.z-cart-drop { right: 0; left: auto; top: 100%; margin-top: 0 !important; }
}
@keyframes z-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .z-menu-drop { animation: none; } }
@media (max-width: 991.98px) {
	.z-menu-drop { position: static; display: none; box-shadow: none; border: 0; background: transparent; }
	.z-menu-drop.show { display: block; }
	.z-menu-drop-inner { padding: 4px 0 8px 12px; }
	.z-menu-cols { columns: 1; }
}

/* Açılan sepet */
.z-cart-drop { width: 380px; max-width: calc(100vw - 24px); padding: 0; border-radius: 18px; border: 1px solid var(--z-line); box-shadow: 0 24px 50px rgba(21, 23, 28, .16); overflow: hidden; }
.z-cart-list { margin: 0; padding: 6px 18px; max-height: 340px; overflow: auto; }
.z-cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--z-line); }
.z-cart-item:last-child { border-bottom: 0; }
.z-cart-img { display: block; width: 64px; height: 64px; background: var(--z-soft); border-radius: 12px; overflow: hidden; }
.z-cart-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.z-cart-info { min-width: 0; display: grid; gap: 2px; }
.z-cart-name { font-weight: 600; font-size: 14px; color: var(--z-ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.z-cart-info small { color: var(--z-muted); font-size: 12px; }
.z-cart-qty { color: var(--z-muted); font-size: 13px; }
.z-cart-totals { padding: 12px 18px; background: var(--z-soft); display: grid; gap: 6px; font-size: 14px; }
.z-cart-totals div { display: flex; justify-content: space-between; color: var(--z-muted); }
.z-cart-totals div:last-child { color: var(--z-ink); font-size: 16px; padding-top: 6px; border-top: 1px solid var(--z-line); }
.z-cart-drop .z-cart-actions { padding: 14px 18px 18px; margin: 0; }
.z-cart-empty { padding: 36px 24px; text-align: center; color: var(--z-muted); }
.z-cart-empty i { font-size: 28px; margin-bottom: 8px; opacity: .5; }
.z-cart-empty p { margin: 0; }
.z-remove { display: grid; place-items: center; }

/* Kaydırınca tek şerit: arama gizlenir, menü üst şeride taşınır */
.z-header { transition: box-shadow .2s; }
.z-header.is-compact { box-shadow: 0 6px 24px rgba(21, 23, 28, .06); }
.z-header.is-compact .z-header-bar { min-height: 56px; }
.z-header.is-compact .z-search { display: none !important; }
.z-header.is-compact .z-logo img { max-height: 32px; }
.z-header.is-compact .z-logo-text { font-size: 20px; }
.z-header-bar > .z-menu { flex: 1 1 auto; margin: 0 8px; min-width: 0; }
.z-header-bar > .z-menu .z-menu-list { flex-wrap: nowrap; overflow: visible; }
.z-header-bar > .z-menu .z-menu-link { padding: 18px 12px; white-space: nowrap; }
.z-header.is-compact .z-nav { display: none !important; }
.z-header.is-compact .z-actions { margin-left: auto; }
.z-header.is-compact .z-header-bar > .z-menu + .z-actions { margin-left: 0; }
@media (prefers-reduced-motion: reduce) { .z-header { transition: none; } }
