@charset "UTF-8";
/* =========================================================
   DWO Couture — Mağaza ve ürün sayfaları
   (loaded after style.css on magaza.html and urun/*.html)
   ========================================================= */

/* ---------- colour swatches (one palette for filters and product options) ---------- */
.sw {
  --sw: #cfc8bc;
  display: inline-block; flex: none; width: 14px; height: 14px;
  background: var(--sw); box-shadow: inset 0 0 0 1px rgba(18, 18, 17, .14);
}
.sw[data-c="Beyaz"]    { --sw: #faf8f3; }
.sw[data-c="Ekru"]     { --sw: #ece3cf; }
.sw[data-c="Pudra"]    { --sw: #e3c3bb; }
.sw[data-c="Gold"]     { --sw: #c8a86b; }
.sw[data-c="Vizon"]    { --sw: #a29080; }
.sw[data-c="Kahve"]    { --sw: #5c4131; }
.sw[data-c="Bordo"]    { --sw: #6a1c29; }
.sw[data-c="Fuşya"]    { --sw: #b03a70; }
.sw[data-c="Mor"]      { --sw: #583667; }
.sw[data-c="Mavi"]     { --sw: #9db7ce; }
.sw[data-c="Turkuaz"]  { --sw: #3e9a9b; }
.sw[data-c="Mint"]     { --sw: #b6d5c4; }
.sw[data-c="Yeşil"]    { --sw: #4b6348; }
.sw[data-c="Antrasit"] { --sw: #3a3c3f; }
.sw[data-c="Siyah"]    { --sw: #121211; }

/* visually hidden option inputs; the label around them is the control */
.opt-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }

/* square size chips (filters and product page) */
.schips, .opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.schip { position: relative; display: block; cursor: pointer; }
.schip span {
  display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px;
  border: 1px solid var(--line-light);
  font-size: 13px; font-weight: 400; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.schip:hover span { border-color: var(--ink); }
.schip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.schip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* small text links keep their look but get a 44px tall tap area */
.shop .link::before, .pdp .link::before, .fgroup__more::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%);
}
.shop-page .crumbs a, .pdp__crumbs a { position: relative; }
.shop-page .crumbs a::before, .pdp__crumbs a::before {
  content: ""; position: absolute; left: -5px; right: -5px; top: 50%; height: 44px; transform: translateY(-50%);
}

/* =========================================================
   Mağaza
   ========================================================= */
.shop-page .page-head { padding-bottom: clamp(28px, 3.4vw, 48px); }

/* toolbar */
.shop-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 60px; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.shop-bar__filter {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 44px;
  font-size: 11.5px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  transition: color .3s;
}
.shop-bar__filter:hover { color: var(--gold-deep); }
.shop-bar__filter svg { width: 14px; height: 14px; fill: none; transition: transform .4s var(--ease); }
.shop-bar__filter[aria-expanded="true"] svg { transform: rotate(45deg); }
.shop-bar__badge { margin-left: -4px; color: var(--gold-deep); }
.shop-bar__badge:empty { display: none; }
.shop-bar__count {
  margin: 0; font-size: 10.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-muted); font-variant-numeric: tabular-nums;
}
/* sort: the small uppercase text is a label (shop.js keeps it in step); the native select lies on
   top of it, transparent, at 16px so phones do not zoom in when it is tapped */
.shop-bar__sort { position: relative; justify-self: end; }
.shop-sort {
  display: flex; align-items: center; justify-content: flex-end; height: 44px; padding: 0 22px 0 10px;
  font-size: 11.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121211' stroke-width='1.1'/%3E%3C/svg%3E");
  background-position: 100% 50%; background-size: 11px 7px; background-repeat: no-repeat;
  transition: color .3s;
}
.shop-select {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
  appearance: none; -webkit-appearance: none; background: transparent; opacity: 0; cursor: pointer;
  font: inherit; font-size: 16px; color: var(--ink);
}
.shop-sort__short { display: none; }
.shop-bar__sort:hover .shop-sort { color: var(--gold-deep); }
.shop-bar__sort:has(.shop-select:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.shop-select option { color: var(--ink); background: var(--white); }

/* filter panel: opens under the toolbar on desktop, a side drawer on phones */
html:not(.js) .filters, html:not(.js) .shop-bar__filter, html:not(.js) .shop-bar__sort, .filters-scrim { display: none; }
.filters {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .55s var(--ease), visibility 0s linear .55s;
}
.filters.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--ease); }
.filters__inner { min-height: 0; overflow: hidden; }
.filters__head { display: none; }
.filters__body {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.25fr) minmax(0, 1.25fr); gap: clamp(32px, 4.5vw, 80px);
  padding: 40px 0 12px;
}
.filters__foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 32px;
  padding: 20px 0 26px; border-bottom: 1px solid var(--line-light);
}
.filters__clear-m, .filters__apply { display: none; }

.fgroup { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.fgroup__legend {
  float: left; width: 100%; margin: 0 0 18px; padding: 0;
  font-size: 10.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.fgroup__legend + * { clear: both; }
.fgroup__more {
  position: relative; display: inline-block; margin-top: 18px; padding: 4px 0;
  font-size: 12.5px; color: var(--ink-muted); border-bottom: 1px solid var(--line-light); line-height: 1.5;
  transition: color .3s, border-color .3s;
}
.fgroup__more:hover { color: var(--ink); border-color: var(--gold); }

.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 20px; }
.swatch {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 38px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-muted); transition: color .3s;
}
.swatch:hover { color: var(--ink); }
.swatch .sw { width: 16px; height: 16px; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .3s var(--ease); }
.swatch input:checked ~ .sw { outline-color: var(--ink); }
.swatch input:checked ~ .swatch__name { color: var(--ink); }
.swatch input:focus-visible ~ .swatch__name { text-decoration: underline; text-underline-offset: 4px; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch:has(input:focus-visible) .swatch__name { text-decoration: none; }

.price-in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-in .field { gap: 6px; margin: 0; }
.price-in .field > label { font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--ink-muted); }
.money { position: relative; }
.money .input { height: 46px; padding: 0 32px 0 14px; font-variant-numeric: tabular-nums; }
.money span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-muted); pointer-events: none; }
.price-hint { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-muted); }

/* results */
.shop-results { padding: clamp(32px, 3.4vw, 48px) 0 clamp(80px, 9vw, 140px); }
.shop-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 clamp(28px, 3vw, 40px); }
.shop-active[hidden] { display: none; }
.shop-chip {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 14px;
  border: 1px solid var(--line-light); font-size: 12.5px; letter-spacing: .02em; color: var(--ink);
  transition: border-color .3s;
}
.shop-chip::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }
.shop-chip:hover { border-color: var(--ink); }
.shop-chip svg { width: 12px; height: 12px; fill: none; color: var(--ink-muted); }
.shop-active .link { margin-left: 10px; font-size: 10.5px; }
.shop-active .link::after { bottom: 2px; }

.shop-grid .product:nth-child(n) { display: block; }
@media (min-width: 1181px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-grid .product[hidden] { display: none !important; }
.shop-grid[hidden] { display: none; }
.shop-results .empty { padding-top: clamp(24px, 4vw, 56px); }

/* =========================================================
   Ürün sayfası
   ========================================================= */
.pdp { padding: clamp(28px, 3.2vw, 52px) 0 clamp(80px, 9vw, 140px); }
.pdp__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 5.6vw, 108px);
  align-items: start;
}

/* gallery: two by two, so the photos are shown close to their own size (a single photo spans both) */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery__item { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bone); }
.gallery__item--lg { grid-column: 1 / -1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: none; }

/* info column follows the photos and fills its grid column up to the right gutter
   (product.js lets a column taller than the window scroll along with the page) */
.pdp__info { position: sticky; top: 132px; }
.pdp__crumbs { justify-content: flex-start; margin-bottom: clamp(22px, 2vw, 28px); }
.pdp__title {
  margin: 0; font-size: clamp(1.4rem, 1.9vw, 1.8rem); font-weight: 300; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase;
}
.pdp__sub { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.pdp__price { margin: 20px 0 0; font-size: 17px; font-weight: 400; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.pdp__form { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-light); }
.opt { position: relative; min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.opt__legend {
  float: left; width: 100%; margin: 0 0 14px; padding: 0;
  font-size: 10.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  transition: color .3s;
}
.opt__val { margin-left: 12px; color: var(--ink-muted); }
.opt.is-missing .opt__legend { color: var(--gold-deep); }
.opt__list { clear: both; }
.opt__guide {
  position: absolute; right: 0; top: -13px; display: inline-flex; align-items: center; height: 44px;
  font-size: 12px; color: var(--ink-muted); transition: color .3s;
}
.opt__guide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 1px; background: var(--line-light); transition: background-color .3s; }
.opt__guide:hover { color: var(--ink); }
.opt__guide:hover::after { background: var(--gold); }

.cchip { position: relative; display: block; cursor: pointer; }
.cchip__box {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px;
  border: 1px solid var(--line-light); font-size: 13px; color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cchip:hover .cchip__box { border-color: rgba(18, 18, 17, .45); }
.cchip input:checked + .cchip__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cchip input:focus-visible + .cchip__box { outline: 2px solid var(--ink); outline-offset: 3px; }

.pdp__buy { display: grid; grid-template-columns: auto minmax(0, 1fr) 52px; gap: 8px; margin-top: 36px; }
.pdp__buy.is-soldout { grid-template-columns: minmax(0, 1fr) 52px; }
.pdp__qty { height: 52px; }
.pdp__qty button, .pdp__qty input { width: 44px; }
.pdp__add { height: 52px; padding: 0 16px; }
.pdp__add:disabled, .pdp__add:disabled:hover { background: var(--bone); border-color: var(--bone); color: var(--ink-muted); cursor: not-allowed; }
.pdp__wish.wish { position: relative; right: auto; top: auto; width: 52px; height: 52px; border: 1px solid var(--line-light); transition: border-color .3s, color .3s; }
.pdp__wish.wish:hover { border-color: var(--ink); }
.pdp__wish svg { width: 20px; height: 20px; }
.pdp__wish.wish::before { content: none; }
.pdp__wish.wish:focus-visible { border-radius: 0; }

.pdp__msg { margin: 14px 0 0; font-size: 13px; color: var(--gold-deep); }
.pdp__msg:empty { display: none; }
.pdp__added { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 14px 0 0; font-size: 13px; color: var(--ink-muted); }
.pdp__added[hidden] { display: none; }
.pdp__added .link { font-size: 10.5px; color: var(--ink); }

.pdp__wa { gap: 12px; height: 52px; margin-top: 10px; }
.pdp__wa svg { width: 18px; height: 18px; fill: none; }

.pdp__accs { margin-top: 30px; }
.pdp__accs .acc summary { padding: 15px 0; }
.pdp__accs .acc__body p:last-child { margin-bottom: 0; }

/* the floating WhatsApp button would cover the accordion icons; the column has its own
   WhatsApp button, so the floating one fades out while the column is on screen (product.js) */
.pdp-info-on .wa.is-on { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.acc__links { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 6px; }
.acc__links .link { font-size: 10.5px; color: var(--ink); }

/* related */
.pdp-related .section-head { margin-bottom: clamp(32px, 4vw, 52px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 901px) and (max-width: 1180px) {
  .pdp-related .product:nth-child(4) { display: none; }
  .filters__body { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 40px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* toolbar: two halves, model count underneath */
  .shop-bar { grid-template-columns: 1fr 1fr; grid-template-areas: "f s" "c c"; gap: 0; min-height: 0; border-bottom: 0; }
  .shop-bar__filter { grid-area: f; width: 100%; height: 52px; padding-right: 12px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
  .shop-bar__sort { grid-area: s; justify-self: stretch; min-width: 0; border-bottom: 1px solid var(--line-light); }
  .shop-sort {
    display: block; height: 52px; padding: 0 20px 0 16px; line-height: 52px; text-align: right;
    font-size: 11px; letter-spacing: .12em; overflow: hidden; text-overflow: ellipsis;
  }
  .shop-sort__full { display: none; }
  .shop-sort__short { display: inline; }
  /* 16px in form fields stops iPhones zooming in on tap */
  .money .input, .pdp__qty input { font-size: 16px; }
  .shop-bar__count { grid-area: c; padding-top: 18px; text-align: center; }
  .shop-results { padding-top: 22px; }

  /* drawer */
  .js .filters {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 92; display: block;
    width: min(440px, 100%); height: 100%; background: var(--white); color: var(--ink);
    transform: translateX(100%); visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
  }
  .js .filters.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .filters__inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
  .filters__head {
    display: flex; align-items: center; justify-content: space-between; flex: none;
    height: 60px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line-light);
  }
  .filters__head .icon-btn:hover { color: var(--gold-deep); }
  .filters__title { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
  .filters__body { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
  .fgroup { padding: 26px 0 30px; border-bottom: 1px solid var(--line-light); }
  .fgroup:last-child { border-bottom: 0; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .swatch { min-height: 44px; }
  .filters__foot {
    display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; flex: none;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-light); border-bottom: 0;
  }
  .filters__clear, .filters__close { display: none; }
  .filters__clear-m, .filters__apply { display: inline-flex; padding: 0 12px; }
  .filters-scrim {
    display: block; position: fixed; inset: 0; z-index: 91; background: rgba(11, 11, 10, .45);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .filters-scrim.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }

  /* product page: photos swipe sideways, edge to edge */
  .pdp { padding-top: 0; }
  .pdp__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pdp__media { margin: 0 calc(-1 * var(--gutter)); }
  .gallery {
    display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .gallery-dots { display: flex; gap: 4px; margin: 14px var(--gutter) 0; }
  .gallery-dots span { flex: 1; height: 2px; background: rgba(18, 18, 17, .12); transition: background-color .35s var(--ease); }
  .gallery-dots span.is-on { background: var(--ink); }
  .pdp__info { position: static; max-width: none; }
  .pdp__crumbs { margin-bottom: 22px; }
  .pdp__price { margin-top: 16px; }
  .pdp__form { margin-top: 26px; padding-top: 26px; }
}

@media (max-width: 420px) {
  .pdp__buy { grid-template-columns: auto minmax(0, 1fr) 52px; gap: 6px; }
  .pdp__add { padding: 0 10px; letter-spacing: .14em; }
}
