/*
Theme Name: Saray-e Armanii
Theme URI: https://sarayearmanii.ir/
Author: Saray-e Armanii
Description: قالب فارسی، راست‌چین و فروشگاهی برای خانه‌ای به سلیقه شما.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sarayearmanii
*/

:root {
  --ink: #28251f;
  --muted: #777166;
  --paper: #fbf9f5;
  --white: #fffefa;
  --sand: #eee8dd;
  --clay: #a65f46;
  --clay-dark: #814733;
  --olive: #66715a;
  --line: #e6e0d6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(47, 38, 27, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--clay-dark); }
button, input { font: inherit; }
img, svg { max-width: 100%; }
.wrap { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: -80px; right: 16px; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.notice-bar { background: var(--ink); color: #f8f3e9; text-align: center; font-size: 12px; letter-spacing: .02em; padding: 5px 12px; }
.notice-bar span { color: #d9b38b; margin-inline-start: 7px; }
.site-header { position: relative; z-index: 10; background: rgba(251,249,245,.96); border-bottom: 1px solid var(--line); }
.header-main { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; color: var(--clay); border: 1px solid #caa48a; border-radius: 50%; font-family: var(--serif); font-size: 22px; line-height: 1; }
.brand-copy { display: grid; line-height: 1.45; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 56px; }
.brand-name { font-size: 18px; font-weight: 750; letter-spacing: -.04em; }
.brand-caption { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.main-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #4f4a41; font-size: 13px; white-space: nowrap; }
.main-nav a:hover { color: var(--clay); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 16px; }
.search-form { display: flex; align-items: center; border-bottom: 1px solid #cfc8bd; padding: 4px 0; }
.search-form input { width: 126px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.search-form button, .icon-link { border: 0; padding: 0; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-link { position: relative; }
.cart-count { position: absolute; top: -8px; left: -9px; background: var(--clay); color: white; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 23px; cursor: pointer; }
.hero { overflow: hidden; padding-block: 38px 60px; }
.hero-grid { min-height: 490px; display: grid; grid-template-columns: .88fr 1.12fr; background: #e9e1d5; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(36px, 6vw, 84px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--clay-dark); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { max-width: 520px; margin: 18px 0 12px; font-size: clamp(34px, 4.3vw, 61px); line-height: 1.34; letter-spacing: -.055em; font-weight: 700; }
.hero h1 em { color: var(--clay); font-style: normal; }
.hero-copy p { max-width: 420px; margin: 0 0 26px; color: #655f55; font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 23px; background: var(--ink); color: white; border: 1px solid var(--ink); font-size: 12px; transition: .2s ease; }
.button:hover { color: white; background: var(--clay-dark); border-color: var(--clay-dark); transform: translateY(-2px); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: white; }
.hero-art { position: relative; min-height: 420px; background: #d7c8b3; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; width: 61%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; top: 9%; left: 18%; }
.hero-art::after { content: ""; position: absolute; width: 72%; height: 22%; bottom: 0; left: 14%; background: #c7b49d; border-radius: 50% 50% 0 0; opacity: .8; }
.art-sun { position: absolute; width: 28%; aspect-ratio: 1; top: 20%; left: 33%; border-radius: 50%; background: #eadcca; }
.art-floor { position: absolute; inset: auto 0 0; height: 16%; background: #bda88e; }
.art-vase { position: absolute; z-index: 2; bottom: 13%; left: 17%; width: 16%; height: 27%; background: #a9684e; border-radius: 37% 37% 25% 25% / 20% 20% 14% 14%; transform: rotate(-2deg); }
.art-vase::before { content: ""; position: absolute; width: 35%; height: 19%; top: -12%; left: 32%; background: #a9684e; border-radius: 25% 25% 0 0; }
.art-vase::after { content: ""; position: absolute; top: -37%; left: 50%; width: 1px; height: 35%; background: #59604f; transform: rotate(12deg); box-shadow: 10px -18px 0 -0.3px #59604f, -12px -12px 0 -0.3px #59604f; }
.art-stool { position: absolute; z-index: 3; bottom: 13%; left: 43%; width: 29%; height: 12%; background: #6f6253; border-radius: 3px; }
.art-stool::before, .art-stool::after { content: ""; position: absolute; top: 90%; width: 5px; height: 95px; background: #6f6253; }
.art-stool::before { left: 12%; transform: rotate(5deg); }.art-stool::after { right: 12%; transform: rotate(-5deg); }
.art-lamp-wire { position: absolute; top: 0; right: 28%; height: 20%; width: 1px; background: #776e60; }
.art-lamp { position: absolute; z-index: 2; top: 19%; right: 20%; width: 17%; height: 11%; background: #f2eadc; clip-path: polygon(20% 0,80% 0,100% 100%,0 100%); }
.art-lamp::after { content: ""; position: absolute; top: 0; left: 48%; height: 50px; width: 3px; background: #847a68; }
.art-label { position: absolute; z-index: 4; right: 8%; bottom: 9%; writing-mode: vertical-rl; color: #6b6256; font-family: var(--serif); font-size: 12px; letter-spacing: .18em; }
.hero-note { position: absolute; top: 28px; left: 28px; z-index: 3; writing-mode: vertical-rl; color: #6f6659; font-size: 10px; letter-spacing: .14em; }
.section { padding-block: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.5; letter-spacing: -.04em; }
.section-heading p { margin: 0; max-width: 410px; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--clay-dark); font-size: 12px; white-space: nowrap; border-bottom: 1px solid #c9a18c; padding-bottom: 4px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { position: relative; min-height: 270px; overflow: hidden; display: flex; align-items: end; padding: 22px; background: #e7dfd2; }
.category-card:nth-child(2) { background: #d8ddd2; }.category-card:nth-child(3) { background: #e9d8c9; }.category-card:nth-child(4) { background: #d8d3c7; }
.category-card::before { content: ""; position: absolute; width: 68%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; top: 10%; left: 16%; transition: transform .5s ease; }
.category-card:hover::before { transform: scale(1.09); }
.category-shape { position: absolute; width: 41%; height: 37%; top: 26%; left: 29%; border: 1px solid rgba(78,70,59,.56); border-radius: 45% 45% 4px 4px; opacity: .8; }
.category-shape::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: -20%; height: 5px; background: rgba(78,70,59,.55); box-shadow: 0 14px 0 -1px rgba(78,70,59,.55); }
.category-card:nth-child(2) .category-shape { border-radius: 50% 50% 10% 10%; width: 31%; height: 42%; top: 23%; left: 35%; }
.category-card:nth-child(3) .category-shape { width: 19%; height: 39%; top: 23%; left: 40%; border-radius: 35% 35% 28% 28%; background: rgba(166,95,70,.25); }
.category-card:nth-child(3) .category-shape::before { bottom: auto; top: -18%; height: 22%; left: 32%; right: 32%; box-shadow: none; }
.category-card:nth-child(4) .category-shape { width: 43%; height: 9%; top: 36%; left: 28%; border-radius: 50%; background: rgba(255,255,255,.22); }
.category-card:nth-child(4) .category-shape::before { bottom: auto; top: -118px; left: 50%; right: auto; width: 1px; height: 110px; box-shadow: none; }
.category-title { position: relative; z-index: 2; display: flex; width: 100%; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(40,37,31,.25); font-size: 14px; font-weight: 650; }
.category-arrow { color: var(--clay-dark); font-size: 18px; }
.story-band { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: #e7e2d8; margin-block: 35px; }
.story-art { position: relative; min-height: 350px; overflow: hidden; background: #c8c4b5; }
.story-art::before { content: ""; position: absolute; width: 55%; aspect-ratio: 1; border-radius: 50%; background: #dbd4c5; top: 14%; left: 22%; }
.story-art::after { content: ""; position: absolute; width: 34%; height: 44%; left: 33%; bottom: 13%; border: 1px solid #707464; border-radius: 45% 45% 3px 3px; box-shadow: 0 12px 0 -5px #707464; }
.story-copy { padding: clamp(30px, 6vw, 72px); }
.story-copy h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.5; margin: 10px 0 15px; letter-spacing: -.04em; }
.story-copy p { color: #686258; font-size: 13px; margin: 0 0 24px; }
.benefits { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); margin-block: 24px 42px; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 23px 18px; }
.benefit + .benefit { border-right: 1px solid var(--line); }
.benefit-icon { color: var(--clay); font-size: 22px; }
.benefit strong { display: block; font-size: 12px; }.benefit small { color: var(--muted); font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.product-card { border: 1px solid var(--line); background: var(--white); }
.product-thumb { aspect-ratio: 1 / 1.08; display: grid; place-items: center; background: #eae4d9; color: #716655; }
.product-thumb svg { width: 42%; opacity: .75; }
.product-meta { padding: 14px 16px 18px; }.product-meta h3 { margin: 0 0 4px; font-size: 13px; }.product-meta p { margin: 0; color: var(--muted); font-size: 11px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; background: var(--white); padding: 12px; border: 1px solid var(--line); }
.woocommerce ul.products li.product img { margin-bottom: 10px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { border-radius: 0; background: var(--ink); color: white; }
.woocommerce .price { color: var(--clay-dark) !important; }
.site-footer { background: #28251f; color: #f5f1e9; padding-block: 54px 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 38px; }
.site-footer .brand-name { color: white; }.site-footer .brand-caption { color: #c4bbaa; }.site-footer .brand-mark { border-color: #99745e; }
.footer-about p { color: #c7c0b4; max-width: 370px; font-size: 12px; }
.footer-title { margin: 0 0 13px; font-size: 13px; color: #e3c7ad; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; color: #d4cec3; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #49453d; padding-top: 14px; color: #b8b1a4; font-size: 10px; }
.page-content { min-height: 50vh; padding-block: 48px; }.page-content h1 { font-size: 34px; }
.woocommerce .woocommerce-breadcrumb { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) {
  .header-main { grid-template-columns: 1fr auto; min-height: 76px; }
  .menu-toggle { display: block; grid-column: 2; grid-row: 1; }
  .brand { grid-column: 1; grid-row: 1; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 15px 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: grid; gap: 4px; }.main-nav a { display: block; padding: 8px 0; }
  .header-tools { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: 420px; }
  .category-grid, .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .category-card { min-height: 230px; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 500px); }
  .notice-bar { font-size: 10px; }
  .brand-name { font-size: 16px; }.brand-mark { width: 39px; height: 39px; }
  .hero { padding-block: 18px 30px; }.hero-grid { display: flex; flex-direction: column-reverse; }
  .hero-art { min-height: 270px; }.hero-copy { padding: 28px 24px 34px; }.hero h1 { font-size: 34px; }
  .section { padding-block: 35px; }.section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .category-grid { gap: 10px; }.category-card { min-height: 190px; padding: 14px; }.category-title { font-size: 12px; }
  .story-band { grid-template-columns: 1fr; margin-block: 18px; }.story-art { min-height: 245px; }.story-copy { padding: 28px 23px 34px; }
  .benefits { grid-template-columns: 1fr; margin-block: 15px 30px; }.benefit { padding: 13px 5px; }.benefit + .benefit { border-right: 0; border-top: 1px solid var(--line); }
  .product-grid, .woocommerce ul.products { gap: 10px; }.product-meta { padding: 10px; }.product-meta h3 { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }.footer-about { grid-column: 1/-1; }.footer-bottom { flex-direction: column; gap: 4px; }
}
