/*
Theme Name: Maddie Bean Shoppe
Theme URI: https://maddiebeanshoppe.etsy.com
Author: Maddie Bean Shoppe
Author URI: https://maddiebeanshoppe.etsy.com
Description: A boutique Australian WordPress theme designed for celebration stationery, editable Canva invitations, pregnancy announcements, and interactive scratch-off reveal games, infused with native eucalyptus and wattle botanicals.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: maddie-bean-shoppe
*/

/* ==========================================================================
   CSS Variables & Australian Botanical Design System
   ========================================================================== */
:root {
  --bg-main: #FDFBF7;
  --bg-secondary: #F6F2EB;
  --bg-card: #FFFFFF;
  --text-main: #2D2723;
  --text-muted: #5C5650;
  --text-light: #948B83;
  
  /* Australian Bushland & Botanical Palette */
  --color-eucalyptus: #556B52;
  --color-eucalyptus-dark: #41533E;
  --color-wattle: #CFA04E;
  --color-terracotta: #8C6551;
  --color-terracotta-hover: #755240;
  
  --color-primary: var(--color-eucalyptus);
  --color-primary-hover: var(--color-eucalyptus-dark);
  --color-accent: var(--color-wattle);
  --color-blush: #EFE8DE;
  --color-sage: #E4EAE1;
  --color-gold: #DDA33D;
  --color-border: #E8DFD3;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(45, 39, 35, 0.05);
  --shadow-md: 0 6px 20px rgba(45, 39, 35, 0.08);
  --shadow-lg: 0 12px 32px rgba(45, 39, 35, 0.12);
  
  --container-max: 1200px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.mbs-container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ==========================================================================
   Top Announcement Bar (Australian Flag & Global Delivery)
   ========================================================================== */
.mbs-top-bar {
  background-color: #EEE6DA;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.2px;
}
.mbs-top-bar a {
  color: var(--color-eucalyptus-dark);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.mbs-header {
  background: var(--bg-main);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mbs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.mbs-logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.mbs-logo .mbs-logo-sub {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--color-eucalyptus);
  font-weight: 600;
  margin-top: 3px;
}
.mbs-logo img {
  height: 48px;
  width: auto;
}

.mbs-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.mbs-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.mbs-nav a:hover, .mbs-nav a.active {
  color: var(--color-eucalyptus);
}

.mbs-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mbs-btn-etsy {
  background-color: var(--color-terracotta);
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.mbs-btn-etsy:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Hero Section with Native Australian Botanical Framing
   ========================================================================== */
.mbs-hero {
  padding: 70px 0 60px;
  background-color: var(--bg-main);
  background-image: url('assets/images/australian-botanical-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mbs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(253, 251, 247, 0.90) 25%, rgba(253, 251, 247, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}
.mbs-hero > .mbs-container {
  position: relative;
  z-index: 2;
}

.mbs-hero-badge {
  display: inline-block;
  background-color: var(--color-sage);
  color: var(--color-eucalyptus-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  border: 1px solid rgba(85, 107, 82, 0.18);
}
.mbs-hero h1 {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-main);
  max-width: 820px;
  margin: 0 auto 16px;
}
.mbs-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.mbs-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 45px;
}
.mbs-btn-primary {
  background-color: var(--color-eucalyptus);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}
.mbs-btn-primary:hover {
  background-color: var(--color-eucalyptus-dark);
  transform: translateY(-2px);
}
.mbs-btn-outline {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text-main) !important;
  border: 1.5px solid var(--color-border);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  transition: all 0.2s ease;
}
.mbs-btn-outline:hover {
  border-color: var(--color-eucalyptus);
  color: var(--color-eucalyptus) !important;
}

.mbs-hero-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}
.mbs-hero-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #FFF;
  border: 4px solid #FFF;
  transition: transform 0.3s ease;
}
.mbs-hero-card:hover {
  transform: translateY(-6px);
}
.mbs-hero-card.left {
  transform: rotate(-3deg);
  max-width: 280px;
}
.mbs-hero-card.center {
  z-index: 2;
  transform: scale(1.05);
  max-width: 320px;
}
.mbs-hero-card.right {
  transform: rotate(3deg);
  max-width: 280px;
}

/* ==========================================================================
   Category Navigation Pills
   ========================================================================== */
.mbs-categories-section {
  padding: 40px 0 20px;
}
.mbs-category-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mbs-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.mbs-cat-item:hover {
  transform: translateY(-4px);
}
.mbs-cat-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
.mbs-cat-item:hover .mbs-cat-icon {
  background: var(--color-sage);
  border-color: var(--color-eucalyptus);
  box-shadow: var(--shadow-sm);
}
.mbs-cat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

/* ==========================================================================
   Products Grid Section
   ========================================================================== */
.mbs-products-section {
  padding: 60px 0;
}
.mbs-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.mbs-section-header h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mbs-section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.mbs-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.mbs-product-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}
.mbs-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-eucalyptus);
}

.mbs-card-media {
  position: relative;
  background: #F4EFEA;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.mbs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.mbs-product-card:hover .mbs-card-media img {
  transform: scale(1.04);
}

/* Badges */
.mbs-badge-live-demo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(85, 107, 82, 0.94);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s ease;
}
.mbs-badge-live-demo:hover {
  background: var(--color-eucalyptus-dark);
}

.mbs-badge-canva {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-main);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.mbs-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.mbs-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}
.mbs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mbs-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-eucalyptus-dark);
}
.mbs-card-stars {
  color: var(--color-gold);
  font-size: 13px;
  letter-spacing: 1px;
}

.mbs-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.mbs-btn-buy {
  flex: 1;
  background-color: var(--color-terracotta);
  color: #FFF !important;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.mbs-btn-buy:hover {
  background-color: var(--color-terracotta-hover);
}
.mbs-btn-demo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}
.mbs-btn-demo-card:hover {
  border-color: var(--color-eucalyptus);
  color: var(--color-eucalyptus);
}

/* ==========================================================================
   Trust / Social Proof Strip (Australian Proud)
   ========================================================================== */
.mbs-trust-bar {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
  margin: 40px 0 0;
}
.mbs-trust-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.mbs-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mbs-trust-icon {
  font-size: 24px;
}
.mbs-trust-text h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}
.mbs-trust-text p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mbs-footer {
  background-color: #242A22; /* Deep eucalyptus charcoal */
  color: #DDD6CE;
  padding: 50px 0 24px;
  font-size: 14px;
}
.mbs-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.mbs-footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #FFF;
  margin-bottom: 10px;
}
.mbs-footer-brand p {
  color: #B5AEA6;
  max-width: 380px;
  line-height: 1.6;
}
.mbs-footer-col h4 {
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.mbs-footer-col ul {
  list-style: none;
}
.mbs-footer-col li {
  margin-bottom: 8px;
}
.mbs-footer-col a:hover {
  color: #FFF;
}
.mbs-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: #8E8882;
}

/* ==========================================================================
   Live Demo Modal
   ========================================================================== */
.mbs-demo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.mbs-demo-modal.active {
  display: flex;
}
.mbs-modal-content {
  background: #FFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  height: 85vh;
  max-height: 720px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.mbs-modal-header {
  padding: 12px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mbs-modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}
.mbs-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}
.mbs-modal-iframe {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive */
@media (max-width: 860px) {
  .mbs-hero h1 { font-size: 32px; }
  .mbs-hero-showcase { display: none; }
  .mbs-nav { display: none; }
  .mbs-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
