/*
Theme Name: Ladies Only
Theme URI: https://ladiesonly.lk
Author: Firows Tech
Description: Ladies Only — Exclusively Her. Minimal, fast, SEO-ready WooCommerce block theme.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ladiesonly
*/

:root {
  --brand-burgundy: #5A0D2E;
  --brand-burgundy-dark: #430921;
  --brand-gold: #D4AF37;
  --brand-blush: #D9A7B1;
  --brand-cream: #FFF7F2;
  --brand-charcoal: #2B2B2B;
  --lo-muted: #6E6266;
  --lo-line: #EADDD6;
  --lo-soft: #F6E9E4;
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: Montserrat, Arial, sans-serif;
  --lo-gutter: clamp(16px, 4vw, 48px);
}

html { scroll-behavior: smooth; }
body { background: var(--brand-cream); color: var(--brand-charcoal); font-family: var(--body-font); -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
a { color: var(--brand-burgundy); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 400; color: var(--brand-charcoal); }
.lo-wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--lo-gutter); }
.lo-narrow { max-width: 860px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.lo-ico { display: block; }

/* Small uppercase labels (fashion-house style) */
.lo-eyebrow, .lo-nav a, .lo-tile-name, .lo-btn, .lo-link, .lo-footer h4, .lo-drawer-title, .lo-tabbar span {
  font-family: var(--body-font); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 500;
}

/* Announcement */
.lo-announce { background: var(--brand-burgundy); color: #fff; text-align: center; padding: 8px 16px; }
.lo-announce p { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* Header */
.lo-header { position: sticky; top: 0; z-index: 60; background: rgba(255,247,242,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lo-line); }
.lo-header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 1400px; margin: 0 auto; padding: 12px var(--lo-gutter); }
.lo-header-left { display: flex; align-items: center; gap: 28px; }
.lo-header-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.lo-header a, .lo-header summary { color: var(--brand-charcoal); text-decoration: none; }
.lo-logo img { display: block; height: 52px; width: auto; }
.lo-nav { display: flex; gap: 26px; }
.lo-nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.lo-nav a:hover { border-color: var(--brand-burgundy); color: var(--brand-burgundy); }
.lo-with-count { position: relative; }
.lo-count { position: absolute; top: -6px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand-burgundy); color: #fff; font-size: 10px; line-height: 17px; text-align: center; font-weight: 600; }
.lo-count[hidden] { display: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* Search */
.lo-search-toggle { position: static; }
.lo-search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--brand-cream); border-bottom: 1px solid var(--lo-line); padding: 18px var(--lo-gutter); display: flex; gap: 0; }
.lo-search-panel input { flex: 1; border: 0; border-bottom: 1px solid var(--brand-charcoal); background: transparent; padding: 12px 2px; font: inherit; font-size: 16px; outline: none; }
.lo-search-panel button { border: 0; background: var(--brand-burgundy); color: #fff; padding: 0 26px; font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }

/* Drawer menu */
.lo-drawer > summary { display: none; }
.lo-drawer-panel { position: fixed; inset: 0 auto 0 0; width: min(88vw, 380px); background: var(--brand-cream); z-index: 100; overflow-y: auto; padding: 18px 26px 90px; box-shadow: 0 0 0 100vmax rgba(43,43,43,.35); }
.lo-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--heading-font); font-size: 22px; }
.lo-drawer-close { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--brand-charcoal); }
.lo-drawer-title { margin: 22px 0 6px; color: var(--brand-burgundy); }
.lo-drawer-link { display: block; padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--lo-line); }
.lo-drawer-link.is-strong { font-weight: 600; }

/* Mobile tab bar */
.lo-tabbar { display: none; }

@media (max-width: 960px) {
  .lo-nav, .lo-hide-sm { display: none !important; }
  .lo-drawer > summary { display: block; }
  .lo-logo img { height: 40px; }
  .lo-header-row { padding: 10px 16px; }
  .lo-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: rgba(255,247,242,.98); border-top: 1px solid var(--lo-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .lo-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--brand-charcoal); text-decoration: none; padding: 4px 0; }
  .lo-tabbar span { font-size: 9.5px; letter-spacing: .08em; }
  .lo-tabbar .lo-count { top: 0; right: calc(50% - 22px); }
  body { padding-bottom: 64px; }
}

/* Buttons & links */
.lo-btn, .wp-element-button, .wc-block-components-button:not(.is-link), .single_add_to_cart_button, .button.alt {
  background: var(--brand-burgundy) !important; color: #fff !important; border: 1px solid var(--brand-burgundy) !important; border-radius: 0 !important;
  padding: 15px 30px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: var(--body-font); font-size: 12px !important; letter-spacing: .16em; text-transform: uppercase; transition: background .2s ease, color .2s ease;
}
.lo-btn:hover, .wp-element-button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--brand-burgundy-dark) !important; }
.lo-btn-ghost { background: transparent !important; color: var(--brand-burgundy) !important; }
.lo-btn-ghost:hover { background: var(--brand-burgundy) !important; color: #fff !important; }
.lo-link { color: var(--brand-charcoal); text-decoration: none; border-bottom: 1px solid var(--brand-charcoal); padding-bottom: 3px; }
.lo-link:hover { color: var(--brand-burgundy); border-color: var(--brand-burgundy); }

/* Hero */
.lo-hero { display: grid; grid-template-columns: 1.15fr .85fr; min-height: min(78vh, 760px); }
.lo-hero-visual { position: relative; background: var(--brand-burgundy); overflow: hidden; }
.lo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lo-hero-brand { position: absolute; inset: 0; display: grid; place-items: center; }
.lo-hero-brand img { width: min(42%, 300px); height: auto; }
.lo-hero-brand::before { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(212,175,55,.35); pointer-events: none; }
.lo-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 6vw, 96px); }
.lo-eyebrow { color: var(--brand-burgundy); margin: 0 0 22px; }
.lo-hero h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: 1; margin: 0 0 26px; letter-spacing: -.01em; }
.lo-hero h1 em { color: var(--brand-burgundy); }
.lo-lead { color: var(--lo-muted); font-size: 16px; line-height: 1.75; max-width: 440px; margin: 0 0 34px; }
.lo-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .lo-hero { grid-template-columns: 1fr; min-height: 0; }
  .lo-hero-visual { aspect-ratio: 4 / 3.4; }
  .lo-hero-copy { padding: 36px 20px 44px; }
  .lo-cta .lo-btn { flex: 1 1 150px; }
}

/* Sections & headings */
.lo-section { padding: clamp(56px, 8vw, 104px) 0; }
.lo-head { margin: 0 0 32px; }
.lo-head h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 8px; }
.lo-head p { margin: 0; color: var(--lo-muted); }
.lo-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* Category tiles */
.lo-new { padding-top: 0; }
.lo-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.lo-group-lingerie .lo-tiles { grid-template-columns: repeat(5, 1fr); }
.lo-group-more .lo-tiles { grid-template-columns: repeat(2, 1fr); }
.lo-group-lingerie { background: #fff; }
.lo-tile { display: block; text-decoration: none; color: var(--brand-charcoal); }
.lo-tile-media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--lo-soft); position: relative; }
.lo-group-more .lo-tile-media { aspect-ratio: 21 / 9; }
.lo-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lo-tile:hover .lo-tile-media img { transform: scale(1.04); }
.lo-tile-media.is-empty { display: grid; place-items: center; background: linear-gradient(180deg, var(--lo-soft), #F1DCD6); }
.lo-tile-word { font-family: var(--heading-font); font-style: italic; font-size: clamp(22px, 2.2vw, 34px); color: var(--brand-burgundy); text-align: center; padding: 0 10px; position: relative; }
.lo-tile-word::after { content: ""; display: block; width: 28px; height: 1px; background: var(--brand-gold); margin: 14px auto 0; }
.lo-tile:hover .lo-tile-word { color: var(--brand-charcoal); }
.lo-group-lingerie .lo-tile-media.is-empty { background: linear-gradient(180deg, var(--brand-cream), var(--lo-soft)); }
.lo-tile-name { display: block; padding: 14px 0 0; }
.lo-tile:hover .lo-tile-name { color: var(--brand-burgundy); }
@media (max-width: 1000px) {
  .lo-tiles, .lo-group-lingerie .lo-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: calc(-1 * var(--lo-gutter)); padding-right: var(--lo-gutter); scrollbar-width: none; }
  .lo-tiles::-webkit-scrollbar { display: none; }
  .lo-tile { flex: 0 0 42%; scroll-snap-align: start; }
  .lo-group-more .lo-tiles { display: grid; grid-template-columns: 1fr 1fr; margin-right: 0; padding-right: 0; }
}

/* Product cards */
.lo-products ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 28px 16px !important; list-style: none; padding: 0; margin: 0; }
.lo-products ul.products::before, .lo-products ul.products::after { display: none !important; }
.lo-products li.product { width: auto !important; margin: 0 !important; float: none !important; position: relative; text-align: left; }
.lo-products li.product a { text-decoration: none; color: var(--brand-charcoal); }
.lo-products li.product img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--lo-soft); margin: 0 0 12px !important; }
.lo-products .woocommerce-loop-product__title { font-family: var(--body-font) !important; font-size: 12.5px !important; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; padding: 0 !important; margin: 0 0 6px !important; }
.lo-products .price { color: var(--brand-charcoal) !important; font-size: 13px !important; }
.lo-products .button { display: none !important; }
@media (max-width: 900px) { .lo-products ul.products { grid-template-columns: 1fr 1fr; gap: 24px 10px !important; } }

.wc-block-product-template { gap: 28px 16px !important; }
.wc-block-product { text-align: left !important; position: relative; }
.lo-card-media { position: relative; }
.wc-block-components-product-image { background: var(--lo-soft); margin-bottom: 12px !important; }
.wc-block-components-product-image img { aspect-ratio: 3 / 4; object-fit: cover; }
.wc-block-product .wp-block-post-title, .wc-block-product .wp-block-post-title a { font-family: var(--body-font) !important; font-size: 12.5px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-charcoal); text-decoration: none; font-weight: 400; text-align: left !important; }
.wc-block-components-product-price { color: var(--brand-charcoal) !important; font-size: 13px !important; text-align: left !important; }
.wc-block-product .wp-block-button { display: none; }

/* Wishlist heart */
.lo-wish { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,247,242,.9); color: var(--brand-charcoal); cursor: pointer; }
.lo-wish.is-on { color: var(--brand-burgundy); }
.lo-wish.is-on svg path { fill: var(--brand-burgundy); }
.lo-wish-label { position: static; width: auto; height: auto; border-radius: 0; background: transparent; display: inline-flex; gap: 10px; align-items: center; margin: 16px 0 0; padding: 0; font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.lo-wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 14px; margin: 10px 0 30px; }
.lo-wcard { position: relative; }
.lo-wcard-media { display: block; aspect-ratio: 3 / 4; background: var(--lo-soft); overflow: hidden; }
.lo-wcard-media img { width: 100%; height: 100%; object-fit: cover; }
.lo-wcard-name { display: block; margin: 12px 0 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-charcoal); text-decoration: none; }
.lo-wcard-price { font-size: 13px; }
@media (max-width: 900px) { .lo-wishlist-grid { grid-template-columns: 1fr 1fr; } }

/* Promise band */
.lo-promise { background: var(--brand-burgundy); color: #fff; padding: clamp(48px, 7vw, 84px) 0; }
.lo-promise-title { font-family: var(--heading-font); font-size: clamp(28px, 3.2vw, 42px); text-align: center; margin: 0 0 40px; color: #fff; }
.lo-promise-title em { color: var(--brand-gold); }
.lo-promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.lo-promise li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lo-promise svg { color: var(--brand-gold); margin-bottom: 6px; }
.lo-promise strong { font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.lo-promise span { color: rgba(255,255,255,.72); font-size: 13.5px; }
@media (max-width: 760px) { .lo-promise ul { grid-template-columns: 1fr 1fr; gap: 30px 16px; } }

/* Split: fit + FAQ */
.lo-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lo-split h2 { font-size: clamp(32px, 3.6vw, 48px); margin: 0 0 18px; }
@media (max-width: 900px) { .lo-split { grid-template-columns: 1fr; } }

/* FAQ */
.lo-faq details { border-bottom: 1px solid var(--lo-line); }
.lo-faq summary { padding: 20px 36px 20px 0; font-size: 15.5px; font-weight: 500; position: relative; }
.lo-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 300; color: var(--brand-burgundy); transition: transform .2s ease; }
.lo-faq details[open] summary::after { transform: rotate(45deg); }
.lo-faq details p { margin: 0 0 20px; color: var(--lo-muted); line-height: 1.75; }
.lo-faq > p { margin-top: 26px; }

/* About */
.lo-about { background: #fff; text-align: center; border-top: 1px solid var(--lo-line); }
.lo-about h2 { font-size: clamp(30px, 3.2vw, 42px); margin: 0 0 20px; }
.lo-about p { color: var(--lo-muted); font-size: 16px; line-height: 1.85; }

/* Size guide & tables */
.lo-size h3 { font-size: 26px; margin: 30px 0 12px; }
.lo-table-wrap { overflow-x: auto; border: 1px solid var(--lo-line); background: #fff; }
.lo-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.lo-table th, .lo-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--lo-line); }
.lo-table th { background: var(--brand-cream); font-weight: 600; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-burgundy); }
.lo-table tr:last-child td { border-bottom: 0; }
.lo-note { font-size: 13.5px; color: var(--lo-muted); }
.lo-steps { padding-left: 20px; line-height: 1.85; }

/* Product page extras */
.lo-pdp-trust { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--lo-line); display: grid; gap: 10px; font-size: 13.5px; }
.lo-pdp-trust li { display: flex; gap: 10px; align-items: center; }
.lo-pdp-trust svg { color: var(--brand-burgundy); flex: none; }
.single-product .wp-block-post-title { font-size: clamp(26px, 2.6vw, 34px) !important; }
.lo-ship-note { margin: 0 0 20px; padding: 12px 16px; background: var(--lo-soft); color: var(--brand-burgundy); font-size: 13px; text-align: center; letter-spacing: .04em; }

/* Shop filters */
.lo-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 0 0 22px; margin: 0 0 26px; border-bottom: 1px solid var(--lo-line); }
.lo-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lo-muted); }
.lo-filters select, .lo-filters input { font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--brand-charcoal); border: 1px solid var(--lo-line); border-radius: 0; padding: 10px 12px; background: #fff; min-width: 130px; }
.lo-filters input[type=number] { width: 120px; min-width: 0; }
.lo-filters .lo-btn { padding: 12px 24px; }
@media (max-width: 600px) { .lo-filters label { flex: 1 1 44%; } .lo-filters select, .lo-filters input[type=number] { width: 100%; } }

/* Pages */
.lo-page-title { font-size: clamp(34px, 4vw, 52px) !important; margin: 0 0 18px; }
.lo-page-content { font-size: 15.5px; line-height: 1.8; }
.lo-page-content h2 { font-size: 28px; margin: 36px 0 10px; }

/* WooCommerce global touches */
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.wp-block-query-title, .wc-block-page-title, h1.wp-block-query-title { font-size: clamp(30px, 3.4vw, 46px) !important; }
.wc-block-components-form .wc-block-components-text-input input, .wc-block-components-text-input input, .wc-blocks-components-select__select { border-radius: 0 !important; }

/* Footer */
.lo-footer { background: var(--brand-burgundy); color: rgba(255,255,255,.78); }
.lo-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; max-width: 1400px; margin: 0 auto; padding: 72px var(--lo-gutter) 48px; }
.lo-footer-brand img { width: 108px; height: auto; margin-bottom: 18px; }
.lo-footer h4 { color: var(--brand-gold); margin: 0 0 18px; }
.lo-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.lo-footer a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; }
.lo-footer a:hover { color: #fff; }
.lo-footer p { font-size: 14px; line-height: 1.75; margin: 0 0 12px; max-width: 320px; }
.lo-footer-bottom { max-width: 1400px; margin: 0 auto; padding: 20px var(--lo-gutter); border-top: 1px solid rgba(212,175,55,.25); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; }
@media (max-width: 900px) { .lo-footer-grid { grid-template-columns: 1fr 1fr; } .lo-footer-brand { grid-column: 1 / -1; } }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Checkout header */
.lo-checkout-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--lo-line); margin-bottom: 26px; }
.lo-checkout-head .lo-logo img { height: 44px; width: auto; display: block; }
.lo-back, .lo-secure { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-charcoal); text-decoration: none; }
.lo-secure { justify-self: end; display: inline-flex; gap: 8px; align-items: center; color: var(--lo-muted); }
@media (max-width: 600px) { .lo-secure { display: none; } .lo-checkout-head .lo-logo img { height: 34px; } }

/* Product page layout */
.single-product .wp-block-columns { gap: clamp(24px, 4vw, 64px) !important; }
.single-product .wp-block-columns > .wp-block-column:first-child { flex-basis: 56% !important; }
.single-product .wp-block-woocommerce-product-image-gallery, .single-product .woocommerce-product-gallery { background: var(--lo-soft); }
.single-product .wc-block-components-product-price, .single-product .price { font-size: 18px !important; }
.lo-filters.alignwide { max-width: 1400px !important; }
.woocommerce-products-header__title, .wp-block-query-title { margin-top: 10px; }

/* Final polish */
.lo-tile-media.is-empty + .lo-tile-name { display: none; }
@media (max-width: 600px) {
  .lo-announce p { font-size: 9.5px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lo-filters label { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .lo-filters select, .lo-filters input, .lo-filters input[type=number] { width: 100%; min-width: 0; box-sizing: border-box; }
  .lo-filters .lo-btn { flex: 1 1 auto; }
}
.woocommerce-ordering select, .wc-block-catalog-sorting select, select.orderby { font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 0; border-bottom: 1px solid var(--brand-charcoal); background: transparent; padding: 6px 2px; border-radius: 0; }
