/*
Theme Name: Tsawg Store
Theme URI: https://tsawg.com
Author: Tsawg
Description: Lightweight Arabic-first WooCommerce theme for Tsawg.
Version: 1.0.0
Text Domain: tsawg-store
*/

:root {
  --ts-ink: #12231b;
  --ts-ink-soft: #405047;
  --ts-sand: #f5f1e8;
  --ts-paper: #fffdf8;
  --ts-emerald: #087a55;
  --ts-emerald-dark: #075d43;
  --ts-mint: #dff3e9;
  --ts-amber: #f4b44b;
  --ts-line: #ded8cc;
  --ts-radius: 22px;
  --ts-shadow: 0 18px 50px rgba(18, 35, 27, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ts-ink);
  background: var(--ts-paper);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.ts-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed; inset: 12px auto auto 12px; width: auto; height: auto; padding: 12px; clip: auto; background: #fff; z-index: 9999; }

.ts-topline { background: var(--ts-ink); color: #fff; font-size: .85rem; }
.ts-topline .ts-shell { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ts-dot { width: 7px; height: 7px; border-radius: 50%; background: #63d6a2; box-shadow: 0 0 0 5px rgba(99, 214, 162, .14); }
.ts-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(222, 216, 204, .8); background: rgba(255, 253, 248, .92); backdrop-filter: blur(16px); }
.ts-nav { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.ts-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.45rem; letter-spacing: -.04em; }
.ts-brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px 13px 6px 13px; background: var(--ts-emerald); color: #fff; transform: rotate(-4deg); }
.ts-menu { display: flex; align-items: center; gap: 23px; margin: 0 auto; padding: 0; list-style: none; color: var(--ts-ink-soft); font-weight: 700; font-size: .92rem; }
.ts-menu a { padding-block: 9px; border-bottom: 2px solid transparent; transition: .2s ease; }
.ts-menu a:hover, .ts-menu a:focus-visible { color: var(--ts-emerald); border-color: var(--ts-emerald); }
.ts-actions { display: flex; gap: 9px; align-items: center; }
.ts-icon-link { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid var(--ts-line); border-radius: 13px; font-weight: 800; background: #fff; }
.ts-icon-link:hover { border-color: var(--ts-emerald); color: var(--ts-emerald); }
.ts-mobile-nav { display: none; position: relative; }
.ts-mobile-nav summary { min-height: 42px; display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--ts-line); border-radius: 13px; background: #fff; font-weight: 900; cursor: pointer; list-style: none; }
.ts-mobile-nav summary::-webkit-details-marker { display: none; }
.ts-mobile-nav nav { position: absolute; inset: calc(100% + 10px) 0 auto auto; z-index: 80; width: min(270px, calc(100vw - 24px)); padding: 10px; border: 1px solid var(--ts-line); border-radius: 16px; background: var(--ts-paper); box-shadow: var(--ts-shadow); }
.ts-mobile-nav nav a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--ts-ink-soft); font-weight: 800; }
.ts-mobile-nav nav a:hover, .ts-mobile-nav nav a:focus-visible { color: var(--ts-emerald); background: var(--ts-mint); }

.ts-main { min-height: 62vh; }
.ts-hero { padding: clamp(48px, 7vw, 94px) 0 48px; overflow: hidden; background: radial-gradient(circle at 18% 0, #fff 0, transparent 32%), var(--ts-sand); }
.ts-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 7vw, 90px); align-items: center; }
.ts-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 7px 13px; border-radius: 999px; color: var(--ts-emerald-dark); background: var(--ts-mint); font-size: .82rem; font-weight: 900; }
.ts-hero h1 { max-width: 660px; margin: 0; font-size: clamp(2.45rem, 5.5vw, 5.3rem); line-height: 1.08; letter-spacing: -.065em; }
.ts-hero h1 span { color: var(--ts-emerald); }
.ts-lead { max-width: 610px; margin: 24px 0 30px; color: var(--ts-ink-soft); font-size: clamp(1.02rem, 1.8vw, 1.22rem); }
.ts-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid var(--ts-emerald); border-radius: 15px; background: var(--ts-emerald); color: #fff; font-weight: 900; transition: transform .2s ease, background .2s ease; }
.ts-button:hover { transform: translateY(-2px); background: var(--ts-emerald-dark); }
.ts-button--ghost { margin-inline-start: 9px; color: var(--ts-ink); background: transparent; border-color: var(--ts-line); }
.ts-button--ghost:hover { color: var(--ts-emerald); background: #fff; }

.ts-aperture { position: relative; min-height: 410px; display: grid; place-items: center; }
.ts-orbit { position: absolute; width: 390px; aspect-ratio: 1; border: 1px dashed rgba(8, 122, 85, .35); border-radius: 50%; }
.ts-orbit::before, .ts-orbit::after { content: ""; position: absolute; inset: 38px; border: 1px solid rgba(8, 122, 85, .18); border-radius: 50%; }
.ts-orbit::after { inset: 82px; }
.ts-aperture-core { position: relative; width: 255px; aspect-ratio: 1; display: grid; place-items: center; padding: 35px; border-radius: 48% 52% 42% 58% / 57% 44% 56% 43%; background: var(--ts-emerald); color: #fff; text-align: center; box-shadow: 0 34px 80px rgba(8, 122, 85, .28); transform: rotate(-4deg); }
.ts-aperture-core strong { display: block; font-size: 3.2rem; line-height: 1; }
.ts-aperture-core span { display: block; margin-top: 10px; font-weight: 800; }
.ts-signal { position: absolute; display: flex; gap: 9px; align-items: center; min-width: 175px; padding: 12px 15px; border: 1px solid rgba(222, 216, 204, .8); border-radius: 15px; background: rgba(255, 253, 248, .95); box-shadow: var(--ts-shadow); font-size: .84rem; font-weight: 900; }
.ts-signal b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ts-mint); color: var(--ts-emerald); }
.ts-signal--one { inset: 32px auto auto 0; }
.ts-signal--two { inset: auto 0 56px auto; }
.ts-signal--three { inset: auto auto 8px 35px; }

.ts-trust { position: relative; margin-top: -1px; padding: 0 0 58px; background: var(--ts-sand); }
.ts-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ts-trust-card { padding: 22px; border: 1px solid var(--ts-line); border-radius: 18px; background: var(--ts-paper); }
.ts-trust-card strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.ts-trust-card span { color: var(--ts-ink-soft); font-size: .9rem; }
.ts-section { padding: clamp(58px, 7vw, 90px) 0; }
.ts-section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.ts-section-head h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.2; letter-spacing: -.04em; }
.ts-section-head p { max-width: 520px; margin: 0; color: var(--ts-ink-soft); }
.ts-empty { padding: clamp(42px, 6vw, 72px); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); background: linear-gradient(135deg, #fff 0, var(--ts-sand) 100%); text-align: center; }
.ts-empty strong { display: block; font-size: 1.55rem; }
.ts-empty p { max-width: 590px; margin: 9px auto 22px; color: var(--ts-ink-soft); }
.ts-content { padding: 55px 0 85px; }
.ts-content > h1, .woocommerce-products-header__title { margin: 0 0 28px; font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.05em; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 13px; border: 1px solid var(--ts-line); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--ts-shadow); }
.woocommerce ul.products li.product img { border-radius: 13px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ts-ink); font-size: 1rem; }
.woocommerce .price { color: var(--ts-emerald) !important; font-weight: 900; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border-radius: 12px; background: var(--ts-emerald); color: #fff; font-weight: 900; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ts-emerald-dark); color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 48px; padding: 10px 13px; border: 1px solid var(--ts-line); border-radius: 11px; background: #fff; }

.ts-footer { padding: 48px 0 24px; background: var(--ts-ink); color: rgba(255,255,255,.82); }
.ts-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 48px; }
.ts-footer h2 { color: #fff; margin: 0 0 10px; }
.ts-footer h3 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.ts-footer ul { margin: 0; padding: 0; list-style: none; }
.ts-footer li + li { margin-top: 7px; }
.ts-footer a:hover { color: #80e0b5; }
.ts-copyright { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

:focus-visible { outline: 3px solid var(--ts-amber); outline-offset: 3px; }
@media (max-width: 900px) {
  .ts-menu { display: none; }
  .ts-mobile-nav { display: block; margin-inline-start: auto; }
  .ts-nav { justify-content: space-between; }
  .ts-hero-grid { grid-template-columns: 1fr; }
  .ts-aperture { min-height: 350px; }
  .ts-orbit { width: min(350px, 90vw); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .ts-shell { width: min(100% - 22px, 1180px); }
  .ts-topline { font-size: .75rem; }
  .ts-nav { min-height: 66px; }
  .ts-brand { font-size: 1.24rem; }
  .ts-actions .ts-account { display: none; }
  .ts-hero { padding-top: 40px; }
  .ts-hero h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  .ts-button { width: 100%; }
  .ts-button--ghost { margin: 9px 0 0; }
  .ts-signal { min-width: 150px; font-size: .74rem; }
  .ts-signal--one { inset-inline-start: 0; }
  .ts-trust-grid, .ts-footer-grid { grid-template-columns: 1fr; gap: 10px; }
  .ts-section-head { display: block; }
  .ts-section-head p { margin-top: 10px; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 9px; }
  .woocommerce ul.products li.product { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
