/* ═══════════════════════════════════════════════
   ☕ c.reemco.sa — Coffee Store Premium CSS
   Brand: ريمكو للقهوة
   ═══════════════════════════════════════════════ */

:root {
  --coffee-espresso: #1A1209;
  --coffee-bronze: #B8860B;
  --coffee-walnut: #3C2415;
  --coffee-mocha: #6B5D52;
  --coffee-latte: #FAF6F0;
  --coffee-cream: #FFFCF7;
  --coffee-oat: #F0EBE3;
  --coffee-sage: #5C6B4F;
  --coffee-bronze-dark: #8B6508;
  --coffee-border: #E8E0D4;
  --coffee-shadow: rgba(26,18,9,0.06);
  --coffee-shadow-deep: rgba(26,18,9,0.12);
  --coffee-bronze-glow: rgba(184,134,11,0.35);
  --font-arabic: 'Tajawal', sans-serif;
  --font-english: 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
}

/* ── Global Body ── */
body {
  font-family: var(--font-arabic);
  background-color: var(--coffee-latte);
  color: var(--coffee-espresso);
  direction: rtl;
}

/* ── Header Overrides ── */
.ast-primary-header-bar,
.ast-below-header-bar {
  background-color: var(--coffee-espresso) !important;
}
.ast-primary-header-bar .ast-builder-menu-mobile .main-header-menu a,
.ast-primary-header-bar a,
.ast-below-header-bar a {
  color: var(--coffee-cream) !important;
  font-family: var(--font-arabic) !important;
}
.ast-primary-header-bar a:hover,
.ast-below-header-bar a:hover {
  color: var(--coffee-bronze) !important;
}

/* ── Navigation ── */
.main-header-menu > .menu-item > a {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 12px 18px !important;
  transition: color 0.3s ease, background 0.3s ease;
}
.main-header-menu > .menu-item:hover > a {
  color: var(--coffee-bronze) !important;
}
.main-header-menu .sub-menu {
  background: var(--coffee-cream) !important;
  border: 1px solid var(--coffee-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--coffee-shadow-deep);
  padding: 8px 0;
}
.main-header-menu .sub-menu a {
  color: var(--coffee-walnut) !important;
  padding: 10px 20px !important;
  font-size: 14px;
}
.main-header-menu .sub-menu a:hover {
  background: var(--coffee-oat) !important;
  color: var(--coffee-bronze) !important;
}

/* ═══ HERO SECTION ═══ */
.coffee-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--coffee-espresso) 0%, var(--coffee-walnut) 100%);
}
.coffee-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,18,9,0.7) 0%, rgba(60,36,21,0.85) 100%);
  z-index: 1;
}
.coffee-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: transform 8s ease;
}
.coffee-hero:hover .coffee-hero__bg {
  transform: scale(1.05);
}
.coffee-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}
.coffee-hero__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--coffee-bronze);
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}
.coffee-hero__title {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--coffee-cream);
  line-height: 1.3;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}
.coffee-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,252,247,0.85);
  margin-bottom: 36px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}
.coffee-hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

/* ═══ CTA BUTTONS ═══ */
.btn-coffee-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--coffee-bronze), var(--coffee-bronze-dark));
  color: var(--coffee-cream) !important;
  padding: 14px 36px;
  border-radius: 12px;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px var(--coffee-bronze-glow);
  transition: all 0.3s ease;
}
.btn-coffee-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--coffee-bronze-glow), 0 0 20px rgba(184,134,11,0.2);
}
.btn-coffee-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--coffee-cream) !important;
  padding: 14px 36px;
  border-radius: 12px;
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,252,247,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-coffee-secondary:hover {
  border-color: var(--coffee-bronze);
  color: var(--coffee-bronze) !important;
  transform: translateY(-2px);
}

/* ═══ TRUST BAR ═══ */
.coffee-trust-bar {
  background: var(--coffee-espresso);
  padding: 20px 0;
  border-bottom: 1px solid rgba(184,134,11,0.2);
}
.coffee-trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.coffee-trust-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}
.coffee-trust-bar__icon {
  font-size: 1.5rem;
  color: var(--coffee-bronze);
}
.coffee-trust-bar__text {
  color: var(--coffee-cream);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ═══ SECTION LAYOUT ═══ */
.coffee-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.coffee-section--alt {
  background: var(--coffee-oat);
}
.coffee-section--dark {
  background: var(--coffee-espresso);
  color: var(--coffee-cream);
}
.coffee-section__header {
  text-align: center;
  margin-bottom: 50px;
}
.coffee-section__accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--coffee-bronze);
  display: block;
  margin-bottom: 8px;
}
.coffee-section__title {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--coffee-espresso);
  margin-bottom: 12px;
}
.coffee-section--dark .coffee-section__title {
  color: var(--coffee-cream);
}
.coffee-section__desc {
  font-size: 1rem;
  color: var(--coffee-mocha);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ═══ CATEGORY CARDS ═══ */
.coffee-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.coffee-category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--coffee-shadow);
}
.coffee-category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.coffee-category-card:hover .coffee-category-card__img {
  transform: scale(1.12);
}
.coffee-category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,18,9,0.85) 0%, rgba(26,18,9,0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s ease;
}
.coffee-category-card:hover .coffee-category-card__overlay {
  background: linear-gradient(0deg, rgba(26,18,9,0.9) 0%, rgba(184,134,11,0.15) 60%);
}
.coffee-category-card__title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--coffee-cream);
  margin-bottom: 4px;
}
.coffee-category-card__count {
  font-size: 0.85rem;
  color: var(--coffee-bronze);
}

/* ═══ PRODUCT CARDS ═══ */
.coffee-product-card {
  background: var(--coffee-cream);
  border-radius: 14px;
  border: 1px solid var(--coffee-border);
  box-shadow: 0 4px 16px var(--coffee-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.coffee-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--coffee-shadow-deep);
}
.coffee-product-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--coffee-oat);
}
.coffee-product-card__body {
  padding: 20px;
}
.coffee-product-card__category {
  font-size: 0.75rem;
  color: var(--coffee-sage);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.coffee-product-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--coffee-espresso);
  margin-bottom: 8px;
  line-height: 1.5;
}
.coffee-product-card__price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--coffee-bronze);
}
.coffee-product-card__price del {
  color: var(--coffee-mocha);
  font-weight: 400;
  font-size: 0.9rem;
  margin-inline-start: 8px;
}

/* ═══ SPOTLIGHT SECTION ═══ */
.coffee-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.coffee-spotlight__image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px var(--coffee-shadow-deep);
}
.coffee-spotlight__image img {
  width: 100%;
  height: auto;
  display: block;
}
.coffee-spotlight__content {
  padding: 20px 0;
}
.coffee-spotlight__badge {
  display: inline-block;
  background: var(--coffee-sage);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.coffee-spotlight__title {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--coffee-espresso);
  margin-bottom: 16px;
  line-height: 1.4;
}
.coffee-spotlight__desc {
  color: var(--coffee-mocha);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 24px;
}
.coffee-spotlight__notes {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}
.coffee-spotlight__note {
  text-align: center;
}
.coffee-spotlight__note-label {
  font-size: 0.75rem;
  color: var(--coffee-mocha);
  display: block;
  margin-bottom: 4px;
}
.coffee-spotlight__note-value {
  font-weight: 700;
  color: var(--coffee-espresso);
}

/* ═══ BUNDLES ═══ */
.coffee-bundles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.coffee-bundle-card {
  background: var(--coffee-cream);
  border-radius: 16px;
  border: 1px solid var(--coffee-border);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.coffee-bundle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--coffee-shadow-deep);
}
.coffee-bundle-card__save {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--coffee-bronze), var(--coffee-bronze-dark));
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.coffee-bundle-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.coffee-bundle-card__title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--coffee-espresso);
  margin-bottom: 12px;
}
.coffee-bundle-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: right;
}
.coffee-bundle-card__list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--coffee-mocha);
  border-bottom: 1px solid var(--coffee-oat);
}
.coffee-bundle-card__list li:last-child {
  border-bottom: none;
}
.coffee-bundle-card__list li::before {
  content: '☕ ';
  margin-inline-end: 6px;
}
.coffee-bundle-card__msg {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--coffee-bronze);
  margin-bottom: 20px;
}

/* ═══ WHY US ═══ */
.coffee-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.coffee-why-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--coffee-cream);
  border-radius: 16px;
  border: 1px solid var(--coffee-border);
  transition: transform 0.3s ease;
}
.coffee-why-card:hover {
  transform: translateY(-4px);
}
.coffee-why-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--coffee-bronze);
}
.coffee-why-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--coffee-espresso);
  margin-bottom: 8px;
}
.coffee-why-card__desc {
  font-size: 0.9rem;
  color: var(--coffee-mocha);
  line-height: 1.7;
}

/* ═══ NEWSLETTER ═══ */
.coffee-newsletter {
  background: linear-gradient(135deg, var(--coffee-espresso) 0%, var(--coffee-walnut) 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.coffee-newsletter__title {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--coffee-cream);
  margin-bottom: 12px;
}
.coffee-newsletter__desc {
  color: rgba(255,252,247,0.8);
  font-size: 1rem;
  margin-bottom: 28px;
}
.coffee-newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.coffee-newsletter__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,252,247,0.2);
  background: rgba(255,252,247,0.1);
  color: var(--coffee-cream);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
}
.coffee-newsletter__input::placeholder {
  color: rgba(255,252,247,0.5);
}
.coffee-newsletter__input:focus {
  outline: none;
  border-color: var(--coffee-bronze);
}
.coffee-newsletter__badge {
  display: inline-block;
  background: rgba(184,134,11,0.2);
  color: var(--coffee-bronze);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
}

/* ═══ FOOTER OVERRIDE ═══ */
.site-footer,
.ast-footer-overlay {
  background-color: var(--coffee-espresso) !important;
}

/* ═══ WooCommerce Overrides ═══ */
.woocommerce ul.products li.product .button,
.woocommerce a.button {
  background: linear-gradient(135deg, var(--coffee-bronze), var(--coffee-bronze-dark)) !important;
  color: var(--coffee-cream) !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  font-family: var(--font-arabic) !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 12px var(--coffee-bronze-glow);
  transition: all 0.3s ease !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--coffee-bronze-glow) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-arabic) !important;
  font-weight: 600;
  color: var(--coffee-espresso);
}
.woocommerce ul.products li.product .price {
  color: var(--coffee-bronze) !important;
  font-weight: 700;
}
.woocommerce .onsale {
  background: var(--coffee-sage) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 992px) {
  .coffee-categories__grid,
  .coffee-bundles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .coffee-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .coffee-spotlight {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .coffee-hero { min-height: 70vh; }
  .coffee-trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .coffee-section { padding: 50px 16px; }
  .coffee-newsletter { padding: 40px 20px; }
  .coffee-newsletter__form { flex-direction: column; }
}
@media (max-width: 576px) {
  .coffee-categories__grid,
  .coffee-bundles__grid {
    grid-template-columns: 1fr;
  }
  .coffee-why__grid {
    grid-template-columns: 1fr;
  }
  .coffee-trust-bar__grid {
    grid-template-columns: 1fr;
  }
  .coffee-hero__ctas { flex-direction: column; align-items: center; }
}

/* ═══ AGGRESSIVE OVERRIDES — Kill inherited green ═══ */
/* Below-header bar */
.ast-below-header,
.ast-below-header-wrap,
.ast-below-header .ast-below-header-actual-nav,
.ast-below-header-bar,
.site-below-header-wrap [CLASS*="ast-builder-menu"],
[data-section="section-below-header-builder"] {
  background-color: #1A1209 !important;
  background: #1A1209 !important;
}

/* Primary header */
.ast-primary-header,
#ast-desktop-header .ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
  background-color: #1A1209 !important;
  background: #1A1209 !important;
}

/* Above header */
.ast-above-header,
.ast-above-header-bar {
  background-color: #1A1209 !important;
}

/* All header area nav links */
.ast-builder-menu .menu-item > a,
.ast-builder-menu-mobile .menu-item > a,
.ast-header-break-point .main-header-menu .menu-item > a {
  color: #FFFCF7 !important;
}
.ast-builder-menu .menu-item > a:hover,
.ast-builder-menu-mobile .menu-item > a:hover {
  color: #B8860B !important;
}

/* WooCommerce buttons — kill green */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .cart .button,
.woocommerce .checkout-button,
.single_add_to_cart_button,
a.added_to_cart,
.wc-block-grid__product-add-to-cart .wp-block-button__link {
  background: linear-gradient(135deg, #B8860B, #8B6508) !important;
  background-color: #B8860B !important;
  color: #FFFCF7 !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: 'Tajawal', sans-serif !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: linear-gradient(135deg, #8B6508, #6B4F06) !important;
  background-color: #8B6508 !important;
}

/* Hide page title on homepage */
.home .entry-title,
.home .page-title,
.home .ast-archive-description {
  display: none !important;
}

/* Search bar override */
.rc-header-search-row {
  background: var(--coffee-latte, #FAF6F0) !important;
}

/* Link colors sitewide */
a { color: #3C2415; }
a:hover { color: #B8860B; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', sans-serif;
  color: #1A1209;
}
