/*
Theme Name: T-ZONE Store
Theme URI: https://tz-lb.com
Author: T-ZONE
Description: Fast RTL WooCommerce block theme for T-ZONE.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: tzone-store
*/

:root {
  --tz-primary: #153bd1;
  --tz-accent: #b9f52c;
  --tz-dark: #07133f;
  --tz-surface: #f4f7fc;
  --tz-border: #dfe6f1;
  --tz-muted: #5f6b85;
  --tz-white: #ffffff;
  --tz-radius: 22px;
  --tz-shadow: 0 18px 55px rgba(7, 19, 63, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--tz-dark);
  background: var(--tz-white);
  font-family: "Noto Kufi Arabic", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { transition: color .18s ease, background .18s ease, transform .18s ease, border-color .18s ease; }

.wp-site-blocks { overflow: hidden; }

.tz-announcement {
  min-height: 34px;
  padding: 7px 18px;
  background: var(--tz-dark);
  color: #fff;
  font-size: .83rem;
  text-align: center;
}

.tz-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(223, 230, 241, .88);
  background: rgba(255,255,255,.94);
  box-shadow: 0 9px 28px rgba(7,19,63,.055);
  backdrop-filter: blur(14px);
}

.tz-header-inner {
  min-height: 76px;
  gap: 28px;
}

.tz-brand a,
.tz-brand {
  color: var(--tz-primary) !important;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.055em;
  text-decoration: none;
}

.tz-header .wp-block-navigation a {
  color: var(--tz-dark);
  font-size: .93rem;
  font-weight: 750;
  text-decoration: none;
}

.tz-header .wp-block-navigation a:hover { color: var(--tz-primary); }

.tz-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 610px;
  padding-top: clamp(54px, 7vw, 105px) !important;
  padding-bottom: clamp(44px, 6vw, 90px) !important;
  background:
    radial-gradient(circle at 14% 20%, rgba(185,245,44,.26), transparent 26%),
    radial-gradient(circle at 88% 35%, rgba(21,59,209,.18), transparent 30%),
    linear-gradient(135deg, #f8faff 0%, #eef3ff 52%, #f7ffd9 100%);
}

.tz-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(21,59,209,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21,59,209,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.tz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px !important;
  padding: 8px 13px;
  border: 1px solid rgba(21,59,209,.18);
  border-radius: 999px;
  color: var(--tz-primary);
  background: rgba(255,255,255,.74);
  font-size: .78rem;
  font-weight: 800;
}

.tz-eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tz-accent);
  box-shadow: 0 0 0 5px rgba(185,245,44,.20);
  content: "";
}

.tz-hero h1 {
  max-width: 720px;
  margin: 0 0 20px !important;
  font-size: clamp(2.35rem, 5.8vw, 5.3rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.tz-highlight {
  color: var(--tz-primary);
  position: relative;
  white-space: nowrap;
}

.tz-highlight::after {
  position: absolute;
  right: 2%;
  bottom: -5px;
  left: 2%;
  height: 8px;
  border-radius: 8px;
  background: var(--tz-accent);
  content: "";
  transform: rotate(-1deg);
  opacity: .88;
}

.tz-hero-lead {
  max-width: 660px;
  color: var(--tz-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.9;
}

.tz-hero-image {
  position: relative;
  filter: drop-shadow(0 30px 30px rgba(7,19,63,.18));
  transform: translateY(10px) rotate(-1deg);
}

.tz-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.tz-primary-button .wp-block-button__link,
.tz-primary-button.wp-block-button .wp-block-button__link,
.wc-block-components-button:not(.is-link),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border: 1px solid var(--tz-primary) !important;
  border-radius: 14px !important;
  color: #fff !important;
  background: var(--tz-primary) !important;
  box-shadow: 0 12px 24px rgba(21,59,209,.18);
  font-weight: 800 !important;
}

.tz-primary-button .wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #0e2ca8 !important;
  transform: translateY(-2px);
}

.tz-whatsapp-button .wp-block-button__link {
  border: 1px solid #1fbf70;
  border-radius: 14px;
  color: #087847;
  background: #e9fff5;
  font-weight: 800;
}

.tz-section {
  padding-top: clamp(62px, 8vw, 108px) !important;
  padding-bottom: clamp(62px, 8vw, 108px) !important;
}

.tz-section-surface { background: var(--tz-surface); }

.tz-section-heading {
  max-width: 760px;
  margin-bottom: 34px !important;
}

.tz-section-heading h2 {
  margin-bottom: 11px !important;
  font-size: clamp(1.9rem, 3.6vw, 3.15rem);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.tz-section-heading p {
  color: var(--tz-muted);
  line-height: 1.85;
}

.tz-category-card,
.tz-service-card,
.tz-contact-card,
.tz-track-card {
  height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--tz-border);
  border-radius: var(--tz-radius);
  background: #fff;
  box-shadow: 0 12px 36px rgba(7,19,63,.055);
}

.tz-category-card:hover,
.tz-service-card:hover {
  border-color: rgba(21,59,209,.35);
  box-shadow: var(--tz-shadow);
  transform: translateY(-5px);
}

.tz-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 19px;
  border-radius: 16px;
  color: var(--tz-primary);
  background: #eaf0ff;
  font-size: 1.45rem;
  font-weight: 900;
}

.tz-category-card h3,
.tz-service-card h3 { margin: 0 0 8px !important; }

.tz-category-card p,
.tz-service-card p,
.tz-contact-card p { color: var(--tz-muted); line-height: 1.8; }

.tz-category-card a { color: inherit; text-decoration: none; }

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.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;
  padding: 15px 15px 19px;
  border: 1px solid var(--tz-border);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7,19,63,.055);
}

.woocommerce ul.products li.product:hover {
  border-color: rgba(21,59,209,.3);
  box-shadow: var(--tz-shadow);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  margin-bottom: 15px !important;
  border-radius: 14px;
  object-fit: contain;
  background: #f7f9fd;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--tz-dark);
  font-size: .97rem;
  line-height: 1.6;
}

.woocommerce ul.products li.product .price {
  color: var(--tz-primary);
  font-size: 1.06rem;
  font-weight: 900;
}

.woocommerce span.onsale {
  right: 24px !important;
  left: auto !important;
  min-width: 48px;
  border-radius: 12px;
  color: var(--tz-dark);
  background: var(--tz-accent);
}

.tz-track-card {
  max-width: 900px;
  margin-inline: auto;
}

.tz-track-card .track_order { display: grid; gap: 14px; }

.tz-track-card .form-row { width: 100% !important; margin: 0 !important; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection--single {
  min-height: 48px;
  border: 1px solid var(--tz-border);
  border-radius: 12px;
  background: #fff;
}

.tz-footer {
  padding-top: 62px !important;
  padding-bottom: 28px !important;
  color: #d7def5;
  background: var(--tz-dark);
}

.tz-footer h2,
.tz-footer h3,
.tz-footer .wp-block-site-title a { color: #fff !important; }

.tz-footer a { color: #e8edff; }
.tz-footer a:hover { color: var(--tz-accent); }
.tz-footer .tz-footer-muted { color: #aeb9d8; line-height: 1.8; }

.tz-whatsapp-float {
  position: fixed;
  z-index: 70;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 17px;
  border-radius: 999px;
  color: #fff !important;
  background: #1fbf70;
  box-shadow: 0 12px 28px rgba(4,106,61,.28);
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}

.tz-whatsapp-float:hover { transform: translateY(-3px); background: #119e5b; }

.woocommerce div.product {
  padding-block: 54px;
}

.woocommerce div.product div.images img {
  border: 1px solid var(--tz-border);
  border-radius: 20px;
  background: #f8faff;
}

.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.woocommerce div.product p.price { color: var(--tz-primary); font-size: 1.6rem; font-weight: 900; }

.woocommerce table.shop_table {
  overflow: hidden;
  border-color: var(--tz-border);
  border-radius: 16px;
}

@media (max-width: 980px) {
  .tz-header-inner { min-height: 68px; }
  .tz-header .wp-block-navigation__responsive-container-open { display: flex; }
  .tz-hero { min-height: auto; text-align: center; }
  .tz-hero .wp-block-columns { gap: 24px; }
  .tz-eyebrow, .tz-hero-lead { margin-inline: auto; }
  .tz-hero .wp-block-buttons { justify-content: center; }
  .tz-hero-image { max-width: 560px; margin-inline: auto; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .tz-announcement { font-size: .74rem; }
  .tz-header-inner { padding-inline: 16px !important; }
  .tz-brand a, .tz-brand { font-size: 1.4rem; }
  .tz-hero { padding-inline: 18px !important; }
  .tz-hero h1 { font-size: 2.45rem; }
  .tz-highlight { white-space: normal; }
  .tz-hero-image { margin-top: 8px; }
  .tz-section { padding-inline: 18px !important; }
  .woocommerce ul.products { grid-template-columns: 1fr; gap: 16px; }
  .tz-whatsapp-float { right: 14px; bottom: 14px; padding: 12px 14px; }
}
