/* Add custom CSS styles below */ 
/* =========================
   SMARTSA STORE — White & Yellow Theme (RTL)
   ========================= */

/* 1) Root variables — brand colors */
:root {
  --brand-ink: #1a1a1a;        /* main text color */
  --brand-accent: #ffcc00;     /* yellow accent color */
  --brand-contrast: #ffffff;   /* white for contrast text */
  --muted: #888888;            /* muted gray text */
  --card-bg: #ffffff;
  --page-bg: #fefefe;
  --radius: 10px;
  --transition: 200ms cubic-bezier(.2,.8,.2,1);
  --max-width: 1200px;
}

/* 2) Global RTL + typography */
html, body {
  direction: rtl;
  font-family: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--brand-ink);
  background: var(--page-bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* 3) Container */
.site, .container, #page {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 18px;
  box-sizing: border-box;
}

/* 4) Header */
.site-header, header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--brand-contrast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid var(--brand-accent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
}

/* Logo */
.site-header .site-logo img, .logo img {
  height: 56px;
  width: auto;
}

/* Nav */
.main-navigation ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: var(--brand-ink);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.main-navigation a:hover {
  background: var(--brand-accent);
  color: var(--brand-contrast);
}

/* 5) Hero / banner */
.hero, .site-hero, .banner {
  background: linear-gradient(180deg, #fff 0%, #fff9e6 100%);
  padding: 40px 0;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}

/* 6) Product grid */
.products-grid, .products, .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 980px) { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: 1fr; } }

/* Product cards */
.product-card, .product, .woocommerce ul.products li.product {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}

/* Product image */
.product-card img, .product img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff9e6;
}

/* Product title & price */
.product-card h3, .woocommerce-loop-product__title {
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--brand-ink);
}
.price {
  font-weight: 700;
  color: var(--brand-accent);
  font-size: 1.1rem;
}

/* Add to cart / buttons */
.btn, .button, .add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--brand-accent);
  color: var(--brand-contrast);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}
.btn:hover, .button:hover {
  background: #ffd633;
  transform: translateY(-2px);
}

/* Secondary button */
.btn.secondary, .button.alt {
  background: transparent;
  border: 1.5px solid var(--brand-accent);
  color: var(--brand-ink);
}
.btn.secondary:hover {
  background: var(--brand-accent);
  color: var(--brand-contrast);
}

/* Sale badge */
.onsale, .sale, .badge {
  background: var(--brand-accent);
  color: var(--brand-contrast);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  position: absolute;
  top: 12px;
  left: 12px;
}

/* 7) Footer */
.site-footer, footer {
  padding: 30px 0;
  background: var(--brand-contrast);
  border-top: 3px solid var(--brand-accent);
  text-align: center;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.site-footer p, .copyright {
  color: var(--muted);
  font-size: 0.9rem;
}

/* 8) Forms */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
  border: 1.5px solid rgba(0,0,0,0.08);
  padding: 12px 14px;
  border-radius: 8px;
  width: 100%;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(255,204,0,0.25);
}

/* 9) Utility */
.text-muted { color: var(--muted); }
.center { text-align: center; }
.bold { font-weight: 700; }

/* 10) Print safe */
@media print {
  .site-header, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}