/* KING BRAND — editorial storefront. All assets and fonts stay local. */
:root {
  --king-navy: #122033;
  --king-ink: #162132;
  --king-gold: #a78c54;
  --king-gold-dark: #796234;
  --king-paper: #fff;
  --king-sand: #f7f5f1;
  --king-muted: #65676b;
  --king-line: #e5e2dc;
  --king-width: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--king-paper); color: var(--king-ink); font: 400 15px/1.8 Tahoma, Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .3em; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, input[type='submit'], input[type='button'] { border-radius: 0; }
:focus-visible { outline: 2px solid var(--king-gold-dark); outline-offset: 5px; }
::selection { background: #e7dcc4; color: var(--king-navy); }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: .5rem; right: .5rem; padding: .5rem 1rem; background: var(--king-navy); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); clip: auto; clip-path: none; width: auto; height: auto; white-space: normal; }
.container { width: min(var(--king-width), calc(100% - 72px)); margin-inline: auto; }
.preview-notice { padding: 9px 20px; background: var(--king-sand); color: #605743; text-align: center; font-size: 11px; letter-spacing: .02em; border-bottom: 1px solid var(--king-line); }
.site-header { position: relative; z-index: 20; background: var(--king-paper); }
.header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 106px; gap: 24px; width: min(var(--king-width), calc(100% - 72px)); margin-inline: auto; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions:first-child { justify-content: flex-start; }
.header-actions:last-child { justify-content: flex-end; }
.header-brand { text-align: center; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-width: 210px; max-height: 72px; width: auto; object-fit: contain; }
.header-actions a, .header-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; border: 0; padding: 8px; background: transparent; }
.header-actions svg { width: 21px; height: 21px; stroke: currentColor; }
.brand-lockup { color: var(--king-navy); text-align: center; text-decoration: none; line-height: 1; display: inline-flex; flex-direction: column; align-items: center; }
.brand-crown { width: 27px; height: 20px; margin-bottom: 7px; fill: var(--king-gold); }
.brand-name { font: 400 29px/1 Georgia, 'Times New Roman', serif; letter-spacing: .1em; white-space: nowrap; }
.brand-subtitle { display: block; font: 400 8px/1.3 Arial, sans-serif; letter-spacing: .35em; margin-top: 8px; }
.header-note { font-size: 11px; color: var(--king-muted); }
.menu-toggle { display: none !important; }
.category-nav { border-top: 1px solid var(--king-line); border-bottom: 1px solid var(--king-line); background: white; }
.category-nav__list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 38px; margin: 0; padding: 0 24px; min-height: 55px; list-style: none; }
.category-nav__list a { position: relative; display: block; padding: 13px 1px; font-size: 13px; text-decoration: none; }
.category-nav__list a::after { content: ''; position: absolute; bottom: 8px; inset-inline: 0; height: 1px; background: var(--king-gold); transform: scaleX(0); transition: transform .18s ease; }
.category-nav__list a:hover::after, .category-nav__list a[aria-current]::after { transform: scaleX(1); }
.search-panel { position: absolute; top: 100%; width: 100%; background: var(--king-paper); padding: 25px 36px; border-bottom: 1px solid var(--king-line); box-shadow: 0 10px 15px #12203308; }
.search-panel form { display: flex; max-width: 700px; margin-inline: auto; gap: 12px; align-items: center; }
.search-panel label { flex: 1; }
.search-panel input[type='search'] { width: 100%; min-width: 0; padding: 12px 15px; border: 1px solid var(--king-line); background: var(--king-sand); }
.search-panel button[type='submit'], .search-panel input[type='submit'] { border: 1px solid var(--king-navy); background: var(--king-navy); color: white; padding: 11px 24px; }
.site-main { min-height: 35vh; }
.hero { position: relative; width: min(var(--king-width), calc(100% - 72px)); aspect-ratio: 16 / 8.5; margin: 25px auto 0; display: grid; place-items: center; background: var(--king-navy); overflow: hidden; }
.hero__image, .hero__shade { position: absolute; inset: 0; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__shade { background: linear-gradient(90deg, #12203318, #1220333d 50%, #12203318); }
.hero__content { position: relative; text-align: center; color: white; padding: 40px 20px; max-width: 720px; text-shadow: 0 1px 7px #0004; }
.hero__eyebrow { font-size: 11px; letter-spacing: .22em; margin-bottom: 18px; }
.hero__title { font: 400 clamp(29px, 4.2vw, 60px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; margin: 0 0 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 24px; border: 1px solid var(--king-navy); background: var(--king-navy); color: white; text-align: center; text-decoration: none; font-size: 12px; line-height: 1.5; letter-spacing: .025em; transition: background .18s ease, color .18s ease; }
.button:hover { background: #24354d; color: white; }
.button--outline { background: #12203345; border: 1px solid #c2ab78; color: white; min-width: 175px; }
.button--outline:hover { background: #122033ba; }
.button--gold { background: white; border-color: var(--king-gold); color: var(--king-gold-dark); }
.button--gold:hover { background: var(--king-sand); color: var(--king-navy); }
.section { width: min(var(--king-width), calc(100% - 72px)); margin: 68px auto; }
.section-heading { text-align: center; margin: 0 0 32px; font: 400 29px/1.35 Georgia, 'Times New Roman', serif; letter-spacing: .02em; }
.section-heading[lang='ar'] { font: 400 24px/1.5 Tahoma, Arial, sans-serif; }
.category-section .section-heading { font: 400 24px/1.5 Tahoma, Arial, sans-serif; }
.category-section { margin-top: 37px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.category-card { display: block; position: relative; text-decoration: none; overflow: hidden; background: var(--king-sand); }
.category-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .35s ease; }
.category-card::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #0d162cbd); pointer-events: none; }
.category-card__label { position: absolute; bottom: 22px; left: 15px; right: 15px; z-index: 1; color: white; text-align: center; font-size: 18px; letter-spacing: .02em; }
.category-card:hover img { transform: scale(1.025); }
.brand-story { text-align: center; max-width: 780px; margin-top: 74px; margin-bottom: 72px; }
.section-rule { display: block; width: 78px; height: 1px; background: var(--king-gold); margin: 0 auto 28px; border: 0; }
.brand-story h2 { font: 400 clamp(25px, 3vw, 37px)/1.25 Georgia, 'Times New Roman', serif; margin: 0 0 20px; letter-spacing: -.015em; }
.brand-story p { max-width: 620px; margin: 0 auto; color: var(--king-muted); font-size: 13px; line-height: 2.1; }
.brand-story .section-rule:last-child { margin: 28px auto 0; }
.lookbook-section { margin-bottom: 55px; text-align: center; }
.lookbook-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 27px; }
.lookbook-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lookbook-caption { margin: 0 0 28px; color: var(--king-muted); font-size: 12px; }
.site-footer { background: var(--king-navy); color: #fff; }
.footer-main { width: min(var(--king-width), calc(100% - 72px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 39px 0 32px; }
.footer-brand .brand-lockup { color: white; }
.footer-brand .brand-name { font-size: 23px; }
.footer-brand .brand-subtitle { font-size: 7px; }
.footer-services { display: flex; justify-content: center; gap: 38px; }
.footer-service { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-size: 11px; }
.footer-service svg { width: 23px; height: 23px; color: #c3aa74; stroke: currentColor; }
.footer-social-links { display: flex; gap: 17px; }
.footer-social-links a { text-decoration: none; color: #c3aa74; }
.footer-social-links svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid #ffffff1c; width: min(var(--king-width), calc(100% - 72px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: 10px; color: #c1c7ce; }
.footer-bottom p { margin: 0; }
.footer-policy-links { display: flex; gap: 24px; }
.footer-policy-links a { text-decoration: none; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.footer-menu a { text-decoration: none; }
.content-main { margin-top: 45px; margin-bottom: 65px; }
.page-title { font-weight: 400; font-size: 30px; margin: 0 0 30px; }
.entry-content { line-height: 2; }
.entry-content h2, .entry-content h3 { font-weight: 400; }
.entry-content p { margin-block: 0 20px; }
.entry-content figure { margin-inline: 0; }
.entry-content .alignwide { max-width: 100%; }
.entry-content .alignfull { width: 100%; margin-inline: 0; }
.entry-content iframe { max-width: 100%; }
.post-grid, .search-results-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.content-card { padding-block: 20px; border-bottom: 1px solid var(--king-line); }
.content-card h2 { font-weight: 400; font-size: 23px; }
.content-card h2 a { text-decoration: none; }
.empty-state { text-align: center; padding: 55px 24px; color: var(--king-muted); }
/* Static preview interactions are clearly separate from WooCommerce. */
.preview-products { padding-top: 18px; border-top: 1px solid var(--king-line); }
.preview-products__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.preview-products__heading h2 { margin: 0; font-size: 22px; font-weight: 400; }
.preview-products__heading p { margin: 0; color: var(--king-muted); font-size: 11px; }
.preview-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.preview-product img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--king-sand); }
.preview-product h3 { font-weight: 400; font-size: 14px; margin: 14px 0 3px; }
.preview-product p { margin: 0; color: var(--king-muted); font-size: 11px; }
.preview-product .button { margin-top: 12px; min-height: 35px; padding: 7px 15px; font-size: 10px; background: white; color: var(--king-navy); }
.preview-filter-summary { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; color: var(--king-muted); font-size: 12px; }
.preview-clear { background: transparent; border: 0; padding: 2px 0; text-decoration: underline; text-underline-offset: 5px; }
.preview-empty { color: var(--king-muted); text-align: center; padding: 25px; border: 1px solid var(--king-line); }
.preview-dialog { width: min(550px, calc(100% - 32px)); padding: 35px; border: 1px solid var(--king-line); color: var(--king-ink); }
.preview-dialog::backdrop { background: #12203394; }
.preview-dialog h2 { font-weight: 400; font-size: 22px; margin-top: 0; }
.preview-dialog p { font-size: 13px; color: var(--king-muted); }
.preview-dialog-close { float: left; background: none; border: 0; font-size: 23px; line-height: 1; }
.preview-selection-list { list-style: none; padding: 0; font-size: 13px; }
.preview-selection-list li { padding: 10px 0; border-bottom: 1px solid var(--king-line); }
/* Native WooCommerce flows, styled without replacing forms or navigation. */
.woocommerce, .woocommerce-page .content-area { width: min(var(--king-width), calc(100% - 72px)); margin: 45px auto 65px; }
.woocommerce .woocommerce { width: auto; margin: 0; }
.content-main .woocommerce { width: auto; }
.woocommerce-breadcrumb { color: var(--king-muted); font-size: 12px; margin-bottom: 28px; }
.woocommerce-breadcrumb a { text-decoration: none; }
.woocommerce-products-header__title, .woocommerce h1, .woocommerce h2 { font-weight: 400; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 24px; list-style: none; margin: 25px 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; position: relative; }
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.woocommerce-loop-product__title { font-size: 15px !important; font-weight: 400; }
.woocommerce .price { color: var(--king-muted); display: block; font-size: 14px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--king-navy); color: white; border: 1px solid var(--king-navy); border-radius: 0; font-size: 12px; font-weight: 400; padding: 12px 20px; text-decoration: none; display: inline-flex; }
.woocommerce .onsale { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; background: var(--king-navy); color: white; font-size: 11px; }
.woocommerce .woocommerce-ordering select, .woocommerce select, .woocommerce input:not([type='checkbox']):not([type='radio']):not([type='submit']), .woocommerce textarea { border: 1px solid var(--king-line); border-radius: 0; padding: 10px; max-width: 100%; background: white; }
.woocommerce .woocommerce-result-count { color: var(--king-muted); font-size: 12px; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images { float: right; width: 48%; }
.woocommerce div.product div.summary { float: left; width: 46%; }
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 36px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { list-style: none; padding: 0 0 15px; display: flex; gap: 30px; border-bottom: 1px solid var(--king-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs a { text-decoration: none; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 16px 12px; border-bottom: 1px solid var(--king-line); text-align: start; }
.woocommerce table .product-thumbnail img { width: 65px; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { border-top: 2px solid var(--king-gold); padding: 16px 20px; background: var(--king-sand); list-style: none; }
.woocommerce form .form-row label { display: block; margin-bottom: 7px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { width: 100%; }
.woocommerce nav.woocommerce-pagination ul { display: flex; justify-content: center; gap: 12px; list-style: none; }
.woocommerce nav.woocommerce-pagination a, .woocommerce nav.woocommerce-pagination span { display: block; padding: 5px 13px; text-decoration: none; border: 1px solid var(--king-line); }
.woocommerce nav.woocommerce-pagination .current { border-color: var(--king-gold); }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { color: var(--king-ink); }
.wp-block-woocommerce-cart .wc-block-components-button, .wp-block-woocommerce-checkout .wc-block-components-button { border-radius: 0; background: var(--king-navy); color: white; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input { border-radius: 0 !important; }
.wp-block-button__link { border-radius: 0; background: var(--king-navy); color: white; }
@media (min-width: 1400px) { .hero { aspect-ratio: 16/8; } }
@media (max-width: 900px) {
  .container, .section, .hero, .header-main, .footer-main, .footer-bottom, .woocommerce, .woocommerce-page .content-area { width: calc(100% - 40px); }
  .header-note { display: none; }
  .header-actions { gap: 6px; }
  .category-nav__list { gap: 27px; }
  .hero { aspect-ratio: 16/10; margin-top: 20px; }
  .hero__title { font-size: clamp(28px, 5.2vw, 45px); }
  .category-grid { gap: 17px; }
  .footer-main { flex-wrap: wrap; }
  .footer-services { gap: 26px; }
  .footer-social-links { margin-inline-start: auto; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 2rem; }
  .container, .section, .hero, .header-main, .footer-main, .footer-bottom, .woocommerce, .woocommerce-page .content-area { width: calc(100% - 28px); }
  .preview-notice { padding: 8px 16px; font-size: 10px; line-height: 1.7; }
  .header-main { min-height: 90px; gap: 6px; }
  .brand-name { font-size: 20px; letter-spacing: .045em; }
  .brand-subtitle { font-size: 6px; letter-spacing: .2em; margin-top: 7px; }
  .brand-crown { width: 21px; height: 15px; margin-bottom: 5px; }
  .custom-logo { max-width: 160px; max-height: 65px; }
  .header-actions { gap: 0; }
  .header-actions a, .header-actions button { padding: 9px 6px; }
  .header-actions svg { width: 19px; height: 19px; }
  .header-cart-label, .header-account { display: none !important; }
  .menu-toggle { display: inline-flex !important; }
  .category-nav:not(.is-open) { display: none; }
  .category-nav__list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; padding: 10px 14px; }
  .category-nav__list a { padding: 9px 0; text-align: center; font-size: 12px; }
  .category-nav__list a::after { inset-inline: 20%; bottom: 3px; }
  .search-panel { padding: 16px 14px; }
  .search-panel form { gap: 7px; }
  .search-panel button[type='submit'], .search-panel input[type='submit'] { padding: 10px 15px; }
  .hero { margin-top: 8px; aspect-ratio: 3/4; }
  .hero__image img { object-position: 52% center; }
  .hero__shade { background: linear-gradient(0deg, #1220336b, #12203321 85%); }
  .hero__content { padding: 25px 12px; }
  .hero__title { font-size: clamp(28px, 8vw, 39px); margin-bottom: 24px; }
  .hero__eyebrow { font-size: 9px; letter-spacing: .1em; }
  .button--outline { min-width: 145px; font-size: 11px; }
  .section { margin-top: 43px; margin-bottom: 43px; }
  .section-heading { font-size: 25px; margin-bottom: 23px; }
  .section-heading[lang='ar'] { font-size: 21px; }
  .category-section .section-heading { font-size: 21px; }
  .category-section { margin-top: 27px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .category-card__label { bottom: 14px; font-size: 14px; }
  .brand-story { padding-inline: 8px; }
  .brand-story h2 { font-size: 25px; }
  .brand-story p { font-size: 12px; line-height: 2; }
  .section-rule { width: 65px; margin-bottom: 24px; }
  .lookbook-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
  .lookbook-caption { font-size: 11px; }
  .footer-main { flex-direction: column; gap: 28px; padding: 32px 0; }
  .footer-services { width: 100%; justify-content: space-around; gap: 15px; }
  .footer-service { font-size: 10px; }
  .footer-social-links { margin: 0; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 13px; padding: 18px 0; font-size: 9px; }
  .footer-policy-links { gap: 18px; }
  .preview-products__heading { flex-direction: column; gap: 6px; }
  .preview-products__heading h2 { font-size: 20px; }
  .preview-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 13px; }
  .preview-product h3 { font-size: 12px; }
  .preview-product p { font-size: 10px; }
  .preview-product .button { font-size: 9px; padding: 6px 10px; }
  .preview-dialog { padding: 25px 20px; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; }
  .woocommerce div.product div.summary { margin-top: 25px; }
  .woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 10px 5px; font-size: 11px; }
  .woocommerce table .product-thumbnail { display: none; }
  .post-grid, .search-results-list { grid-template-columns: 1fr; }
  .page-title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .category-card:hover img { transform: none; }
}
