/*
Theme Name:  Grain Roastery
Theme URI:   https://grainroastery.qa
Author:      Grain Roastery
Author URI:  https://grainroastery.qa
Description: قالب محمصة غراين — تصميم مخصص مع دعم WooCommerce
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grain-theme
Tags:        rtl-language, arabic, woocommerce, custom-colors, full-width-template
*/

/* ══════════════════════════════════════
   GLOBAL RESET & DESIGN TOKENS
══════════════════════════════════════ */
:root {
  --grape:  #8B1A6B;
  --cream:  #F5EDD8;
  --red:    #D94530;
  --green:  #2E7D45;
  --yellow: #F5C842;
  --blue:   #2A6BBF;
  --dark:   #1A0F0A;
  --gold:   #C8963E;
  --pattern: repeating-linear-gradient(
    90deg,
    var(--red)    0   18px,
    var(--yellow) 18px 36px,
    var(--green)  36px 54px,
    var(--blue)   54px 72px
  );
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
/* iOS: إزالة تأخير 300ms عند اللمس على الأزرار والروابط */
a, button, [role="button"], input, label, select, textarea, .fpill, .sopt, .cart-btn, .hamburger {
  touch-action: manipulation;
}
/* Button reset: elements converted from div/span to proper <button> must inherit
   the original visual appearance — no browser-default button chrome */
.pthumb, .sopt, .grain-color-opt, .spill {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  background: inherit;
  border: inherit;
  text-align: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
/* Restore specific backgrounds that were set on the original elements */
.sopt  { background: white; border: 2px solid rgba(0,0,0,.1); }
.spill { background: white; border: 1.5px solid rgba(0,0,0,.1); }
.grain-color-opt { background: transparent; border: none; }
.pthumb { background: transparent; border: 2px solid transparent; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body {
  background: var(--cream);
  font-family: 'Tajawal', sans-serif;
  color: var(--dark);
}

/* ══ PATTERN BAR ══ */
.pb { height: 10px; background: var(--pattern); }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
nav {
  background: var(--grape);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 300;
  height: 60px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--cream);
  letter-spacing: -1px;
  text-decoration: none;
  line-height: 1;
}
.nav-logo span {
  font-family: 'Tajawal', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 0.5rem;
  display: block;
  letter-spacing: 3px;
  opacity: .7;
  text-align: center;
}

/* wp_nav_menu override */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  direction: rtl;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--yellow); }

.nav-r { display: flex; align-items: center; gap: .75rem; }

/* Cart button */
.cart-btn {
  background: var(--yellow);
  color: var(--dark);
  border: none;
  padding: .45rem 1rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  font-size: .85rem;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: transform .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.cart-btn:active { transform: scale(.96); }
.cart-btn .cart-count {
  background: var(--red);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-btn .cart-count:empty,
.cart-btn .cart-count[data-count="0"] { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══ MOBILE DRAWER ══ */
.drawer-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s;
}
.drawer-ov.on { display: block; opacity: 1; }
.drawer {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 75%;
  max-width: 300px;
  background: var(--dark);
  z-index: 999;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.drawer.on { transform: translateX(0); }
.drawer-x {
  position: absolute;
  top: 1rem; left: 1.2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 1.4rem;
  cursor: pointer;
}
.drawer ul { list-style: none; }
.drawer ul li { border-bottom: 1px solid rgba(255,255,255,.06); }
.drawer ul li a {
  display: block;
  padding: .9rem 0;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}
.drawer ul li a:hover { color: var(--yellow); }
.drawer-lbl {
  font-size: .55rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  padding: 1rem 0 .3rem;
  font-weight: 900;
}

/* ══════════════════════════════════════
   HOME PAGE — HERO
══════════════════════════════════════ */
.hero {
  background: var(--grape);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    radial-gradient(circle at 20% 80%, var(--yellow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--red) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-eyebrow {
  font-size: .75rem;
  letter-spacing: 6px;
  color: var(--yellow);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-logo {
  font-family: 'Fraunces', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  font-style: italic;
  color: var(--cream);
  line-height: .9;
  text-shadow: 6px 6px 0 rgba(0,0,0,.2);
  animation: fadeUp .8s ease both;
}
.hero-arabic {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 300;
  color: var(--cream);
  opacity: .75;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  animation: fadeUp .8s .2s ease both;
}
.hero-tagline {
  font-size: 1rem;
  color: var(--cream);
  opacity: .7;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeUp .8s .35s ease both;
}
.hero-cta {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  padding: 1rem 3rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 4px 4px 0 var(--dark);
  animation: fadeUp .8s .5s ease both;
  border: none;
}
.hero-cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--dark); }

/* Floating beans */
.hero-scene { position: absolute; bottom: 0; left: 0; right: 0; height: 240px; pointer-events: none; }
.fbean {
  position: absolute;
  width: 30px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  opacity: .2;
  animation: float linear infinite;
}
.fbean::after {
  content: '';
  position: absolute;
  top: 50%; left: 15%; right: 15%;
  height: 2px;
  background: rgba(0,0,0,.3);
  border-radius: 2px;
  transform: translateY(-50%);
}

/* Keyframes */
@keyframes float {
  0%   { transform: translateY(0)     rotate(0deg);   opacity: .15; }
  50%  {                                               opacity: .25; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0;   }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ══ SECTION HEADERS ══ */
.section-header { text-align: center; padding: 5rem 2rem 3rem; }
.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  color: var(--grape);
  line-height: 1;
}
.section-header p { margin-top: .75rem; color: #666; font-size: 1rem; font-weight: 300; }
.section-label {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: 5px;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: .5rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

/* ══ COFFEE GRID (Home) ══ */
.coffees { padding: 0 2rem 6rem; max-width: 1200px; margin: 0 auto; }
.coffee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.coffee-card {
  display: block;
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.coffee-card .card-hd,
.coffee-card .card-bd {
  display: block;
  width: 100%;
}
.card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.coffee-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.card-hd {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-hd-m { background: var(--grape); }
.card-hd-l { background: var(--red); }
.card-hd-s { background: var(--green); }
.card-pat {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px);
}
.card-logo2 {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  color: var(--cream);
  text-align: center;
  z-index: 1;
  text-shadow: 3px 3px 0 rgba(0,0,0,.2);
  line-height: 1.1;
}
.card-logo2 small {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-size: .55rem;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 3px;
  opacity: .7;
}
.card-bdg {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--yellow); color: var(--dark);
  font-size: .65rem; font-weight: 900; letter-spacing: 2px;
  padding: 3px 10px; border-radius: 3px;
}
.card-scr {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(0,0,0,.3); color: white;
  font-size: .7rem; font-weight: 900;
  padding: 4px 10px; border-radius: 20px;
  backdrop-filter: blur(10px);
}
.card-bd { padding: 1.5rem; }
.card-nm {
  font-family: 'Fraunces', serif;
  font-size: 2rem; font-weight: 900; font-style: italic;
  color: var(--dark); margin-bottom: .25rem;
}
.card-or {
  font-size: .75rem; color: var(--grape); font-weight: 900;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1rem;
}
.card-notes { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.ntag {
  background: var(--cream); border: 1.5px solid rgba(0,0,0,.1);
  font-size: .75rem; padding: 3px 12px; border-radius: 20px;
  font-weight: 700; color: #555;
}
.card-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  margin-bottom: 1.2rem; padding: 1rem;
  background: var(--cream); border-radius: 10px;
}
.mi { font-size: .75rem; }
.ml { color: #999; font-weight: 400; margin-bottom: 1px; font-size: .65rem; letter-spacing: 1px; text-transform: uppercase; }
.mv { font-weight: 900; color: var(--dark); }
.card-pr { display: flex; align-items: center; justify-content: space-between; }
.price2 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 900; color: var(--grape);
}
.price2 small {
  font-family: 'Tajawal', sans-serif;
  font-size: .75rem; font-weight: 400; color: #999;
  display: block; font-style: normal;
}
.add-btn2 {
  background: var(--grape); color: var(--cream); border: none;
  padding: .75rem 1.5rem; font-family: 'Tajawal', sans-serif;
  font-weight: 900; font-size: .9rem; border-radius: 8px;
  cursor: pointer; transition: background .2s, transform .2s;
  box-shadow: 3px 3px 0 rgba(0,0,0,.15);
}
.add-btn2:hover { background: #6d134f; transform: translateY(-2px); }
.add-btn2.r { background: var(--red); }
.add-btn2.r:hover { background: #b8381e; }
.add-btn2.g { background: var(--green); }
.add-btn2.g:hover { background: #235e35; }

/* Explore btn */
.explore-wrap { text-align: center; padding: 0 2rem 5rem; }
.explore-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--grape);
  color: var(--grape);
  padding: .9rem 3rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 900; font-size: 1rem; border-radius: 8px;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.explore-btn:hover { background: var(--grape); color: var(--cream); }

/* ══ STORY SECTION ══ */
.story { background: var(--dark); padding: 6rem 2rem; position: relative; overflow: hidden; }
.story-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.story-text h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900; font-style: italic; color: var(--cream); line-height: 1; margin-bottom: 1rem;
}
.story-text p { color: rgba(255,255,255,.6); line-height: 1.9; font-weight: 300; font-size: .95rem; }
.story-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 1.5rem; text-align: center;
}
.stat-n {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem; font-weight: 900; font-style: italic; color: var(--yellow);
}
.stat-l { font-size: .75rem; color: rgba(255,255,255,.4); letter-spacing: 2px; text-transform: uppercase; margin-top: .25rem; }

/* ══ PROCESS SECTION ══ */
.process { padding: 6rem 2rem; background: var(--cream); }
.proc-steps {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  position: relative;
}
.proc-steps::before {
  content: '';
  position: absolute; top: 2.5rem; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(to left, var(--grape), var(--red), var(--yellow)); z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-icon {
  width: 5rem; height: 5rem; background: var(--grape); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.8rem; box-shadow: 4px 4px 0 rgba(0,0,0,.15);
}
.step h3 {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 700; font-style: italic; color: var(--grape); margin-bottom: .3rem;
}
.step p { font-size: .75rem; color: #888; font-weight: 300; }

/* ══ CTA STRIP ══ */
.cta-strip { background: var(--grape); padding: 5rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-strip::before, .cta-strip::after {
  content: 'GRAIN ROASTERY محمصة غراين ';
  position: absolute;
  font-family: 'Fraunces', serif;
  font-size: 4rem; font-weight: 900; font-style: italic;
  color: rgba(255,255,255,.04); white-space: nowrap; pointer-events: none;
}
.cta-strip::before { top: 0; animation: ticker 20s linear infinite; }
.cta-strip::after  { bottom: 0; animation: ticker 20s linear infinite reverse; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cta-strip h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; font-style: italic; color: var(--cream); margin-bottom: .5rem; position: relative; z-index: 1;
}
.cta-strip p { color: rgba(255,255,255,.6); margin-bottom: 2rem; position: relative; z-index: 1; }
.cta-strip .cta-btn {
  display: inline-block;
  background: var(--yellow); color: var(--dark);
  padding: 1rem 3rem; font-family: 'Tajawal', sans-serif;
  font-weight: 900; font-size: 1.1rem; text-decoration: none; border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  position: relative; z-index: 1; border: none; cursor: pointer;
}
.cta-strip .cta-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.2); }

/* ══ REVEAL ANIMATION ══ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   SHOP PAGE
══════════════════════════════════════ */
.shop-header {
  background: var(--grape); padding: 3rem 1.5rem 2.5rem;
  position: relative; overflow: hidden; text-align: center;
}
.shop-header::before {
  content: 'SHOP';
  position: absolute;
  font-family: 'Fraunces', serif;
  font-size: clamp(8rem, 25vw, 14rem);
  font-weight: 900; font-style: italic;
  color: rgba(255,255,255,.04);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none; white-space: nowrap;
}
.shop-lbl {
  font-size: .65rem; letter-spacing: 6px; color: var(--yellow);
  font-weight: 900; text-transform: uppercase; margin-bottom: .6rem; position: relative; z-index: 1;
}
.shop-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900; font-style: italic; color: var(--cream); line-height: 1;
  position: relative; z-index: 1; text-shadow: 4px 4px 0 rgba(0,0,0,.15);
}
.shop-header p {
  color: rgba(255,255,255,.45); font-size: .85rem; font-weight: 300;
  margin-top: .6rem; position: relative; z-index: 1;
}

/* Filter bar */
.filter-wrap { background: white; position: sticky; top: 60px; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.filter-scroll {
  display: flex; gap: .5rem; padding: .9rem 1.5rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.fpill {
  white-space: nowrap; flex-shrink: 0;
  background: var(--cream); border: 2px solid transparent;
  color: #777; padding: .45rem 1.1rem;
  font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: .82rem;
  border-radius: 30px; cursor: pointer; transition: all .2s;
}
.fpill:active { transform: scale(.95); }
.fpill.on { background: var(--grape); border-color: var(--grape); color: white; }

/* Product grid */
.sec-title { padding: 2.5rem 1.5rem 1.2rem; display: flex; align-items: flex-end; gap: .75rem; max-width: 1200px; margin: 0 auto; }
.sec-title h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; font-style: italic; color: var(--grape); line-height: 1;
}
.sec-tag { font-size: .6rem; letter-spacing: 4px; font-weight: 900; color: var(--red); text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 2px; margin-bottom: 6px; }

.grid-wrap { padding: 0 1.5rem 3rem; max-width: 1200px; margin: 0 auto; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.pcard {
  background: white; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  cursor: pointer; transition: transform .3s, box-shadow .3s; position: relative;
  display: block; text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.pcard:active { transform: scale(.98); }
.pcard.feat { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.pcard-vis { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pcard.feat .pcard-vis { aspect-ratio: auto; min-height: 180px; }
.pcard-pat { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px); }
.pcard-logo {
  font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 900; font-style: italic;
  color: var(--cream); text-align: center; z-index: 1; text-shadow: 2px 2px 0 rgba(0,0,0,.2); line-height: 1.1;
}
.pcard-logo small {
  display: block; font-family: 'Tajawal', sans-serif; font-size: .45rem;
  font-style: normal; font-weight: 300; letter-spacing: 3px; opacity: .6;
}
.pbdg {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--yellow); color: var(--dark);
  font-size: .55rem; font-weight: 900; letter-spacing: 1px; padding: 3px 9px; border-radius: 3px; z-index: 2;
}
.pscr {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(0,0,0,.28); color: white;
  font-size: .6rem; font-weight: 900; padding: 3px 9px; border-radius: 20px;
  backdrop-filter: blur(8px); z-index: 2;
}
.pcoming { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 3; }
.pcoming span {
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px); color: white;
  font-size: .7rem; font-weight: 900; letter-spacing: 3px; padding: 6px 16px;
  border-radius: 30px; border: 1px solid rgba(255,255,255,.3);
}
.pcard-bd { padding: .9rem; }
.pcard.feat .pcard-bd { display: flex; flex-direction: column; justify-content: center; padding: 1.2rem; }
.por { font-size: .62rem; letter-spacing: 2px; color: var(--grape); font-weight: 900; text-transform: uppercase; margin-bottom: .3rem; }
.pnm { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 900; font-style: italic; color: var(--dark); line-height: 1.1; margin-bottom: .4rem; }
.pcard.feat .pnm { font-size: 1.8rem; }
.psub { font-size: .72rem; color: #999; font-weight: 300; margin-bottom: .75rem; line-height: 1.4; }
.pnotes { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .8rem; }
.pnote { background: var(--cream); border: 1.5px solid rgba(0,0,0,.08); font-size: .65rem; padding: 2px 9px; border-radius: 20px; font-weight: 700; color: #666; }
.pfoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ppr { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 900; color: var(--grape); line-height: 1; }
.pcard.feat .ppr { font-size: 2rem; }
.ppr small { font-family: 'Tajawal', sans-serif; font-size: .62rem; color: #bbb; font-weight: 400; display: block; font-style: normal; }
.padd {
  background: var(--grape); color: var(--cream); border: none;
  padding: .5rem 1rem; font-family: 'Tajawal', sans-serif;
  font-weight: 900; font-size: .78rem; border-radius: 8px; cursor: pointer;
  transition: background .2s, transform .15s; box-shadow: 2px 2px 0 rgba(0,0,0,.12); white-space: nowrap;
}
.padd:active { transform: scale(.95); }
.padd.r  { background: var(--red); }
.padd.g  { background: var(--green); }
.padd.go { background: var(--gold); color: var(--dark); }
.padd.b  { background: var(--blue); }
.padd.br { background: #6B3A1F; }

/* Size pills */
.spills { display: flex; gap: .4rem; margin-bottom: .8rem; }
.spill { border: 1.5px solid rgba(0,0,0,.1); background: white; color: #666; font-size: .65rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; cursor: pointer; transition: all .15s; }
.spill.on { background: var(--grape); border-color: var(--grape); color: white; }
.spill.on.r { background: var(--red); border-color: var(--red); }
.spill.on.g { background: var(--green); border-color: var(--green); }

.pcard-ph { border: 2px dashed rgba(0,0,0,.1); }
.ph-icon { font-size: 2.5rem; opacity: .25; z-index: 1; }
.ctag { display: inline-block; background: rgba(0,0,0,.06); color: #bbb; font-size: .6rem; font-weight: 900; letter-spacing: 2px; padding: 3px 10px; border-radius: 20px; margin-top: .5rem; }
.sdiv { height: 10px; background: var(--pattern); margin: .5rem 0; }

/* ══════════════════════════════════════
   PRODUCT PAGE (single-product)
══════════════════════════════════════ */
.prod-hero { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.prod-vis { position: relative; }
.prod-card {
  border-radius: 24px; overflow: hidden; aspect-ratio: 3/4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.prod-card::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px); }
.prod-card::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,.35), transparent); }
.prod-card-logo {
  font-family: 'Fraunces', serif; font-size: 2.5rem; font-weight: 900; font-style: italic;
  color: var(--cream); text-align: center; z-index: 2; text-shadow: 3px 3px 0 rgba(0,0,0,.2);
  line-height: 1.1; margin-bottom: 1.5rem;
}
.prod-card-logo small { display: block; font-family: 'Tajawal', sans-serif; font-size: .55rem; font-style: normal; font-weight: 300; letter-spacing: 4px; opacity: .6; margin-top: .3rem; }
.prod-card-name { font-family: 'Fraunces', serif; font-size: 3.5rem; font-weight: 900; font-style: italic; color: var(--cream); z-index: 2; text-shadow: 4px 4px 0 rgba(0,0,0,.25); text-align: center; line-height: 1; }
.prod-card-origin { font-size: .7rem; letter-spacing: 5px; color: rgba(255,255,255,.6); z-index: 2; text-transform: uppercase; margin-top: .5rem; text-align: center; }
.prod-card-badge { position: absolute; top: 1.5rem; left: 1.5rem; background: var(--yellow); color: var(--dark); font-size: .65rem; font-weight: 900; letter-spacing: 2px; padding: 5px 14px; border-radius: 4px; z-index: 2; }
.prod-card-score { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(0,0,0,.3); color: white; font-size: .75rem; font-weight: 900; padding: 6px 14px; border-radius: 30px; backdrop-filter: blur(10px); z-index: 2; }
.prod-card-notes { position: absolute; bottom: 2rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; z-index: 2; flex-wrap: wrap; padding: 0 1.5rem; }
.prod-card-notes span { background: rgba(255,255,255,.15); backdrop-filter: blur(10px); color: white; font-size: .7rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,.2); }

/* Thumbnails */
.prod-thumbs { display: flex; gap: .75rem; margin-top: 1rem; }
.pthumb { flex: 1; aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; cursor: pointer; transition: border-color .2s; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pthumb.on { border-color: var(--grape); }
.pthumb-in { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Breadcrumb */
.breadcrumb { padding: .75rem 1.5rem; font-size: .75rem; color: #999; display: flex; align-items: center; gap: .5rem; max-width: 1100px; margin: 0 auto; }
.breadcrumb a { color: var(--grape); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { opacity: .4; }
/* WooCommerce breadcrumb compat */
.woocommerce-breadcrumb { padding: .75rem 1.5rem; font-size: .75rem; color: #999; max-width: 1100px; margin: 0 auto; }
.woocommerce-breadcrumb a { color: var(--grape); text-decoration: none; font-weight: 700; }

/* Product info */
.prod-eyebrow { font-size: .7rem; letter-spacing: 5px; color: var(--red); font-weight: 900; text-transform: uppercase; border-bottom: 2px solid var(--red); display: inline-block; padding-bottom: 2px; margin-bottom: 1rem; }
.prod-name { font-family: 'Fraunces', serif; font-size: clamp(3rem, 7vw, 5rem); font-weight: 900; font-style: italic; color: var(--dark); line-height: .95; margin-bottom: .5rem; }
.prod-arabic { font-size: 1rem; font-weight: 300; color: #888; margin-bottom: 1.5rem; }
.prod-pills { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.ppill-c { background: var(--grape); color: white; font-size: .8rem; font-weight: 900; padding: 6px 16px; border-radius: 30px; letter-spacing: 1px; }
.ppill-o { background: var(--cream); border: 2px solid rgba(0,0,0,.1); font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 30px; color: #555; }

.slbl { font-size: .65rem; letter-spacing: 4px; color: #aaa; text-transform: uppercase; font-weight: 900; margin-bottom: .75rem; display: block; }
.tnotes { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.ttag { background: white; border: 2px solid rgba(0,0,0,.08); font-size: .85rem; padding: 6px 16px; border-radius: 30px; font-weight: 700; color: #444; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; margin-bottom: 2rem; }
.sitem { background: white; padding: 1rem 1.2rem; }
.slabel { font-size: .62rem; letter-spacing: 2px; color: #bbb; text-transform: uppercase; font-weight: 900; margin-bottom: 4px; }
.svalue { font-size: .9rem; font-weight: 900; color: var(--dark); }

.roast-bar { background: rgba(0,0,0,.08); border-radius: 30px; height: 10px; margin-top: .75rem; overflow: hidden; }
.roast-fill { height: 100%; border-radius: 30px; background: linear-gradient(to left, var(--dark), var(--grape)); }
.roast-labels { display: flex; justify-content: space-between; font-size: .65rem; color: #bbb; margin-top: 4px; font-weight: 700; letter-spacing: 1px; }

.size-opts { display: flex; gap: .75rem; margin-bottom: 2rem; margin-top: .75rem; }
.sopt { flex: 1; border: 2px solid rgba(0,0,0,.1); background: white; border-radius: 12px; padding: 1rem; cursor: pointer; transition: all .2s; text-align: center; position: relative; }
.sopt:hover { border-color: var(--grape); }
.sopt.on { border-color: var(--grape); background: var(--grape); color: white; }
.sopt-w { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 900; font-style: italic; display: block; line-height: 1; }
.sopt-p { font-size: .85rem; font-weight: 700; margin-top: 4px; display: block; opacity: .7; }
.sopt.on .sopt-p { opacity: .85; }
.sopt-badge { position: absolute; top: -8px; right: 10px; background: var(--yellow); color: var(--dark); font-size: .55rem; font-weight: 900; padding: 2px 8px; border-radius: 10px; letter-spacing: 1px; }

.pur-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.cur-price { font-family: 'Fraunces', serif; font-size: 3rem; font-weight: 900; color: var(--grape); line-height: 1; }
.cur-price small { font-family: 'Tajawal', sans-serif; font-size: .8rem; color: #aaa; font-weight: 400; display: block; font-style: normal; }
.atc-btn {
  flex: 1; background: var(--grape); color: var(--cream); border: none;
  padding: 1.1rem 2rem; font-family: 'Tajawal', sans-serif;
  font-weight: 900; font-size: 1.05rem; border-radius: 12px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 4px 4px 0 rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none;
}
.atc-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.15); }
.atc-btn.done { background: var(--green); }

.ship-info { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem; background: white; border-radius: 12px; margin-bottom: 2rem; }
.ship-row { display: flex; align-items: center; gap: .75rem; font-size: .82rem; color: #555; }
.ship-ic { font-size: 1rem; flex-shrink: 0; }
.ship-row strong { color: var(--dark); }

/* Product story */
.prod-story { background: var(--dark); padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden; }
.pstory-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.pstory-ey { font-size: .65rem; letter-spacing: 5px; color: var(--yellow); font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; }
.pstory-title { font-family: 'Fraunces', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; font-style: italic; color: var(--cream); margin-bottom: 1.5rem; line-height: 1.1; }
.pstory-txt { color: rgba(255,255,255,.5); font-weight: 300; line-height: 1.9; font-size: .95rem; }

/* Brew steps */
.brew-sec { padding: 5rem 2rem; background: var(--cream); max-width: 1100px; margin: 0 auto; }
.brew-hdr { text-align: center; margin-bottom: 3rem; }
.brew-hdr h2 { font-family: 'Fraunces', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; font-style: italic; color: var(--grape); }
.brew-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.brew-steps::before { content: ''; position: absolute; top: 2.2rem; left: 12%; right: 12%; height: 2px; background: linear-gradient(to left, var(--grape), var(--red), var(--yellow)); }
.bstep { text-align: center; position: relative; z-index: 1; }
.bicon { width: 4.5rem; height: 4.5rem; background: var(--grape); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; box-shadow: 4px 4px 0 rgba(0,0,0,.12); }
.bstep h3 { font-family: 'Fraunces', serif; font-size: .95rem; font-weight: 700; font-style: italic; color: var(--grape); margin-bottom: .25rem; }
.bstep p { font-size: .72rem; color: #888; font-weight: 300; }

/* Related */
.rel-sec { padding: 4rem 2rem; background: white; }
.rel-inner { max-width: 1100px; margin: 0 auto; }
.rel-hdr { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.rel-hdr h2 { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; font-style: italic; color: var(--grape); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rel-card { background: var(--cream); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .3s, box-shadow .3s; text-decoration: none; display: block; color: inherit; -webkit-tap-highlight-color: rgba(0,0,0,0); }
.rel-card:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(0,0,0,.12); }
.rel-hd { height: 120px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.rpat { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px); }
.rel-logo { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 900; font-style: italic; color: var(--cream); text-align: center; z-index: 1; text-shadow: 2px 2px 0 rgba(0,0,0,.2); }
.rel-bd { padding: 1rem; }
.rel-nm { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 900; font-style: italic; color: var(--dark); }
.rel-or { font-size: .65rem; letter-spacing: 2px; color: var(--grape); font-weight: 900; text-transform: uppercase; margin-bottom: .5rem; }
.rel-pr { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 900; color: var(--grape); }

/* Sticky CTA (mobile) */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 1rem 1.5rem; box-shadow: 0 -8px 30px rgba(0,0,0,.12); z-index: 200; align-items: center; gap: 1rem; border-top: 1px solid rgba(0,0,0,.06); }
.sticky-pr { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 900; color: var(--grape); line-height: 1; }
.sticky-pr small { font-family: 'Tajawal', sans-serif; font-size: .7rem; color: #aaa; font-weight: 400; display: block; }
.sticky-add { flex: 1; background: var(--grape); color: white; border: none; padding: .9rem; font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 1rem; border-radius: 10px; cursor: pointer; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer { background: var(--dark); padding: 2.5rem 1.5rem; text-align: center; }
.fl { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 900; font-style: italic; color: var(--cream); margin-bottom: .4rem; }
.fs { font-size: .6rem; letter-spacing: 5px; color: rgba(255,255,255,.25); text-transform: uppercase; margin-bottom: 1.5rem; }
.flinks { display: flex; gap: 1.5rem; justify-content: center; list-style: none; margin-bottom: 1.5rem; flex-wrap: wrap; }
.flinks a { color: rgba(255,255,255,.35); text-decoration: none; font-size: .78rem; }
.flinks a:hover { color: var(--yellow); }
.fc { font-size: .65rem; color: rgba(255,255,255,.15); }

/* ══ TOAST ══ */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--green); color: white;
  padding: .75rem 1.8rem; border-radius: 30px;
  font-weight: 900; font-size: .88rem;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 9999; box-shadow: 0 8px 30px rgba(0,0,0,.25); white-space: nowrap;
}
.toast.on { transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════
   WOOCOMMERCE OVERRIDES
══════════════════════════════════════ */

/* Hide default WooCommerce title (we use our own) */
.woocommerce-products-header__title,
.woocommerce .page-title { display: none; }

/* WC price */
.woocommerce .price,
.woocommerce-Price-amount {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  color: var(--grape);
}
.woocommerce del .woocommerce-Price-amount { color: #bbb; font-size: .75em; }
.woocommerce ins { text-decoration: none; }

/* WC add to cart button → grain style */
.woocommerce .single_add_to_cart_button,
.woocommerce button.button,
.woocommerce a.button {
  background: var(--grape) !important;
  color: var(--cream) !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 900 !important;
  border-radius: 12px !important;
  border: none !important;
  padding: 1.1rem 2rem !important;
  font-size: 1.05rem !important;
  box-shadow: 4px 4px 0 rgba(0,0,0,.15) !important;
  transition: transform .2s, box-shadow .2s !important;
}
.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background: #6d134f !important;
  transform: translate(-2px,-2px) !important;
  box-shadow: 6px 6px 0 rgba(0,0,0,.15) !important;
  color: var(--cream) !important;
}

/* WC quantity input */
.woocommerce .quantity input.qty {
  border: 2px solid rgba(0,0,0,.1);
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  color: var(--dark);
  text-align: center;
}

/* WC notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  font-family: 'Tajawal', sans-serif;
  border-top-color: var(--grape) !important;
}
.woocommerce-message { border-top-color: var(--green) !important; }
.woocommerce-error   { border-top-color: var(--red) !important; }

/* WC cart/checkout tables */
.woocommerce table.shop_table {
  font-family: 'Tajawal', sans-serif;
  border-collapse: collapse;
}
.woocommerce table.shop_table th {
  font-weight: 900;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grape);
}

/* WC form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  font-family: 'Tajawal', sans-serif;
  border: 2px solid rgba(0,0,0,.1);
  border-radius: 10px;
  padding: .8rem 1rem;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--grape);
  outline: none;
}

/* WC star ratings */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before { color: var(--yellow); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 899px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .drawer { display: block; }
  /* drawer-ov: hidden by default, shown only via JS adding .on */
  .story-inner { grid-template-columns: 1fr; gap: 2rem; }
  .proc-steps { grid-template-columns: repeat(2,1fr); }
  .proc-steps::before { display: none; }
  .coffee-grid { grid-template-columns: 1fr; }
  .coffees { padding: 0 1rem 4rem; }
  .prod-hero { grid-template-columns: 1fr; gap: 2rem; padding: .5rem 1rem 6rem; }
  .prod-vis { position: static; }
  .prod-card { aspect-ratio: 4/3; }
  .prod-name { font-size: 3rem; }
  .pur-row { flex-wrap: wrap; }
  .sticky-cta { display: flex; }
  .brew-steps { grid-template-columns: repeat(2,1fr); }
  .brew-steps::before { display: none; }
  .rel-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 600px) {
  .pgrid { grid-template-columns: repeat(3,1fr); }
  .pcard.feat { grid-column: span 3; }
}
@media (min-width: 900px) {
  .pgrid { grid-template-columns: repeat(4,1fr); }
  .pcard.feat { grid-column: span 2; }
}
@media (max-width: 400px) {
  .rel-grid { grid-template-columns: 1fr; }
  .prod-card { aspect-ratio: 1; }
}

/* ══════════════════════════════════════
/* ══════════════════════════════════════
   CART DRAWER
══════════════════════════════════════ */
.cart-drawer-ov {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55);
  z-index: 498;
  opacity: 0;
  transition: opacity .3s;
}
.cart-drawer-ov.on { display: block; opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 95vw;
  height: 100%;
  height: 100dvh;
  background: var(--cream);
  z-index: 499;
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 40px rgba(0,0,0,.25);
}
.cart-drawer.on { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  background: var(--grape);
  color: var(--cream);
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.cart-drawer-head button {
  background: none; border: none;
  color: var(--cream); font-size: 1.3rem;
  cursor: pointer; opacity: .7;
  transition: opacity .2s; line-height: 1;
}
.cart-drawer-head button:hover { opacity: 1; }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem;
}
.cart-drawer-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #aaa;
  font-size: .95rem;
}
.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.cart-drawer-item-img {
  width: 58px; height: 58px;
  border-radius: 10px;
  background: var(--grape);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  text-align: center;
}
.cart-drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-item-info { flex: 1; min-width: 0; }
.cart-drawer-item-name {
  font-family: 'Fraunces', serif;
  font-weight: 900; font-style: italic;
  font-size: .95rem; color: var(--dark);
  margin-bottom: .15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-drawer-item-meta { font-size: .72rem; color: #aaa; margin-bottom: .15rem; }
.cart-drawer-item-qty  { font-size: .78rem; color: #888; }
.cart-drawer-item-price { font-weight: 900; color: var(--grape); font-size: .9rem; margin-top: .1rem; }
.cart-drawer-item-remove {
  background: none; border: none;
  color: #ccc; font-size: .9rem;
  cursor: pointer; flex-shrink: 0;
  padding: .4rem; border-radius: 50%;
  transition: color .2s, background .2s;
}
.cart-drawer-item-remove:hover { color: var(--red); background: rgba(217,69,48,.08); }

.cart-drawer-footer {
  padding: 1.2rem 1.5rem 1.5rem;
  border-top: 2px solid rgba(0,0,0,.07);
  background: white;
  flex-shrink: 0;
}
.cart-drawer-total {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 900; font-size: 1.1rem;
  margin-bottom: 1rem; color: var(--dark);
}
.cart-drawer-total span:last-child { color: var(--grape); font-size: 1.2rem; }
.cart-drawer-checkout {
  display: block;
  background: var(--grape); color: var(--cream) !important;
  text-align: center; padding: .95rem;
  border-radius: 10px; font-weight: 900; font-size: 1rem;
  text-decoration: none !important; margin-bottom: .7rem;
  box-shadow: 3px 3px 0 rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.cart-drawer-checkout:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,.15);
}
.cart-drawer-viewcart {
  display: block; text-align: center;
  padding: .5rem; color: #aaa; font-size: .85rem;
  text-decoration: none; transition: color .2s;
}
.cart-drawer-viewcart:hover { color: var(--grape); }


/* ══════════════════════════════════════
   WOOCOMMERCE BASE
══════════════════════════════════════ */
.woocommerce-page .woocommerce,
.woocommerce {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: var(--grape) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: .85rem 2rem !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  width: 100%;
  transition: background .2s !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: #6e1455 !important;
}

/* ══════════════════════════════════════
   ADDED CLASSES (replaced inline styles)
══════════════════════════════════════ */

/* WooCommerce page wrapper (cart/checkout/account) */
.grain-wc-page { min-height: 60vh; padding: 6rem 1.5rem 4rem; max-width: 860px; margin: 0 auto; direction: rtl; }

/* Card short description */
.card-short { font-size: .8rem; color: #888; font-weight: 300; margin-bottom: 1rem; }

/* Empty products state */
.coffee-empty { grid-column: 1 / -1; text-align: center; padding: 4rem; color: #888; }

/* Wishlist fallback button */
.wishlist-btn {
  width: 52px; height: 52px;
  border: 2px solid rgba(0,0,0,.1);
  background: white; border-radius: 12px;
  cursor: pointer; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.wishlist-btn:hover { border-color: var(--grape); }

/* Shop CTA (archive page bottom) */
.shop-cta { background: var(--dark); }
.shop-cta-inner { position: relative; }
.shop-cta-inner::before {
  content: 'GRAIN ROASTERY محمصة غراين ';
  position: absolute;
  font-family: 'Fraunces', serif;
  font-size: 4rem; font-weight: 900; font-style: italic;
  color: rgba(255,255,255,.03); white-space: nowrap;
  top: 50%; animation: ticker 20s linear infinite;
  pointer-events: none; transform: translateY(-50%);
}

/* ══════════════════════════════════════
   PRODUCT TYPES — Shared New Styles
══════════════════════════════════════ */

/* Card icon (for non-coffee products) */
.prod-card-icon { font-size: 4rem; z-index: 2; margin-bottom: .5rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }

/* ── Features List (Equipment) ── */
.grain-features-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.grain-feat-item {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1rem 1.2rem; background: white;
  border-radius: 12px; border-right: 3px solid var(--grape);
}
.grain-feat-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--grape); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: .9rem;
}
.grain-feat-text { font-size: .85rem; color: #555; line-height: 1.5; }
.grain-feat-text strong { display: block; color: var(--dark); margin-bottom: 2px; }
.grain-feat-text span { font-size: .78rem; color: #999; }

/* ── Features Grid (Cups) ── */
.grain-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 2rem; }
.grain-feat-card {
  background: white; border-radius: 12px; padding: 1rem;
  font-size: .82rem; color: #555; line-height: 1.5;
}
.grain-feat-card strong { display: block; color: var(--dark); margin-bottom: 3px; font-size: .88rem; }
.grain-feat-card span { font-size: .75rem; color: #999; }

/* ── Color Selector (Cups) ── */
.grain-color-opts { display: flex; gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.grain-color-opt { display: flex; flex-direction: column; align-items: center; gap: .4rem; cursor: pointer; }
.grain-color-swatch {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid transparent;
  transition: all .2s; position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.grain-color-swatch:hover { transform: scale(1.1); }
.grain-color-opt.selected .grain-color-swatch {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--dark);
}
.grain-color-opt.selected .grain-color-swatch::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .9rem; font-weight: 900;
}
.grain-color-name { font-size: .65rem; font-weight: 700; color: #888; letter-spacing: 1px; text-transform: uppercase; }
.grain-color-opt.selected .grain-color-name { color: var(--dark); }

/* ── How To Use (Drip) ── */
.grain-howto { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.howto-step {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: .9rem 1rem; background: white;
  border-radius: 10px;
}
.howto-num {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--grape); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .85rem;
}
.howto-text { font-size: .85rem; color: #555; line-height: 1.5; padding-top: 3px; }
.howto-text strong { color: var(--dark); }

/* ── Box Contents (Drip) ── */
.grain-box-contents { background: white; border-radius: 14px; padding: 1.2rem; margin-bottom: 2rem; }
.box-title { font-size: .8rem; font-weight: 700; color: var(--dark); margin-bottom: .75rem; }
.box-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.box-pill {
  background: var(--cream); border: 1.5px solid rgba(0,0,0,.08);
  font-size: .75rem; font-weight: 700; color: #666;
  padding: 4px 12px; border-radius: 20px;
}

@media (max-width: 599px) {
  .grain-features-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════
   CHECKOUT — PAGE LAYOUT
══════════════════════════════════════ */

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  min-height: 60vh;
}


/* ══════════════════════════════════════
   CHECKOUT — NOTICES
══════════════════════════════════════ */

.woocommerce-NoticeGroup,
.woocommerce-notices-wrapper {
  margin-bottom: 1.5rem;
}
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  background: white;
  border: 1.5px solid rgba(139, 26, 107, .12);
  border-right: 4px solid var(--grape);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: .9rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-family: 'Tajawal', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce .woocommerce-error {
  background: #fff5f5;
  border: 1.5px solid rgba(217, 69, 48, .15);
  border-right: 4px solid var(--red);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: .9rem;
  color: var(--dark);
  margin-bottom: 1rem;
  list-style: none;
}
.woocommerce-notices-wrapper .woocommerce-error li { margin-bottom: .3rem; }
.woocommerce-notices-wrapper a,
.woocommerce .woocommerce-message a { color: var(--grape); font-weight: 700; }
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce .woocommerce-message::before { color: var(--grape); }


/* ══════════════════════════════════════
   CHECKOUT — SECTION HEADERS
══════════════════════════════════════ */

.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--cream);
}


/* ══════════════════════════════════════
   CHECKOUT — FORM FIELDS
══════════════════════════════════════ */

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin-bottom: 2rem;
}

.woocommerce form .form-row {
  margin-bottom: 1.2rem;
}
.woocommerce form .form-row label {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--dark);
  margin-bottom: .4rem;
  display: block;
}
.woocommerce form .form-row label .required {
  color: var(--red);
  margin-right: 2px;
}
.woocommerce form .form-row label .optional {
  font-weight: 400;
  color: #aaa;
  font-size: .75rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--grape);
  box-shadow: 0 0 0 3px rgba(139, 26, 107, .08);
}
.woocommerce form .form-row input.input-text::placeholder,
.woocommerce form .form-row textarea::placeholder {
  color: #bbb;
  font-weight: 400;
}
.woocommerce form .form-row textarea {
  min-height: 80px;
  resize: vertical;
}

/* Two-column fields */
.woocommerce form .form-row-first { float: right; width: 48%; }
.woocommerce form .form-row-last { float: left; width: 48%; }
.woocommerce form .form-row-wide { clear: both; width: 100%; }

/* Select2 dropdowns */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: auto;
  min-height: 46px;
  padding: .5rem .8rem;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 10px;
  background: var(--cream);
  font-family: 'Tajawal', sans-serif;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--dark);
  line-height: 1.5;
  font-family: 'Tajawal', sans-serif;
}
.woocommerce-checkout .select2-dropdown {
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,.1);
  overflow: hidden;
  font-family: 'Tajawal', sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.woocommerce-checkout .select2-results__option--highlighted {
  background: var(--grape) !important;
}


/* ══════════════════════════════════════
   CHECKOUT — PHONE FIELD (+974 PREFIX)
══════════════════════════════════════ */

.grain-phone-qa .woocommerce-input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
}
.grain-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 .8rem;
  background: var(--grape);
  color: var(--cream);
  font-weight: 900;
  font-size: .85rem;
  border-radius: 10px 0 0 10px;
  letter-spacing: 1px;
  flex-shrink: 0;
  white-space: nowrap;
}
.grain-phone-qa .woocommerce-input-wrapper input.input-text {
  border-radius: 0 10px 10px 0;
  border-right: none;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 1.05rem;
}
.grain-phone-qa .woocommerce-input-wrapper input.input-text:focus {
  border-right: none;
}

/* International phone hint */
.grain-phone-intl .woocommerce-input-wrapper input.input-text {
  letter-spacing: 1px;
}


/* ══════════════════════════════════════
   CHECKOUT — ORDER REVIEW TABLE
══════════════════════════════════════ */

.woocommerce-checkout #order_review {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.woocommerce table.shop_table {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.woocommerce table.shop_table thead th {
  background: var(--dark);
  color: var(--cream);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .5px;
  padding: .8rem 1rem;
  border: none;
  text-align: right;
}
.woocommerce table.shop_table td {
  padding: .8rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.04);
  vertical-align: middle;
  color: var(--dark);
}
.woocommerce table.shop_table tr:last-child td {
  border-bottom: none;
}
.woocommerce table.shop_table .product-name {
  font-weight: 700;
}
.woocommerce table.shop_table .product-name a {
  color: var(--dark);
  text-decoration: none;
}
.woocommerce table.shop_table .product-name a:hover {
  color: var(--grape);
}
.woocommerce table.shop_table tfoot th {
  text-align: right;
  background: transparent;
  color: var(--dark);
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.04);
  padding: .8rem 1rem;
}
.woocommerce table.shop_table tfoot td {
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.woocommerce table.shop_table .order-total td,
.woocommerce table.shop_table .order-total th {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--grape);
  border-bottom: none;
  padding-top: 1rem;
}


/* ══════════════════════════════════════
   CHECKOUT — PAYMENT METHODS
══════════════════════════════════════ */

.woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
}
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border: none;
}
.woocommerce-checkout #payment ul.payment_methods li {
  background: var(--cream);
  border: 1.5px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: .9rem 1.2rem;
  margin-bottom: .6rem;
  transition: border-color .2s, box-shadow .2s;
}
.woocommerce-checkout #payment ul.payment_methods li:hover {
  border-color: rgba(139, 26, 107, .3);
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked ~ label {
  color: var(--grape);
}
.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
}
.woocommerce-checkout #payment ul.payment_methods li img {
  max-height: 26px;
  width: auto;
}
.woocommerce-checkout #payment div.payment_box {
  background: white;
  border-radius: 8px;
  padding: .8rem 1rem;
  margin-top: .6rem;
  font-size: .85rem;
  color: #777;
  border: 1px solid rgba(0,0,0,.05);
}
.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}

/* ── Place Order Button ── */
.woocommerce-checkout #payment #place_order {
  width: 100%;
  padding: 1rem !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  letter-spacing: .5px;
  margin-top: .5rem;
  transition: background .2s, transform .1s !important;
  border-radius: 12px !important;
}
.woocommerce-checkout #payment #place_order:hover {
  transform: scale(1.01);
}
.woocommerce-checkout #payment #place_order:active {
  transform: scale(.98);
}

/* ── Terms ── */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: .8rem;
  color: #999;
  margin: 1rem 0;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
  color: var(--grape);
}


/* ══════════════════════════════════════
   CHECKOUT — CART TABLE
══════════════════════════════════════ */

.woocommerce-cart .cart-collaterals,
.woocommerce-cart table.cart {
  direction: rtl;
  text-align: right;
}
.woocommerce table.shop_table .product-remove a {
  color: var(--red) !important;
  font-size: 1.1rem;
  text-decoration: none;
}
.woocommerce table.shop_table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}
.woocommerce .quantity .qty {
  width: 56px;
  padding: .4rem;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 8px;
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--dark);
  background: var(--cream);
}
.woocommerce .quantity .qty:focus {
  outline: none;
  border-color: var(--grape);
}

/* ── Cart Totals ── */
.woocommerce .cart_totals {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin-top: 1.5rem;
}
.woocommerce .cart_totals h2 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1rem;
}
.woocommerce .cart_totals table { box-shadow: none; }
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td { background: transparent; color: var(--dark); }

/* ── Action Buttons ── */
.woocommerce button[name="update_cart"],
.woocommerce button[name="apply_coupon"] {
  background: var(--dark) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: .65rem 1.5rem !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 700 !important;
  font-size: .85rem !important;
  cursor: pointer !important;
  transition: background .2s !important;
}
.woocommerce button[name="update_cart"]:hover,
.woocommerce button[name="apply_coupon"]:hover {
  background: #333 !important;
}
.woocommerce #coupon_code {
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 8px;
  padding: .6rem .8rem;
  font-family: 'Tajawal', sans-serif;
  font-size: .9rem;
}
.woocommerce #coupon_code:focus {
  outline: none;
  border-color: var(--grape);
}

/* ── Empty Cart ── */
.woocommerce .cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  color: #999;
}
.woocommerce .return-to-shop a {
  background: var(--grape);
  color: var(--cream);
  border-radius: 10px;
  padding: .8rem 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  display: inline-block;
  transition: background .2s;
}
.woocommerce .return-to-shop a:hover { background: #6e1455; }


/* ══════════════════════════════════════
   THANK YOU PAGE
══════════════════════════════════════ */

.woocommerce-thankyou-order-received { display: none; }
.woocommerce-order-overview { display: none; }

.grain-ty {
  text-align: center;
  padding: 1rem 0 2rem;
}
.grain-ty-check {
  margin-bottom: 1.2rem;
}
.grain-ty-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: .4rem;
}
.grain-ty-subtitle {
  color: #888;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.grain-ty-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  max-width: 500px;
  margin: 0 auto 2rem;
  overflow: hidden;
  text-align: right;
}
.grain-ty-num {
  background: var(--grape);
  color: var(--cream);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.grain-ty-num span {
  font-size: .8rem;
  opacity: .8;
}
.grain-ty-num strong {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 1px;
}
.grain-ty-rows {
  padding: .5rem 0;
}
.grain-ty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.04);
  font-size: .9rem;
}
.grain-ty-row:last-child {
  border-bottom: none;
}
.grain-ty-row span {
  color: #999;
  font-weight: 400;
}
.grain-ty-row strong {
  color: var(--dark);
  font-weight: 700;
}
.grain-ty-delivery strong {
  color: var(--green);
}

.grain-ty-note {
  color: #bbb;
  font-size: .82rem;
  margin-bottom: 1.5rem;
}

.grain-ty-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.grain-ty-btn {
  background: var(--grape);
  color: var(--cream);
  padding: .75rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .1s;
}
.grain-ty-btn:hover { background: #6e1455; transform: scale(1.02); }
.grain-ty-btn-outline {
  background: transparent;
  color: var(--dark);
  padding: .75rem 2rem;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,.1);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
}
.grain-ty-btn-outline:hover {
  border-color: var(--grape);
  color: var(--grape);
}


/* ══════════════════════════════════════
   MY ACCOUNT
══════════════════════════════════════ */

.woocommerce-account .woocommerce-MyAccount-navigation {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin-bottom: 1.5rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: .5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: .85rem;
  transition: all .2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--grape);
  color: var(--cream);
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.woocommerce form.login,
.woocommerce form.register {
  background: white;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border: none;
  margin: 0;
}
.woocommerce form.login .button,
.woocommerce form.register .button {
  background: var(--grape) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: .8rem 2rem !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background .2s !important;
}
.woocommerce form.login .button:hover,
.woocommerce form.register .button:hover { background: #6e1455 !important; }


/* ══════════════════════════════════════
   CHECKOUT — MOBILE RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 768px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce,
  .woocommerce-account .woocommerce {
    padding: 1.5rem 1rem 3rem;
  }
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    float: none;
    width: 100%;
  }
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    padding: 1.2rem;
    border-radius: 12px;
  }
  .woocommerce-checkout #order_review {
    padding: 1.2rem;
    border-radius: 12px;
  }
  .woocommerce table.shop_table {
    font-size: .85rem;
  }
  .woocommerce table.shop_table td,
  .woocommerce table.shop_table th {
    padding: .6rem .5rem;
  }
  .woocommerce table.shop_table img {
    width: 40px;
    height: 40px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
  }
  .grain-ty-title { font-size: 1.5rem; }
  .grain-ty-card { margin: 0 -.5rem 2rem; }
  .grain-ty-row { padding: .65rem 1.2rem; font-size: .85rem; }
  .grain-ty-actions { flex-direction: column; align-items: center; }
}
