/*
Theme Name: MrBunnyGiftShop
Theme URI: https://mrbunnygiftshop.co.uk
Author: MrBunnyGiftShop
Author URI: https://mrbunnygiftshop.co.uk
Description: A premium Japanese anime-styled e-commerce theme for MrBunnyGiftShop. Dark mode with sakura accents, glassmorphism cards, and neon glow effects. Fully compatible with WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mrbunny
Tags: e-commerce, dark, custom-menu, featured-images, full-width-template
*/

/* ============================================
   MrBunnyGiftShop — Anime Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  --sakura: #ff6b9d;
  --sakura-light: #ff8fb8;
  --sakura-glow: rgba(255, 107, 157, 0.35);
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.3);
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.25);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-jp: 'Zen Maru Gothic', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow-sakura: 0 0 20px var(--sakura-glow), 0 0 60px var(--sakura-glow);
  --shadow-glow-cyan: 0 0 20px var(--cyan-glow), 0 0 60px var(--cyan-glow);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 70px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; margin: 0; padding: 0; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Theme-specific resets (NOT inside WooCommerce containers) */
.hero, .navbar, .footer, .section-header, .features-grid,
.products-grid, .product-card, .feature-card, .page-hero,
.about-grid, .contact-grid, .shipping-info, .filter-bar { margin: 0; padding: 0; }
.hero *, .navbar *, .footer * { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Only reset list styles outside WooCommerce */
.navbar ul, .navbar ol,
.footer ul, .footer ol,
.hero ul, .hero ol,
.nav-links ul { list-style: none; margin: 0; padding: 0; }

button { cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Restore defaults INSIDE WooCommerce so cart/checkout work */
.woocommerce table,
.woocommerce-page table,
.woocommerce-page-content table { border-collapse: collapse; width: 100%; }
.woocommerce th, .woocommerce td,
.woocommerce-page th, .woocommerce-page td,
.woocommerce-page-content th, .woocommerce-page-content td { text-align: left; }
.woocommerce img, .woocommerce-page-content img { display: inline; }
.woocommerce button, .woocommerce input[type="submit"],
.woocommerce-page-content button, .woocommerce-page-content input[type="submit"] {
  font-family: inherit; cursor: pointer; border: 1px solid transparent;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--sakura); border-radius: var(--radius-full); }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-3xl) 0; }
.text-gradient { background: linear-gradient(135deg, var(--sakura), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-gold { background: linear-gradient(135deg, var(--gold), var(--sakura)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.jp-text { font-family: var(--font-jp); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Navigation ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 1000; background: rgba(10,14,26,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-glass); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-logo-img { width: 42px !important; height: 42px !important; min-width: 42px; max-width: 42px !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--sakura-glow); box-shadow: 0 0 10px var(--sakura-glow); flex-shrink: 0; }
.navbar .nav-logo-img, .footer .nav-logo-img { width: 42px !important; height: 42px !important; max-width: 42px !important; }
.nav-logo .logo-mr { color: var(--sakura); }
.nav-logo .logo-bunny { color: var(--text-primary); }
.nav-logo .logo-gift { color: var(--cyan); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; }

.nav-links { display: flex; align-items: center; gap: var(--space-xl); }
.nav-link { font-family: var(--font-heading); font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); position: relative; transition: var(--transition-fast); padding: var(--space-xs) 0; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--sakura), var(--cyan)); border-radius: var(--radius-full); transition: var(--transition-smooth); }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* WordPress menu items compatibility */
.nav-links .menu-item a { font-family: var(--font-heading); font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); position: relative; transition: var(--transition-fast); padding: var(--space-xs) 0; }
.nav-links .menu-item a:hover { color: var(--text-primary); }
.nav-links .current-menu-item a { color: var(--text-primary); }

.nav-cta { display: inline-flex; align-items: center; gap: var(--space-sm); background: linear-gradient(135deg, var(--sakura), #e91e8c); color: white; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-full); font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; transition: var(--transition-smooth); box-shadow: 0 4px 15px var(--sakura-glow); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-sakura); color: white; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: var(--space-sm); }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: var(--radius-full); transition: var(--transition-fast); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: var(--nav-height); overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; pointer-events: none; }
.hero-orb--sakura { width: 500px; height: 500px; background: var(--sakura); top: -10%; right: -10%; animation: float 8s ease-in-out infinite; }
.hero-orb--cyan { width: 400px; height: 400px; background: var(--cyan); bottom: -10%; left: -10%; animation: float 10s ease-in-out infinite reverse; }
.hero-orb--purple { width: 300px; height: 300px; background: var(--purple); top: 40%; left: 30%; animation: float 12s ease-in-out infinite; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; padding: var(--space-2xl); animation: fadeInUp 1s ease 0.2s both; }

.hero-badge { display: inline-flex; align-items: center; gap: var(--space-sm); background: var(--bg-glass); border: 1px solid var(--border-glass); padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-full); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 500; color: var(--sakura-light); margin-bottom: var(--space-xl); backdrop-filter: blur(10px); }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: var(--space-lg); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 550px; margin: 0 auto var(--space-2xl); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 14px 32px; border-radius: var(--radius-full); font-family: var(--font-heading); font-weight: 600; font-size: 1rem; transition: var(--transition-smooth); position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--sakura), #e91e8c); color: white; box-shadow: 0 4px 20px var(--sakura-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-sakura); color: white; }
.btn-secondary { background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-primary); backdrop-filter: blur(10px); }
.btn-secondary:hover { border-color: var(--sakura); background: rgba(255,107,157,0.1); transform: translateY(-2px); }
.btn-buy { background: linear-gradient(135deg, var(--cyan), #00b4d8); color: var(--bg-primary); font-weight: 700; box-shadow: 0 4px 20px var(--cyan-glow); }
.btn-buy:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-cyan); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-overline { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--sakura); margin-bottom: var(--space-sm); }
.section-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ---------- Product Cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-xl); }
.product-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition-smooth); backdrop-filter: blur(10px); position: relative; }
.product-card:hover { transform: translateY(-8px); border-color: var(--sakura); box-shadow: var(--shadow-card), 0 0 30px var(--sakura-glow); }
.product-card-image { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-secondary); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); }
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-badge { position: absolute; top: var(--space-md); left: var(--space-md); background: linear-gradient(135deg, var(--sakura), var(--purple)); color: white; padding: 4px 12px; border-radius: var(--radius-full); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; z-index: 2; }
.product-card-body { padding: var(--space-lg); }
.product-card-category { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: var(--space-xs); }
.product-card-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-sm); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title a { color: var(--text-primary); transition: var(--transition-fast); }
.product-card-title a:hover { color: var(--sakura); }
.product-card-price { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--sakura); margin-bottom: var(--space-md); }
.product-card-price .currency { font-size: 0.9rem; font-weight: 600; }
.product-card-actions { display: flex; gap: var(--space-sm); }
.product-card-actions .btn { flex: 1; padding: 10px 16px; font-size: 0.85rem; }

/* ---------- Features / USP ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-xl); }
.feature-card { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: var(--space-2xl); text-align: center; transition: var(--transition-smooth); backdrop-filter: blur(10px); }
.feature-card:hover { border-color: var(--sakura); transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: var(--space-lg); display: block; }
.feature-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: var(--space-sm); }
.feature-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Product Detail (WooCommerce single-product) ---------- */
.product-detail { padding-top: calc(var(--nav-height) + var(--space-3xl)); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: start; }
.product-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-glass); }
.product-gallery img { width: 100%; height: auto; object-fit: cover; }
.product-info { padding: var(--space-lg) 0; }
.product-info-category { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--cyan); margin-bottom: var(--space-sm); }
.product-info-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: var(--space-lg); }
.product-info-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--sakura); margin-bottom: var(--space-xl); }
.product-info-desc { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-xl); }
.product-meta { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-xl); padding: var(--space-lg); background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md); }
.product-meta-row { display: flex; justify-content: space-between; font-size: 0.9rem; }
.product-meta-label { color: var(--text-muted); font-weight: 500; }
.product-meta-value { font-weight: 600; }
.product-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.product-tag { background: var(--bg-glass); border: 1px solid var(--border-glass); padding: 4px 14px; border-radius: var(--radius-full); font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

/* ---------- Filter Bar ---------- */
.filter-bar { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.filter-btn { padding: 8px 20px; border-radius: var(--radius-full); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-glass); border: 1px solid var(--border-glass); transition: var(--transition-fast); }
.filter-btn:hover, .filter-btn.active { background: var(--sakura); color: white; border-color: var(--sakura); box-shadow: 0 0 15px var(--sakura-glow); }

/* ---------- Page Headers ---------- */
.page-hero { padding-top: calc(var(--nav-height) + var(--space-3xl)); padding-bottom: var(--space-3xl); text-align: center; }

/* ---------- About Page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-glass); }
.about-text h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-md); }
.about-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-lg); }
.shipping-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); margin-top: var(--space-2xl); }
.shipping-card { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: var(--space-xl); text-align: center; }
.shipping-card-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.shipping-card-title { font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-xs); }
.shipping-card-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-lg); }
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-label { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-textarea { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 14px 18px; color: var(--text-primary); transition: var(--transition-fast); outline: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--sakura); box-shadow: 0 0 15px var(--sakura-glow); }
.form-textarea { min-height: 150px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-xl); }
.contact-info-card { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: var(--space-xl); display: flex; align-items: flex-start; gap: var(--space-lg); }
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info-title { font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-xs); }
.contact-info-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-glass); padding: var(--space-3xl) 0 var(--space-xl); background: var(--bg-secondary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: var(--space-md); line-height: 1.6; }
.footer-social { display: flex; gap: var(--space-md); margin-top: var(--space-lg); }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-full); font-size: 1.1rem; transition: var(--transition-fast); }
.footer-social a:hover { border-color: var(--sakura); background: rgba(255,107,157,0.15); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-lg); font-size: 1rem; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.9rem; padding: var(--space-xs) 0; transition: var(--transition-fast); }
.footer-col a:hover { color: var(--sakura); transform: translateX(4px); }
.footer-bottom { text-align: center; padding-top: var(--space-xl); border-top: 1px solid var(--border-glass); color: var(--text-muted); font-size: 0.85rem; }
.footer-payment { display: flex; align-items: center; justify-content: center; gap: var(--space-md); margin-top: var(--space-md); font-size: 0.8rem; color: var(--text-muted); }
.sumup-badge { display: inline-flex; align-items: center; gap: var(--space-xs); background: var(--bg-glass); border: 1px solid var(--border-glass); padding: 4px 12px; border-radius: var(--radius-sm); }

/* ---------- Sakura Canvas ---------- */
#sakura-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* =============================================
   WooCommerce Overrides
   ============================================= */

/* Shop page product grid */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-xl); list-style: none; padding: 0; }
.woocommerce ul.products li.product { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition-smooth); backdrop-filter: blur(10px); margin: 0; padding: 0; float: none; width: 100%; }
.woocommerce ul.products li.product:hover { transform: translateY(-8px); border-color: var(--sakura); box-shadow: var(--shadow-card), 0 0 30px var(--sakura-glow); }
.woocommerce ul.products li.product a img { aspect-ratio: 1/1; object-fit: cover; transition: var(--transition-smooth); margin: 0; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.05); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; padding: var(--space-sm) var(--space-lg) 0; color: var(--text-primary); }
.woocommerce ul.products li.product .price { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--sakura); padding: var(--space-xs) var(--space-lg); }
.woocommerce ul.products li.product .price del { color: var(--text-muted); font-size: 0.9rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .add_to_cart_button {
  display: block; margin: var(--space-sm) var(--space-lg) var(--space-lg); padding: 10px 16px; border-radius: var(--radius-full); font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; text-align: center; transition: var(--transition-smooth);
  background: linear-gradient(135deg, var(--cyan), #00b4d8); color: var(--bg-primary) !important; box-shadow: 0 4px 20px var(--cyan-glow);
}
.woocommerce ul.products li.product .button:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-cyan); }
.woocommerce span.onsale { background: linear-gradient(135deg, var(--sakura), var(--purple)); border-radius: var(--radius-full); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; }

/* Single product page */
.woocommerce div.product { position: relative; }
.woocommerce div.product div.images { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-glass); }
.woocommerce div.product .product_title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; }
.woocommerce div.product p.price { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--sakura); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--text-secondary); line-height: 1.8; }

/* Add to cart button - single product */
.woocommerce div.product form.cart .button, .woocommerce div.product .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--cyan), #00b4d8) !important; color: var(--bg-primary) !important; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; padding: 14px 32px; border-radius: var(--radius-full); box-shadow: 0 4px 20px var(--cyan-glow); border: none; transition: var(--transition-smooth);
}
.woocommerce div.product .single_add_to_cart_button:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-cyan); }

/* Quantity input */
.woocommerce .quantity .qty { background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-primary); border-radius: var(--radius-md); padding: 10px 16px; width: 80px; text-align: center; }
.woocommerce .quantity .qty:focus { border-color: var(--sakura); box-shadow: 0 0 15px var(--sakura-glow); outline: none; }

/* Product tabs */
.woocommerce div.product .woocommerce-tabs { margin-top: var(--space-2xl); }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--border-glass); padding: 0; list-style: none; display: flex; gap: var(--space-lg); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: none; padding: 0; margin: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--font-heading); font-weight: 600; color: var(--text-secondary); padding: var(--space-sm) 0; border-bottom: 2px solid transparent; transition: var(--transition-fast); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--sakura); border-bottom-color: var(--sakura); }
.woocommerce div.product .woocommerce-tabs .panel { color: var(--text-secondary); line-height: 1.8; padding-top: var(--space-lg); }

/* Related products */
.woocommerce div.product .related.products h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-xl); }

/* Cart page — FULL override for WooCommerce cart shortcode */
.woocommerce-page-content { position: relative; z-index: 1; }

/* Ensure WC cart table is visible */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden; }
.woocommerce table.shop_table thead { background: var(--bg-secondary); }
.woocommerce table.shop_table th { color: var(--text-primary); font-family: var(--font-heading); font-weight: 700; padding: var(--space-lg); text-align: left; border: none; }
.woocommerce table.shop_table td { background: transparent; color: var(--text-primary); padding: var(--space-lg); border-bottom: 1px solid var(--border-glass); vertical-align: middle; }

/* Cart item images */
.woocommerce table.shop_table td.product-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-glass); }
.woocommerce table.shop_table td.product-name a { color: var(--text-primary); font-family: var(--font-heading); font-weight: 600; transition: var(--transition-fast); }
.woocommerce table.shop_table td.product-name a:hover { color: var(--sakura); }
.woocommerce table.shop_table td.product-price, .woocommerce table.shop_table td.product-subtotal { font-family: var(--font-heading); font-weight: 700; color: var(--sakura); }

/* Remove item button */
.woocommerce a.remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,107,157,0.15); color: var(--sakura) !important; font-size: 1.2rem; transition: var(--transition-fast); text-decoration: none; }
.woocommerce a.remove:hover { background: var(--sakura); color: white !important; }

/* Update cart & coupon row */
.woocommerce table.shop_table td.actions { padding: var(--space-lg); }
.woocommerce table.shop_table td.actions .coupon { display: flex; gap: var(--space-sm); align-items: center; }
.woocommerce table.shop_table td.actions .coupon .input-text { background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-primary); border-radius: var(--radius-md); padding: 10px 16px; outline: none; }
.woocommerce table.shop_table td.actions .coupon .input-text:focus { border-color: var(--sakura); box-shadow: 0 0 10px var(--sakura-glow); }
.woocommerce table.shop_table td.actions .coupon .button, .woocommerce button[name="update_cart"] { background: var(--bg-glass) !important; border: 1px solid var(--border-glass) !important; color: var(--text-primary) !important; border-radius: var(--radius-full) !important; padding: 10px 20px !important; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: var(--transition-fast); }
.woocommerce table.shop_table td.actions .coupon .button:hover, .woocommerce button[name="update_cart"]:hover { border-color: var(--sakura) !important; color: var(--sakura) !important; }

/* Cart totals box */
.woocommerce .cart_totals, .woocommerce-cart .cart_totals { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: var(--space-xl); margin-top: var(--space-xl); }
.woocommerce .cart_totals h2 { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; margin-bottom: var(--space-lg); }
.woocommerce .cart_totals table { width: 100%; }
.woocommerce .cart_totals table th { color: var(--text-muted); font-weight: 500; padding: var(--space-sm) 0; text-align: left; }
.woocommerce .cart_totals table td { color: var(--text-primary); font-weight: 600; padding: var(--space-sm) 0; text-align: right; }
.woocommerce .cart_totals .order-total th, .woocommerce .cart_totals .order-total td { font-size: 1.2rem; font-weight: 800; padding-top: var(--space-md); border-top: 1px solid var(--border-glass); }
.woocommerce .cart_totals .order-total td { color: var(--sakura); }

/* Proceed to checkout button */
.woocommerce .wc-proceed-to-checkout { padding-top: var(--space-lg); }
.woocommerce .wc-proceed-to-checkout a.checkout-button, .woocommerce a.checkout-button {
  display: block; width: 100%; text-align: center; background: linear-gradient(135deg, var(--sakura), #e91e8c) !important; color: white !important; border-radius: var(--radius-full) !important; font-family: var(--font-heading) !important; font-weight: 700 !important; font-size: 1.1rem; padding: 16px 32px !important; box-shadow: 0 4px 20px var(--sakura-glow); border: none !important; transition: var(--transition-smooth); text-decoration: none;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-sakura); }

/* Empty cart message */
.woocommerce .cart-empty { text-align: center; padding: var(--space-3xl); color: var(--text-muted); font-size: 1.1rem; }
.woocommerce .return-to-shop .button { display: inline-block; background: linear-gradient(135deg, var(--sakura), #e91e8c); color: white; border-radius: var(--radius-full); padding: 14px 32px; font-family: var(--font-heading); font-weight: 700; transition: var(--transition-smooth); text-decoration: none; }
.woocommerce .return-to-shop .button:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-sakura); }

/* Checkout form */
.woocommerce-checkout h3 { font-family: var(--font-heading); font-weight: 800; margin-bottom: var(--space-lg); font-size: 1.3rem; }
.woocommerce form .form-row { margin-bottom: var(--space-md); }
.woocommerce form .form-row label { color: var(--text-secondary); font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: var(--space-xs); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-checkout #billing_country, .woocommerce-checkout #billing_state { background: var(--bg-glass) !important; border: 1px solid var(--border-glass) !important; color: var(--text-primary) !important; border-radius: var(--radius-md) !important; padding: 12px 16px !important; width: 100%; outline: none; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--sakura) !important; box-shadow: 0 0 15px var(--sakura-glow); }
.select2-container--default .select2-selection--single { background: var(--bg-glass) !important; border: 1px solid var(--border-glass) !important; border-radius: var(--radius-md) !important; height: 46px !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text-primary) !important; line-height: 46px !important; }
.select2-dropdown { background: var(--bg-secondary) !important; border: 1px solid var(--border-glass) !important; }
.select2-results__option { color: var(--text-primary) !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--sakura) !important; }

/* Order review table */
.woocommerce #order_review, .woocommerce-checkout-review-order { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: var(--space-xl); }
.woocommerce #order_review table.shop_table { background: transparent; border: none; }
.woocommerce #order_review table.shop_table th, .woocommerce #order_review table.shop_table td { padding: var(--space-sm) 0; border-bottom: 1px solid var(--border-glass); }

/* Place order button */
.woocommerce #place_order { display: block; width: 100%; background: linear-gradient(135deg, var(--sakura), #e91e8c) !important; color: white !important; border-radius: var(--radius-full) !important; font-family: var(--font-heading); font-weight: 700; padding: 16px 32px !important; box-shadow: 0 4px 20px var(--sakura-glow); border: none !important; font-size: 1.1rem; cursor: pointer; transition: var(--transition-smooth); margin-top: var(--space-lg); }
.woocommerce #place_order:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-sakura); }

/* Payment methods list */
.woocommerce #payment { background: transparent; }
.woocommerce #payment ul.payment_methods { border-bottom: 1px solid var(--border-glass); padding: 0; margin-bottom: var(--space-lg); list-style: none; }
.woocommerce #payment ul.payment_methods li { padding: var(--space-md); border-bottom: 1px solid var(--border-glass); }
.woocommerce #payment ul.payment_methods li label { color: var(--text-primary); font-weight: 600; cursor: pointer; }
.woocommerce #payment div.payment_box { background: rgba(0,229,255,0.05); border-radius: var(--radius-md); padding: var(--space-md); margin-top: var(--space-sm); color: var(--text-secondary); font-size: 0.9rem; }

/* My Account page */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation ul li { margin-bottom: var(--space-xs); }
.woocommerce-MyAccount-navigation ul li a { display: block; padding: var(--space-sm) var(--space-md); background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md); color: var(--text-secondary); font-family: var(--font-heading); font-weight: 500; transition: var(--transition-fast); }
.woocommerce-MyAccount-navigation ul li.is-active a, .woocommerce-MyAccount-navigation ul li a:hover { border-color: var(--sakura); color: var(--sakura); background: rgba(255,107,157,0.1); }

/* Notices */
.woocommerce-message { background: rgba(0,229,255,0.1); border-left: 4px solid var(--cyan); color: var(--text-primary); border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-lg); }
.woocommerce-message .button { display: inline-block; background: var(--cyan) !important; color: var(--bg-primary) !important; border-radius: var(--radius-full); padding: 8px 20px; font-weight: 600; text-decoration: none; float: right; }
.woocommerce-error { background: rgba(255,107,157,0.1); border-left: 4px solid var(--sakura); color: var(--text-primary); border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-lg); list-style: none; }
.woocommerce-info { background: var(--bg-glass); border-left: 4px solid var(--purple); color: var(--text-primary); border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-lg); }

/* Star rating */
.woocommerce .star-rating { color: var(--gold); }

/* Breadcrumb */
.woocommerce-breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-lg); padding-top: calc(var(--nav-height) + var(--space-xl)); }
.woocommerce-breadcrumb a { color: var(--text-muted); transition: var(--transition-fast); }
.woocommerce-breadcrumb a:hover { color: var(--sakura); }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: none; display: flex; gap: var(--space-sm); justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-full); padding: 8px 16px; color: var(--text-secondary); font-family: var(--font-heading); font-weight: 600; transition: var(--transition-fast); }
.woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--sakura); color: white; border-color: var(--sakura); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--bg-primary); flex-direction: column; justify-content: center; gap: var(--space-2xl); transform: translateX(100%); transition: var(--transition-smooth); z-index: 999; }
  .nav-links.open { transform: translateX(0); }
  .nav-link, .nav-links .menu-item a { font-size: 1.3rem; }
  .nav-burger { display: flex; }
  .hero-title { font-size: 2.2rem; }
  .products-grid, .woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-lg); }
  .product-detail-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-orb--sakura { width: 250px; height: 250px; }
  .hero-orb--cyan { width: 200px; height: 200px; }
  .hero-orb--purple { width: 150px; height: 150px; }
}
@media (max-width: 480px) {
  .products-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* =============================================
   WooCommerce BLOCKS Overrides (WC 8+ Cart/Checkout)
   ============================================= */

/* The page content wrapper — ensure it sits above the sakura canvas */
.woocommerce-page-content { position: relative; z-index: 1; }
.section { position: relative; z-index: 1; }

/* ---- Block Cart ---- */
.wc-block-cart,
.wp-block-woocommerce-cart {
  color: var(--text-primary);
}

/* Cart items table */
.wc-block-cart-items { width: 100%; }
.wc-block-cart-items .wc-block-cart-items__row {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
}
.wc-block-cart-items .wc-block-cart-items__row img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}
.wc-block-cart-items .wc-block-components-product-name {
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
}
.wc-block-cart-items .wc-block-components-product-name:hover { color: var(--sakura) !important; }
.wc-block-components-product-price { color: var(--sakura) !important; font-family: var(--font-heading); font-weight: 700; }
.wc-block-cart-items .wc-block-components-quantity-selector {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md) !important;
}
.wc-block-cart-items .wc-block-components-quantity-selector input {
  color: var(--text-primary) !important;
  background: transparent !important;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  color: var(--text-primary) !important;
}

/* Cart totals sidebar */
.wc-block-cart__totals-title { color: var(--text-primary); font-family: var(--font-heading); font-weight: 800; }
.wc-block-components-totals-wrapper {
  border-color: var(--border-glass) !important;
}
.wc-block-components-totals-item {
  color: var(--text-primary);
}
.wc-block-components-totals-item__label { color: var(--text-muted); }
.wc-block-components-totals-item__value { color: var(--text-primary); font-weight: 600; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--sakura) !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
}

/* Proceed to checkout button (block cart) */
.wc-block-cart__submit-container .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
  background: linear-gradient(135deg, var(--sakura), #e91e8c) !important;
  color: white !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  padding: 16px 32px !important;
  box-shadow: 0 4px 20px var(--sakura-glow);
  border: none !important;
  transition: var(--transition-smooth);
}
.wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-sakura);
}

/* ---- Block Checkout ---- */
.wc-block-checkout,
.wp-block-woocommerce-checkout { color: var(--text-primary); }

/* Checkout form fields */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-country-input select,
.wc-block-checkout .wc-block-components-text-input input[type="text"],
.wc-block-checkout .wc-block-components-text-input input[type="email"],
.wc-block-checkout .wc-block-components-text-input input[type="tel"] {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
}
.wc-block-components-text-input input:focus {
  border-color: var(--sakura) !important;
  box-shadow: 0 0 15px var(--sakura-glow) !important;
}
.wc-block-components-text-input label {
  color: var(--text-secondary) !important;
}

/* Checkout section headings */
.wc-block-components-checkout-step__title {
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-weight: 700;
}
.wc-block-components-checkout-step__description { color: var(--text-muted); }

/* Order summary in checkout */
.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
  color: var(--text-primary);
}
.wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
  color: var(--sakura);
  font-weight: 700;
}

/* Payment methods block */
.wc-block-components-radio-control__option {
  color: var(--text-primary) !important;
}
.wc-block-components-radio-control__label {
  color: var(--text-primary) !important;
  font-weight: 600;
}
.wc-block-components-payment-method-label { color: var(--text-primary); }

/* Checkout sidebar totals */
.wc-block-checkout__sidebar .wc-block-components-totals-item { color: var(--text-primary); }
.wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--sakura) !important;
  font-size: 1.3rem;
  font-weight: 800;
}

/* Notices inside blocks */
.wc-block-components-notice-banner { border-radius: var(--radius-md) !important; }
.wc-block-components-notice-banner.is-success { background: rgba(0,229,255,0.1) !important; border-left: 4px solid var(--cyan); }
.wc-block-components-notice-banner.is-error { background: rgba(255,107,157,0.1) !important; border-left: 4px solid var(--sakura); }
.wc-block-components-notice-banner .wc-block-components-notice-banner__content { color: var(--text-primary) !important; }

/* General dark-theme fixes for WC blocks */
.wc-block-components-sidebar-layout { color: var(--text-primary); }
.wc-block-components-main { color: var(--text-primary); }
.wc-block-components-panel__button { color: var(--text-primary) !important; }
.wc-block-components-panel__content { color: var(--text-secondary); }
.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__label { color: var(--text-primary) !important; }
.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__description { color: var(--text-muted); }

/* Combobox / Select dropdowns in blocks */
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-form .wc-block-components-combobox input {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
}
