/* Moda Atelier 1.0 — editorial fashion commerce. RTL-native CSS logical properties. */
:root {
  --ink: #242129;
  --ink-soft: #45414a;
  --muted: #777179;
  --paper: #f8f7f4;
  --surface: #ffffff;
  --accent: #7a334d;
  --accent-dark: #592337;
  --blush: #f2e7ea;
  --line: #e8e3e3;
  --radius: 15px;
  --max: 1280px;
  --shadow: 0 16px 38px rgba(36, 33, 41, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Tahoma, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.85; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { line-height: 1.45; }
h1 { font-size: clamp(2.4rem, 4.2vw, 4.8rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 2.2rem); }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.site-main { padding-block: 30px 70px; min-height: 48vh; }
.entry-content { overflow-wrap: anywhere; }
.entry-content a { text-decoration: underline; }
.reading-width { max-width: 850px; }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.post-card { border: 1px solid var(--line); background: white; padding: 16px; border-radius: var(--radius); }
.post-card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 10px; }
.post-card h2 { font-size: 1.1rem; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; position: absolute; }
.screen-reader-text:focus { clip: auto; clip-path: none; overflow: visible; width: auto; height: auto; position: fixed; top: 8px; inset-inline-start: 8px; z-index: 9999; background: white; color: black; padding: 12px; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #ac6379; outline-offset: 3px; }
input:not([type=checkbox]):not([type=radio]), textarea, select { max-width: 100%; }

/* Header / navigation */
.topbar { color: #f5f0f2; background: #28242a; font-size: 11px; letter-spacing: .05em; }
.topbar-inner { display: flex; gap: 20px; justify-content: space-between; align-items: center; min-height: 35px; }
.topbar-sub { color: #c9c3c9; }
.site-header { background: white; position: relative; z-index: 30; box-shadow: 0 3px 22px rgba(32, 27, 32, .045); }
.header-primary { min-height: 94px; display: flex; align-items: center; gap: 30px; padding-block: 16px; }
.branding { flex: 0 0 auto; }
.custom-logo { max-width: 180px; max-height: 76px; width: auto; }
.brand-logo { display: flex; flex-direction: column; color: var(--ink); line-height: 1.2; }
.brand-wordmark { font-size: clamp(21px, 2vw, 27px); font-weight: 900; letter-spacing: -.06em; white-space: nowrap; }
.brand-tagline { font-size: 9px; color: var(--muted); letter-spacing: .24em; direction: ltr; text-align: center; margin-top: 8px; }
.header-search { display: flex; height: 48px; flex: 1; max-width: 590px; min-width: 150px; margin-inline: auto; overflow: hidden; background: #f7f5f4; border: 1px solid #eae5e5; border-radius: 10px; }
.header-search input[type=search] { min-width: 0; flex: 1; background: transparent; box-shadow: none; outline: none; border: 0; padding-inline: 17px; color: var(--ink); }
.header-search input::placeholder { color: #8d858b; }
.header-search button { width: 53px; border: 0; cursor: pointer; background: var(--ink); color: white; font-size: 27px; }
.header-search button:hover { background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-action { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px; color: var(--ink); white-space: nowrap; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.header-action svg { width: 21px; height: 21px; }
.moda-cart-count { display: grid; place-items: center; border-radius: 50%; width: 21px; height: 21px; background: var(--accent); color: white; font-weight: 700; font-size: 10px; }
.nav-wrap { border-top: 1px solid #f0eced; }
.nav-inner { display: flex; align-items: center; min-height: 53px; gap: 34px; }
.shop-shortcut { color: var(--accent); font-weight: 800; white-space: nowrap; font-size: 13px; }
.shop-shortcut span { font-size: 19px; padding-inline-start: 6px; }
.primary-nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); padding: 0; margin: 0; list-style: none; }
.nav-list>li { position: relative; }
.nav-list a { display: block; font-size: 13px; font-weight: 600; padding-block: 14px; transition: color .2s; }
.nav-list .sub-menu { display: none; position: absolute; top: 100%; inset-inline-start: 0; z-index: 50; min-width: 180px; padding: 10px 17px; list-style: none; margin: 0; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; }
.nav-list .sub-menu a { padding-block: 9px; }
.nav-list li:hover>.sub-menu, .nav-list li:focus-within>.sub-menu { display: block; }
.nav-note { color: #90828a; font-size: 11px; white-space: nowrap; }
.menu-toggle { display: none; background: white; border: 1px solid var(--line); color: var(--ink); padding: 7px 11px; border-radius: 8px; cursor: pointer; font-size: 20px; }

/* Shared headings and buttons */
.button, a.button, button.button, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, input[type=submit], .wp-element-button, .wc-block-components-button { border: 0; border-radius: 8px; background: var(--ink); color: white; cursor: pointer; font-weight: 700; padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; }
.button:hover, a.button:hover, button.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, input[type=submit]:hover { background: var(--accent); color: white; }
.button-primary { min-height: 49px; }
.eyebrow, .section-eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 800; margin: 0 0 12px; }
.section-heading { display: flex; align-items: flex-end; gap: 20px; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(21px, 2.3vw, 32px); }
.text-link { font-weight: 700; font-size: 12px; white-space: nowrap; color: var(--accent); }

/* Editorial homepage */
.fashion-hero { background: #f0edef; overflow: hidden; }
.fashion-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { min-height: 415px; padding: clamp(35px, 5vw, 80px) clamp(8px, 3vw, 38px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; direction: ltr; }
.eyebrow-line { display: block; width: 27px; height: 1px; background: var(--accent); }
.hero-copy h1 { margin: 7px 0 20px; font-weight: 900; max-width: 13ch; letter-spacing: -.05em; }
.hero-lead { max-width: 44ch; margin: 0 0 24px; font-size: 15px; color: #6c626b; line-height: 2.15; }
.hero-footnote { display: flex; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 32px; color: #827882; direction: ltr; font: 11px 'Segoe UI', sans-serif; letter-spacing: .13em; }
.hero-visual { position: relative; min-height: 350px; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #b49a9f, #ddd0d1); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-graphic { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.graphic-arch { position: absolute; top: 14%; left: 25%; width: 52%; height: 94%; border-radius: 49% 49% 0 0; background: linear-gradient(150deg, #806474, #493342); transform: rotate(-11deg); box-shadow: 16px 22px 30px #39293922; }
.graphic-circle { position: absolute; inset-inline-end: -15%; top: -30%; width: 75%; aspect-ratio: 1; border: 1px solid #fff7; border-radius: 50%; }
.graphic-monogram { position: relative; font: 900 clamp(130px, 20vw, 300px)/1 Georgia, serif; color: #faf3f0; text-shadow: 0 15px 45px #3828332c; }
.hero-vertical { position: absolute; z-index: 3; top: 50%; inset-inline-end: 15px; writing-mode: vertical-rl; transform: translateY(-50%); font: 11px 'Segoe UI', sans-serif; letter-spacing: .2em; color: #fff; }
.hero-image-label { position: absolute; z-index: 3; inset-inline-start: 24px; bottom: 24px; padding: 10px 18px; color: white; background: #1e1b21b8; border: 1px solid #ffffff66; font-size: 12px; backdrop-filter: blur(10px); }
.category-section { padding-block: 68px 20px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.category-tile { min-width: 0; display: block; }
.category-media { width: 100%; aspect-ratio: 4/5; overflow: hidden; border-radius: 9px; background: #e9e3e2; position: relative; }
.category-tile:nth-child(2n) .category-media { background: #ece4e8; }
.category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-placeholder { display: grid; height: 100%; place-items: center; color: #b19fa9; font-size: 90px; font-family: Georgia, serif; }
.category-tile:hover img, .category-tile:focus-visible img { transform: scale(1.04); }
.category-tile-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 2px; }
.category-tile-footer strong { font-size: 15px; }
.category-tile-footer span { font-size: 21px; color: var(--accent); }
.product-section { padding-block: 55px 82px; }
.fashion-statement { background: var(--ink); color: white; }
.statement-inner { padding-block: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.statement-mark { font-size: 52px; color: #bf8d9e; line-height: 1; }
.statement-inner>div { flex: 1; }
.statement-inner p { font-size: 11px; color: #d7c6cf; margin: 0 0 3px; }
.statement-inner h2 { font-size: clamp(18px, 2.2vw, 28px); margin: 0; }
.statement-link { color: white; border-bottom: 1px solid #bd97a3; font-weight: 700; padding-bottom: 8px; white-space: nowrap; }
.custom-home-content { padding-block: 45px; }

/* Shop archive */
.woocommerce-page .wc-page, .woocommerce .wc-page { width: min(calc(100% - 32px), var(--max)); max-width: var(--max); margin-inline: auto; float: none; clear: both; min-width: 0; }
.shop-hero { min-height: 190px; background: linear-gradient(110deg, #f1e4e9 5%, #f7eff0 63%, #e3d0da); display: flex; gap: 24px; align-items: center; justify-content: space-between; overflow: hidden; border-radius: 14px; padding: 25px clamp(21px, 5vw, 60px); margin-bottom: 27px; }
.shop-hero-copy { position: relative; z-index: 1; }
.shop-hero h1 { font-size: clamp(26px, 3.6vw, 43px); margin: 0 0 4px; font-weight: 900; }
.shop-hero-copy>p:last-child { color: #786773; margin: 5px 0 0; }
.shop-hero-art { direction: ltr; color: #8e657639; font: 900 clamp(72px, 10vw, 142px)/1 Georgia, serif; letter-spacing: -.07em; transform: rotate(-10deg); white-space: nowrap; user-select: none; }
.shop-hero-art span { font-weight: 400; }
.shop-categories { display: flex; gap: 10px; flex-wrap: wrap; padding: 2px 0 27px; }
.shop-categories a { display: inline-flex; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; font-size: 12px; font-weight: 700; }
.shop-categories a:hover, .shop-categories a.is-current { color: white; background: var(--ink); border-color: var(--ink); }
.woocommerce .woocommerce-breadcrumb { font-size: 11px; margin-bottom: 20px; color: #897e84; }
.woocommerce .woocommerce-result-count { font-size: 12px; color: var(--muted); margin-block: 8px 16px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--line); background: white; padding: 10px 16px; border-radius: 9px; color: var(--ink); }
.woocommerce .woocommerce-notices-wrapper { width: 100%; }

/* Product cards: 4:5 imagery, clear pricing, accessible actions */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product { min-width: 0; width: auto !important; float: none !important; margin: 0 !important; overflow: hidden; background: #fff; border: 1px solid #ebe7e7; border-radius: var(--radius); padding: 9px 9px 15px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e0ccd4; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 9px; background: #f2f0ee; margin: 0 0 13px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 3px; min-height: 43px; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.75; }
.woocommerce ul.products li.product .price { color: var(--accent); padding: 0 3px; font-size: 14px; font-weight: 800; margin: 5px 0 12px; }
.woocommerce ul.products li.product .price del { color: #9e969b; font-size: 11px; font-weight: 400; }
.woocommerce ul.products li.product .button { width: calc(100% - 4px); margin: 9px 2px 0; padding: 10px 6px; font-size: 12px; border-radius: 8px; line-height: 1.5; }
.woocommerce ul.products li.product .moda-quick-cart { font-size: 11px; margin-top: 6px; background: transparent; color: var(--accent); border: 1px solid #ead8df; }
.woocommerce ul.products li.product .moda-quick-cart:hover { background: var(--blush); color: var(--accent-dark); }
.woocommerce span.onsale { left: auto; right: 20px; top: 20px; min-height: 0; min-width: 0; border-radius: 6px; background: var(--accent); padding: 8px 11px; line-height: 1; font-size: 11px; }
.woocommerce nav.woocommerce-pagination { margin-block: 42px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; justify-content: center; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { padding: 11px 15px; background: white; border-radius: 8px; }
.woocommerce nav.woocommerce-pagination ul li span.current { color: white; background: var(--accent); }

/* Native WooCommerce variable-product UX: never short-circuit WC validation or stock handling. */
.woocommerce div.product .product_title { font-size: clamp(25px, 3vw, 36px); font-weight: 800; }
.woocommerce div.product div.images img { border-radius: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--accent); font-weight: 800; }
.woocommerce div.product .woocommerce-tabs { margin-top: 44px; }
.woocommerce div.product form.cart .variations { width: 100%; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { padding-block: 7px; }
.woocommerce div.product form.cart .variations select { border: 1px solid #dcd4d8; padding: 11px 14px; background: white; border-radius: 8px; min-width: 160px; }
.woocommerce div.product form.cart .variations label { font-weight: 700; }
.woocommerce div.product form.cart .reset_variations { color: var(--accent); }
.woocommerce .quantity .qty { max-width: 76px; border-radius: 8px; border: 1px solid var(--line); padding: 9px; }
.woocommerce form.checkout, .woocommerce .woocommerce-cart-form, .woocommerce-account .woocommerce { max-width: 100%; overflow-wrap: anywhere; }
.woocommerce .woocommerce-info { border-top-color: var(--accent); }
.woocommerce .woocommerce-info::before { color: var(--accent); }

/* Accessible fallback widget styling if blocks or widgets appear in content. */
.widget-area .widget, .widget-area .wp-block-group { border: 1px solid var(--line); background: white; padding: 18px; margin-bottom: 20px; border-radius: 12px; }
.widget-area ul { margin: 0; padding-inline-start: 0; list-style: none; }
.widget-area li { padding: 7px 0; border-bottom: 1px solid var(--line); }

/* Footer */
.benefits { background: #fff; border-block: 1px solid var(--line); }
.benefit-grid { display: grid; gap: 13px; padding-block: 26px; }
.benefit { display: flex; gap: 16px; align-items: center; }
.benefit>span { border: 1px solid #eadde1; background: #f9f3f5; color: var(--accent); display: grid; place-items: center; flex: 0 0 47px; height: 47px; border-radius: 50%; font-size: 25px; }
.benefit strong { display: block; font-size: 13px; }
.benefit small { color: var(--muted); font-size: 11px; }
.site-footer { background: #232127; color: #f5f2f4; padding-block: 63px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 42px; }
.footer-grid h3 { font-size: 15px; margin: 0 0 18px; }
.footer-about { max-width: 340px; }
.footer-brand { display: inline-flex; flex-direction: column; font-weight: 900; font-size: 26px; color: white; }
.footer-brand span { margin-top: 5px; color: #ab9ba5; font: 10px 'Segoe UI', sans-serif; letter-spacing: .25em; }
.footer-grid p { max-width: 40ch; color: #bfb6be; font-size: 12px; line-height: 2.1; }
.footer-button { display: inline-flex; gap: 17px; align-items: center; background: #e9d9e1; color: #33252e; padding: 10px 17px; border-radius: 6px; margin-top: 9px; font-size: 12px; font-weight: 700; }
.footer-button:hover { background: white; color: #33252e; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #cdc5cb; font-size: 12px; }
.footer-links a:hover { color: white; }
.footer-edition { border-top: 1px solid #514752; margin-top: 33px; padding-top: 14px; font: 11px 'Segoe UI', sans-serif; letter-spacing: .1em; color: #af9ca8; }
.footer-edition span { color: #98657e; }
.footer-bottom { border-top: 1px solid #444047; padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 11px; color: #ada4ab; }

@media (min-width: 600px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
  .woocommerce ul.products { gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 820px) {
  .fashion-hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-copy { min-height: 570px; }
  .hero-visual { min-height: 570px; }
}
@media (min-width: 1050px) {
  .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .footer-grid { grid-template-columns: 1.65fr 1fr 1fr 1fr; gap: 50px; }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .header-primary { gap: 13px; }
  .action-label, .nav-note { display: none; }
  .nav-inner { gap: 20px; }
}
@media (max-width: 760px) {
  .topbar-sub { display: none; }
  .header-primary { display: flex; flex-wrap: wrap; min-height: 70px; gap: 11px; padding-block: 12px; }
  .menu-toggle { display: block; order: 0; }
  .branding { order: 1; flex: 1; }
  .brand-wordmark { font-size: 20px; }
  .brand-tagline { font-size: 8px; }
  .header-actions { order: 2; gap: 6px; }
  .header-action { padding: 8px; }
  .header-action svg { width: 18px; height: 18px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; height: 44px; margin: 0; }
  .nav-wrap { display: none; }
  .nav-wrap.is-open { display: block; }
  .nav-inner { display: block; padding-block: 14px; }
  .shop-shortcut { display: block; background: #f6eaf0; border-radius: 8px; padding: 11px 13px; }
  .nav-list { display: block; margin-top: 10px; }
  .nav-list>li>a { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .nav-list .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding-inline-start: 22px; }
  .hero-copy { min-height: 365px; }
  .hero-visual { min-height: 350px; }
  .shop-hero { min-height: 157px; }
  .shop-hero-art { font-size: 66px; }
  .woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none; }
  .woocommerce .woocommerce-result-count { margin-top: 8px; }
}
@media (max-width: 420px) {
  .shop-hero-art { display: none; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-link { margin-top: 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 12px; }
  .woocommerce ul.products li.product .button { font-size: 11px; padding-inline: 4px; }
  .woocommerce ul.products { gap: 10px; }
  .hero-copy { padding-block: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
