/* ===========================
   Custom CSS - Malak theme
   For: bishtaljazera.com
   RTL / Arabic friendly
   =========================== */

/* ---------- Fonts (Google Fonts) ----------
   Paste at top of your Custom CSS - will load Tajawal.
   If your theme already loads fonts, remove @import to avoid duplication. */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;600;700;900&display=swap');

/* ---------- Root variables (easy customization) ---------- */
:root{
  --brand-1: #4b1f17;      /* deep maroon (main) */
  --brand-2: #c49a3d;      /* gold accent */
  --accent-2: #f4f0ea;     /* light background */
  --text: #222222;
  --muted: #6b6b6b;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow-1: 0 6px 18px rgba(33,33,33,0.08);
  --transition-fast: 180ms ease;
  --max-width: 1200px;
}

/* ---------- Global & RTL layout ---------- */
html, body {
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-family: 'Tajawal', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background-color: var(--accent-2);
  margin: 0;
  padding: 0;
}

/* Constrain main container width but keep centered */
.container, .site-wrapper, .main-wrapper {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 16px;
}

/* ---------- Header / Navbar ---------- */
.header, header, .site-header {
  background: linear-gradient(90deg, rgba(75,31,23,0.97), rgba(75,31,23,0.92));
  color: #fff;
  box-shadow: var(--shadow-1);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.header .logo img, .site-header .logo img {
  max-height: 64px;
  width: auto;
  display: block;
}

/* Top nav links */
nav.site-nav, .main-nav, .navbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Dropdowns and search */
nav .dropdown, .site-search {
  background: transparent;
  color: #fff;
}

/* ---------- Hero / Banner ---------- */
.hero, .store-hero {
  border-radius: 14px;
  overflow: hidden;
  margin: 18px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 22px;
  box-shadow: var(--shadow-1);
}

/* ---------- Product grid & cards ---------- */
.products-grid, .product-list, .grid-products {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}

/* responsive grid */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* product card base */
.product-card, .card-product, .product-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

/* hover lift */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(33,33,33,0.12);
}

/* image */
.product-card img, .product-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* title & vendor */
.product-card .title, .product-card .product-title, .product-name {
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--brand-1);
  line-height: 1.2;
}

/* description (if any) */
.product-card .excerpt, .product-card .desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  flex: 1 0 auto;
}

/* price and actions row */
.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

/* price style */
.price, .product-price {
  font-weight: 800;
  color: var(--brand-1);
  font-size: 18px;
}

/* old price */
.price .old, .product-price .old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

/* buttons */
.btn, .button, .add-to-cart {
  background: var(--brand-1);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 6px 20px rgba(75,31,23,0.14);
  text-decoration: none;
  display: inline-block;
}
.btn:hover, .button:hover {
  transform: translateY(-3px);
  background: #371412;
}

/* ghost / outline button */
.btn-outline, .button--outline {
  background: transparent;
  color: var(--brand-1);
  border: 2px solid rgba(196,154,61,0.14);
}

/* sale ribbon */
.product-card .ribbon {
  position: absolute;
  right: 14px;
  top: 14px;
  background: var(--brand-2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(196,154,61,0.12);
}

/* ---------- Mini UI improvements ---------- */
/* Breadcrumb */
.breadcrumbs, .breadcrumb {
  background: transparent;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

/* Category list */
.categories-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(75,31,23,0.06);
  background: #fff;
  color: var(--brand-1);
  margin: 6px 6px 6px 0;
  text-decoration: none;
  font-weight: 600;
}

/* Floating WhatsApp button (uses existing wa.me link if present) */
a.floating-wapp, .whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px; /* left because RTL store (users expect bottom-left). Change to right: for LTR */
  z-index: 9999;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.18);
  text-decoration: none;
  font-size: 22px;
}

/* Footer */
.site-footer, footer, .footer {
  background: #111111;
  color: #e8e8e8;
  padding: 28px 16px;
  margin-top: 28px;
}
.site-footer a, footer a { color: var(--brand-2); text-decoration: none; }

/* ---------- Accessibility & small tweaks ---------- */
a { transition: opacity var(--transition-fast); }
a:focus, button:focus { outline: 3px solid rgba(196,154,61,0.18); outline-offset: 2px; }

/* Improve default form fields */
input, textarea, select {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font-family: inherit;
}

/* mobile: large tap targets */
@media (max-width: 560px) {
  .btn, .button { padding: 12px 16px; font-size: 15px; border-radius: 12px; }
  .product-card img { height: 200px; }
  .header .logo img { max-height: 56px; }
}

/* Small helper: center empty state */
.empty-state { text-align: center; color: var(--muted); padding: 34px; }

/* ---------- End of Custom CSS ---------- */