/*
Theme Name: Elreth Candles (Divi Child)
Theme URI: https://elrethcandles.com
Author: Elreth
Author URI: https://elrethcandles.com
Description: Divi child theme for Elreth Candles - artisanal candle shop with warm earth tones.
Template: Divi
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elreth-divi
*/

@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&family=Cormorant:wght@300;400;500;600;700&display=swap');

/* ============================================
   DIVI CHILD THEME - Kohandatud stiilid
   ============================================ */

/* --- CSS muutujad --- */
:root {
  elreth-bg: #fdf8f3;
  elreth-fg: #2d1f14;
  elreth-primary: #5c3d2e;
  elreth-primary-fg: #fdf8f3;
  elreth-secondary: #f0e6db;
  elreth-accent: #c4956a;
  elreth-accent-fg: #fdf8f3;
  elreth-muted: #8b7355;
  elreth-border: #e8ddd3;
  elreth-card: #f7f0e8;
  elreth-heading: 'Cormorant', serif;
  elreth-body: 'Cabin', sans-serif;
}


/* --- Üldine --- */
body {
  font-family: var(--elreth-body);
  background-color: var(--elreth-bg);
  color: var(--elreth-fg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module.et_pb_text_inner h1,
.et_pb_module.et_pb_text_inner h2,
.et_pb_module.et_pb_text_inner h3,
.et_pb_module.et_pb_text_inner h4,
.et_pb_module.et_pb_text_inner h5,
.et_pb_module.et_pb_text_inner h6 {
  font-family: var(--elreth-heading);
}

/* --- Teateriba --- */
.elreth-announcement-bar {
  background-color: var(--elreth-primary);
  color: var(--elreth-primary-fg);
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-family: var(--elreth-body);
}

.elreth-announcement-bar a {
  color: var(--elreth-primary-fg);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.elreth-announcement-bar a:hover {
  opacity: 0.8;
}

/* --- Navigatsioon --- */
.elreth-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.elreth-nav-logo {
  font-family: var(--elreth-heading);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--elreth-primary);
  text-decoration: none;
}

.elreth-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.elreth-nav-actions a {
  color: var(--elreth-fg);
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.elreth-nav-actions a:hover {
  background-color: var(--elreth-secondary);
}

.elreth-cart-count {
  background-color: var(--elreth-accent);
  color: var(--elreth-accent-fg);
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-left: 2px;
}

/* --- Hero sektsioon Divi override --- */
.elreth-hero .et_pb_section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elreth-hero .et_pb_row {
  width: 100%;
  max-width: 768px;
}

.elreth-hero-title {
  font-family: var(--elreth-heading);
  font-size: clamp(2rem, 5vw + 1rem, 3.75rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  text-align: center;
}

.elreth-hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  text-align: center;
  line-height: 1.6;
}

.elreth-hero-cta {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: var(--elreth-primary);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s ease;
  text-decoration: none;
  border: none;
}

.elreth-hero-cta:hover {
  background: #fff;
}

/* --- Omaduste kaardid --- */
.elreth-feature-card {
  text-align: center;
  padding: 24px;
}

.elreth-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--elreth-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.elreth-feature-title {
  font-family: var(--elreth-heading);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.elreth-feature-desc {
  color: var(--elreth-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- Tootekaardid --- */
.elreth-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.elreth-product-card:hover {
  color: var(--elreth-accent);
}

.elreth-product-card img {
  transition: transform 0.5s ease;
}

.elreth-product-card:hover img {
  transform: scale(1.05);
}

/* --- CTA nupud --- */
.elreth-btn-primary {
  display: inline-block;
  background-color: var(--elreth-primary);
  color: var(--elreth-primary-fg) !important;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  text-decoration: none;
  border: none;
}

.elreth-btn-primary:hover {
  opacity: 0.9;
}

.elreth-btn-outline {
  display: inline-block;
  border: 1px solid var(--elreth-primary);
  color: var(--elreth-primary) !important;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
}

.elreth-btn-outline:hover {
  background-color: var(--elreth-primary);
  color: var(--elreth-primary-fg) !important;
}

.elreth-btn-white {
  display: inline-block;
  background-color: #fff;
  color: var(--elreth-primary) !important;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  text-decoration: none;
  border: none;
}

.elreth-btn-white:hover {
  opacity: 0.9;
}

.elreth-btn-outline-white {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff !important;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s ease;
  text-decoration: none;
  background: transparent;
}

.elreth-btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
}

.elreth-link-accent {
  color: var(--elreth-accent);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--elreth-accent);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.elreth-link-accent:hover {
  color: var(--elreth-primary);
  border-color: var(--elreth-primary);
}

/* --- Instagram galerii --- */
.elreth-instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .elreth-instagram-grid {
    grid-template-columns: repeat(6, fr);
  }
}

.elreth-instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}

.elreth-instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.elreth-instagram-item:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

/* --- Jalus --- */
.elreth-footer {
  background-color: var(--elreth-primary);
  color: var(--elreth-primary-fg);
  padding: 48px 0;
}

.elreth-footer a {
  color: var(--elreth-primary-fg);
  transition: opacity 0.3s ease;
}

.elreth-footer a:hover {
  opacity: 0.7;
}

.elreth-footer .payments-label {
  font-size: 12px;
  color: rgba(253,248,243,0.7);
  margin-bottom: 12px;
}

.elreth-footer .payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.elreth-footer .payment-icons img {
  height: 24px;
  width: auto;
}

.elreth-footer .copyright {
  font-size: 12px;
  color: rgba(253,248,243,0.7);
}

/* --- Divi spetsiifilised override'id --- */

/* Eemalda Divi vaikimisi section padding */
.elreth-section .et_pb_section {
  padding: 0;
}

/* Eemalda Divi row max-width kui vaja full-width */
.elreth-fullwidth .et_pb_row {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

/* Divi nuppude stiilimine */
.elreth-section .et_pb_button {
  font-family: var(--elreth-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
}

/* Divi teksti mooduli fondi override */
.elreth-section .et_pb_text_inner {
  font-family: var(--elreth-body);
}

/* Divi WooCommerce mooduli tootekaardid */
.elreth-products .et_pb_shop .et_pb_shop_item {
  border: none;
  padding: 0;
}

.elreth-products .et_pb_shop .woocommerce li.product {
  text-align: center;
}

.elreth-products .et_pb_shop .woocommerce li.product h3 {
  font-family: var(--elreth-heading);
  font-size: 18px;
}

/* Divi Blog/Archive override */
.elreth-section .et_pb_post h2 {
  font-family: var(--elreth-heading);
}