/*
Theme Name:   TNL Child Theme
Theme URI:    https://tnl-dentistry.com
Description:  TNL – To Next Level for Dentistry | Blocksy Child
Author:       Masa Tech
Author URI:   https://masatech.store
Template:     blocksy
Version:      2.0.0
Text Domain:  tnl-child
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --green:        #2E9E34;
  --green-light:  #4DC952;
  --green-pale:   #E8F9E9;
  --green-mid:    #A3E6A5;
  --blue:         #1A2332;
  --blue-mid:     #243247;
  --blue-light:   #2E4068;

  /* Neutrals */
  --white:        #FFFFFF;
  --off-white:    #F8FAFC;
  --gray-100:     #F1F5F9;
  --gray-200:     #E2E8F0;
  --gray-400:     #94A3B8;
  --gray-600:     #475569;
  --gray-800:     #1E293B;

  /* Semantic */
  --text:         #1E293B;
  --text-muted:   #64748B;
  --border:       #E2E8F0;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
  --shadow-green: 0 8px 32px rgba(46,158,52,.25);
  --shadow-blue:  0 8px 32px rgba(26,35,50,.25);

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Fonts */
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

body[lang="ar"], body.lang-ar { font-family: var(--font-ar) !important; direction: rtl; }
body[lang="ar"] *, body.lang-ar * { font-family: var(--font-ar) !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-light); }

/* ============================================================
   BLOCKSY OVERRIDES — Force full width
   ============================================================ */
/* Remove ALL Blocksy spacing from pages using our templates */
.page-template-page-home .entry-content,
.page-template-page-about .entry-content,
.page-template-page-products .entry-content,
.page-template-page-contact .entry-content,
.page-template-page-home-php .entry-content,
.page-template-page-about-php .entry-content,
.page-template-page-products-php .entry-content,
.page-template-page-contact-php .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.page-template-page-home .ct-main-content-container,
.page-template-page-about .ct-main-content-container,
.page-template-page-products .ct-main-content-container,
.page-template-page-contact .ct-main-content-container,
.page-template-page-home-php .ct-main-content-container,
.page-template-page-about-php .ct-main-content-container,
.page-template-page-products-php .ct-main-content-container,
.page-template-page-contact-php .ct-main-content-container {
  padding: 0 !important;
  max-width: 100% !important;
}

/* Hide Blocksy default page elements on our pages */
.page-template-page-home .page-title,
.page-template-page-about .page-title,
.page-template-page-products .page-title,
.page-template-page-contact .page-title,
.page-template-page-home-php .page-title,
.page-template-page-about-php .page-title,
.page-template-page-products-php .page-title,
.page-template-page-contact-php .page-title,
.page-template-page-home .ct-breadcrumbs,
.page-template-page-about .ct-breadcrumbs,
.page-template-page-products .ct-breadcrumbs,
.page-template-page-contact .ct-breadcrumbs,
.page-template-page-home-php .ct-breadcrumbs,
.page-template-page-about-php .ct-breadcrumbs,
.page-template-page-products-php .ct-breadcrumbs,
.page-template-page-contact-php .ct-breadcrumbs {
  display: none !important;
}

/* Blocksy header override */
.site-header, #header {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}

.site-logo img { max-height: 56px !important; width: auto !important; }

.ct-menu > li > a {
  font-family: var(--font-en) !important;
  font-weight: 500 !important;
  font-size: .9rem !important;
  color: var(--text) !important;
  letter-spacing: .02em !important;
  transition: color .2s !important;
}
.ct-menu > li > a:hover,
.ct-menu > li.current-menu-item > a { color: var(--green) !important; }

/* Hide Blocksy default footer on our pages — we build our own */
.page-template-page-home-php .ct-footer,
.page-template-page-about-php .ct-footer,
.page-template-page-products-php .ct-footer,
.page-template-page-contact-php .ct-footer { display: none !important; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.tnl-container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.tnl-container-sm { max-width: 900px; margin: 0 auto; padding: 0 40px; }

.tnl-section       { padding: 96px 0; }
.tnl-section-sm    { padding: 64px 0; }
.tnl-section-lg    { padding: 120px 0; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.tnl-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 14px;
}
.tnl-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--green); border-radius: 2px; flex-shrink: 0;
}

.tnl-display {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -.025em;
  color: var(--white);
}

.tnl-headline {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.018em;
  color: var(--blue);
}

.tnl-subtext {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.78; max-width: 560px;
}

.tnl-accent-green { color: var(--green-light); }
.tnl-accent-blue  { color: var(--blue-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.tnl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 600; font-size: .9rem;
  letter-spacing: .02em; padding: 14px 32px; border-radius: var(--r-md);
  border: 2px solid transparent; cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  text-decoration: none; white-space: nowrap; line-height: 1;
}

.tnl-btn-primary {
  background: var(--green); color: #fff; border-color: var(--green);
}
.tnl-btn-primary:hover {
  background: #248a29; border-color: #248a29; color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-green);
}

.tnl-btn-secondary {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.tnl-btn-secondary:hover {
  background: var(--blue-mid); border-color: var(--blue-mid); color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-blue);
}

.tnl-btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.tnl-btn-outline-white:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8);
  color: #fff; transform: translateY(-2px);
}

.tnl-btn-outline-green {
  background: transparent; color: var(--green); border-color: var(--green);
}
.tnl-btn-outline-green:hover {
  background: var(--green-pale); color: var(--green);
  transform: translateY(-2px);
}

.tnl-btn-wa {
  background: #25D366; color: #fff; border-color: #25D366;
  font-size: .95rem; padding: 16px 36px;
}
.tnl-btn-wa:hover {
  background: #1DAA53; border-color: #1DAA53; color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.35);
}

.tnl-btn-lg { padding: 18px 44px; font-size: 1rem; border-radius: var(--r-lg); }
.tnl-btn-sm { padding: 10px 22px; font-size: .82rem; }

/* ============================================================
   HERO — HOME
   ============================================================ */
.tnl-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; background: var(--blue);
  position: relative; overflow: hidden; padding: 100px 0 80px;
}

.tnl-hero-bg-gradient {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 100% 40%, rgba(46,158,52,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 80%, rgba(77,201,82,.08) 0%, transparent 50%);
}

.tnl-hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
}

.tnl-hero-bg-circle {
  position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,158,52,.1) 0%, transparent 70%);
  pointer-events: none;
}

.tnl-hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.tnl-hero-left {}

.tnl-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,158,52,.2); border: 1px solid rgba(46,158,52,.4);
  color: var(--green-mid); padding: 8px 18px; border-radius: 100px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}

.tnl-hero h1 { animation: fadeUp .7s ease .1s both; margin-bottom: 24px; }
.tnl-hero-sub {
  color: rgba(255,255,255,.6); font-size: 1.1rem; line-height: 1.8;
  max-width: 500px; margin-bottom: 44px;
  animation: fadeUp .7s ease .2s both;
}
.tnl-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .7s ease .3s both; }

.tnl-hero-stats {
  display: flex; gap: 40px; margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  animation: fadeUp .7s ease .4s both;
}
.tnl-hero-stat-num {
  font-size: 2rem; font-weight: 800; color: var(--green-light);
  line-height: 1; letter-spacing: -.02em;
}
.tnl-hero-stat-lbl { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 4px; font-weight: 500; }

/* Hero right — visual */
.tnl-hero-right {
  position: relative; display: flex; align-items: center;
  justify-content: center; animation: fadeUp .8s ease .3s both;
}
.tnl-hero-img-wrap {
  position: relative; width: 100%; max-width: 480px;
}
.tnl-hero-img-main {
  width: 100%; border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  background: var(--blue-mid);
  aspect-ratio: 4/3; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; /* placeholder emoji */
}
.tnl-hero-card-float {
  position: absolute; background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.tnl-hero-card-float.pos-1 { bottom: -24px; left: -32px; }
.tnl-hero-card-float.pos-2 { top: -20px; right: -24px; }
.tnl-hero-card-icon {
  width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}
.tnl-hero-card-text h6 { font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.tnl-hero-card-text p  { font-size: .7rem; color: rgba(255,255,255,.5); }

/* ============================================================
   MARQUEE / TRUST STRIP
   ============================================================ */
.tnl-trust-strip {
  background: var(--off-white); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 20px 0;
  overflow: hidden; position: relative;
}
.tnl-marquee-track {
  display: flex; gap: 60px; align-items: center;
  animation: marquee 24s linear infinite; width: max-content;
}
.tnl-trust-strip:hover .tnl-marquee-track { animation-play-state: paused; }
.tnl-marquee-item {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: .82rem; font-weight: 600; color: var(--gray-600);
  letter-spacing: .04em; text-transform: uppercase;
}
.tnl-marquee-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ============================================================
   ABOUT SECTION (on home)
   ============================================================ */
.tnl-about-home {
  background: var(--white);
}
.tnl-about-home-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.tnl-about-img-wrap {
  position: relative;
}
.tnl-about-img {
  width: 100%; border-radius: var(--r-xl);
  aspect-ratio: 4/5; object-fit: cover;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.tnl-about-badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--green); color: #fff;
  border-radius: var(--r-lg); padding: 24px 28px;
  box-shadow: var(--shadow-green);
}
.tnl-about-badge-float .num { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.tnl-about-badge-float .lbl { font-size: .78rem; font-weight: 600; opacity: .85; margin-top: 4px; }

.tnl-about-body .tnl-headline { margin-bottom: 20px; }
.tnl-about-body p { color: var(--text-muted); line-height: 1.82; margin-bottom: 20px; font-size: 1rem; }

.tnl-about-feats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 32px 0 40px;
}
.tnl-about-feat {
  display: flex; gap: 12px; align-items: flex-start;
}
.tnl-about-feat-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--green-pale); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.tnl-about-feat h5 { font-size: .9rem; font-weight: 700; color: var(--blue); margin-bottom: 3px; }
.tnl-about-feat p  { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.tnl-products-section { background: var(--off-white); }
.tnl-products-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
}

/* Product cards */
.tnl-products-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.tnl-prod-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  display: flex; flex-direction: column;
}
.tnl-prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg); border-color: var(--green-mid);
}
.tnl-prod-img-wrap { overflow: hidden; position: relative; aspect-ratio: 4/3; }
.tnl-prod-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.tnl-prod-card:hover .tnl-prod-img { transform: scale(1.06); }
.tnl-prod-cat-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue); color: #fff;
  font-size: .66rem; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; letter-spacing: .06em; text-transform: uppercase;
}
.tnl-prod-body { padding: 22px 22px 8px; flex: 1; }
.tnl-prod-name {
  font-size: 1rem; font-weight: 700; color: var(--blue);
  margin-bottom: 8px; line-height: 1.3;
}
.tnl-prod-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.6; }
.tnl-prod-footer { padding: 14px 22px 22px; }
.tnl-prod-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 18px; background: var(--green-pale);
  color: var(--green) !important; border-radius: var(--r-sm);
  font-weight: 600; font-size: .84rem; text-decoration: none;
  transition: all .2s; border: 1px solid rgba(46,158,52,.2);
}
.tnl-prod-wa:hover { background: var(--green); color: #fff !important; border-color: var(--green); }

/* WooCommerce loop override */
ul.products { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 24px !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
ul.products li.product { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg) !important; overflow: hidden; transition: transform .3s,box-shadow .3s; margin: 0 !important; }
ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
ul.products li.product img { width:100%; height:220px; object-fit:cover; }
ul.products li.product .woocommerce-loop-product__title { font-size:.98rem !important; font-weight:700 !important; padding:18px 18px 4px !important; margin:0 !important; color:var(--blue) !important; }
ul.products li.product .price, ul.products li.product .button, ul.products li.product .add_to_cart_button { display:none !important; }

/* ============================================================
   NEW ARRIVALS
   ============================================================ */
.tnl-new-arrivals { background: var(--white); }
.tnl-new-arrivals-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start;
}
.tnl-new-highlight {
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: var(--r-xl); padding: 40px; color: #fff;
  position: sticky; top: 100px; overflow: hidden;
}
.tnl-new-highlight::before {
  content: 'NEW'; position: absolute; top: -20px; right: -20px;
  font-size: 120px; font-weight: 900; color: rgba(255,255,255,.04);
  letter-spacing: -.05em; pointer-events: none; line-height: 1;
}
.tnl-new-highlight .tnl-label { color: var(--green-mid); }
.tnl-new-highlight h3 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 12px; position: relative; z-index: 1; }
.tnl-new-highlight p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.75; position: relative; z-index: 1; margin-bottom: 28px; }

.tnl-new-list { display: flex; flex-direction: column; gap: 16px; }
.tnl-new-item {
  display: flex; gap: 18px; align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px; transition: all .25s;
  text-decoration: none;
}
.tnl-new-item:hover { border-color: var(--green-mid); box-shadow: var(--shadow-md); transform: translateX(4px); }
.tnl-new-item-img {
  width: 80px; height: 80px; min-width: 80px;
  border-radius: var(--r-sm); object-fit: cover;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; overflow: hidden;
}
.tnl-new-badge { display: inline-block; background: var(--green); color: #fff; font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.tnl-new-item-name { font-size: .95rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; line-height: 1.3; }
.tnl-new-item-cat { font-size: .78rem; color: var(--text-muted); }
.tnl-new-item-arrow { margin-left: auto; color: var(--green); font-size: 1.2rem; flex-shrink: 0; }

/* ============================================================
   SHOP BY CATEGORY
   ============================================================ */
.tnl-categories { background: var(--blue); overflow: hidden; position: relative; }
.tnl-categories::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(46,158,52,.12), transparent 60%);
}
.tnl-categories > .tnl-container { position: relative; z-index: 1; }
.tnl-categories .tnl-headline { color: #fff; }
.tnl-categories .tnl-subtext  { color: rgba(255,255,255,.55); }

.tnl-cats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  margin-top: 52px;
}
.tnl-cat-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 32px 24px; text-align: center;
  cursor: pointer; transition: all .25s; text-decoration: none; display: block;
}
.tnl-cat-card:hover {
  background: rgba(255,255,255,.10); border-color: rgba(46,158,52,.4);
  transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.tnl-cat-icon {
  width: 64px; height: 64px; border-radius: var(--r-md);
  background: rgba(46,158,52,.15); border: 1px solid rgba(46,158,52,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 18px;
  transition: background .25s;
}
.tnl-cat-card:hover .tnl-cat-icon { background: var(--green); }
.tnl-cat-name { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.tnl-cat-count { font-size: .78rem; color: rgba(255,255,255,.45); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.tnl-why { background: var(--off-white); }
.tnl-why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.tnl-why-list { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.tnl-why-item { display: flex; gap: 20px; }
.tnl-why-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow-green);
}
.tnl-why-item h4 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.tnl-why-item p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

.tnl-why-visual {
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: var(--r-xl); padding: 48px; position: relative; overflow: hidden;
}
.tnl-why-visual::before {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(46,158,52,.12); pointer-events: none;
}
.tnl-metric { margin-bottom: 28px; }
.tnl-metric:last-child { margin-bottom: 0; }
.tnl-metric-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tnl-metric-lbl { font-size: .88rem; color: rgba(255,255,255,.7); font-weight: 500; }
.tnl-metric-val { font-size: .88rem; color: var(--green-light); font-weight: 700; }
.tnl-metric-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 100px; overflow: hidden; }
.tnl-metric-fill {
  height: 100%; background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: 100px; transition: width 1.5s ease;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.tnl-cta {
  background: linear-gradient(135deg, var(--green) 0%, #1e7a23 60%, var(--blue) 100%);
  position: relative; overflow: hidden;
}
.tnl-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.tnl-cta-inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 640px; margin: 0 auto;
}
.tnl-cta h2 { font-size: clamp(1.8rem,3.5vw,3rem); font-weight: 900; color: #fff; margin-bottom: 16px; }
.tnl-cta p  { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 40px; line-height: 1.7; }
.tnl-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.tnl-footer { background: var(--blue); }
.tnl-footer-top {
  padding: 72px 0 56px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tnl-footer-brand img {
  height: 48px; margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.tnl-footer-brand p { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.75; margin-bottom: 24px; }
.tnl-footer-socials { display: flex; gap: 10px; }
.tnl-footer-socials a {
  width: 38px; height: 38px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .78rem; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.tnl-footer-socials a:hover { background: var(--green); border-color: var(--green); color: #fff; }

.tnl-footer-col h5 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px; }
.tnl-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tnl-footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.tnl-footer-col ul a:hover { color: var(--green-light); }

.tnl-footer-bottom {
  padding: 22px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.25);
}
.tnl-footer-bottom a { color: var(--green-light); text-decoration: none; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.tnl-page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  padding: 120px 0 72px; position: relative; overflow: hidden;
}
.tnl-page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(46,158,52,.12), transparent 55%);
}
.tnl-page-hero > .tnl-container { position: relative; z-index: 1; }
.tnl-page-hero .tnl-headline { color: #fff; margin-bottom: 14px; }
.tnl-page-hero p { color: rgba(255,255,255,.6); font-size: 1.05rem; line-height: 1.78; max-width: 520px; }

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.tnl-single-product { padding: 72px 0 100px; }
.tnl-sp-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }

.tnl-sp-gallery { position: sticky; top: 90px; }
.tnl-sp-main-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-xl); border: 1px solid var(--border);
  margin-bottom: 16px; background: var(--gray-100);
}
.tnl-sp-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.tnl-sp-thumb {
  aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm);
  border: 2px solid transparent; cursor: pointer; transition: border-color .2s;
  background: var(--gray-100);
}
.tnl-sp-thumb.active, .tnl-sp-thumb:hover { border-color: var(--green); }

.tnl-sp-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-muted); margin-bottom: 18px; }
.tnl-sp-breadcrumb a { color: var(--text-muted); transition: color .2s; }
.tnl-sp-breadcrumb a:hover { color: var(--green); }
.tnl-sp-breadcrumb span { color: var(--gray-400); }

.tnl-sp-cat { display: inline-block; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.tnl-sp-title { font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 900; color: var(--blue); line-height: 1.12; margin-bottom: 18px; }
.tnl-sp-short-desc { color: var(--text-muted); font-size: .97rem; line-height: 1.82; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }

.tnl-sp-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.tnl-sp-feats li { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; color: var(--text); line-height: 1.5; }
.tnl-sp-feats li::before {
  content: ''; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  background: var(--green-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%232E9E34' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/13px no-repeat;
  border-radius: 50%;
}

.tnl-sp-wa-box {
  background: var(--green-pale); border: 1px solid rgba(46,158,52,.2);
  border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px;
}
.tnl-sp-wa-box p { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }
.tnl-sp-wa-box .tnl-btn-wa { width: 100%; justify-content: center; font-size: 1rem; padding: 18px; border-radius: var(--r-sm); }

.tnl-sp-pdf { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: .88rem; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--border); width: 100%; transition: color .2s; }
.tnl-sp-pdf:hover { color: var(--green-light); }

/* Tabs */
.tnl-sp-tabs { margin-top: 64px; border-top: 1px solid var(--border); padding-top: 48px; }
.tnl-tabs-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 36px; gap: 4px; }
.tnl-tab-btn { padding: 12px 28px; font-family: var(--font-en); font-size: .88rem; font-weight: 600; color: var(--text-muted); background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: all .2s; }
.tnl-tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tnl-tab-panel { display: none; }
.tnl-tab-panel.active { display: block; }
.tnl-specs-table { width: 100%; max-width: 600px; border-collapse: collapse; }
.tnl-specs-table tr { border-bottom: 1px solid var(--border); }
.tnl-specs-table tr:last-child { border-bottom: none; }
.tnl-specs-table td { padding: 14px 0; font-size: .9rem; }
.tnl-specs-table td:first-child { font-weight: 700; color: var(--blue); width: 42%; }
.tnl-specs-table td:last-child { color: var(--text-muted); }

/* Related */
.tnl-related { padding: 72px 0; background: var(--off-white); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.tnl-about-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; background: var(--white); border-radius: var(--r-xl);
  border: 1px solid var(--border); overflow: hidden; margin-top: 64px;
}
.tnl-about-stat {
  padding: 40px 32px; text-align: center;
  border-right: 1px solid var(--border); transition: background .2s;
}
.tnl-about-stat:last-child { border-right: none; }
.tnl-about-stat:hover { background: var(--green-pale); }
.tnl-about-stat .num { font-size: 2.6rem; font-weight: 900; color: var(--green); line-height: 1; letter-spacing: -.03em; }
.tnl-about-stat .lbl { font-size: .82rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

.tnl-team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.tnl-team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 40px 28px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.tnl-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tnl-team-avatar { width: 80px; height: 80px; background: var(--green-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 18px; }
.tnl-team-name { font-size: 1.05rem; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.tnl-team-role { font-size: .82rem; color: var(--green); font-weight: 600; margin-bottom: 12px; }
.tnl-team-bio  { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }

.tnl-vals-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tnl-val-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: all .3s; }
.tnl-val-card:hover { border-color: var(--green-mid); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tnl-val-icon { width: 52px; height: 52px; background: var(--green-pale); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.tnl-val-card h4 { font-size: .98rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.tnl-val-card p  { font-size: .86rem; color: var(--text-muted); line-height: 1.68; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.tnl-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }

.tnl-contact-info { background: linear-gradient(145deg, var(--blue) 0%, var(--blue-mid) 100%); border-radius: var(--r-xl); padding: 48px; overflow: hidden; position: relative; }
.tnl-contact-info::after { content: ''; position: absolute; bottom: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(46,158,52,.1); pointer-events: none; }
.tnl-contact-info h3 { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.tnl-contact-info .sub { color: rgba(255,255,255,.55); font-size: .9rem; margin-bottom: 40px; line-height: 1.6; }

.tnl-ci { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none; transition: opacity .2s; }
.tnl-ci:hover { opacity: .75; }
.tnl-ci:last-of-type { border-bottom: none; }
.tnl-ci-icon { width: 44px; height: 44px; min-width: 44px; background: rgba(46,158,52,.15); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.tnl-ci-lbl { font-size: .68rem; color: rgba(255,255,255,.4); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.tnl-ci-val { font-size: .9rem; color: #fff; font-weight: 600; }

.tnl-wa-quick { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; position: relative; z-index: 1; }
.tnl-wa-quick-item { display: flex; align-items: center; gap: 12px; background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.2); border-radius: var(--r-sm); padding: 14px 18px; text-decoration: none; transition: all .2s; }
.tnl-wa-quick-item:hover { background: rgba(37,211,102,.2); transform: translateX(4px); }
.tnl-wa-quick-item h6 { color: #fff; font-size: .86rem; font-weight: 700; margin-bottom: 2px; }
.tnl-wa-quick-item p  { color: rgba(255,255,255,.5); font-size: .74rem; margin: 0; }

.tnl-form-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 48px; }
.tnl-form-box h3 { font-size: 1.5rem; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.tnl-form-box .sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 36px; }
.tnl-field { margin-bottom: 20px; }
.tnl-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.tnl-field input, .tnl-field select, .tnl-field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-family: var(--font-en); font-size: .92rem; color: var(--text); background: var(--white); transition: all .2s; outline: none; }
.tnl-field input:focus, .tnl-field select:focus, .tnl-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(46,158,52,.1); }
.tnl-field textarea { min-height: 130px; resize: vertical; }
.tnl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tnl-submit { width: 100%; padding: 16px; background: var(--green); color: #fff; border: none; border-radius: var(--r-sm); font-family: var(--font-en); font-weight: 700; font-size: .97rem; cursor: pointer; transition: all .22s; margin-top: 8px; }
.tnl-submit:hover { background: #248a29; transform: translateY(-2px); box-shadow: var(--shadow-green); }
.tnl-form-msg { padding: 14px 18px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; margin-top: 16px; display: none; }
.tnl-form-msg.success { background: var(--green-pale); color: var(--green); display: block; }
.tnl-form-msg.error   { background: #FEE2E2; color: #B91C1C; display: block; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.tnl-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.tnl-filter-btn { padding: 9px 22px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--white); color: var(--text-muted); font-family: var(--font-en); font-size: .84rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.tnl-filter-btn:hover, .tnl-filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ============================================================
   FLOAT BUTTONS
   ============================================================ */
#tnlWaFloat {
  position: fixed; bottom: 28px; right: 28px; width: 60px; height: 60px;
  background: #25D366; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; z-index: 9999; text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s;
  animation: tnlPulse 2.5s infinite;
}
#tnlWaFloat:hover { transform: scale(1.12); box-shadow: 0 12px 36px rgba(37,211,102,.55); color: #fff; }
#tnlScrollTop { position: fixed; bottom: 100px; right: 28px; width: 46px; height: 46px; background: var(--blue); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: var(--shadow-md); z-index: 9998; }
#tnlScrollTop.show { opacity: 1; pointer-events: auto; }
#tnlScrollTop:hover { background: var(--blue-mid); transform: translateY(-3px); }

/* ============================================================
   WOOCOMMERCE — CATALOGUE MODE
   ============================================================ */
.woocommerce-cart-form, .woocommerce-cart .cart-collaterals,
.widget_shopping_cart, .cart-contents, .woocommerce-mini-cart,
.single_add_to_cart_button, button.single_add_to_cart_button,
.woocommerce .woocommerce-Price-amount { display: none !important; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.tnl-reveal { opacity: 0; transform: translateY(36px); transition: opacity .75s ease, transform .75s ease; }
.tnl-reveal.visible { opacity: 1; transform: translateY(0); }
.tnl-reveal-left  { opacity: 0; transform: translateX(-36px); transition: opacity .75s ease, transform .75s ease; }
.tnl-reveal-right { opacity: 0; transform: translateX(36px);  transition: opacity .75s ease, transform .75s ease; }
.tnl-reveal-left.visible, .tnl-reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

   /* حاوية الصورة الكبيرة */
.tnl-sp-main-img-wrapper {
    overflow: hidden; /* عشان الصورة متطلعش بره الحواف وهي بتكبر */
    cursor: zoom-in;
}

.tnl-sp-main-img {
    transition: transform 0.5s ease; /* نعومة في التكبير */
    width: 100%;
    height: auto;
    display: block;
}

/* التكبير عند الوقوف بالماوس */
.tnl-sp-main-img-wrapper:hover .tnl-sp-main-img {
    transform: scale(1.5); /* كبّر الصورة مرة ونص */
}

@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes tnlPulse { 0%,100%{box-shadow:0 0 0 0 rgba(37,211,102,.45)}50%{box-shadow:0 0 0 14px rgba(37,211,102,0)} }

/* ============================================================
   RTL SUPPORT
   ============================================================ */
body[lang="ar"] .tnl-label::before { order: 1; }
body[lang="ar"] .tnl-hero-stats { flex-direction: row-reverse; }
body[lang="ar"] .tnl-footer-top { direction: rtl; }
body[lang="ar"] .tnl-wa-quick-item:hover { transform: translateX(-4px); }
body[lang="ar"] .tnl-new-item:hover { transform: translateX(-4px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .tnl-container, .tnl-container-sm { padding: 0 28px; }
  .tnl-hero-content { gap: 48px; }
  .tnl-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tnl-cats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .tnl-hero-content, .tnl-about-home-grid, .tnl-why-grid,
  .tnl-sp-grid, .tnl-contact-grid, .tnl-new-arrivals-grid { grid-template-columns: 1fr; gap: 48px; }
  .tnl-hero-right, .tnl-about-img-wrap { display: none; }
  .tnl-products-grid, ul.products { grid-template-columns: repeat(2,1fr) !important; }
  .tnl-about-stats-row { grid-template-columns: repeat(2,1fr); }
  .tnl-about-stat:nth-child(2) { border-right: none; }
  .tnl-about-stat:nth-child(3) { border-top: 1px solid var(--border); }
  .tnl-vals-grid, .tnl-team-grid { grid-template-columns: 1fr 1fr; }
  .tnl-sp-gallery { position: static; }
}
@media (max-width: 640px) {
  .tnl-section { padding: 64px 0; }
  .tnl-products-grid, ul.products { grid-template-columns: 1fr !important; }
  .tnl-cats-grid { grid-template-columns: repeat(2,1fr); }
  .tnl-hero-stats { gap: 24px; }
  .tnl-footer-top { grid-template-columns: 1fr; }
  .tnl-vals-grid, .tnl-team-grid { grid-template-columns: 1fr; }
  .tnl-field-row { grid-template-columns: 1fr; }
  .tnl-form-box { padding: 28px 22px; }
  .tnl-cta-btns { flex-direction: column; align-items: center; }
  .tnl-about-stats-row { grid-template-columns: 1fr 1fr; }
  .tnl-about-feat { flex-direction: column; }
}
