/* =========================================================
   BLUEBY ART SHOP - STORE LAYOUT FIXES (Kadence + WooCommerce)
   v2 - 2026-04-26 - clean rewrite, ASCII-only, high-specificity footer
   ========================================================= */

/* ---------- 1. PRODUCT TABS ---------- */
.woocommerce div.product .woocommerce-tabs {
  padding: 1.5rem 1.25rem 2rem;
  margin-top: 1.5rem;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #ffffff;
}
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs {
  padding-left: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e6e8ee;
}
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li {
  background: transparent;
  border-radius: 8px 8px 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active {
  background: #ffffff;
  border-bottom-color: #ffffff;
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 0.5rem 0 0;
  margin: 0;
}
.woocommerce div.product .woocommerce-tabs .panel h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel ul,
.woocommerce div.product .woocommerce-tabs .panel ol {
  line-height: 1.65;
  margin-bottom: 1rem;
}
.woocommerce div.product .woocommerce-tabs .panel ul {
  padding-left: 1.25rem;
}

/* ---------- 2. RELATED PRODUCTS ---------- */
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
  padding: 2rem 1.25rem;
  margin-top: 2rem;
  border-top: 1px solid #eef0f4;
}
.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 {
  margin: 0 0 1.5rem 0;
  padding: 0;
  font-size: 1.75rem;
  font-weight: 700;
}
.woocommerce div.product .related.products ul.products,
.woocommerce div.product .upsells.products ul.products {
  margin: 0;
  padding: 0;
}

/* ---------- 3. ADD TO CART ROW ALIGNMENT ---------- */
.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce div.product form.cart .quantity .qty {
  height: 48px;
  width: 64px;
  padding: 0 0.5rem;
  border: 1.5px solid #d8dce4;
  border-radius: 999px;
  text-align: center;
  font-size: 1rem;
  background: #ffffff;
}
.woocommerce div.product form.cart .quantity .qty:focus {
  outline: none;
  border-color: #d97138;
  box-shadow: 0 0 0 3px rgba(217, 113, 56, 0.2);
}
.woocommerce div.product form.cart button.single_add_to_cart_button {
  height: 48px;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 4. EXPRESS PAYMENT BUTTONS ---------- */
.woocommerce div.product .wc-stripe-payment-request-wrapper,
.woocommerce div.product .wcpay-payment-request-wrapper,
.woocommerce div.product .wc-block-components-express-payments {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

/* ---------- 5. BREADCRUMB ---------- */
.woocommerce-breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #5b6371;
}

/* ---------- 6. SHOP / CATEGORY GRID ---------- */
.woocommerce ul.products li.product {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 24px rgba(20, 30, 60, 0.08);
  transform: translateY(-2px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
}
.woocommerce ul.products li.product .price {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- 7. MOBILE PADDING ---------- */
@media (max-width: 768px) {
  .woocommerce div.product .woocommerce-tabs {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.25rem 1rem 1.5rem;
  }
  .woocommerce div.product .related.products,
  .woocommerce div.product .upsells.products {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .woocommerce div.product .related.products > h2,
  .woocommerce div.product .upsells.products > h2 {
    font-size: 1.4rem;
  }
  .woocommerce-breadcrumb { padding: 0 1rem; }
  .woocommerce div.product form.cart { gap: 0.5rem; }
  .woocommerce div.product form.cart .quantity .qty { width: 56px; }
  .woocommerce div.product form.cart button.single_add_to_cart_button { padding: 0 1.25rem; }
}

/* ---------- 8. CATEGORY LABEL ---------- */
.woocommerce div.product .product_meta {
  padding-top: 0.75rem;
  border-top: 1px solid #eef0f4;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.woocommerce div.product .product_meta .posted_in a {
  text-decoration: none;
  font-weight: 600;
  color: #d97138;
}
.woocommerce div.product .product_meta .posted_in a:hover {
  color: #b85a26;
}

/* ---------- 9. THUMBNAIL GALLERY ---------- */
.woocommerce div.product .woocommerce-product-gallery {
  padding-bottom: 0.5rem;
}
.woocommerce div.product .flex-control-thumbs {
  margin-top: 0.75rem !important;
  gap: 0.5rem;
  display: flex;
  width: 100%;
  box-sizing: border-box;
}
.woocommerce div.product .flex-control-thumbs li {
  margin: 0 !important;
  width: calc(33.333% - 0.34rem) !important;
}
.woocommerce div.product .flex-control-thumbs li img {
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.woocommerce div.product .flex-control-thumbs li img.flex-active,
.woocommerce div.product .flex-control-thumbs li img:hover {
  border-color: #2a4eff;
}

/* =========================================================
   12. CUSTOM FOOTER - replicates Vercel footer pixel-perfect
   High-specificity selectors to defeat Kadence wrappers
   ========================================================= */

/* Hide default Kadence footer parts that we are replacing */
.site-footer .site-bottom-footer-wrap,
.site-footer .site-bottom-footer-section-1,
.site-footer .footer-widget-area-inner > h3,
.site-footer .site-info {
  display: none !important;
}

/* Reset Kadence wrappers around our custom HTML widget so background extends full-width */
body .site-footer,
body .site-footer-wrap,
body .site-footer-row-container,
body .site-footer-row-container-inner,
body .site-footer-row,
body .site-top-footer-inner-wrap,
body .site-footer .site-container,
body .site-footer-top-section-1,
body .site-footer .footer-widget-area,
body .site-footer .footer-widget-area-inner,
body .site-footer .widget,
body .site-footer .widget.widget_block,
body .site-footer #block-7 {
  background: #2563EB !important;
  background-color: #2563EB !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body .site-footer .footer-widget-area {
  display: block !important;
}

body .site-footer .site-top-footer-inner-wrap,
body .site-footer .site-footer-row {
  padding: 0 !important;
}

/* The actual footer block - all rules use body prefix to win specificity */
body .site-footer .blueby-footer,
body .site-footer #block-7 .blueby-footer {
  background: #2563EB !important;
  background-color: #2563EB !important;
  color: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Baloo 2', system-ui, sans-serif !important;
  width: 100% !important;
}

body .site-footer .blueby-footer-inner {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 3.5rem 1.5rem 2rem !important;
  box-sizing: border-box !important;
}

body .site-footer .blueby-footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
  gap: 2.5rem !important;
}

body .site-footer .blueby-footer-col {
  text-align: left !important;
}

body .site-footer .blueby-footer-brand .blueby-footer-logo-link {
  display: inline-block !important;
  text-decoration: none !important;
}

body .site-footer .blueby-footer-brand .blueby-footer-logo,
body .site-footer .blueby-footer-logo {
  display: block !important;
  height: 48px !important;
  width: auto !important;
  max-width: 200px !important;
  margin: 0 0 0.75rem 0 !important;
  filter: brightness(0) invert(1) !important;
}

body .site-footer .blueby-footer-tagline {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  font-family: 'Baloo 2', system-ui, sans-serif !important;
  text-align: left !important;
}

body .site-footer .blueby-footer-heading,
body .site-footer .blueby-footer h4.blueby-footer-heading {
  color: #ffffff !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
  letter-spacing: 0.01em !important;
  font-family: 'Fredoka One', 'Baloo 2', cursive !important;
  text-align: left !important;
  line-height: 1.3 !important;
}

body .site-footer .blueby-footer-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  text-align: left !important;
  align-items: flex-start !important;
}

body .site-footer .blueby-footer-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  background: none !important;
}

body .site-footer .blueby-footer-list li::before,
body .site-footer .blueby-footer-list li::marker {
  content: none !important;
  display: none !important;
}

body .site-footer .blueby-footer-list a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  font-family: 'Baloo 2', system-ui, sans-serif !important;
}

body .site-footer .blueby-footer-list a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

body .site-footer .blueby-footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  margin-top: 2.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(255,255,255,0.18) !important;
  font-size: 0.875rem !important;
  color: rgba(255,255,255,0.85) !important;
  text-align: left !important;
}

body .site-footer .blueby-footer-copy {
  margin: 0 !important;
  color: rgba(255,255,255,0.85) !important;
  text-align: left !important;
  font-family: 'Baloo 2', system-ui, sans-serif !important;
}

body .site-footer .blueby-footer-legal {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

body .site-footer .blueby-footer-legal li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

body .site-footer .blueby-footer-legal li::before,
body .site-footer .blueby-footer-legal li::marker {
  content: none !important;
  display: none !important;
}

body .site-footer .blueby-footer-legal a {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  font-family: 'Baloo 2', system-ui, sans-serif !important;
}

body .site-footer .blueby-footer-legal a:hover {
  color: #ffffff !important;
}

/* Mobile - 1 column, left-aligned (matches Vercel) */
@media (max-width: 768px) {
  body .site-footer .blueby-footer-inner {
    padding: 2.5rem 1.25rem 1.5rem !important;
  }
  body .site-footer .blueby-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  body .site-footer .blueby-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    text-align: left !important;
  }
  body .site-footer .blueby-footer-legal {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
  }
}
