/*
Theme Name: Sitri — Astra Child
Description: واجهة عربية لمتجر Sitri مبنية على قالب Astra المجاني ومتوافقة مع WooCommerce.
Author: Sitri
Template: astra
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: sitri-astra-child
*/

:root {
  --citri-grey: #f1f0ee;
  --citri-white: #faf9f7;
  --citri-marron: #704a3b;
  --citri-marron-dark: #56372b;
  --citri-black: #1c1b1a;
  --citri-muted: #6d6965;
  --citri-line: #d9d5d0;
}

body {
  background: var(--citri-grey);
  color: var(--citri-black);
  font-family: "Cairo", Tahoma, sans-serif;
}

body .site-header,
body .ast-primary-header-bar,
body .site-footer,
body .ast-small-footer {
  background: var(--citri-grey);
}

.site-title a,
.main-header-menu .menu-link,
.ast-builder-menu .menu-link {
  color: var(--citri-black);
}

body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce #respond input#submit,
body .woocommerce div.product form.cart .button,
body .ast-button,
body button,
body input[type="submit"] {
  border-radius: 100px;
  background: var(--citri-marron);
  color: #fff;
  font-family: "Cairo", Tahoma, sans-serif;
}

body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .woocommerce div.product form.cart .button:hover {
  background: var(--citri-marron-dark);
  color: #fff;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--citri-marron);
}

.citri-home {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 88px) 0 96px;
  direction: rtl;
  color: var(--citri-black);
}

.citri-home * { box-sizing: border-box; }
.citri-home a { text-decoration: none; }

.sitri-brand-image {
  display: block;
  width: clamp(172px, 21vw, 245px);
  height: auto;
  margin-bottom: 28px;
  mix-blend-mode: multiply;
}

.citri-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--citri-line);
}

.citri-label {
  display: block;
  margin-bottom: 12px;
  color: var(--citri-marron);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.citri-intro h1 {
  margin: 0;
  color: var(--citri-black);
  font-family: "Cairo", Tahoma, sans-serif;
  max-width: 800px;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.22;
}

.citri-intro p {
  max-width: 360px;
  margin: 0 0 8px;
  color: var(--citri-muted);
  font-size: 16px;
  line-height: 1.9;
}
.citri-intro p strong { color: var(--citri-black); }

.citri-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.citri-choice {
  position: relative;
  display: flex;
  min-height: clamp(360px, 40vw, 520px);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--citri-line);
  border-radius: 24px;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.citri-choice:hover,
.citri-choice:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px #1c1b1a1c;
}

.citri-choice:focus-visible { outline: 3px solid var(--citri-black); outline-offset: 3px; }
.citri-choice-hijabat { background: #ddd9d5; color: var(--citri-black); }
.citri-choice-clothing { background: var(--citri-marron); color: #fff; }

.citri-choice::before,
.citri-choice::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.citri-choice-hijabat::before {
  inset: 7% 21% -48% 16%;
  border: 26px solid #b8a095;
  border-radius: 48% 48% 8% 8%;
  transform: rotate(-13deg);
  background: #d1c0b7;
  box-shadow: 0 0 0 22px #c8c2bc;
}

.citri-choice-hijabat::after {
  width: 40%; height: 45%; top: 23%; left: 30%;
  border-radius: 50% 50% 12% 12%;
  background: #ae8e80;
  transform: rotate(-13deg);
  opacity: .75;
}

.citri-choice-clothing::before {
  inset: 12% 18% -43%;
  border-radius: 48% 48% 10% 10%;
  background: linear-gradient(125deg, #342720 0%, #594137 55%, #342720 100%);
  transform: rotate(9deg);
  box-shadow: -18px 0 0 #997362;
}

.citri-choice-clothing::after {
  width: 29%; height: 27%; top: 27%; left: 36%;
  border-radius: 50% 50% 10% 10%;
  background: #b5927e;
  transform: rotate(9deg);
}

.citri-choice-number,
.citri-choice-copy,
.citri-choice-action { position: relative; z-index: 1; }
.citri-choice-number { font-size: 14px; font-weight: 700; }
.citri-choice-copy { margin-top: auto; }
.citri-choice-copy h2 {
  margin: 0;
  color: inherit;
  font-family: "Cairo", Tahoma, sans-serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.3;
}
.citri-choice-copy p { margin: 4px 0 22px; font-size: 15px; }
.citri-choice-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: max-content;
  min-width: 185px;
  padding: 10px 17px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
}
.citri-choice .citri-choice-action { color: inherit; }

.citri-featured { margin-top: clamp(72px, 9vw, 120px); }
.citri-featured-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.citri-featured h2 {
  margin: 0;
  color: var(--citri-black);
  font-family: "Cairo", Tahoma, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
}
.citri-featured-heading a { color: var(--citri-marron); font-weight: 700; }
.citri-featured .woocommerce ul.products li.product img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}
.citri-editor-content { margin-top: 68px; }

@media (max-width: 760px) {
  .citri-home { width: min(100% - 32px, 1240px); padding-top: 38px; }
  .citri-intro { display: block; }
  .citri-intro p { margin-top: 14px; }
  .citri-choices { grid-template-columns: 1fr; gap: 12px; }
  .citri-choice { min-height: 370px; padding: 26px; }
  .citri-featured-heading { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .citri-choice { transition: none; }
}