/*
Theme Name: Jiggly's Poke Shop
Theme URI: https://jigglyspoke.shop
Author: Amanda
Author URI: https://jigglyspoke.shop
Description: Pokemon merchandise store theme — Jigglypuff pink, cute, high-conversion. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 8.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jigglys-poke-shop
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============ ROOT VARIABLES ============ */
:root {
  --pink: #FF8FB1;
  --pink-dark: #D4537E;
  --pink-light: #FFB3CC;
  --pink-bg: #FFF4F8;
  --pink-soft: #FFE8F0;
  --lavender: #AFA9EC;
  --lavender-dark: #534AB7;
  --lavender-bg: #F0EEFE;
  --mint: #5DCAA5;
  --mint-dark: #0F6E56;
  --mint-bg: #E8F8F2;
  --sky: #85B7EB;
  --sky-bg: #E8F1FB;
  --amber: #FAC775;
  --amber-dark: #854F0B;
  --amber-bg: #FFF8E8;
  --cream: #FFFAF6;
  --text: #2C2C2A;
  --text-muted: #888780;
  --text-light: #B4B2A9;
  --border: #F0EDE8;
  --border-dark: #D3D1C7;
  --white: #ffffff;
  --font-head: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(255, 143, 177, 0.08);
  --shadow-md: 0 4px 20px rgba(255, 143, 177, 0.12);
  --shadow-lg: 0 8px 32px rgba(212, 83, 126, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
}

/* ============ LAYOUT ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.section-title { font-size: 32px; font-weight: 600; color: var(--text); }
.section-subtitle { font-size: 15px; color: var(--text-muted); margin-top: 6px; }
.section-link {
  font-size: 15px; font-weight: 700; color: var(--pink-dark);
  display: inline-flex; align-items: center; gap: 4px; transition: var(--transition);
}
.section-link:hover { color: var(--pink); gap: 8px; }

/* ============ TOP BAR ============ */
.topbar { background: var(--pink-dark); color: var(--white); font-size: 13px; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-text { opacity: 0.95; }
.topbar-links { display: flex; align-items: center; gap: 10px; }
.topbar-links a { opacity: 0.9; transition: var(--transition); }
.topbar-links a:hover { opacity: 1; text-decoration: underline; }
.topbar-links .divider { opacity: 0.5; }

/* ============ HEADER ============ */
.header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { display: flex; align-items: center; justify-content: center; }
.logo-text { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--pink-dark); letter-spacing: -0.3px; white-space: nowrap; }

/* ============ SEARCH ============ */
.search-bar {
  flex: 1; max-width: 520px; display: flex; align-items: center;
  background: var(--pink-bg); border-radius: var(--radius-full);
  padding: 2px 2px 2px 16px; border: 2px solid transparent; transition: var(--transition);
}
.search-bar form { display: flex; align-items: center; width: 100%; gap: 8px; }
.search-bar:focus-within { border-color: var(--pink); background: var(--white); box-shadow: var(--shadow-sm); }
.search-input { flex: 1; border: none; background: none; outline: none; font-size: 14px; color: var(--text); padding: 6px 0; min-width: 0; }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--pink); color: var(--white); border-radius: var(--radius-full);
  padding: 7px; display: flex; align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0;
}
.search-btn:hover { background: var(--pink-dark); }

/* ============ HEADER ACTIONS ============ */
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-icon-link { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); transition: var(--transition); }
.header-icon-link:hover { color: var(--pink-dark); }
.icon-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.cart-icon-wrap { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -8px; background: var(--pink-dark); color: var(--white);
  font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ============ NAV ============ */
.nav { border-top: 1px solid var(--border); background: var(--white); }
.nav-inner { display: flex; align-items: center; gap: 4px; padding: 0 24px; overflow: visible; }
.nav-link {
  display: inline-flex; align-items: center; padding: 14px 18px; font-size: 15px;
  font-weight: 600; color: var(--text-muted); white-space: nowrap;
  border-bottom: 3px solid transparent; transition: var(--transition);
}
.nav-link:hover { color: var(--pink-dark); }
.nav-link.active { color: var(--pink-dark); border-bottom-color: var(--pink); }
.nav-sale { color: var(--pink-dark) !important; font-weight: 700 !important; }

/* ============ NAV DROPDOWN ============ */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-chevron { display: inline-block; vertical-align: middle; margin-left: 2px; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-submenu {
  position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--white);
  border: 1px solid var(--border); border-radius: 0 0 16px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 100;
}
.nav-dropdown:hover .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-submenu-link { display: block; padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.nav-submenu-link:hover { color: var(--pink-dark); background: var(--pink-soft); }

/* ============ MOBILE NAV TOGGLE (hidden on desktop) ============ */
.nav-toggle { display: none; }
.nav-overlay { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full); font-family: var(--font-body);
  font-size: 15px; font-weight: 700; transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--white); color: var(--pink-dark); border: 2px solid var(--pink); }
.btn-outline:hover { background: var(--pink-bg); transform: translateY(-2px); }
.btn-add-cart { width: 100%; background: var(--pink-bg); color: var(--pink-dark); border: 2px solid transparent; padding: 10px; font-size: 14px; }
.btn-add-cart:hover { background: var(--pink); color: var(--white); border-color: var(--pink); }
.btn-white { background: var(--white); color: var(--pink-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ============ HERO ============ */
.hero { background: linear-gradient(135deg, #FFF4F8 0%, #F0EEFE 100%); padding: 64px 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; background: var(--white); color: var(--pink-dark); font-size: 14px;
  font-weight: 700; padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.hero-title { font-size: 52px; font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: 20px; }
.hero-highlight { color: var(--pink); }
.hero-subtitle { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }

/* ============ HERO VISUAL ============ */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-blob {
  position: absolute; width: 420px; height: 420px; background: var(--pink-light);
  border-radius: 50%; filter: blur(40px); opacity: 0.4; animation: blobPulse 4s ease-in-out infinite;
}
@keyframes blobPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hero-jigglypuff { position: relative; z-index: 1; animation: float 3s ease-in-out infinite; }
.hero-mascot-img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-float-card {
  position: absolute; background: var(--white); border-radius: var(--radius-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md); z-index: 2;
}
.hero-float-card-1 { top: 10%; left: 0; animation: float 3.5s ease-in-out infinite 0.5s; }
.float-card-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-card-title { font-size: 13px; font-weight: 700; color: var(--text); }
.float-card-sub { font-size: 12px; color: var(--text-muted); }

/* ============ TRUST BAR ============ */
.trust-bar { padding: 28px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.trust-inner { display: flex; justify-content: space-around; gap: 16px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text); }

/* ============ CATEGORIES ============ */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.category-grid-3 { grid-template-columns: repeat(3, 1fr); }
.category-card {
  background: var(--cat-bg); border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; transition: var(--transition); border: 2px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.category-card:hover { transform: translateY(-6px); border-color: var(--cat-color); box-shadow: var(--shadow-md); }
.category-emoji { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.category-name { font-size: 16px; font-weight: 600; color: var(--text); }
.category-count { font-size: 13px; color: var(--text-muted); }

/* ============ PRODUCT TABS ============ */
.product-tabs { display: flex; gap: 8px; }
.tab {
  padding: 8px 20px; border-radius: var(--radius-full); font-size: 14px;
  font-weight: 700; color: var(--text-muted); background: var(--pink-bg); transition: var(--transition);
}
.tab:hover { color: var(--pink-dark); }
.tab.active { background: var(--pink); color: var(--white); }

/* ============ PRODUCT GRID ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--pink-light); }
.product-image { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image-inner { display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.product-card:hover .product-image-inner { transform: scale(1.08); }
.product-badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); color: var(--white); }
.badge-hot { background: var(--pink-dark); }
.badge-new { background: var(--mint); }
.badge-sale { background: var(--amber-dark); }
.product-wishlist {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.product-wishlist:hover { color: var(--pink-dark); background: var(--pink-bg); }
.product-info { padding: 16px; }
.product-cat { font-size: 12px; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--text); margin: 6px 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.stars { display: flex; gap: 1px; }
.review-count { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-current { font-size: 20px; font-weight: 800; color: var(--pink-dark); font-family: var(--font-head); }
.price-old { font-size: 14px; color: var(--text-light); text-decoration: line-through; }

/* ============ PROMO BANNER ============ */
.promo-banner {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  border-radius: var(--radius-xl); padding: 56px 48px; display: grid;
  grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.promo-tag { display: inline-block; background: rgba(255,255,255,0.25); color: var(--white); font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: 16px; }
.promo-title { font-size: 36px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.promo-subtitle { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.promo-countdown { display: flex; gap: 12px; margin-bottom: 28px; }
.countdown-unit { background: rgba(255,255,255,0.2); border-radius: var(--radius-md); padding: 12px 18px; text-align: center; min-width: 64px; }
.countdown-num { display: block; font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--white); }
.countdown-label { font-size: 12px; color: rgba(255,255,255,0.8); }
.promo-visual { display: flex; align-items: center; justify-content: center; }

/* ============ NEWSLETTER ============ */
.newsletter { background: linear-gradient(135deg, var(--lavender-bg) 0%, var(--pink-bg) 100%); border-radius: var(--radius-xl); padding: 56px 32px; text-align: center; position: relative; overflow: hidden; }
.newsletter-content { max-width: 520px; margin: 0 auto; }
.newsletter-icon { margin-bottom: 16px; }
.newsletter-title { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.newsletter-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; margin-bottom: 12px; }
.newsletter-input { flex: 1; padding: 14px 20px; border: 2px solid var(--border); border-radius: var(--radius-full); font-size: 15px; outline: none; transition: var(--transition); background: var(--white); }
.newsletter-input:focus { border-color: var(--pink); }
.newsletter-fineprint { font-size: 13px; color: var(--text-light); }

/* ============ FOOTER ============ */
.footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 56px 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: var(--pink-light); }
.footer-desc { font-size: 14px; margin: 16px 0 20px; line-height: 1.7; max-width: 340px; }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); }
.social-link:hover { background: var(--pink); color: var(--white); transform: translateY(-3px); }
.footer-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 16px; font-family: var(--font-head); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--pink-light); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-payments { display: flex; gap: 8px; }
.payment-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm); }
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-buttons { justify-content: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .promo-banner { grid-template-columns: 1fr; text-align: center; }
  .promo-visual { display: none; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .logo { flex-shrink: 0; }
  .logo-text { font-size: 16px; }
  .logo-icon img { width: 36px; height: 36px; }
  .logo-icon svg { width: 36px; height: 36px; }
  .header-actions { gap: 10px; margin-left: auto; flex-shrink: 0; }
  .icon-label { display: none; }
  .header-icon-link svg { width: 20px; height: 20px; }
  .search-bar { order: 3; flex-basis: 100%; max-width: none; }
  .hero { padding: 40px 0; }
  .hero-title { font-size: 36px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 26px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid-3 { grid-template-columns: 1fr; }
  .product-grid, .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-tabs { width: 100%; overflow-x: auto; }
  .promo-banner { padding: 32px 24px; }

  /* ---- MOBILE NAV: hamburger + slide-down ---- */
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer;
    padding: 0; position: relative; z-index: 200; flex-shrink: 0;
  }
  .nav-toggle span {
    display: block; width: 26px; height: 3px; border-radius: 3px;
    background: var(--pink-dark); transition: all 0.3s ease;
    margin: 0 auto;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed; top: 0; left: -100%; width: 80%; max-width: 320px; height: 100vh;
    background: var(--white); z-index: 999; overflow-y: auto;
    transition: left 0.3s ease; padding-top: 60px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .nav.open { left: 0; }

  .nav-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 998;
  }
  .nav-overlay.show { display: block; }

  .nav-inner {
    flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    overflow: visible;
  }
  .nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; font-size: 16px; border-bottom: 1px solid var(--border);
    border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--border);
  }

  .nav-dropdown { display: block; }
  .nav-chevron { transition: transform 0.3s ease; }
  .nav-dropdown.expanded .nav-chevron { transform: rotate(180deg); }

  .nav-submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; padding: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    background: var(--pink-soft);
  }
  .nav-dropdown.expanded .nav-submenu { max-height: 400px; }
  .nav-submenu-link {
    padding: 12px 40px; font-size: 14px; border-bottom: 1px solid rgba(212,83,126,0.1);
  }

  .promo-title { font-size: 28px; }
  .promo-countdown { flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar-text { display: none; }
  .topbar-links { margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .product-grid, .product-grid-4 { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .countdown-unit { min-width: 50px; padding: 8px 12px; }
  .countdown-num { font-size: 22px; }
}

/* ============ WOOCOMMERCE OVERRIDES ============ */

/* ---- Single Product Gallery: horizontal scroll thumbnails ---- */
.woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  flex-direction: row;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
  margin-top: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-light) transparent;
}
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
  height: 6px;
}
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-track {
  background: transparent;
}
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
  background: var(--pink-light);
  border-radius: 3px;
}
.woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 80px;
  width: 80px !important;
  max-width: 80px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: inline-block;
}
.woocommerce-product-gallery .flex-control-thumbs img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.7;
}
.woocommerce-product-gallery .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--pink-light);
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: var(--pink);
  box-shadow: var(--shadow-sm);
}

/* ---- Gallery thumbnail scroll arrows ---- */
.gallery-thumbs-wrapper {
  position: relative;
  margin-top: 12px;
}
.gallery-thumbs-wrapper .flex-control-thumbs,
.gallery-thumbs-wrapper .flex-control-nav {
  padding: 10px 40px !important;
}
.gallery-thumb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 70px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: var(--pink-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery-thumb-arrow:hover {
  background: var(--pink-bg);
  border-color: var(--pink-light);
  color: var(--pink-dark);
}
.gallery-thumb-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.gallery-thumb-prev { left: 0; }
.gallery-thumb-next { right: 0; }
@media (max-width: 768px) {
  .gallery-thumbs-wrapper .flex-control-thumbs,
  .gallery-thumbs-wrapper .flex-control-nav {
    padding: 10px 36px !important;
  }
  .gallery-thumb-arrow {
    width: 28px;
    height: 60px;
  }
}

/* Disable zoom cursor on main product image */
.woocommerce-product-gallery__image img {
  cursor: default !important;
  pointer-events: none;
}

/* Main product image container */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.woocommerce div.product div.images img {
  border-radius: var(--radius-lg);
}

/* Hide: product meta (SKU, Category, Tags) */
.woocommerce .product_meta { display: none !important; }

/* Hide: short description (Chinese product names) */
.woocommerce .woocommerce-product-details__short-description,
.woocommerce div.product .product-short-description { display: none !important; }

/* Hide: reviews tab and reviews section */
.woocommerce div.product .woocommerce-tabs ul.tabs li.reviews_tab { display: none !important; }
.woocommerce #reviews,
.woocommerce #comments,
.woocommerce .comment-respond { display: none !important; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  margin: 0;
  width: auto;
  float: none !important;
  clear: none !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-light);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px 4px;
}
.woocommerce ul.products li.product .price {
  color: var(--pink-dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  padding: 0 16px 12px;
}
.woocommerce ul.products li.product .price del {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: line-through;
}
.woocommerce ul.products li.product .button {
  background: var(--pink-bg);
  color: var(--pink-dark);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  transition: var(--transition);
}
.woocommerce ul.products li.product .button:hover {
  background: var(--pink);
  color: var(--white);
}
.woocommerce ul.products li.product img {
  border-radius: 0;
}
.woocommerce .star-rating span { color: var(--amber); }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--pink);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--pink); }
.woocommerce-error::before { color: var(--pink-dark); }

/* ============ SINGLE PRODUCT PAGE: VARIATIONS ============ */

/* Variation form layout — flatten table into clean rows */
.woocommerce table.variations {
  border: none;
  margin: 0 0 24px;
  width: 100%;
}
.woocommerce table.variations tbody { display: flex; flex-direction: column; gap: 16px; }
.woocommerce table.variations tr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
}
.woocommerce table.variations th,
.woocommerce table.variations td {
  text-align: left;
  padding: 0;
  border: none;
}
.woocommerce table.variations label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--pink-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* The actual dropdown <select> — pink-toned, wide, rounded like search bar */
.woocommerce table.variations select {
  width: 100%;
  max-width: 100%;
  min-width: 200px;
  padding: 12px 44px 12px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--pink-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D4537E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
}

/* Hover / focus state — border + shadow like search bar */
.woocommerce table.variations select:hover {
  border-color: var(--pink-light);
  background-color: var(--pink-soft);
}
.woocommerce table.variations select:focus {
  border-color: var(--pink);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Reset weird reset-wrapper variation styling */
.reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-dark);
  text-decoration: underline;
  transition: var(--transition);
}
.reset_variations:hover { color: var(--pink); }

/* Single-product add-to-cart button — pink pill to match */
.woocommerce div.product form.cart .button.single_add_to_cart_button {
  background: var(--pink);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 40px;
  min-width: 200px;
  transition: var(--transition);
}
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.woocommerce div.product form.cart .button.single_add_to_cart_button:disabled,
.woocommerce div.product form.cart .button.single_add_to_cart_button.disabled {
  background: var(--border-dark);
  color: var(--white);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Quantity box next to add to cart */
.woocommerce div.product form.cart .quantity .qty {
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  width: 80px;
  outline: none;
  transition: var(--transition);
}
.woocommerce div.product form.cart .quantity .qty:focus {
  border-color: var(--pink);
}

/* Variation price / availability area */
.woocommerce-variation-price,
.woocommerce-variation-availability {
  margin-bottom: 16px;
}
.woocommerce-variation-price .price {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--pink-dark);
}
.woocommerce-variation-price .price del {
  color: var(--text-light);
  font-size: 16px;
}

/* Single product title & summary layout */
.woocommerce div.product .product_title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.woocommerce div.product .summary > .price {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--pink-dark);
  margin-bottom: 16px;
}
.woocommerce div.product .summary > .price del {
  color: var(--text-light);
  font-size: 18px;
}

/* Tabs on single product page */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  overflow: hidden;
  margin: 0 0 32px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none;
  background: none;
  border-radius: var(--radius-full);
  margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--pink);
  border: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--white);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  color: var(--text-muted);
  transition: var(--transition);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--pink-dark);
}
.woocommerce div.product .woocommerce-tabs .panel {
  border: none;
  padding: 0 0 24px;
}

/* Related products heading */
.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 {
  font-family: var(--font-head);
  font-size: 24px;
  margin-bottom: 20px;
}

/* WooCommerce grid: 4 columns */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

/* ---- Archive: Sorting dropdown (search-bar pink style) ---- */
.woocommerce .woocommerce-ordering {
  margin-bottom: 0;
}
.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--pink-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: 10px 44px 10px 20px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D4537E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}
.woocommerce .woocommerce-ordering select:hover,
.woocommerce-page .woocommerce-ordering select:hover {
  border-color: var(--pink-light);
  background-color: var(--pink-soft);
}
.woocommerce .woocommerce-ordering select:focus,
.woocommerce-page .woocommerce-ordering select:focus {
  border-color: var(--pink);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.woocommerce .woocommerce-result-count-wrapper,
.woocommerce .woocommerce-ordering-wrapper,
.woocommerce .woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce .woocommerce-notices-wrapper + .woocommerce-ordering {
  margin-bottom: 20px;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  grid-column: auto !important;
}
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
.woocommerce-page ul.products li.product.first,
.woocommerce-page ul.products li.product.last {
  clear: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}
/* Hide subcategory cards injected into product grid to prevent left-gap layout issues */
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category {
  display: none !important;
}
@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: 1fr; }
}

/* ============ SINGLE PRODUCT MOBILE ============ */
@media (max-width: 768px) {
  .woocommerce div.product .product_title { font-size: 24px; }
  .woocommerce div.product .summary > .price { font-size: 22px; }
  .woocommerce-variation-price .price { font-size: 22px; }

  .woocommerce table.variations select {
    padding: 14px 44px 14px 18px;
    font-size: 16px;
    min-width: 0;
  }

  .woocommerce div.product form.cart .button.single_add_to_cart_button {
    width: 100%;
    min-width: 0;
    padding: 14px 24px;
    font-size: 15px;
  }

  .woocommerce div.product form.cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .woocommerce div.product form.cart .quantity {
    margin: 0;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 13px;
  }

  /* Gallery thumbnails: slightly smaller on mobile, scrollable */
  .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 64px;
    width: 64px !important;
    max-width: 64px !important;
  }
  .woocommerce-product-gallery .flex-control-thumbs img {
    width: 64px !important;
    height: 64px !important;
  }

  /* Hero mascot smaller on mobile */
  .hero-mascot-img {
    width: 220px;
  }
}
