/* Dveoo — theme layer (loads after base.css). One definition per component. */

:root { --serif: 'Bodoni Moda', 'Playfair Display', Georgia, serif; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp-field { position: absolute; left: -9999px; }
.locked { overflow: hidden; }
.text-center { text-align: center; }
h1, h2, h3, h4, .product_title, .woocommerce-loop-product__title { text-transform: none; }

/* ---- Brand name: always "Dveoo" in the editorial serif ---- */
.brand-name { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; text-transform: none; font-style: normal; }
.eyebrow .brand-name { font-size: 1.35em; letter-spacing: .02em; }

/* ---- Header ---- */
.site-header { position: relative; z-index: 8; height: 72px; padding: 0 var(--pad); display: grid; grid-template-columns: 40px 40px 40px 1fr auto 40px; align-items: center; gap: 6px; background: #fff; color: #000; border-bottom: 1px solid var(--line); transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.site-header .wordmark { justify-self: center; display: block; color: inherit; font-size: clamp(26px, 3vw, 34px); line-height: 1; white-space: nowrap; text-decoration: none; }
.site-header .wordmark .brand-name { font-size: 1em; font-weight: 500; letter-spacing: .02em; }
.region-pill { justify-self: end; padding: 6px 10px; border: 1px solid currentColor; background: transparent; color: inherit; font: 600 10px var(--sans); letter-spacing: .1em; cursor: pointer; }
.header-anchor { position: relative; z-index: 8; }
.dveoo-front .header-anchor { height: 0; }
.dveoo-front .site-header:not(.scrolled) { position: absolute; top: 0; left: 0; right: 0; background: transparent; color: #fff; border-bottom-color: transparent; }
.dveoo-front .site-header:not(.scrolled) .person-mark::before { background: transparent; }
.dveoo-front .site-header.scrolled { position: fixed; top: 0; left: 0; right: 0; background: #fff; color: #000; border-bottom: 1px solid rgba(0,0,0,.14); box-shadow: 0 8px 25px rgba(0,0,0,.06); }
body.admin-bar .site-header.scrolled { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header.scrolled { top: 46px; } }
@media (max-width: 640px) { .site-header { grid-template-columns: 34px 34px 34px 1fr auto 34px; padding: 0 14px; } .region-pill { padding: 5px 7px; font-size: 9px; } }

/* ---- Drawers & panels ---- */
.drawer-text { margin: 0 0 26px; color: var(--muted); line-height: 1.7; }
.drawer-sub { margin: 0 0 14px; font-size: 22px; font-weight: 400; }
.drawer-nav a, .drawer-nav button { font-size: 16px; font-weight: 400; letter-spacing: .04em; }
.drawer-bottom a, .drawer-bottom button { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.drawer-bottom .region-link { text-transform: none; letter-spacing: .02em; font-size: 12px; text-align: start; }
.welcome-actions { display: grid; gap: 12px; }
.button-outline { background: transparent; color: #000; border: 1px solid #000; }
.button-outline:hover { background: #000; color: #fff; }
.continue-link { display: block; margin: 14px 0 10px; text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; color: inherit; }
.shipping-note { display: block; margin: 6px 0 4px; color: #333; line-height: 1.5; }
.bag-footer .inline-button { margin-top: 8px; }
.checkout-button { text-decoration: none; }
.checkout-button.is-disabled { opacity: .4; pointer-events: none; }
.bag-item a { color: inherit; }
.bag-item img { width: 100%; height: 100%; object-fit: cover; }
.discount-popup { visibility: hidden; }
.discount-popup.open { visibility: visible; }
.chat-form { flex-wrap: wrap; align-items: center; }
.chat-form .chat-body { flex: 0 0 100%; }
.chat-form input { flex: 1 1 70%; }
.chat-form .chat-email { flex: 0 0 100%; }
.cookie-bar[hidden] { display: none; }

/* ---- Country / region & language selector ---- */
.region-modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(0,0,0,.45); }
.region-modal.open { display: flex; }
.region-panel { position: relative; width: min(760px, 100%); max-height: 88vh; overflow-y: auto; padding: clamp(24px, 4vw, 44px); background: #fff; color: #000; }
.region-panel .drawer-close { position: absolute; top: 12px; right: 12px; }
.region-title { margin: 0 34px 8px 0; font-size: clamp(22px, 3vw, 30px); font-weight: 400; letter-spacing: -.02em; }
.region-hint { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.region-group { padding: 18px 0 6px; border-top: 1px solid var(--line); }
.region-group h3 { margin: 0 0 12px; font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 18px; margin: 0; padding: 0; list-style: none; }
.region-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: inherit; text-decoration: none; font-size: 13px; border-bottom: 1px solid transparent; }
.region-list a small { color: var(--muted); font-size: 11px; }
.region-list a:hover, .region-list a.active { border-bottom-color: #000; }
.region-list a.active span { font-weight: 700; }

/* ---- Category chips ---- */
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.category-nav a { padding: 9px 15px; border: 1px solid var(--line); color: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.category-nav a.active, .category-nav a:hover { background: #000; border-color: #000; color: #fff; }

/* ---- Footer ---- */
.dv-footer { padding: clamp(40px, 6vw, 72px) var(--pad) 26px; border-top: 1px solid #000; background: #fff; }
.dv-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.dv-footer h4 { margin: 0 0 14px; font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dv-footer a, .dv-footer button { display: block; margin: 0 0 9px; padding: 0; border: 0; background: transparent; color: #000; font: 300 13px var(--sans); text-align: start; text-decoration: none; cursor: pointer; }
.dv-footer a:hover, .dv-footer button:hover { text-decoration: underline; text-underline-offset: 4px; }
.dv-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.dv-footer-bottom .footer-brand { display: inline-block; margin: 0; font-size: 28px; line-height: 1; color: #000; }
.dv-footer-bottom .footer-brand .brand-name { font-size: 1em; }
.dv-footer-bottom .region-link { display: inline-block; margin: 0; padding: 8px 12px; border: 1px solid var(--line); font-size: 12px; }
.dv-footer-bottom .copyright { color: var(--muted); font-size: 11px; }
.dv-footer-bottom .copyright .brand-name { font-size: 1.15em; }
@media (max-width: 760px) { .dv-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dv-footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ---- Sign in / Create account ---- */
.auth-box { max-width: 460px; margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 14px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.auth-tabs button.active { color: #000; border-bottom-color: #000; }
.auth-panel[hidden] { display: none; }
.auth-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; }
.woocommerce-account .woocommerce, .woocommerce-checkout .woocommerce { max-width: 1100px; margin: 0 auto; }

/* ---- Pages & WooCommerce ---- */
.page-content { max-width: 1100px; margin: 0 auto; }
.page-content.woo-page { max-width: 1200px; }
.page-title { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 42px); font-weight: 400; letter-spacing: -.025em; line-height: 1.1; }
.rte { max-width: 780px; color: var(--muted); line-height: 1.8; }
.rte a { text-decoration: underline; }
.article-image img { width: 100%; height: auto; }
.pagination { margin-top: 40px; text-align: center; font-size: 12px; }
.pagination .page-numbers { margin: 0 8px; }
.woo-wrap { max-width: 1280px; margin: 0 auto; }
.woocommerce-products-header__title, .woocommerce-products-header .page-title { margin: 0 0 20px; font-size: clamp(26px, 3.4vw, 42px); font-weight: 400; letter-spacing: -.025em; line-height: 1.1; }
.woocommerce .woocommerce-result-count { margin: 0 0 18px; font-size: 12px; }
.woocommerce .woocommerce-ordering { margin: 0 0 18px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--line); background: transparent; padding: 8px 10px; font: 12px var(--sans); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; margin: 0; padding: 0; list-style: none; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { position: relative; width: auto; float: none; margin: 0; padding: 0; }
.woocommerce ul.products li.product a img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; margin: 0 0 12px; background: #f4f4f4; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.woocommerce ul.products li.product .price { display: block; margin-top: 6px; color: #000; font-size: 12px; }
.woocommerce ul.products li.product .button { display: flex; justify-content: center; width: 100%; margin-top: 12px; }
.woocommerce span.onsale { top: 10px; left: 10px; right: auto; min-width: 0; min-height: 0; padding: 5px 9px; border-radius: 0; background: #fff; color: #000; font-size: 9px; line-height: 1.2; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 72px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; margin: 0; }
.woocommerce div.product div.summary { position: sticky; top: 30px; }
.woocommerce div.product .product_title { margin: 0 0 10px; font-size: clamp(24px, 3vw, 38px); font-weight: 400; letter-spacing: -.025em; line-height: 1.1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { margin: 0 0 22px; color: #000; font-size: 18px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { display: block; padding: 6px 0; text-align: start; }
.woocommerce div.product form.cart .variations select { width: 100%; padding: 12px 10px; border: 1px solid var(--line); background: #fff; font: 13px var(--sans); }
.woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; margin-top: 14px; }
.woocommerce div.product form.cart div.quantity { margin: 0 12px 0 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related.products, .woocommerce div.product .upsells.products { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; background: transparent; border-color: var(--line); }
.woocommerce div.product .woocommerce-Tabs-panel h2, .woocommerce div.product .related.products > h2 { font-size: 22px; font-weight: 400; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce div.product form.cart .button { border-radius: 0; background: #000; color: #fff; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 15px 22px; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #222; color: #fff; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { border-top-color: #000; background: #f6f6f6; color: #000; }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: #000; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 12px; border: 1px solid var(--line); border-radius: 0; font: 13px var(--sans); }
.woocommerce table.shop_table { border-radius: 0; border-color: var(--line); }
.woocommerce table.shop_table th { font-weight: 600; text-transform: none; letter-spacing: 0; }
.wc-block-components-button:not(.is-link) { border-radius: 0; background: #000; color: #fff; }
@media (max-width: 1000px) { .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) { .woocommerce div.product { grid-template-columns: 1fr; } .woocommerce div.product div.summary { position: static; } }

/* ---- Arabic / RTL ---- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .drawer { left: 0; right: auto; transform: translateX(-103%); }
html[dir="rtl"] .drawer.right { left: auto; right: 0; transform: translateX(103%); }
html[dir="rtl"] .drawer.open { transform: translateX(0); }
html[dir="rtl"] .chat-button, html[dir="rtl"] .chat-panel { right: auto; left: 20px; }
html[dir="rtl"] .arrow, html[dir="rtl"] .drawer-nav span { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .region-panel .drawer-close { right: auto; left: 12px; }
