/* style.css */
/* =======================================================
   GeneratePress Header & Navigation Dark Palette
   ======================================================= */

/* Keep background color on all elements */
.site-header,
#site-navigation,
#mobile-header,
.main-navigation {
  background-color: #120d09 !important;
}

/* Apply border ONLY to the actual wrapper on screen */
:is(#mobile-header, .site-header) {
  border-bottom: 1px solid rgba(212, 160, 74, 0.2) !important;
}

/* Site Title / Logo Text */
.main-title a,
.site-header .main-title a,
#mobile-header .site-title a {
  color: #f3e6cf !important;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.5px;
}

.main-title a:hover {
  color: #d4a04a !important;
}

/* Mobile Hamburger Menu Icon & Toggle */
.menu-toggle,
.menu-toggle:hover,
.menu-toggle:focus,
#mobile-header .menu-toggle {
  color: #d4a04a !important;
  background: transparent !important;
}

.menu-toggle .gp-icon,
.mobile-menu-control-wrapper .menu-toggle {
  color: #d4a04a !important;
}

/* Navigation Links (Desktop & Dropdowns) */
.main-navigation .main-nav ul li a,
.main-navigation .menu-item a {
  color: #f3e6cf !important;
  transition: color 0.25s ease;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: #d4a04a !important;
  background-color: #1a1410 !important;
}

/* Mobile Dropdown Slide-out / Mobile Navigation Area */
.main-navigation.toggled .main-nav,
.main-navigation.toggled ul {
  background-color: #120d09 !important;
}

.main-navigation.toggled .main-nav ul li a {
  color: #f3e6cf !important;
  border-bottom: 1px solid rgba(212, 160, 74, 0.1) !important;
}
/* =======================================================
   GeneratePress Footer Dark Palette (Uniform Color)
   ======================================================= */

/* Footer Container */
.site-footer,
.site-info,
.footer-widgets {
  background-color: #120d09 !important;
  border-top: 1px solid rgba(212, 160, 74, 0.2) !important;
  text-align: center;
}

/* Make all footer text, strong tags, and links identical in color */
.site-info,
.site-info strong,
.site-info a {
  color: #a3875e !important;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.8;
  text-decoration: none !important;
  transition: color 0.25s ease;
}

/* Subtle gold hover for the link */
.site-info a:hover {
  color: #d4a04a !important;
}

/* =======================================================
   header padding for mobile
   ======================================================= */

@media (max-width: 768px) {
  body .inside-header {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* =======================================================
   Custom WhatsApp Button Styling
   ======================================================= */

/* .custom-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.custom-wa-btn .wa-icon {
  width: 1.15em;
  height: 1.15em;
} */

/* ============================================
GEW — WooCommerce Product Card (standalone)
Dark & gold theme (matches home page palette)
============================================ */

/* Clean WooCommerce Grid Container */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin: 0 0 32px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

/* Individual Product List Item Reset */
.woocommerce ul.products li.product.gew-product-card-item,
.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  display: flex !important;
}

/* Card Container (Flush Full-Bleed Layout)
   Colour tokens live here so the whole card can be re-themed in one place. */
.gew-product-card {
  --gew-bg: #1a1410;
  --gew-thumb-bg: #2b1d12;
  --gew-gold: #d4a04a;
  --gew-gold-hover: #e6b563;
  --gew-text: #f3e6cf;
  --gew-muted: #a3875e;
  --gew-line: rgba(212, 160, 74, 0.2);

  /* Font sizes: 3 for desktop + 3 for mobile (only 3 are ever on screen) */
  --gew-fs-desktop-sm: 0.75rem; /* rating, category */
  --gew-fs-desktop-md: 0.9rem; /* old price, % OFF */
  --gew-fs-desktop-lg: 1.1rem; /* title, active price, Buy Now */

  --gew-fs-mobile-sm: 0.7rem; /* rating, category */
  --gew-fs-mobile-md: 0.8rem; /* old price, % OFF */
  --gew-fs-mobile-lg: 0.95rem; /* title, active price, Buy Now */

  /* Active sizes: the card's rules read these. Desktop by default,
     switched to the mobile set inside the mobile media query. */
  --gew-fs-sm: var(--gew-fs-desktop-sm);
  --gew-fs-md: var(--gew-fs-desktop-md);
  --gew-fs-lg: var(--gew-fs-desktop-lg);

  background: var(--gew-bg);
  border-radius: 14px;
  padding: 0;
  border: 1px solid var(--gew-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.gew-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--gew-gold-hover);
  box-shadow: 0 8px 24px rgba(212, 160, 74, 0.18);
}

/* Product Thumbnail — zero margin/padding, touches card border directly */
.gew-product-card__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--gew-thumb-bg);
  margin: 0;
  padding: 0;
}

.gew-product-card__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.gew-product-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gew-product-card:hover .gew-product-card__img {
  transform: scale(1.05);
}

/* Star Rating Badge (top-right of image) */
.gew-product-card__rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(26, 20, 16, 0.85);
  backdrop-filter: blur(4px);
  color: var(--gew-gold);
  border: 1px solid rgba(212, 160, 74, 0.55);
  font-size: var(--gew-fs-sm);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Everything below the image lives in one padded wrapper */
.gew-product-card__body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Meta block (category + title) grows to push pricing/CTA to the bottom */
.gew-product-card__meta {
  flex-grow: 1;
}

.gew-product-card__category {
  font-size: var(--gew-fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gew-muted);
  display: block;
  margin: 0 0 2px;
}

/* !important overrides the theme's default WooCommerce loop rule
   (.woocommerce ul.products li.product h3 { padding: 0.3em 0; }) */
.gew-product-card__title {
  font-size: var(--gew-fs-lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gew-text);
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gew-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.gew-product-card__title a:hover {
  color: var(--gew-gold);
}

/* Bottom Actions & Price Row */
.gew-product-card__bottom {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--gew-line);
}

.gew-product-card__pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.gew-product-card__price {
  font-size: var(--gew-fs-lg);
  font-weight: 800;
  color: var(--gew-gold);
  display: inline-flex;
  align-items: baseline;
}

.gew-product-card__price-old {
  font-size: var(--gew-fs-md);
  color: var(--gew-muted);
  opacity: 0.8;
  text-decoration: line-through;
}

.gew-product-card__discount {
  font-size: var(--gew-fs-md);
  font-weight: 700;
  color: var(--gew-gold);
  background: rgba(212, 160, 74, 0.12);
  border: 1px solid rgba(212, 160, 74, 0.45);
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.2;
}

/* WhatsApp Buy Now Button (gold, same as the site's primary button) */
.gew-product-card__cta {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--gew-text);
  color: #1a1410 !important;
  font-size: var(--gew-fs-lg);
  font-weight: 600;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.gew-product-card__cta:hover {
  background: var(--gew-gold-hover);
  transform: translateY(-1px);
}

.gew-product-card__cta:active {
  transform: scale(0.98);
}

.gew-product-card__cta-icon {
  width: 14px;
  height: 14px;
  fill: #1a1410;
  flex-shrink: 0;
}

/* ── Mobile (product-card rules only) ── */
@media (max-width: 768px) {
  .woocommerce ul.products,
  ul.products.columns-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .gew-product-card {
    padding: 0;
    border-radius: 12px;

    /* Switch the active font sizes to the mobile set */
    --gew-fs-sm: var(--gew-fs-mobile-sm);
    --gew-fs-md: var(--gew-fs-mobile-md);
    --gew-fs-lg: var(--gew-fs-mobile-lg);
  }

  .gew-product-card__body {
    padding: 8px;
  }

  .gew-product-card__cta {
    padding: 5px 6px;
  }
}
