/* Ropa Bonita — renkler logodaki keten zemin ve rose gold tonlarından alındı */
:root {
  --bg: #f7f2eb;
  --surface: #fffdf9;
  --linen: #efe6da;
  --ink: #241b17;
  --muted: #7b6b61;
  --line: #e4d8ca;
  --rose: #b5785c;
  --rose-dark: #94583e;
  --rose-soft: #f2e4da;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--rose-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 34px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-sm { height: 42px; padding: 0 22px; font-size: 12px; }
.btn-block { width: 100%; }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.link-more { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.link-more:hover { color: var(--rose-dark); }

/* Announcement + header */
.announce { background: var(--ink); color: #f1e6da; text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 242, 235, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; justify-self: center; }
.brand img { width: 34px; height: auto; }
.wordmark { font-family: var(--serif); font-size: 25px; line-height: 1; display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.wordmark span { font-weight: 500; }
.wordmark em { font-style: italic; font-weight: 400; }
.main-nav { display: none; }
.header-actions { justify-self: end; display: flex; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--rose-dark); }
.menu-btn { justify-self: start; margin-left: -10px; }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 500; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }
.search-bar { border-top: 1px solid var(--line); padding: 12px 0; }
.search-bar[hidden] { display: none; }
.search-bar .wrap { display: flex; gap: 8px; }
.search-bar input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }

@media (min-width: 1000px) {
  :root { --header-h: 80px; }
  .header-row { grid-template-columns: auto 1fr auto; gap: 40px; }
  .menu-btn { display: none; }
  .brand { justify-self: start; }
  .brand img { width: 40px; }
  .wordmark { font-size: 29px; }
  .main-nav { display: flex; justify-content: center; gap: 30px; }
  .main-nav a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
  .main-nav a:hover { color: var(--rose-dark); }
  .main-nav a.active { border-color: var(--rose); }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(36, 27, 23, .4); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--bg); padding: 16px 24px; overflow-y: auto; animation: slideIn .25s ease-out; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; }
@keyframes slideIn { from { transform: translateX(-100%); } }

/* Hero */
.hero { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.hero-text h1 { font-size: clamp(48px, 11vw, 96px); font-weight: 400; margin: 10px 0 14px; letter-spacing: -.01em; }
.hero-text p { color: var(--muted); max-width: 440px; font-size: 17px; margin-bottom: 28px; }
.hero-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-top: 48px; padding-bottom: 72px; }
  .hero-media { aspect-ratio: 5 / 6; }
}

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 400; }
@media (min-width: 900px) { .section { padding: 64px 0; } }

/* Category tiles: horizontal scroll on mobile, grid on desktop */
.cat-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-tile { position: relative; flex: 0 0 44%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--linen); scroll-snap-align: start; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.cat-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(36, 27, 23, .5)); color: #fff; font-family: var(--serif); font-size: 22px; }
.cat-tile:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 20px; overflow: visible; }
  .cat-tile span { font-size: 26px; padding: 48px 20px 20px; }
}

/* Product grid + card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-listing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: block; }
.card-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--linen); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform 1.2s ease; }
.card-img .alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .card:hover .card-img .alt { opacity: 1; }
  .card:hover .card-img img:first-child { transform: scale(1.03); }
}
.badge { position: absolute; top: 10px; left: 10px; background: var(--surface); color: var(--rose-dark); font-size: 11px; letter-spacing: .08em; padding: 4px 9px; }
.badge-muted { color: var(--muted); }
.card-body { padding-top: 12px; }
.card-body h3 { font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: .01em; line-height: 1.4; }
.price { font-size: 14px; margin-top: 3px; }
.price del { color: var(--muted); margin-right: 6px; }
.price strong { font-weight: 500; color: var(--rose-dark); }
.swatches { display: flex; gap: 6px; margin-top: 9px; }
.swatches span { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(36, 27, 23, .18); }

/* About band */
.about { background: var(--linen); margin: 24px 0; }
.about-inner { display: grid; gap: 28px; justify-items: center; text-align: center; padding-top: 56px; padding-bottom: 56px; }
.about-inner img { width: 150px; }
.about-inner h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 400; margin: 10px 0 16px; }
.about-inner p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 17px; }
@media (min-width: 900px) {
  .about-inner { grid-template-columns: auto 1fr; gap: 80px; text-align: left; justify-items: start; align-items: center; padding-top: 80px; padding-bottom: 80px; max-width: 1000px; }
  .about-inner img { width: 210px; }
  .about-inner p { margin: 0; }
}

/* Page head + breadcrumbs */
.page-head { text-align: center; padding: 28px 0 24px; }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 400; }
.crumbs { font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-bottom: 8px; }
.crumbs span { margin: 0 8px; opacity: .6; }
.crumbs a:hover { color: var(--ink); }
.crumbs-left { padding: 18px 0 12px; }

/* Listing + filters */
.listing { display: grid; gap: 20px; padding-bottom: 56px; }
.filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: '+'; margin-left: auto; font-size: 18px; letter-spacing: 0; }
.filters[open] summary::after { content: '−'; }
.pill { background: var(--rose); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; letter-spacing: 0; }
.filters-body { padding-bottom: 20px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.filters legend { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input, .color-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-grid; place-items: center; min-width: 46px; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; cursor: pointer; transition: border-color .2s; }
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span, .color-check input:focus-visible ~ span { outline: 2px solid var(--rose); outline-offset: 2px; }
.color-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-check { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.color-check i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(36, 27, 23, .18); flex: none; }
.color-check input:checked ~ i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.color-check input:checked ~ span { font-weight: 500; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); }
.filter-actions { display: flex; align-items: center; gap: 20px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 14px; }
.sort select { height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23241b17' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font-size: 13px; cursor: pointer; max-width: 100%; }
.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--line); }
.empty-page { border: 0; padding: 96px 16px; }
.empty-page h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 400; margin-bottom: 12px; }
.empty-page .btn { margin-top: 12px; }
@media (min-width: 1000px) {
  .listing { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
  .filters { position: sticky; top: calc(var(--header-h) + 20px); border-bottom: 0; }
  .filters summary { pointer-events: none; }
  .filters summary::after { content: none; }
}

/* Product page */
.pdp { display: grid; gap: 24px; padding-bottom: 32px; }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: start; background: var(--linen); }
@media (min-width: 768px) { .gallery-track { margin: 0 -32px; } }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 253, 249, .9); font-size: 12px; padding: 3px 10px; letter-spacing: .06em; }
.gallery-count:empty { display: none; }
.pdp-info h1 { font-size: clamp(32px, 5vw, 42px); font-weight: 400; margin-bottom: 6px; }
.pdp-info > .price { font-size: 19px; }
.opt { margin-top: 26px; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.opt-label strong { font-weight: 400; letter-spacing: .04em; text-transform: none; font-size: 14px; color: var(--muted); margin-left: 4px; }
.color-opts { display: flex; flex-wrap: wrap; gap: 12px; }
.color-opts button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(36, 27, 23, .2); cursor: pointer; transition: box-shadow .2s; }
.color-opts button[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(36, 27, 23, .2), 0 0 0 3px var(--bg), 0 0 0 4px var(--ink); }
.size-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opts button { min-width: 54px; height: 46px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; transition: border-color .2s; }
.size-opts button:hover:not(:disabled) { border-color: var(--ink); }
.size-opts button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-opts button:disabled { color: #b9aea5; cursor: not-allowed; background: linear-gradient(to top left, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)), var(--surface); }
.stock-note { min-height: 24px; margin: 16px 0 10px; font-size: 13px; color: var(--rose-dark); }
.accordion { margin-top: 28px; border-bottom: 1px solid var(--line); }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 18px; line-height: 1; }
.accordion details[open] summary::after { content: '−'; }
.prose { color: var(--muted); padding-bottom: 18px; white-space: pre-line; font-size: 15px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 48px; }
  .gallery-track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; overflow: visible; }
  .gallery-track img:only-child, .gallery-track img:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .gallery-count { display: none; }
  .pdp-info { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Modal */
.modal { border: 0; padding: 24px; width: min(560px, calc(100vw - 32px)); background: var(--bg); color: var(--ink); }
.modal::backdrop { background: rgba(36, 27, 23, .45); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h2 { font-size: 30px; font-weight: 400; }
.table-scroll { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.size-table th { font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Cart */
.cart { padding-bottom: 64px; }
.cart-layout { display: grid; gap: 32px; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 88px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--linen); }
.cart-item h3 { font-family: var(--sans); font-size: 15px; font-weight: 400; }
.cart-meta { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 17px; }
.qty button:disabled { color: #c8beb5; cursor: not-allowed; }
.qty span { min-width: 32px; display: grid; place-items: center; font-size: 14px; }
.cart-remove { font-size: 12px; }
.line-price { font-size: 15px; font-weight: 400; }
.cart-warn { font-size: 12px; color: var(--rose-dark); margin-top: 6px; }
.summary { background: var(--surface); border: 1px solid var(--line); padding: 24px; align-self: start; }
.summary h2 { font-size: 26px; font-weight: 400; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.summary-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 500; font-size: 17px; }
.ship-bar { height: 4px; background: var(--rose-soft); margin: 8px 0 4px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--rose); }
.ship-note { font-size: 13px; color: var(--muted); }
.summary .btn { margin-top: 20px; }
.summary-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
  .cart-item { grid-template-columns: 110px 1fr; gap: 24px; }
  .cart-item img { width: 110px; }
  .summary { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Footer */
.site-footer { background: var(--linen); margin-top: 40px; padding-top: 48px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 96px; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 320px; font-size: 14px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a, .site-footer .muted { display: block; font-size: 14px; padding: 4px 0; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; padding-bottom: 24px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 12px 20px; font-size: 14px; box-shadow: 0 8px 24px rgba(36, 27, 23, .2); display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.toast a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
