/*
Theme Name: EGWA Bakery
Theme URI: https://egwa.nz
Author: EGWA
Author URI: https://egwa.nz
Description: Handcrafted Bagels & Cookies from New Zealand - Custom WooCommerce theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: egwa
Tags: woocommerce, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================
   EGWA BRAND VARIABLES
   ========================================== */
:root {
  --background: hsl(35, 40%, 97%);
  --foreground: hsl(14, 26%, 19%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(14, 26%, 19%);
  --primary: hsl(14, 70%, 61%);
  --primary-foreground: hsl(35, 40%, 97%);
  --secondary: hsl(100, 18%, 67%);
  --secondary-foreground: hsl(14, 26%, 19%);
  --muted: hsl(35, 25%, 92%);
  --muted-foreground: hsl(14, 20%, 45%);
  --accent: hsl(35, 54%, 65%);
  --accent-foreground: hsl(14, 26%, 19%);
  --border: hsl(14, 18%, 82%);
  --market-primary: hsl(24, 85%, 55%);
  --market-accent: hsl(142, 40%, 45%);
  --market-light: hsl(40, 50%, 95%);
  --market-dark: hsl(20, 30%, 20%);
  --radius: 0.5rem;
  --font-main: 'DM Sans', sans-serif;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }

h1,h2,h3,h4,h5,h6 { text-wrap: balance; font-weight: 700; line-height: 1.2; }

/* ==========================================
   LAYOUT
   ========================================== */
.egwa-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.egwa-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ==========================================
   BUTTONS
   ========================================== */
.egwa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.egwa-btn:active { transform: scale(0.98); }
.egwa-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.egwa-btn-primary:hover { background: hsl(14, 70%, 54%); border-color: hsl(14, 70%, 54%); color: var(--primary-foreground); }
.egwa-btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.egwa-btn-outline:hover { background: var(--muted); }
.egwa-btn-market {
  background: var(--market-primary);
  color: #fff;
  border-color: var(--market-primary);
}
.egwa-btn-market:hover { background: hsl(24, 85%, 48%); }
.egwa-btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.egwa-btn-sm { padding: 0.4rem 1rem; font-size: 0.875rem; }

/* ==========================================
   HEADER
   ========================================== */
.egwa-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.egwa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.egwa-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}
.egwa-logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.egwa-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.egwa-nav a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  transition: all 0.2s;
}
.egwa-nav a:hover { background: var(--muted); }
.egwa-nav a.current-menu-item,
.egwa-nav a.active { background: var(--primary); color: var(--primary-foreground); }
.egwa-header-actions { display: flex; align-items: center; gap: 1rem; }
.egwa-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 1.3rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.egwa-cart-btn:hover { background: var(--muted); }
.egwa-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.egwa-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.4rem;
  color: var(--foreground);
}
@media (max-width: 768px) {
  .egwa-nav { display: none; }
  .egwa-mobile-toggle { display: flex; }
  .egwa-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.egwa-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(14,70%,61%,0.1) 0%, var(--background) 50%, hsl(100,18%,67%,0.1) 100%);
}
.egwa-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.egwa-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.egwa-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background) 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
}
.egwa-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.egwa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: hsl(35,54%,65%,0.2);
  color: var(--accent-foreground);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.egwa-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}
.egwa-hero p {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.egwa-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================
   SECTION: WHY EGWA
   ========================================== */
.egwa-why {
  padding: 5rem 0;
  background: var(--card);
}
.egwa-section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.egwa-section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.egwa-section-title p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}
.egwa-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .egwa-why-grid { grid-template-columns: 1fr; } }
.egwa-why-features { display: flex; flex-direction: column; gap: 1.75rem; }
.egwa-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.egwa-feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.egwa-feature-icon.heart { background: hsl(14,70%,61%,0.1); }
.egwa-feature-icon.star  { background: hsl(100,18%,67%,0.1); }
.egwa-feature-icon.pin   { background: hsl(35,54%,65%,0.1); }
.egwa-feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.egwa-feature p  { color: var(--muted-foreground); font-size: 0.95rem; line-height: 1.6; }
.egwa-why-image {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.egwa-why-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================
   SECTION: MARKETS BANNER
   ========================================== */
.egwa-market-banner {
  padding: 5rem 0;
  background: var(--market-light);
  border-top: 1px solid hsl(24,85%,55%,0.1);
  border-bottom: 1px solid hsl(24,85%,55%,0.1);
}
.egwa-market-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border: 1px solid hsl(24,85%,55%,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.egwa-market-card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: hsl(24,85%,55%,0.1);
  color: var(--market-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.egwa-market-card h2 { font-size: clamp(1.6rem, 3vw, 2rem); color: var(--market-dark); margin-bottom: 0.75rem; }
.egwa-market-card p  { color: hsl(20,30%,20%,0.7); font-size: 1.05rem; max-width: 500px; }

/* ==========================================
   SECTION: LOCATIONS
   ========================================== */
.egwa-locations { padding: 5rem 0; background: hsl(35,25%,92%,0.3); }
.egwa-locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
@media (max-width: 640px) { .egwa-locations-grid { grid-template-columns: 1fr; } }
.egwa-location-card {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.egwa-location-icon {
  width: 48px; height: 48px;
  background: hsl(14,70%,61%,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.egwa-location-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.egwa-location-card address { font-style: normal; color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 0.75rem; }
.egwa-location-hours { display: flex; flex-direction: column; gap: 0.2rem; }
.egwa-location-hours span { font-size: 0.85rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 0.4rem; }

/* ==========================================
   SECTION: FEATURED PRODUCTS
   ========================================== */
.egwa-featured { padding: 5rem 0; background: var(--background); }
.egwa-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* ==========================================
   PRODUCT CARD (also used by WooCommerce)
   ========================================== */
.egwa-product-card,
ul.products li.product .egwa-product-card {
  background: var(--card);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
}
.egwa-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.egwa-product-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--muted);
}
.egwa-product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.egwa-product-card:hover .egwa-product-thumb img { transform: scale(1.05); }
.egwa-product-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.egwa-product-cat {
  display: inline-block;
  background: hsl(100,18%,67%,0.2);
  color: var(--secondary-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.6rem;
}
.egwa-product-card h3,
.egwa-product-card .woocommerce-loop-product__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.egwa-product-card .egwa-product-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.egwa-product-footer { margin-top: auto; }
.egwa-product-price,
.egwa-product-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}
.egwa-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.egwa-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.egwa-qty-control button {
  width: 38px; height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--foreground);
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.egwa-qty-control button:hover { background: var(--muted); }
.egwa-qty-control input {
  width: 52px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: var(--font-main);
  font-size: 0.9rem;
  background: var(--card);
  color: var(--foreground);
}
.egwa-qty-control input:focus { outline: none; }
.egwa-add-to-cart-btn,
.egwa-product-card .button.add_to_cart_button,
.egwa-product-card .single_add_to_cart_button {
  flex: 1;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.egwa-add-to-cart-btn:hover,
.egwa-product-card .button.add_to_cart_button:hover { background: hsl(14,70%,54%); color: var(--primary-foreground); }

/* ==========================================
   PRODUCTS PAGE (archive)
   ========================================== */
.egwa-products-header {
  background: linear-gradient(135deg, hsl(14,70%,61%,0.1), var(--background), hsl(100,18%,67%,0.1));
  padding: 4rem 0;
  text-align: center;
}
.egwa-products-header h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.egwa-products-header p   { color: var(--muted-foreground); font-size: 1.05rem; }
.egwa-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 3rem 0;
}
.egwa-filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border);
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.egwa-filter-btn:hover   { background: var(--muted); }
.egwa-filter-btn.active  { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ==========================================
   MARKETS CALENDAR PAGE
   ========================================== */
.egwa-markets-header {
  background: var(--market-light);
  padding: 4rem 0;
  border-bottom: 1px solid hsl(24,85%,55%,0.1);
  text-align: center;
}
.egwa-markets-header-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: hsl(24,85%,55%,0.1);
  color: var(--market-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}
.egwa-markets-header h1 { font-size: clamp(2rem,5vw,3rem); color: var(--market-dark); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.egwa-markets-header p  { color: hsl(20,30%,20%,0.7); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.egwa-calendar-wrap { max-width: 900px; margin: 3rem auto; }
.egwa-calendar {
  background: var(--card);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.egwa-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: hsl(35,25%,92%,0.3);
}
.egwa-cal-header h2 { font-size: 1.4rem; }
.egwa-cal-nav { display: flex; gap: 0.5rem; }
.egwa-cal-nav button {
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.egwa-cal-nav button:hover { background: var(--muted); }
.egwa-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
  background: hsl(35,25%,92%,0.1);
}
.egwa-cal-weekday {
  text-align: center;
  padding: 0.75rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.egwa-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.egwa-cal-day {
  min-height: 90px;
  border-right: 1px solid hsl(14,18%,82%,0.4);
  border-bottom: 1px solid hsl(14,18%,82%,0.4);
  padding: 0.4rem;
  position: relative;
  background: var(--card);
  transition: background 0.15s;
}
.egwa-cal-day.empty { background: hsl(35,25%,92%,0.1); }
.egwa-cal-day.has-market {
  background: hsl(40,50%,95%,0.5);
  cursor: pointer;
}
.egwa-cal-day.has-market:hover { background: hsl(40,50%,90%,0.7); }
.egwa-cal-day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.egwa-cal-day.has-market .egwa-cal-day-num { color: var(--market-dark); }
.egwa-cal-events {
  position: absolute;
  bottom: 4px; left: 4px; right: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.egwa-cal-event {
  font-size: 0.65rem;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.egwa-cal-event.ponsonby    { background: var(--market-primary); }
.egwa-cal-event.greylynn    { background: var(--market-accent); }
.egwa-cal-event.newmarket   { background: hsl(24,85%,45%); }
.egwa-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.egwa-cal-legend-item { display: flex; align-items: center; gap: 0.4rem; }
.egwa-cal-legend-dot  { width: 10px; height: 10px; border-radius: 50%; }

/* Modal */
.egwa-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.egwa-modal-overlay.hidden { display: none; }
.egwa-modal {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.egwa-modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.egwa-modal-title  { font-size: 1.3rem; }
.egwa-modal-close  { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--muted-foreground); padding: 0.25rem; line-height: 1; }
.egwa-market-entry { background: var(--muted); border-radius: 0.75rem; padding: 1.25rem; margin-bottom: 1rem; }
.egwa-market-entry h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--market-dark); }
.egwa-market-entry p  { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.25rem; }

/* ==========================================
   WOOCOMMERCE OVERRIDES
   ========================================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product {
  margin: 0 !important;
  float: none !important;
}
.woocommerce ul.products li.product a img {
  border-radius: 0;
  margin: 0;
}
.woocommerce-page .woocommerce-products-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-main);
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  font-family: var(--font-main) !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  border: none !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: hsl(14,70%,54%) !important;
  color: var(--primary-foreground) !important;
}
.woocommerce-cart table.cart { font-family: var(--font-main); }
.woocommerce-cart .cart-collaterals .cart_totals { border-radius: 1rem; border: 1px solid var(--border); }

/* ==========================================
   FOOTER
   ========================================== */
.egwa-footer {
  background: var(--muted);
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
}
.egwa-footer-inner {
  padding: 3rem 0;
}
.egwa-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .egwa-footer-grid { grid-template-columns: 1fr; } }
.egwa-footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; }
.egwa-footer h3 { font-size: 0.95rem; color: var(--foreground); margin-bottom: 1rem; }
.egwa-footer-info { display: flex; flex-direction: column; gap: 0.75rem; }
.egwa-footer-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.egwa-footer-info-row .icon { color: var(--primary); font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.egwa-footer-info-row strong { display: block; color: var(--foreground); }
.egwa-footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.egwa-social-btn {
  width: 40px; height: 40px;
  background: var(--card);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--foreground);
  transition: all 0.2s;
}
.egwa-social-btn:hover { background: var(--primary); color: var(--primary-foreground); }
.egwa-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.egwa-footer-bottom a { margin-left: 1.5rem; }
.egwa-footer-bottom a:hover { color: var(--foreground); }

/* ==========================================
   UTILITY
   ========================================== */
.egwa-text-center { text-align: center; }
.egwa-mt-1 { margin-top: 1rem; }
.egwa-mt-2 { margin-top: 2rem; }
.egwa-mt-3 { margin-top: 3rem; }
.egwa-animate { animation: fadeUp 0.5s ease both; }
