/* ═══════════════════════════════════════════
   MAVIOO TOYS — Global CSS
   Brand: #371760 (deep violet) / #7c3aed (purple)
═══════════════════════════════════════════ */

:root {
  --bg:    #fbfafd;
  --ink:   #120a1e;
  --line:  #e9e3f2;
  --brand: #371760;
  --accent:#7c3aed;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Line clamp utilities ── */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — PRICE
════════════════════════════════════════ */
.woo-price .woocommerce-Price-amount,
.woo-price .amount,
.woo-price bdi {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}
.woo-price ins {
  text-decoration: none !important;
}
.woo-price del {
  opacity: 0.45;
  font-size: 0.75em !important;
  margin-right: 0.25rem;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — ADD TO CART BUTTON
════════════════════════════════════════ */
.single_add_to_cart_button,
button.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 3rem !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, #371760, #7c3aed) !important;
  color: #fff !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 10px 32px rgba(55,23,96,0.28) !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease !important;
  margin-top: 0.75rem !important;
  letter-spacing: 0.01em !important;
  position: relative !important;
  overflow: hidden !important;
}
.single_add_to_cart_button::after,
button.single_add_to_cart_button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
  box-shadow: 0 16px 48px rgba(55,23,96,0.38) !important;
  transform: translateY(-1px) scale(1.01) !important;
}
.single_add_to_cart_button:hover::after,
button.single_add_to_cart_button:hover::after {
  transform: translateX(100%);
}
.single_add_to_cart_button:active,
button.single_add_to_cart_button:active {
  transform: scale(0.97) !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — QUANTITY INPUT
════════════════════════════════════════ */
.quantity {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 0 !important;
}
.quantity input[type="number"],
.quantity .qty {
  height: 3rem !important;
  border-radius: 1rem !important;
  border: 2px solid rgba(233,227,242,0.95) !important;
  padding: 0 1rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  width: 5.5rem !important;
  text-align: center !important;
  background: #fff !important;
  color: #120a1e !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  -moz-appearance: textfield !important;
}
.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity input[type="number"]:focus,
.quantity .qty:focus {
  border-color: rgba(55,23,96,0.40) !important;
  box-shadow: 0 0 0 3px rgba(55,23,96,0.08) !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — NOTICES & ALERTS
════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 1.25rem !important;
  border-left: none !important;
  border: 1px solid rgba(55,23,96,0.15) !important;
  padding: 1rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  margin-bottom: 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}
.woocommerce-message {
  background: rgba(55,23,96,0.06) !important;
  color: #371760 !important;
  border-color: rgba(55,23,96,0.18) !important;
}
.woocommerce-info {
  background: rgba(124,58,237,0.06) !important;
  color: #4c1d95 !important;
  border-color: rgba(124,58,237,0.18) !important;
}
.woocommerce-error {
  background: rgba(220,38,38,0.05) !important;
  color: #dc2626 !important;
  border-color: rgba(220,38,38,0.15) !important;
  list-style: none !important;
  margin: 0 0 1.25rem !important;
  padding: 1rem 1.5rem !important;
}
.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto !important;
  width: auto !important;
  height: 2.25rem !important;
  padding: 0 1rem !important;
  font-size: 0.8125rem !important;
  border-radius: 0.75rem !important;
  margin-top: 0 !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — PAGINATION
════════════════════════════════════════ */
.woocommerce-pagination ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 2.75rem !important;
  min-width: 2.75rem !important;
  padding: 0 0.875rem !important;
  border-radius: 0.875rem !important;
  border: 2px solid rgba(233,227,242,0.95) !important;
  background: #fff !important;
  color: rgba(18,10,30,0.80) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.woocommerce-pagination ul li a:hover {
  border-color: rgba(55,23,96,0.30) !important;
  color: #371760 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(55,23,96,0.12) !important;
}
.woocommerce-pagination ul li span.current {
  background: linear-gradient(135deg, #371760, #7c3aed) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(55,23,96,0.28) !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — CHECKOUT & CART FORMS
════════════════════════════════════════ */
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  height: 3rem !important;
  border-radius: 1rem !important;
  border: 2px solid rgba(233,227,242,0.95) !important;
  padding: 0 1rem !important;
  font-size: 0.9375rem !important;
  font-family: 'Inter', sans-serif !important;
  background: rgba(251,250,253,0.9) !important;
  color: #120a1e !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.woocommerce form .form-row textarea {
  height: auto !important;
  padding: 0.75rem 1rem !important;
  min-height: 100px !important;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: rgba(55,23,96,0.40) !important;
  box-shadow: 0 0 0 3px rgba(55,23,96,0.08) !important;
  background: #fff !important;
}
.woocommerce form .form-row label {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: rgba(18,10,30,0.60) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-family: 'Inter', sans-serif !important;
  margin-bottom: 0.375rem !important;
  display: block !important;
}
/* Place Order button */
#place_order {
  height: 3.25rem !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, #371760, #7c3aed) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  font-family: 'Inter', sans-serif !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 12px 40px rgba(55,23,96,0.30) !important;
  transition: transform 0.15s, box-shadow 0.2s !important;
  width: 100% !important;
  margin-top: 1.5rem !important;
  letter-spacing: 0.01em !important;
}
#place_order:hover {
  box-shadow: 0 16px 48px rgba(55,23,96,0.40) !important;
  transform: translateY(-1px) !important;
}
#place_order:active {
  transform: scale(0.98) !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — CART TABLE
════════════════════════════════════════ */
.woocommerce-cart-form table.cart,
.woocommerce table.shop_table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  border-radius: 1.5rem !important;
  border: 1px solid rgba(233,227,242,0.95) !important;
  overflow: hidden !important;
  background: #fff !important;
  font-family: 'Inter', sans-serif !important;
}
.woocommerce-cart-form table.cart th,
.woocommerce table.shop_table th {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  color: rgba(18,10,30,0.45) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid rgba(233,227,242,0.95) !important;
  background: rgba(251,250,253,0.8) !important;
}
.woocommerce-cart-form table.cart td,
.woocommerce table.shop_table td {
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid rgba(233,227,242,0.95) !important;
  font-size: 0.9375rem !important;
  vertical-align: middle !important;
}
.woocommerce-cart-form table.cart tr:last-child td {
  border-bottom: none !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — CHECKOUT SECTIONS
════════════════════════════════════════ */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  background: white !important;
  border-radius: 1.5rem !important;
  border: 1px solid rgba(233,227,242,0.95) !important;
  padding: 2rem !important;
  box-shadow: 0 10px 40px rgba(17,8,28,0.06) !important;
  margin-bottom: 1.5rem !important;
}
.woocommerce-checkout h3 {
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  font-family: 'Inter', sans-serif !important;
  color: #120a1e !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(233,227,242,0.95) !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — MY ACCOUNT PAGE
════════════════════════════════════════ */
.woocommerce-MyAccount-navigation {
  background: white !important;
  border-radius: 1.5rem !important;
  border: 1px solid rgba(233,227,242,0.95) !important;
  padding: 1rem !important;
  overflow: hidden !important;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.875rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  color: rgba(18,10,30,0.70) !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(55,23,96,0.06) !important;
  color: #371760 !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — PRODUCT TABS (single)
════════════════════════════════════════ */
.woocommerce-tabs .tabs {
  display: flex !important;
  gap: 0.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem !important;
  border-bottom: 2px solid rgba(233,227,242,0.95) !important;
}
.woocommerce-tabs .tabs li a {
  display: block !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  color: rgba(18,10,30,0.55) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  transition: all 0.2s !important;
}
.woocommerce-tabs .tabs li.active a {
  color: #371760 !important;
  border-bottom-color: #7c3aed !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — STAR RATINGS
════════════════════════════════════════ */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: #f59e0b !important;
}
.woocommerce .star-rating {
  color: #f59e0b !important;
}

/* ════════════════════════════════════════
   CUSTOM LOGO SIZING
════════════════════════════════════════ */
.custom-logo-link img.custom-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
}

/* ════════════════════════════════════════
   PROSE / DESCRIPTION CONTENT
════════════════════════════════════════ */
.prose h2, .prose h3, .prose h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #120a1e;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose ul li::marker {
  color: #7c3aed;
}
.prose a {
  color: #7c3aed;
  text-decoration: underline;
}

/* ════════════════════════════════════════
   RESPONSIVE HELPERS
════════════════════════════════════════ */
@media (max-width: 640px) {
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review {
    padding: 1.25rem !important;
  }
}
