/*
Theme Name: Noore Boutique
Theme URI: https://example.com/
Author: OpenAI
Description: A luxury nude, editorial WooCommerce theme for Persian fashion and handbag stores.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: noore-boutique
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu, featured-images
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --nb-ivory: #f8f4ec;
  --nb-cream: #efe7db;
  --nb-sand: #d9c9b5;
  --nb-taupe: #b5a28e;
  --nb-cocoa: #75604f;
  --nb-brown: #3c3028;
  --nb-charcoal: #282521;
  --nb-white: #fffdf9;
  --nb-line: rgba(60, 48, 40, .13);
  --nb-shadow: 0 16px 50px rgba(60, 48, 40, .08);
  --nb-radius: 18px;
  --nb-container: min(1280px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nb-ivory);
  color: var(--nb-brown);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
body.nb-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.nb-container { width: var(--nb-container); margin-inline: auto; }
.nb-section { padding: 100px 0; }
.nb-section--soft { background: var(--nb-white); }
.nb-kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--nb-cocoa); }
.nb-title { margin: 0; font-family: Lalezar, Vazirmatn, sans-serif; font-weight: 400; font-size: clamp(34px, 4vw, 58px); line-height: 1.25; color: var(--nb-charcoal); }
.nb-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.nb-text-link { display: inline-flex; gap: 9px; align-items: center; border-bottom: 1px solid var(--nb-brown); padding-bottom: 4px; font-size: 14px; }
.nb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 24px; border: 1px solid var(--nb-brown); border-radius: 999px; transition: .25s ease; background: var(--nb-brown); color: #fff; font-weight: 600; }
.nb-button:hover { transform: translateY(-2px); background: var(--nb-charcoal); box-shadow: 0 10px 30px rgba(60,48,40,.16); }
.nb-button--ghost { background: transparent; color: var(--nb-brown); }
.nb-button--ghost:hover { color: #fff; }

/* Header */
.nb-site-header { position: sticky; top: 0; z-index: 80; background: rgba(248,244,236,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: .25s ease; }
.nb-site-header.is-scrolled { border-color: var(--nb-line); box-shadow: 0 8px 30px rgba(60,48,40,.045); }
.nb-header-row { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; direction: rtl; }
.nb-brand { justify-self: start; display: flex; align-items: center; }
.nb-brand .custom-logo { max-height: 46px; width: auto; }
.nb-brand-text { font-family: Lalezar, serif; font-size: 27px; letter-spacing: .02em; }
.nb-nav { justify-self: center; }
.nb-nav ul { display: flex; gap: 31px; align-items: center; margin: 0; padding: 0; list-style: none; }
.nb-nav a { font-size: 14px; position: relative; padding: 10px 0; }
.nb-nav a::after { content:""; position:absolute; right:0; bottom:3px; width:0; height:1px; background:var(--nb-brown); transition:.2s ease; }
.nb-nav a:hover::after, .nb-nav .current-menu-item > a::after { width:100%; }
.nb-actions { justify-self: end; display: flex; align-items: center; gap: 8px; direction: ltr; }
.nb-icon-button { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content:center; border:0; background:transparent; border-radius:50%; color:var(--nb-brown); transition:.2s; }
.nb-icon-button:hover { background: var(--nb-cream); }
.nb-icon-button svg { width: 20px; height: 20px; }
.nb-cart-count { position:absolute; top:1px; right:0; min-width:18px; height:18px; padding:0 4px; border-radius:50px; display:flex; align-items:center; justify-content:center; background:var(--nb-brown); color:#fff; font-size:10px; line-height:1; }
.nb-mobile-toggle { display:none; }

/* Search drawer */
.nb-search-panel { position: fixed; inset: 0; z-index: 120; background: rgba(40,37,33,.34); opacity:0; visibility:hidden; transition:.25s; }
.nb-search-panel.is-open { opacity:1; visibility:visible; }
.nb-search-box { background: var(--nb-ivory); padding: 34px; transform: translateY(-15px); transition:.25s; }
.nb-search-panel.is-open .nb-search-box { transform:none; }
.nb-search-inner { width:min(780px, calc(100vw - 40px)); margin:auto; display:flex; gap:10px; }
.nb-search-inner input { flex:1; border:0; border-bottom:1px solid var(--nb-brown); background:transparent; outline:0; padding:12px 4px; font-size:18px; color:var(--nb-brown); }
.nb-search-close { border:0; background:transparent; width:42px; }

/* Hero */
.nb-hero { position: relative; width: calc(100% - 32px); margin: 16px auto 0; min-height: min(78vh, 800px); border-radius: 28px; overflow:hidden; background: #d8c7b4; display:flex; align-items:center; }
.nb-hero-media { position:absolute; inset:0; }
.nb-hero-media img { width:100%; height:100%; object-fit:cover; }
.nb-hero-media::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(32,27,23,.10) 0%, rgba(32,27,23,.02) 46%, rgba(32,27,23,.49) 100%); }
.nb-hero-content { position:relative; z-index:2; width:var(--nb-container); margin:auto; color:#fff; display:flex; justify-content:flex-start; }
.nb-hero-copy { width:min(560px, 92%); text-align:right; }
.nb-hero .nb-kicker { color:rgba(255,255,255,.74); }
.nb-hero h1 { margin:0 0 16px; font-family:Lalezar,Vazirmatn,sans-serif; font-size:clamp(48px, 7vw, 92px); font-weight:400; line-height:1.12; }
.nb-hero p { margin:0 0 30px; max-width:500px; font-size:clamp(15px,1.7vw,19px); color:rgba(255,255,255,.88); }
.nb-hero .nb-button { background:#fff; color:var(--nb-brown); border-color:#fff; }
.nb-hero .nb-button:hover { background:var(--nb-cream); }

/* Categories */
.nb-category-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.nb-category-card { position:relative; min-height:520px; overflow:hidden; border-radius:var(--nb-radius); background:var(--nb-cream); }
.nb-category-card img { width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.nb-category-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(32,27,23,.46), transparent 48%); }
.nb-category-card:hover img { transform:scale(1.035); }
.nb-category-caption { position:absolute; z-index:2; right:26px; bottom:26px; left:26px; color:#fff; display:flex; align-items:end; justify-content:space-between; gap:15px; }
.nb-category-caption h3 { margin:0; font-size:28px; font-weight:500; }
.nb-category-caption span { font-size:12px; opacity:.82; }

/* Story */
.nb-story { display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(40px,7vw,110px); align-items:center; }
.nb-story-media { border-radius:var(--nb-radius); overflow:hidden; aspect-ratio:4/5; background:var(--nb-cream); }
.nb-story-media img { width:100%; height:100%; object-fit:cover; }
.nb-story-copy p { color:var(--nb-cocoa); max-width:570px; margin:25px 0 32px; font-size:16px; }
.nb-story-points { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:30px; }
.nb-story-point { border-top:1px solid var(--nb-line); padding-top:14px; font-size:13px; }

/* Promo */
.nb-promo { padding:40px 0 90px; }
.nb-promo-box { min-height:330px; border-radius:24px; background:var(--nb-cream); padding:60px clamp(28px,6vw,80px); display:flex; align-items:center; justify-content:space-between; gap:40px; position:relative; overflow:hidden; }
.nb-promo-box::before { content:""; width:300px; height:300px; position:absolute; left:-70px; top:-120px; border:1px solid rgba(60,48,40,.10); border-radius:50%; box-shadow:0 0 0 45px rgba(255,255,255,.12), 0 0 0 90px rgba(255,255,255,.08); }
.nb-promo-copy { position:relative; z-index:1; }
.nb-promo-copy h2 { margin:0 0 9px; font-family:Lalezar,Vazirmatn,sans-serif; font-size:clamp(38px,5vw,66px); font-weight:400; }
.nb-promo-copy p { margin:0; color:var(--nb-cocoa); }
.nb-promo .nb-button { position:relative; z-index:1; white-space:nowrap; }

/* Instagram */
.nb-social-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
.nb-social-tile { aspect-ratio:1; border-radius:12px; overflow:hidden; background:var(--nb-cream); position:relative; }
.nb-social-tile img { width:100%; height:100%; object-fit:cover; transition:.45s ease; }
.nb-social-tile::after { content:"Instagram"; position:absolute; inset:0; display:grid; place-items:center; background:rgba(40,37,33,.48); color:#fff; opacity:0; transition:.25s; font-size:12px; letter-spacing:.08em; }
.nb-social-tile:hover img { transform:scale(1.04); }
.nb-social-tile:hover::after { opacity:1; }

/* Newsletter */
.nb-newsletter { padding:95px 0; text-align:center; border-top:1px solid var(--nb-line); }
.nb-newsletter h2 { margin:0 0 10px; font-family:Lalezar,Vazirmatn,sans-serif; font-size:42px; font-weight:400; }
.nb-newsletter p { margin:0 0 26px; color:var(--nb-cocoa); }
.nb-newsletter-form { width:min(600px,100%); margin:auto; display:flex; border-bottom:1px solid var(--nb-brown); }
.nb-newsletter-form input { flex:1; min-width:0; border:0; background:transparent; outline:0; padding:13px 5px; }
.nb-newsletter-form button { border:0; background:transparent; color:var(--nb-brown); font-weight:700; padding:0 12px; }
.nb-newsletter-message { margin-top:12px; font-size:13px; }

/* Footer */
.nb-footer { background:var(--nb-charcoal); color:#f4eee6; padding:70px 0 26px; }
.nb-footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:50px; }
.nb-footer h3 { font-size:14px; margin:0 0 17px; color:#fff; }
.nb-footer p, .nb-footer a { color:rgba(255,255,255,.67); font-size:13px; }
.nb-footer a:hover { color:#fff; }
.nb-footer ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.nb-footer-brand { font-family:Lalezar,Vazirmatn,sans-serif; font-size:32px; color:#fff; margin-bottom:14px; }
.nb-copyright { border-top:1px solid rgba(255,255,255,.10); margin-top:48px; padding-top:20px; display:flex; justify-content:space-between; gap:20px; font-size:12px; color:rgba(255,255,255,.48); }

/* Generic content */
.nb-main { min-height:55vh; padding:70px 0 100px; }
.nb-page-header { padding:55px 0 35px; }
.nb-page-header h1 { margin:0; font-family:Lalezar,Vazirmatn,sans-serif; font-weight:400; font-size:52px; }
.nb-content { background:var(--nb-white); border:1px solid var(--nb-line); border-radius:var(--nb-radius); padding:clamp(25px,5vw,60px); }

/* WooCommerce */

/* WooCommerce content shell */
.nb-woo-shell { width: var(--nb-container); margin-inline:auto; padding:60px 0 100px; min-height:55vh; }
.nb-woo-shell .woocommerce-notices-wrapper { margin-bottom:20px; }
.woocommerce .woocommerce-breadcrumb { color:var(--nb-taupe); font-size:12px; margin:0 0 28px; }
.woocommerce .woocommerce-breadcrumb a { color:var(--nb-cocoa); }
.woocommerce-products-header__title.page-title, .woocommerce div.product .product_title { font-family:Lalezar,Vazirmatn,sans-serif; font-weight:400; color:var(--nb-charcoal); }
.woocommerce-products-header__title.page-title { font-size:clamp(40px,5vw,62px); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom:30px; color:var(--nb-cocoa); font-size:13px; }
.woocommerce .woocommerce-ordering select { border:1px solid var(--nb-line); background:var(--nb-white); padding:10px 14px; border-radius:999px; color:var(--nb-brown); }
.woocommerce ul.products { display:grid !important; grid-template-columns:repeat(4,1fr); gap:34px 18px; margin:0 !important; }
.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; text-align:right; }
.woocommerce ul.products li.product a img { aspect-ratio:4/5; width:100%; object-fit:cover; border-radius:14px; margin:0 0 16px !important; background:var(--nb-cream); transition:.35s ease; }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display:block; position:relative; }
.woocommerce ul.products li.product .noore-secondary-image { position:absolute; top:0; right:0; opacity:0; z-index:2; transition:opacity .35s ease; }
.woocommerce ul.products li.product:hover .noore-secondary-image { opacity:1; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding:0 !important; margin:0 0 4px !important; font-size:14px !important; font-weight:600; color:var(--nb-charcoal); }
.woocommerce ul.products li.product .price { color:var(--nb-cocoa) !important; font-size:13px !important; margin:0 0 11px !important; }
.woocommerce ul.products li.product .price ins { text-decoration:none; font-weight:700; }
.woocommerce span.onsale { min-height:auto; min-width:auto; line-height:1; border-radius:999px; background:var(--nb-brown); color:#fff; padding:8px 11px; top:10px; right:10px; left:auto; font-size:11px; z-index:4; }
.woocommerce ul.products li.product .button { margin:0 !important; width:100%; min-height:43px; display:flex; align-items:center; justify-content:center; background:transparent; color:var(--nb-brown); border:1px solid var(--nb-line); border-radius:999px; font-size:12px; transition:.2s; }
.woocommerce ul.products li.product .button:hover { background:var(--nb-brown); color:#fff; border-color:var(--nb-brown); }
.nb-wishlist { position:absolute; z-index:6; top:10px; left:10px; width:38px; height:38px; border:0; border-radius:50%; background:rgba(255,253,249,.88); backdrop-filter:blur(5px); display:grid; place-items:center; color:var(--nb-brown); }
.nb-wishlist svg { width:18px; height:18px; fill:transparent; stroke:currentColor; }
.nb-wishlist.is-active svg { fill:currentColor; }
.woocommerce nav.woocommerce-pagination ul { border:0; display:flex; gap:7px; }
.woocommerce nav.woocommerce-pagination ul li { border:0; }
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span { min-width:40px; height:40px; display:grid; place-items:center; border-radius:50%; padding:0; background:var(--nb-white); }
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover { background:var(--nb-brown); color:#fff; }

/* Product page */
.woocommerce div.product { margin-top:20px; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius:18px; overflow:hidden; }
.woocommerce div.product div.images img { border-radius:14px; }
.woocommerce div.product .summary { padding:20px 0 0; }
.woocommerce div.product .product_title { font-size:clamp(38px,4.4vw,58px); line-height:1.25; }
.woocommerce div.product p.price,.woocommerce div.product span.price { color:var(--nb-cocoa); font-size:20px; }
.woocommerce div.product form.cart .button,.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce input.button.alt { background:var(--nb-brown); color:#fff; border-radius:999px; min-height:48px; padding:0 25px; }
.woocommerce div.product form.cart .button:hover,.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover,.woocommerce input.button.alt:hover { background:var(--nb-charcoal); }
.woocommerce .quantity .qty { min-height:48px; width:70px; border:1px solid var(--nb-line); border-radius:999px; background:var(--nb-white); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding:0; display:flex; gap:25px; border-bottom:1px solid var(--nb-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display:none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border:0; background:transparent; padding:0; margin:0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display:none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding:15px 0; font-weight:500; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { border-bottom:1px solid var(--nb-brown); }
.woocommerce div.product .woocommerce-tabs .panel { background:var(--nb-white); border-radius:14px; padding:25px; }
.related.products > h2,.upsells.products > h2 { font-family:Lalezar,Vazirmatn,sans-serif; font-size:38px; font-weight:400; }

/* Cart/checkout/account */
.woocommerce table.shop_table { border:1px solid var(--nb-line); border-radius:14px; background:var(--nb-white); overflow:hidden; }
.woocommerce table.shop_table th { font-weight:600; }
.woocommerce-cart table.cart img { width:76px; border-radius:10px; }
.woocommerce .cart-collaterals .cart_totals,.woocommerce-checkout-review-order,.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content { background:var(--nb-white); border:1px solid var(--nb-line); border-radius:14px; padding:24px; }
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.select2-container--default .select2-selection--single { border:1px solid var(--nb-line); border-radius:10px; background:#fff; min-height:48px; padding:10px 12px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height:28px; }
.woocommerce-info,.woocommerce-message,.woocommerce-error { border-top-color:var(--nb-cocoa); background:var(--nb-white); }
.woocommerce-message::before,.woocommerce-info::before { color:var(--nb-cocoa); }
.woocommerce-MyAccount-navigation ul { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.woocommerce-MyAccount-navigation a { display:block; padding:9px 11px; border-radius:8px; }
.woocommerce-MyAccount-navigation .is-active a { background:var(--nb-cream); }

/* Mobile menu */
.nb-mobile-menu { position:fixed; inset:0; z-index:110; background:var(--nb-ivory); transform:translateX(105%); transition:.35s cubic-bezier(.2,.8,.2,1); padding:22px; display:none; }
.nb-mobile-menu.is-open { transform:none; }
.nb-mobile-menu-top { display:flex; align-items:center; justify-content:space-between; }
.nb-mobile-menu nav { margin-top:70px; }
.nb-mobile-menu ul { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.nb-mobile-menu a { display:block; font-family:Lalezar,Vazirmatn,sans-serif; font-size:38px; padding:7px 0; border-bottom:1px solid var(--nb-line); }

@media (max-width: 1024px) {
  :root { --nb-container: min(100% - 36px, 960px); }
  .nb-nav { display:none; }
  .nb-header-row { grid-template-columns:1fr 1fr; }
  .nb-actions { justify-self:start; }
  .nb-mobile-toggle { display:inline-flex; }
  .nb-mobile-menu { display:block; }
  .nb-category-card { min-height:420px; }
  .woocommerce ul.products { grid-template-columns:repeat(3,1fr); }
  .nb-social-grid { grid-template-columns:repeat(3,1fr); }
  .nb-footer-grid { grid-template-columns:1.5fr 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --nb-container: calc(100vw - 28px); --nb-radius:14px; }
  .nb-section { padding:70px 0; }
  .nb-header-row { min-height:68px; gap:10px; }
  .nb-brand-text { font-size:24px; }
  .nb-icon-button { width:38px; height:38px; }
  .nb-account-link { display:none; }
  .nb-hero { width:calc(100% - 16px); min-height:73vh; margin-top:8px; border-radius:20px; align-items:flex-end; }
  .nb-hero-media::after { background:linear-gradient(0deg, rgba(32,27,23,.66) 0%, rgba(32,27,23,.08) 70%); }
  .nb-hero-content { padding-bottom:45px; }
  .nb-hero h1 { font-size:52px; }
  .nb-hero p { font-size:14px; line-height:1.8; }
  .nb-section-head { align-items:start; margin-bottom:28px; }
  .nb-section-head .nb-text-link { display:none; }
  .nb-category-grid { grid-template-columns:1fr; gap:12px; }
  .nb-category-card { min-height:58vh; }
  .nb-category-caption h3 { font-size:25px; }
  .woocommerce ul.products { grid-template-columns:repeat(2,1fr); gap:28px 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:13px !important; }
  .woocommerce ul.products li.product .button { min-height:40px; font-size:11px; }
  .nb-story { grid-template-columns:1fr; gap:34px; }
  .nb-story-media { aspect-ratio:5/6; }
  .nb-story-points { gap:8px; }
  .nb-story-point { font-size:11px; }
  .nb-promo { padding:20px 0 70px; }
  .nb-promo-box { min-height:350px; flex-direction:column; align-items:flex-start; justify-content:center; padding:38px 25px; }
  .nb-social-grid { grid-template-columns:repeat(3,1fr); gap:6px; }
  .nb-newsletter { padding:70px 0; }
  .nb-newsletter h2 { font-size:34px; }
  .nb-footer-grid { grid-template-columns:1fr 1fr; gap:34px 20px; }
  .nb-footer-grid > div:first-child { grid-column:1/-1; }
  .nb-copyright { flex-direction:column; }
  .woocommerce div.product div.images,.woocommerce div.product div.summary { width:100%; float:none; }
  .woocommerce div.product .product_title { font-size:40px; }
  .woocommerce-cart table.cart .product-thumbnail { display:none; }
}

@media (max-width: 390px) {
  .nb-actions { gap:0; }
  .nb-icon-button { width:34px; }
  .woocommerce ul.products { gap:24px 8px; }
}
