/*
Theme Name: Moreish
Template: storefront
Description: Bilingual (Arabic/English) child theme for Moreish, built on Storefront + WooCommerce.
Version: 1.4
*/

/* RTL support: this block only loads when WordPress detects an RTL language (Arabic) is active.
   WordPress automatically loads style-rtl.css if it exists, OR you can use this html[dir="rtl"]
   selector approach — simpler for a single-file theme like this one. */

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .site-header .site-branding {
  text-align: right;
}

/* WooCommerce product grid: flip the flex direction so product cards read
   right-to-left, matching Arabic reading order */
html[dir="rtl"] ul.products {
  direction: rtl;
}

/* Price + "Add to cart" button: keep numerals left-to-right even in RTL mode,
   since prices/numbers should NOT visually reverse */
html[dir="rtl"] .price,
html[dir="rtl"] .woocommerce-Price-amount {
  direction: ltr;
  unicode-bidi: embed;
}

/* ================= MOREISH BRAND — light version (Oct 25 2026) =================
   Ivory page, deep burgundy for logo/headings/buttons, antique gold for accents.
   Edit the variables below; every rule uses them. */
:root {
  --moreish-bg:      #FAF5EC;  /* ivory page */
  --moreish-surface: #FFFFFF;  /* header, cards */
  --moreish-ink:     #2B1018;  /* main text (very dark wine-brown) */
  --moreish-burgundy:#6B1530;  /* logo, headings, buttons */
  --moreish-burgundy-hover:#85203F;
  --moreish-gold:    #8F6D22;  /* darker antique gold: prices, links (readable on ivory) */
  --moreish-gold-line:#C9A961; /* decorative gold lines/borders */
  --moreish-footer:  #2A1A16;  /* espresso footer */
  --moreish-footer-text:#F2E6C9;
  --moreish-muted:   #6E5A5E;
  --moreish-font-display: "Cormorant Garamond", Georgia, serif;
  --moreish-font-body:    "Lora", Georgia, serif;
  --moreish-font-arabic:  "Amiri", "Noto Naskh Arabic", serif;
}

body, .site, .site-content, .storefront-handheld-footer-bar {
  background-color: var(--moreish-bg);
  color: var(--moreish-ink);
  font-family: var(--moreish-font-body);
}
h1, h2, h3, h4, h5, h6, .entry-title, .woocommerce-loop-product__title, .widget-title {
  font-family: var(--moreish-font-display);
  color: var(--moreish-burgundy);
  font-weight: 600;
  letter-spacing: 0.01em;
}
html[dir="rtl"] body, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] .entry-title { font-family: var(--moreish-font-arabic); }

a { color: var(--moreish-gold); }
a:hover, a:focus { color: var(--moreish-burgundy); }

.site-title a {
  font-family: var(--moreish-font-display);
  color: var(--moreish-burgundy);
  font-weight: 700;
  font-size: 1.9em;
  letter-spacing: 0.06em;
}
.site-description { color: var(--moreish-muted); font-style: italic; }

.woocommerce ul.products li.product {
  background: var(--moreish-surface);
  padding: 1em;
  border: 1px solid var(--moreish-gold-line);
}
.woocommerce ul.products li.product .price, .woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--moreish-gold); font-weight: 600; }

.button, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background-color: var(--moreish-burgundy); color: #FAF5EC;
  border: 1px solid var(--moreish-burgundy);
  font-family: var(--moreish-font-body); letter-spacing: 0.04em; font-weight: 600;
}
.button:hover, button:hover, input[type="submit"]:hover, .woocommerce a.button:hover,
.woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background-color: var(--moreish-burgundy-hover); color: #FAF5EC;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
  background-color: #FFFFFF; color: var(--moreish-ink);
  border: 1px solid var(--moreish-gold-line);
}
table, th, td { border-color: rgba(201,169,97,0.45); color: var(--moreish-ink); }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background-color: #FFFFFF; color: var(--moreish-ink); border-top-color: var(--moreish-gold-line);
}

/* ===== Storefront prints its own colors after this file, so these use !important (text/background only) ===== */
.site-header, .site-header .site-branding, .site-header .col-full {
  background-color: var(--moreish-surface) !important;
}
.site-header { border-bottom: 1px solid var(--moreish-gold-line); }
.site-header .site-title a, .site-header .site-title a:hover, .site-header .site-title a:visited {
  color: var(--moreish-burgundy) !important;
  font-family: var(--moreish-font-display) !important; font-weight: 700 !important;
}
.site-header .site-description { color: var(--moreish-muted) !important; font-size: 1.05em; }
.site-header a:not(.button), .main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a,
.main-navigation ul li a, .menu-toggle, button.menu-toggle {
  color: var(--moreish-ink) !important; font-weight: 500; background: transparent !important;
}
.main-navigation ul li:hover > a, .main-navigation ul li.current-menu-item > a,
.site-header a:not(.button):hover { color: var(--moreish-gold) !important; }
.main-navigation ul ul, .main-navigation ul ul li a {
  background-color: var(--moreish-surface) !important; color: var(--moreish-ink) !important;
}
.site-header-cart .cart-contents, .site-header-cart .cart-contents .amount,
.site-header-cart .cart-contents .count { color: var(--moreish-burgundy) !important; }
.site-header-cart .widget_shopping_cart { background-color: var(--moreish-surface) !important; color: var(--moreish-ink) !important; }
.site-search input[type="search"], .widget_product_search input[type="search"] {
  background-color: #FFFFFF !important; color: var(--moreish-ink) !important;
  border: 1px solid var(--moreish-gold-line) !important;
}
.site-footer, .site-footer .site-info, .site-footer .widget, .site-footer p, .site-footer li {
  background-color: var(--moreish-footer) !important; color: var(--moreish-footer-text) !important;
}
.site-footer a:not(.button) { color: #E3C98A !important; }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer .widget-title { color: #E3C98A !important; }

.site-content, .site-main, .hentry, .entry-content, .entry-summary, .entry-meta, .posted-on,
.byline, .cat-links, .comment-content, .widget, .woocommerce-breadcrumb, .woocommerce-result-count,
.product_meta, .woocommerce-tabs { color: var(--moreish-ink) !important; }
.entry-title, .entry-title a, .page-title, .hentry .entry-header .entry-title a,
.woocommerce-loop-product__title, h1.product_title { color: var(--moreish-burgundy) !important; }
.entry-meta a, .woocommerce-breadcrumb a, .cat-links a, .comment-meta a { color: var(--moreish-gold) !important; }
.storefront-handheld-footer-bar, .storefront-handheld-footer-bar ul li > a {
  background-color: var(--moreish-surface) !important; color: var(--moreish-ink) !important;
}
.button, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #respond input#submit,
.wc-block-components-button, .added_to_cart {
  background-color: var(--moreish-burgundy) !important; color: #FAF5EC !important;
}
.button:hover, button:hover, input[type="submit"]:hover, .woocommerce a.button:hover,
.woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background-color: var(--moreish-burgundy-hover) !important; color: #FAF5EC !important;
}
.main-navigation ul.menu > li > a, .site-header .site-title a { background: transparent !important; }

/* ===== WORDMARK (option 3: italic flourish, chosen Oct 25 2026) =====
   The site title is the logo. Playfair Display italic is used for the wordmark only;
   everything else stays Cormorant Garamond / Lora. */
:root { --moreish-font-wordmark: "Playfair Display", Georgia, serif; }
.site-header .site-title a, .site-header .site-title a:hover, .site-header .site-title a:visited {
  font-family: var(--moreish-font-wordmark) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: 2.6rem !important;
  letter-spacing: 0.01em !important;
  color: var(--moreish-burgundy) !important;
  text-transform: none !important;
}
.site-header .site-description {
  font-family: var(--moreish-font-body) !important;
  font-style: normal !important;
  font-weight: 500;
  font-size: 0.72rem !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moreish-gold) !important;
  margin-top: 0.4em;
}
@media (max-width: 600px) {
  .site-header .site-title a { font-size: 2rem !important; }
}
