@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #1e2e40;
  --denim: #253b55;
  --muted: #595e61;
  --brick: #973f32;
  --border: #d8d3c7;
  --paper: #f8f6ef;
  --cream: #fffaf0;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 2px, #71685306 2px 3px),
                    repeating-linear-gradient(90deg, transparent 0 3px, #71685305 3px 4px);
  font: 1rem/1.5 var(--sans);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { background: none; }
a, button, select, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid #a7432c;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.container { width: min(92%, 1320px); margin-inline: auto; }
.skip-link { position: fixed; top: -5rem; left: 1rem; background: white; padding: .75rem 1rem; z-index: 10; }
.skip-link:focus { top: .5rem; }

.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: clamp(1.3rem, 3vw, 3rem); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 104px; height: auto; }
.header-inner nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.header-inner nav a { font-size: .94rem; font-weight: 550; padding-block: .6rem; }
.header-inner nav a:hover, .site-footer > a:last-child:hover { color: var(--brick); text-decoration: underline; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 42px; padding: .55rem 1.1rem; border: 1px solid transparent; border-radius: 5px;
  color: #fff; background: var(--denim); font-weight: 650; font-size: .94rem;
}
.button:hover { background: #15273e; }
.header-contact { background: var(--brick); }
.header-contact:hover { background: #733226; }
.header-contact .icon { width: 1.23rem; height: 1.23rem; }

.fabric {
  background-color: var(--denim);
  background-image: repeating-linear-gradient(127deg, #fff1 0 1px, transparent 1px 3px, #071b2e22 3px 4px, transparent 4px 6px),
                    repeating-linear-gradient(4deg, transparent 0 2px, #0f243b33 2px 3px),
                    linear-gradient(100deg, #24384e, #354b63);
  color: var(--cream);
}
.hero {
  display: grid; grid-template-columns: 49% 51%;
  margin-top: 1.15rem; overflow: hidden; border-radius: 8px;
}
.hero-copy {
  min-height: clamp(176px, 13vw, 196px); padding: 1.45rem clamp(1.6rem, 3.4vw, 3.3rem);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  position: relative; isolation: isolate;
}
.hero-copy::before, .contact-section::before {
  content: ""; pointer-events: none; position: absolute; z-index: -1;
  inset: 8px; border: 1px dashed #fff5de50; border-radius: 3px;
}
.hero-label {
  display: flex; align-items: center; gap: .65rem; color: #f1e6d5;
  text-transform: uppercase; letter-spacing: .15em; font-weight: 650; font-size: .76rem;
}
.selvage {
  width: 29px; height: 11px; transform: skew(-19deg);
  background: linear-gradient(90deg, #cf7965 0 16%, transparent 16% 27%, #dfaa97 27% 43%, transparent 43% 54%, #f6e4c3 54% 100%);
}
.hero h1 {
  font: 500 clamp(2.5rem, 4.2vw, 4.2rem)/1.13 var(--serif);
  letter-spacing: -.048em; margin: .55rem 0 .65rem;
}
.hero h1 em { color: #f3d5af; font-weight: 500; }
.hero-description { color: #f3eee4; max-width: 32em; font-size: clamp(.94rem, 1.15vw, 1.04rem); }
.hero-art { min-width: 0; position: relative; background: #ccbaa2; }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; object-position: 50% 68%; }

.catalog { margin-top: clamp(1.35rem, 2.4vw, 2.3rem); scroll-margin-top: 1rem; }
.catalog-bar, .catalog-heading, .search-sort { display: flex; align-items: center; }
.catalog-bar { gap: 1rem; justify-content: space-between; }
.catalog-heading { gap: .85rem; }
.catalog-heading h2, .contact-section h2, .dialog-details h2, .empty-state h3 {
  font: 500 clamp(1.9rem, 2.7vw, 2.65rem)/1.18 var(--serif); letter-spacing: -.045em;
}
.results-count { color: var(--muted); font-size: .9rem; white-space: nowrap; padding-left: .85rem; border-left: 1px solid #c4baaa; }
.search-sort { gap: .6rem; min-width: 0; }
.search-field, .sort-field {
  display: flex; position: relative; align-items: center; min-width: 0; height: 42px;
  border: 1px solid var(--border); border-radius: 5px; background: #fffdf8;
}
.search-field { width: clamp(198px, 20vw, 290px); padding: 0 .7rem; gap: .5rem; }
.search-field:focus-within { border-color: var(--denim); box-shadow: 0 0 0 1px var(--denim); }
.search-field input {
  width: 100%; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent;
  outline: 0; font-size: .92rem;
}
.search-field input:focus-visible { outline: 0; }
.search-field input::placeholder { color: #666861; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field button, .dialog-close, .dialog-navigation button {
  border: 0; display: inline-grid; place-items: center; flex: none;
}
.search-field button { height: 32px; width: 30px; }
.sort-field select {
  appearance: none; border: 0; height: 100%; width: 100%; background: transparent; border-radius: 5px;
  padding: 0 2rem 0 .8rem; font-size: .9rem;
}
.sort-field .icon { position: absolute; right: .65rem; width: .95rem; pointer-events: none; }
.filters {
  display: flex; gap: .48rem; overflow-x: auto; scrollbar-width: thin;
  padding: 5px 3px 8px; margin: .72rem -3px .58rem;
}
.filter {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .43rem .88rem; min-height: 36px; white-space: nowrap; flex: none;
  border: 1px solid var(--border); border-radius: 30px; background: #fffdf7; font-size: .89rem; font-weight: 550;
}
.filter span { font-size: .78rem; color: #686961; font-variant-numeric: tabular-nums; }
.filter:hover { border-color: #968b7c; }
.filter.active { background: var(--denim); border-color: var(--denim); color: white; }
.filter.active span { color: #e1e8ed; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.8rem, 1.45vw, 1.4rem); margin-top: .65rem; }
.product-card {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: #fffdf8; border: 1px solid var(--border); border-radius: 7px;
}
.product-image {
  display: block; position: relative; width: 100%; aspect-ratio: 1.39;
  --image-inset: .65rem;
  flex: none; isolation: isolate; border-bottom: 1px solid var(--border);
  background: #e9e5db; cursor: zoom-in;
}
.product-card[data-category="set"] .product-image { background: #eee9dd; }
.product-card[data-category="defter"] .product-image { background: #e1e7e9; }
.product-card[data-category="anahtarlik"] .product-image { background: #eee2d9; }
.product-card[data-category="saat"] .product-image, .product-card[data-category="kutu"] .product-image { background: #eee6d9; }
.product-image img {
  position: absolute; inset: 0; padding: var(--image-inset);
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block;
  transition: transform .2s ease;
}
.product-image:focus-visible { outline-offset: -4px; }
.product-image.full-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.zoom-icon {
  position: absolute; right: 9px; bottom: 9px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #38424a; background: #fffcf2e6; border: 1px solid #68625035;
}
.zoom-icon .icon { width: 14px; height: 14px; }
@media (hover:hover) { .product-image:hover img { transform: scale(1.035); } }
.product-info { flex: 1; display: flex; flex-direction: column; padding: .9rem 1.05rem 1rem; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-bottom: .36rem; }
.product-category { color: var(--brick); font-weight: 650; font-size: .83rem; }
.product-code { color: #65655f; font-size: .8rem; font-variant-numeric: tabular-nums; }
.product-info h3 { font-size: clamp(1rem, 1.35vw, 1.18rem); font-weight: 600; line-height: 1.32; letter-spacing: -.02em; padding-bottom: .85rem; }
.product-link {
  display: inline-flex; align-items: center; align-self: flex-start; gap: .37rem; margin-top: auto;
  color: var(--denim); font-size: .89rem; font-weight: 650; padding-block: .25rem;
}
.product-link:hover { text-decoration: underline; }
.empty-state { padding: 3rem 1rem; text-align: center; border: 1px dashed var(--border); border-radius: 6px; }
.empty-state p { margin: .5rem 0 1.2rem; }

.contact-section {
  isolation: isolate; position: relative; display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; margin-top: 2.4rem; padding: 2rem clamp(1.4rem, 3.5vw, 3.5rem); border-radius: 7px;
}
.contact-section p { margin-top: .6rem; max-width: 62ch; color: #f2ece3; }
.button-light { color: var(--denim); background: var(--cream); white-space: nowrap; }
.button-light:hover { background: #ede1cb; }
.site-footer { display: flex; align-items: center; gap: 1.1rem; padding-block: 1.6rem 2rem; font-size: .92rem; }
.site-footer .brand img { width: 76px; }
.site-footer p { color: var(--muted); }
.site-footer > a:last-child { margin-left: auto; font-weight: 600; }

.modal-open { overflow: hidden; }
.product-dialog {
  border: 1px solid #cec7b9; padding: 0; color: var(--ink); background: #fffdf7;
  width: min(840px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  border-radius: 10px; box-shadow: 0 20px 80px #111b2c42; overflow: auto;
}
.product-dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }
.product-dialog::backdrop { background: #142031b8; }
.dialog-close { position: absolute; z-index: 1; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: #fffdf6; border: 1px solid var(--border); }
.dialog-image { display: grid; place-items: center; padding: 1.6rem; background: #e9e6dc; }
.dialog-image img { width: 100%; height: auto; max-height: 62dvh; object-fit: contain; mix-blend-mode: multiply; }
.dialog-details { display: flex; flex-direction: column; padding: 2.6rem 1.8rem 1.45rem; min-width: 0; }
.dialog-details h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); margin: .45rem 0 .7rem; }
.dialog-details > p:not(.product-category) { color: var(--muted); }
.quantity-label { margin: 1.15rem 0 .4rem; font-size: .9rem; font-weight: 600; }
.quantity-label span { color: var(--muted); font-weight: 400; }
.dialog-details input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 4px; padding-inline: .7rem; }
.dialog-details .button { margin-top: .6rem; }
.dialog-navigation { display: flex; justify-content: center; align-items: center; gap: .8rem; margin-top: 1.3rem; font-size: .86rem; color: var(--muted); }
.dialog-navigation button { width: 38px; height: 38px; border-radius: 4px; border: 1px solid var(--border); }
.dialog-navigation button:disabled { opacity: .35; cursor: default; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(2.45rem, 5.2vw, 3.2rem); }
  .hero-copy { min-height: 184px; padding: 1.45rem 1.8rem; }
}
@media (max-width: 700px) {
  .site-header { position: sticky; top: 0; z-index: 4; background: var(--paper); }
  #koleksiyon, #iletisim { scroll-margin-top: 70px; }
  .header-inner { min-height: 59px; gap: 1rem; }
  .brand img { width: 86px; }
  .header-inner nav { display: none; }
  .header-contact { margin-left: auto; min-height: 38px; }
  .hero { grid-template-columns: 57% 43%; margin-top: .75rem; }
  .hero-copy { min-height: 148px; padding: 1.1rem 1.15rem; }
  .hero h1 { font-size: clamp(1.9rem, 5.8vw, 2.55rem); margin: .35rem 0 0; }
  .hero h1 em { display: block; }
  .hero-label { font-size: .69rem; letter-spacing: .065em; gap: .4rem; white-space: nowrap; }
  .selvage { width: 15px; height: 8px; }
  .hero-description { display: none; }
  .hero-art img { object-position: 64% center; }
  .catalog { margin-top: 1.15rem; }
  .catalog-bar { flex-wrap: wrap; gap: .65rem; }
  .search-sort { flex: 1 1 100%; gap: .4rem; }
  .search-field { flex: 1; width: auto; }
  .filters { margin-top: .4rem; margin-bottom: .35rem; }
  .filter { min-height: 35px; padding: .35rem .75rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; margin-top: .35rem; }
  .product-info { padding: .65rem .65rem .72rem; }
  .product-info h3 { padding-bottom: .5rem; }
  .product-meta { flex-wrap: wrap; row-gap: 0; }
  .product-code { font-size: .76rem; }
  .product-image { aspect-ratio: 1.15; --image-inset: .45rem; }
  .zoom-icon { width: 26px; height: 26px; bottom: 5px; right: 5px; }
  .contact-section { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-wrap: wrap; gap: .65rem 1rem; }
  .site-footer p { flex: 1; }
  .site-footer > a:last-child { margin-left: 0; }
  .product-dialog { width: min(440px, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); }
  .product-dialog[open] { display: block; }
  .dialog-image { padding: .65rem; }
  .dialog-image img { height: min(30dvh, 230px); }
  .dialog-details { padding: 1rem; }
  .dialog-navigation { margin-top: .75rem; }
}
@media (max-width: 370px) {
  .hero-copy { padding-inline: 1rem; min-height: 134px; }
  .hero-label { font-size: .65rem; }
  .search-field, .sort-field select { font-size: .86rem; }
  .search-field { padding-inline: .4rem; }
  .sort-field select { padding-left: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-image img { transition: none; }
}
