/* =============================
   OLIVEOILTASTE ▸ Global Styles
   ============================= */

:root {
  --olive: #7a8f39;
  --dark-olive: #556b2f;
  --light-bg: #f8f8f5;
  --text: #333;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background: var(--light-bg);
  color: var(--text);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

.btn {
  display: inline-block;
  background: var(--dark-olive);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
}

.btn:hover {
  background: #444;
}

/* =============================
   HEADER
   ============================= */

header {
  background: var(--olive);
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  font-weight: 600;
}

nav a:hover {
  opacity: 0.85;
}

.ast-primary-header-bar {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.ast-site-identity .custom-logo-link img {
  max-height: 90px;
  height: auto;
  width: auto;
}

@media (max-width: 768px) {
  .ast-site-identity .custom-logo-link img {
    max-height: 60px;
  }
}

/* =============================
   HERO
   ============================= */

.hero {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 55vh;
  background: url('masline-hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
  color: #fff;
}

/* =============================
   CATEGORII / GRID PRODUSE
   ============================= */

#categorii {
  clear: both;
  overflow: hidden;
  margin-top: 2rem;
  padding: 4rem 1rem;
}

#categorii .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-olive);
}

.products-grid,
ul.products {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card,
ul.products li.product {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

ul.products li.product:hover {
  transform: translateY(-4px);
}

.product-thumb,
ul.products li.product img {
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb.placeholder::after {
  content: "Poza";
  color: #777;
  font-size: 0.9rem;
}

.product-info,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price {
  padding: 0 0.8rem 0.6rem;
  text-align: center;
}

.product-name,
.woocommerce-loop-product__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-olive);
  margin-bottom: 0.5rem;
}

.product-price,
ul.products li.product .price {
  font-weight: 700;
  color: #000;
}

/* =============================
   REVIEWS
   ============================= */

#reviews {
  background: #fff;
  padding: 4rem 1rem;
}

.reviews-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: var(--max-width);
  margin: 0 auto;
}

.review-card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: var(--light-bg);
}

.review-card p {
  margin-bottom: 0.8rem;
}

.review-card .author {
  font-weight: 700;
  color: var(--dark-olive);
}

/* =============================
   SOCIAL LINKS
   ============================= */

#social {
  padding: 3rem 1rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.8rem;
}

.social-links a {
  color: var(--dark-olive);
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: scale(1.1);
}

/* =============================
   FOOTER
   ============================= */

footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* =============================
   ACCESSIBILITY / OPTIMIZĂRI
   ============================= */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Suprascriere Astra pe homepage */
body.home .ast-container {
  display: block !important;
}

body.home #categorii {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 1rem;
  overflow: hidden;
}

/* Spațiu între logo și meniu pe mobil */
.ast-header-break-point .main-header-bar .site-branding {
  margin-right: 1rem;
}

/* Fundal verde pentru meniul mobil */
body .ast-mobile-popup-drawer {
    background-color: #758c2e !important;
}

/* Fundal verde și pentru lista de linkuri din meniu */
body .ast-mobile-popup-inner {
    background-color: #758c2e !important;
}

/* Culoare text meniu mobil */
body .ast-mobile-popup-inner a {
    color: white !important;
}

/* Fundal meniu mobil (containerul complet deschis) */
#wprmenu_menu {
  background-color: #7a8f39 !important;
}

/* Fundal bara de sus (cu logo + hamburger) */
.wprmenu_bar {
  background-color: #7a8f39 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Buton hamburger alb */
.wprmenu_icon span {
  background-color: #fff !important;
}

/* Text din meniu */
#wprmenu_menu ul li a {
  color: #fff !important;
}

