/* Shared base of browse.css: the rules every theme has in common. ThemeAssetTagHelper links this file right before the
   theme's own browse.css, so a theme rule wins on equal specificity. A fix for all themes goes here; a theme-only change
   goes into the theme's file (Themes/README.md, "Ortak CSS tabanı"). */

/* Visible focus for keyboard users */
.product-card a:focus-visible, .chip:focus-visible, .pager a:focus-visible, .hero-tile:focus-visible, .cat-row a:focus-visible, .thumbs button:focus-visible, .breadcrumb a:focus-visible, .btn:focus-visible { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 2px; }

/* Home */
.hero-main.full { grid-column: span 12; }
.hero-main .btn-light:hover { background: var(--surface); color: var(--action-dark, var(--brand-dark)); }
.hero-tile .text { display: flex; flex-direction: column; gap: 4px; }
.hero-tile .tile-eyebrow { font-size: 12px; }
.hero-tile .tile-sub { color: var(--ink-2); }
a.hero-tile:hover .tile-title { color: var(--action, var(--brand)); }
.cat-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.strip > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.strip > * { position: relative; }
.strip-text { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.strip-text p { opacity: .9; }

.product-card form { margin: 0; flex-shrink: 0; }

/* Listing */
.listing-title { gap: 8px; max-width: 720px; }
.sort-field { min-width: 200px; }
.result-count { margin-bottom: 16px; }
.filters { gap: 0; }
.filters > :not(.filter-group):not([type=hidden]) { margin-top: 16px; }
.pager .gap { border: 0; min-width: 24px; }
.empty-search, .error-search { padding-right: 4px; }
.empty-search input, .error-search input { width: 200px; }
.empty-search .btn, .error-search .btn { min-height: 36px; padding: 0 14px; }

/* Product page */
.pdp-head { gap: 10px; }
.pdp-badges { gap: 8px; }
.pdp-price { display: flex; flex-direction: column; gap: 2px; }
.pdp-price .price-old { font-size: 18px; }
.buy-form { gap: 20px; }
.opt-group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.opt-group legend { padding: 0; margin-bottom: 10px; }
.qty-unit { font-weight: var(--fw-bold, 700); color: var(--ink-2); }
.whatsapp-ask { align-self: flex-start; }
.pdp-details { border-top: 1px solid var(--line); padding-top: 24px; }
.pdp-details dd.rich > :first-child { margin-top: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: var(--fw-semibold, 600); color: var(--ink); width: 45%; padding-right: 12px; }
.bundle-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* CMS pages */
.cms-page { max-width: 820px; padding-bottom: 32px; }
.cms-page .rich h2 { font-size: 24px; margin: 28px 0 10px; }
.cms-page .rich h3 { margin: 20px 0 8px; }
.cms-page .rich ul, .cms-page .rich ol { padding-left: 22px; }
.cms-page .rich a { color: var(--action, var(--brand)); text-decoration: underline; }
.cms-updated { margin-top: 32px; }

/* Errors */
.error-page { min-height: 50vh; justify-content: center; }
.error-page .row { justify-content: center; }

/* Utilities */
[hidden] { display: none !important; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.ok-text { color: var(--ok); font-weight: var(--fw-semibold, 600); }
.err-text { color: var(--err); font-weight: var(--fw-semibold, 600); }

/* Collections */
.listing-hero img { width: 100%; height: 100%; object-fit: cover; }
.listing-title .rich { max-width: 720px; }
.collection-grid { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.collection-tile { display: flex; flex-direction: column; gap: 12px; }
.collection-tile .ph { aspect-ratio: 4 / 3; }
/* Phones: two columns with squarer tiles (one column turned every collection into a screen-high letter box). */
@media (max-width: 560px) { .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .collection-tile .ph { aspect-ratio: 1; } }
.collection-tile .ph img { transition: transform .3s ease; }
.collection-tile:hover .ph img { transform: scale(1.03); }
.collection-tile:focus-visible { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 4px; border-radius: var(--radius); }
.collection-text { display: flex; flex-direction: column; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .collection-tile .ph img { transition: none; } }

/* Product page: video, rating, tags, qty hint */
.main-img { position: relative; }
.pdp-video { width: 100%; height: 100%; background: #000; }
.pdp-video iframe, .pdp-video video { width: 100%; height: 100%; border: 0; display: block; }
.thumbs .video-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); font: var(--fw-semibold, 600) 13px var(--font-body); }
.rating-link { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-semibold, 600); align-self: flex-start; }
.rating-link:hover .muted { color: var(--action, var(--brand)); }
.stars { position: relative; display: inline-block; line-height: 1; color: var(--line); font-size: 18px; letter-spacing: 2px; white-space: nowrap; }
.stars::before { content: "★★★★★"; }
.stars > span::before { content: "★★★★★"; }
.stars-lg { font-size: 24px; }
.qty-hint { margin-top: -8px; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag:focus-visible, .rating-link:focus-visible { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 2px; }

/* Stock alert */
.stock-alert-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stock-alert-row .input { flex: 1; min-width: 200px; width: auto; }
.stock-alert [data-stock-alert-status]:empty { display: none; }

/* Installments */
.pdp-installments > summary { cursor: pointer; font-weight: var(--fw-bold, 700); min-height: 52px; display: flex; align-items: center; list-style: none; }
.pdp-installments > summary::-webkit-details-marker { display: none; }
.pdp-installments > summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--muted); }
.pdp-installments[open] > summary::after { content: "−"; }
.pdp-installments [data-installments-body] { padding-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.installment-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.installment-table th { text-align: left; color: var(--muted); font-weight: var(--fw-semibold, 600); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.installment-table tbody th { color: var(--ink); }
.installment-table td { padding: 10px 8px; border-bottom: 1px solid var(--surface); vertical-align: top; white-space: nowrap; }
.installment-table td .small { display: block; }
.inst-monthly { font-weight: var(--fw-semibold, 600); }

/* Reviews & questions */
.pdp-block { border-top: 1px solid var(--line); margin-top: 16px; }
.pdp-block .section-head { margin-bottom: 16px; }
.reviews, .questions { display: flex; flex-direction: column; gap: 24px; max-width: 820px; }
.review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.review-list, .qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.review, .qa { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:first-child, .qa:first-child { padding-top: 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.review-stars { color: #B7862B; letter-spacing: 1px; }
.review-body, .qa-answer { color: var(--ink-2); white-space: pre-line; }
.verified { color: var(--ok); font-weight: var(--fw-semibold, 600); }
.review-reply { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.review-reply .label-caps { font-size: 12px; }
.review-form, .qa-form { gap: 14px; }
/* Review photos: strip above the reviews, thumbnails in a review, previews in the form */
.review-photo-strip { display: flex; flex-direction: column; gap: 8px; }
.review-photo-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.review-photo { flex: 0 0 auto; width: 96px; height: 96px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; cursor: zoom-in; position: relative; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-photo:focus-visible { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 2px; }
.review-photo-row-sm .review-photo { width: 72px; height: 72px; }
.review-photo-more { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: transparent; font-weight: var(--fw-semibold, 600); text-decoration: none; cursor: pointer; }
.review-filter .check { display: inline-flex; gap: 8px; align-items: center; }
.price-alert-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.price-alert-form .field { flex: 1 1 140px; margin: 0; }
.price-alert-form .field-email { flex: 2 1 200px; }
.price-alert-head { display: flex; gap: 10px; align-items: center; }
.price-alert-head h2 { margin: 0; font-size: 17px; }
.price-alert [data-price-alert-status]:empty { display: none; }
.rate { border: 0; padding: 0; margin: 0; }
.field-legend { font-size: 14px; font-weight: var(--fw-semibold, 600); padding: 0; margin-bottom: 6px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; position: relative; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars input:checked ~ label, .rate-stars label:hover, .rate-stars label:hover ~ label { color: #B7862B; }
.rate-stars input:focus-visible + label { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 1px; }

/* Phones: sort control sits on the title row instead of taking its own block. */
@media (max-width: 720px) {
  .page-head { flex-wrap: nowrap; align-items: center; margin-bottom: 20px; }
  .page-head > div:first-child { min-width: 0; }
  .sort-field { min-width: 0; flex: 0 0 auto; }
  .sort-field .select { min-height: 40px; max-width: 150px; }
}

/* Sold-out variant: hide the note, quantity and line total (the stock alert box is the next step). */
.buy-form:has([data-buy-button]:disabled) > label.field,
.buy-form:has([data-buy-button]:disabled) .line-note,
.buy-form:has([data-buy-button]:disabled) .buy-row .qty,
.buy-form:has([data-buy-button]:disabled) .buy-row .qty-unit,
.buy-form:has([data-buy-button]:disabled) p:has([data-total]) { display: none; }
.buy-form [data-buy-button]:disabled { flex: 1; }

/* Listing: price range filter and "Daha fazla göster" */
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range .input { width: 100%; min-width: 0; min-height: 42px; }
.price-apply { align-self: flex-start; margin-top: 6px; }
.load-status { text-align: center; margin: 40px 0 0; }
.load-more { display: flex; justify-content: center; margin-top: 40px; }
.load-status + .load-more { margin-top: 12px; }
.load-more + .pager, .load-status + .pager { margin-top: 24px; }
.load-more .btn[aria-busy=true] { opacity: .6; pointer-events: none; }

/* Contact form: /iletisim page and the page builder section */
.contact-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; margin-bottom: 64px; }
.contact-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 8px 0 0; }
.contact-details dt { font-weight: var(--fw-bold, 700); }
.contact-details dd { margin: 0; color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-send { align-self: flex-start; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Compare page (ProductLists/Compare + premium.js). Desktop: table with the attribute names in the first column; phones: product
   columns of 160px scroll sideways, each attribute name stays above its values, add-to-cart buttons in a bar at the bottom. */
.cmp-page { padding-bottom: 80px; }
.cmp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 16px 0 28px; }
.cmp-head p { margin: 6px 0 0; color: var(--ink-2); }
.cmp-count, .cmp-diff-toggle .m { display: none; }
.cmp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cmp-diff-toggle { align-items: center; font-weight: var(--fw-semibold, 600); font-size: 16px; min-height: 44px; }
.cmp-diff-toggle input { margin-top: 0; }
.cmp-diff-toggle[hidden] { display: none; }
.cmp-clear { background: var(--panel-bg, #fff); border: 1px solid var(--field); color: var(--ink); }
.cmp-clear:hover { border-color: var(--ink); color: var(--ink); }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; min-width: calc(220px + var(--cmp-cols, 3) * 200px); }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th.cmp-corner { width: 220px; vertical-align: bottom; font-weight: 400; font-size: 14px; }
.cmp-table th[scope=row] { font-weight: var(--fw-semibold, 600); color: var(--ink-2); background: var(--panel-bg, #fff); }
.only-diff .cmp-table tr.same { display: none; }
.cmp-product { font-weight: 400; }
.cmp-product > * { display: block; }
.cmp-media { position: relative; }
.cmp-media .ph { aspect-ratio: 1 / 1; display: block; }
.cmp-media .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-remove { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cmp-remove:hover { color: var(--action, var(--brand)); }
.cmp-remove:focus-visible, .cmp-add-slot:focus-visible { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 2px; }
.cmp-product .meta { font-size: 13px; color: var(--muted); }
.cmp-product .name { font-weight: var(--fw-bold, 700); font-size: 17px; color: var(--ink); line-height: 1.3; }
.cmp-product .name:hover { color: var(--action, var(--brand)); }
.cmp-buy form { margin: 0; }
.cmp-buy .btn { width: 100%; }
.cmp-product > .cmp-stock { display: inline-flex; width: fit-content; }
.cmp-cartbar .is-disabled { color: var(--muted); cursor: not-allowed; }
.cmp-add-slot { border: 2px dashed var(--field); border-radius: var(--radius); aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); font-weight: var(--fw-semibold, 600); }
.cmp-add-slot:hover { border-color: var(--action, var(--brand)); color: var(--action, var(--brand)); }
.cmp-cartbar { display: none; }
.cmp-empty svg { color: var(--action, var(--brand)); }
.cmp-empty h2 { font-size: 28px; }
.cmp-empty p { margin: 0 0 8px; }
@media (max-width: 720px) {
  .cmp-page { padding-bottom: 96px; }
  .cmp-page .breadcrumb { margin: 12px 0 4px; }
  .cmp-count, .cmp-diff-toggle .m { display: inline; }
  .cmp-head p, .cmp-diff-toggle .d { display: none; }
  .cmp-actions { gap: 8px 12px; }
  .cmp-diff-toggle { font-size: 15px; }
  .cmp-clear { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .cmp-table, .cmp-table thead, .cmp-table tbody { display: block; }
  .cmp-table { width: max(calc(var(--cmp-cols, 3) * 160px), 100%); min-width: 0; }
  .cmp-table tr { display: flex; flex-wrap: wrap; width: 100%; }
  .cmp-table .cmp-corner, .cmp-table .cmp-add { display: none; }
  .cmp-table th, .cmp-table td { border-bottom: 0; }
  .cmp-table tbody tr { border-top: 1px solid var(--line); }
  .cmp-product { flex: 0 0 160px; padding: 12px 12px 8px; }
  /* The heading takes the whole first line (values always start under the first column); its text stays in view while scrolling. */
  .cmp-table th[scope=row] { flex: 0 0 100%; padding: 10px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: transparent; }
  .cmp-table th[scope=row] > span { display: block; width: fit-content; position: sticky; left: 0; padding: 0 12px; }
  .cmp-table td { flex: 0 0 160px; padding: 8px 12px 10px; font-size: 15px; }
  .cmp-remove { top: 4px; right: 4px; }
  .cmp-product .meta, .cmp-buy { display: none; }
  .cmp-product .name { font-size: 15px; line-height: 1.25; }
  .cmp-product .price { font-size: 18px; }
  .cmp-cartbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 12px; overflow-x: auto; background: var(--panel-bg, #fff); border-top: 1px solid var(--line); }
  .cmp-cartbar form { flex: 0 0 auto; margin: 0; }
  .cmp-bar-name { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  body:has(.cmp-cartbar) { --to-top-base: 84px; }
  body:has(.cmp-cartbar) .wa-float { bottom: 84px; }
}

/* Long facet groups (Catalog/_FacetGroups): the values after the first six behind "Tümünü göster". */
.facet-more { display: flex; flex-direction: column; gap: inherit; }
/* The folded values sit in the disclosure's content box, not in the flex column above: it gets the same gap, so the opened
   rows keep the rhythm of the first ones. */
.facet-more::details-content { display: flex; flex-direction: column; gap: inherit; }
.facet-more summary { list-style: none; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; font-size: 14px; font-weight: var(--fw-semibold, 600); color: var(--action, var(--brand)); text-decoration: underline; text-underline-offset: 2px; }
.facet-more summary::-webkit-details-marker { display: none; }
.facet-more summary:focus-visible { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 2px; }
.facet-more[open] .facet-more-show, .facet-more:not([open]) .facet-more-hide { display: none; }
.facet-more[open] > summary { order: 1; }
@media (pointer: coarse) { .facet-more summary { min-height: 44px; } }

/* Collapsible filter groups (Catalog/_FilterFields, _FacetGroups): details.filter-group whose summary is the visible title
   (chevron; Zarif draws +/−), the fieldset inside keeps the group semantics with a visually hidden legend. A closed group
   shows its selected count (.filter-count). Theme typography for the title goes on .filter-group > summary. */
details.filter-group { min-width: 0; }
.filter-group > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none; font-weight: var(--fw-semibold, 600); color: var(--ink); }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.filter-group[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.filter-group > summary:focus-visible { outline: var(--focus-ring, 2px solid var(--action, var(--brand))); outline-offset: 2px; }
.filter-title { min-width: 0; overflow-wrap: anywhere; }
.filter-count { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg, #fff); font-size: 12px; font-weight: var(--fw-bold, 700); line-height: 1; letter-spacing: normal; }
.filter-group[open] > summary .filter-count { display: none; }
.filter-fields { position: relative; border: 0; padding: 0 0 16px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
/* Beats the themes' ".filter-group legend" title styles (Usta floats it full width). */
.filter-group legend.sr-only { position: absolute; float: none; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (pointer: coarse) { .filter-group .filter-fields .check { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .filter-group > summary::after { transition: none; } }
