@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === Site announcement bar (block theme header notice strip) === */
header.wp-block-template-part {
  overflow: visible !important;
}

header.wp-block-template-part > .wp-block-group.has-primary-background-color {
  display: none !important;
  background-color: #e8ab30 !important;
  max-width: none !important;
  width: 100% !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(0.75rem, 3vw, 1rem) !important;
  padding-right: clamp(0.75rem, 3vw, 1rem) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

header.wp-block-template-part > .wp-block-group.has-primary-background-color p {
  color: #3a2218 !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  margin: 0;
  display: block;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* === Sticky footer (push footer to bottom on short pages) === */

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.mk-kiddie-footer {
  margin-top: auto;
}

/* Hide page title on WordPress pages — theme block template already shows it redundantly */
body.page .wp-block-post-title {
  display: none !important;
}

/* === Footer === */

.mk-kiddie-footer__wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: clamp(5rem, 8vw, 8rem);
  display: none;
}

.mk-kiddie-footer__wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.mk-kiddie-footer__body {
  background: #fff;
  color: #2d1f2d;
  padding: 3rem 1rem;
  border-top: 1px solid #e8ddd0;
}

.mk-kiddie-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mk-kiddie-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

/* --- Column headings --- */

.mk-kiddie-footer__heading {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: normal;
  margin: 0 0 1rem;
  color: #2d1f2d;
}

.mk-kiddie-footer__subheading {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: normal;
  margin: 0 0 0.75rem;
  opacity: 0.9;
}

/* --- Nav links --- */

.mk-kiddie-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mk-kiddie-footer__list li {
  margin-bottom: 0.625rem;
}

.mk-kiddie-footer__list a {
  color: #6b5b6b;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.mk-kiddie-footer__list a:hover {
  color: #2d1f2d;
  opacity: 1;
}

/* --- Column 1: Brand --- */

.mk-kiddie-footer__logo {
  display: block;
  height: auto;
  width: 160px;
  object-fit: contain;
}

.mk-kiddie-footer__logo-link {
  display: inline-block;
}

/* --- Column 2: Navigation two-sub-column grid --- */

.mk-kiddie-footer__nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* --- Column 3: Contact info --- */

.mk-kiddie-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.mk-kiddie-footer__contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  opacity: 1;
  color: #4a3a4a;
}

.mk-kiddie-footer__contact-list svg {
  flex-shrink: 0;
}

.mk-kiddie-footer__contact-list a {
  color: #2d1f2d;
  text-decoration: none;
}

.mk-kiddie-footer__contact-list a:hover {
  text-decoration: underline;
}

/* --- Social pill buttons --- */

.mk-kiddie-footer__social-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mk-kiddie-footer__social-pills a {
  background: #f5efe8;
  color: #2d1f2d;
  text-decoration: none;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.2s;
}

.mk-kiddie-footer__social-pills a:hover {
  background: #e8ddd0;
}

/* Instagram gradient */
.mk-kiddie-footer__social-pill--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  color: #fff !important;
}

.mk-kiddie-footer__social-pill--instagram:hover {
  opacity: 0.85;
}

/* Facebook blue */
.mk-kiddie-footer__social-pill--facebook {
  background: #1877f2 !important;
  color: #fff !important;
}

.mk-kiddie-footer__social-pill--facebook:hover {
  background: #1565c0 !important;
}

/* TikTok black */
.mk-kiddie-footer__social-pill--tiktok {
  background: #010101 !important;
  color: #fff !important;
}

.mk-kiddie-footer__social-pill--tiktok:hover {
  background: #333 !important;
}

/* --- Bottom copyright --- */

.mk-kiddie-footer__bottom {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e8ddd0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 1;
  color: #9a8a7a;
}

.mk-kiddie-footer__bottom p {
  margin: 0;
}

.mk-kiddie-footer__legal {
  margin-top: 0.5rem !important;
  font-size: 0.75rem;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.mk-kiddie-footer__email {
  color: #2d1f2d;
  text-decoration: none;
}

.mk-kiddie-footer__email:hover {
  color: #2d1f2d;
}

.mk-kiddie-footer__cookie-settings {
  color: #6b5b6b;
  text-decoration: underline;
}

.mk-kiddie-footer__cookie-settings:hover {
  color: #2d1f2d;
}

.mk-kiddie-footer__legal-info {
  color: #9a8a7a;
}

.mk-kiddie-footer__payments {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid #e8ddd0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.mk-kiddie-footer__payment-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.mk-kiddie-footer__payment-icon:hover {
  opacity: 1;
}

.mk-kiddie-footer__payment-icon svg {
  display: block;
  height: auto;
}

.mk-kiddie-footer__payment-icon--text {
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #2d1f2d;
  letter-spacing: 0.02em;
}

/* === Cookie consent banner === */

.mk-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--mk-brand);
  color: #2d1f2d;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.mk-cookie-banner__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 200px;
}

.mk-cookie-banner__text a {
  color: #2d1f2d;
  font-weight: 600;
  text-decoration: underline;
}

.mk-cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mk-cookie-banner__accept {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: #2d1f2d;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.mk-cookie-banner__accept:hover {
  background: #1a0f1a;
}

.mk-cookie-banner__decline {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(45, 31, 45, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #2d1f2d;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.mk-cookie-banner__decline:hover {
  background: rgba(45, 31, 45, 0.08);
}

/* Keep single-product gallery dimensions stable between slide changes. */
.single-product .wp-block-woocommerce-product-image-gallery,
.single-product .woocommerce-product-gallery {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.single-product .woocommerce-product-gallery .flex-viewport {
  aspect-ratio: 1 / 1;
  height: auto !important;
}

.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image a {
  height: 100% !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Product card container for block-based product query loops. */
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) {
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  box-shadow: none;
  transition: none;
  list-style: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product):hover {
  box-shadow: none;
}

/* Info group (title + price + button) grows to fill card height */
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wp-block-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 !important;
  gap: 0;
}

/* Product title */
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wp-block-post-title,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-name,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .woocommerce-loop-product__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d1f2d;
  padding: 12px 0 4px;
  margin: 0;
  display: block;
  text-decoration: none;
  line-height: 1.4;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product):hover .wp-block-post-title,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product):hover .wc-block-components-product-name {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(45, 31, 45, 0.3);
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wp-block-post-title a {
  text-decoration: none;
  color: inherit;
}

/* Price */
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-price,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .price {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d1f2d;
  display: block;
  padding: 2px 0 8px;
  margin: 0;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-price del {
  color: #999;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-price ins {
  color: #c0392b;
  text-decoration: none;
}

/* Button wrapper pushed to bottom */
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-button,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) [data-block-name="woocommerce/product-button"],
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-catalog-product-actions {
  padding: 0;
  margin-top: auto;
  display: flex;
  justify-content: stretch;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .add_to_cart_button,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-catalog-choose-size {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0.75rem 1rem !important;
  background-color: rgba(45, 31, 45, 0.9) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease !important;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .add_to_cart_button:hover,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-catalog-choose-size:hover {
  background-color: #2d1f2d !important;
  transform: none !important;
  color: #fff !important;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .add_to_cart_button span,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-catalog-choose-size span {
  font-size: 0.6875rem !important;
}

/* Keep product card image frames stable in product query loops. */
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-image {
  position: relative;
  margin: 0;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ffffff;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
  transition: transform 0.3s ease;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product):hover .wc-block-components-product-image img {
  transform: scale(1.05);
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-product-card-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  background: rgb(17 17 17 / 0.72);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-product-card-gallery__nav--prev {
  left: 0.35rem;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-product-card-gallery__nav--next {
  right: 0.35rem;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-image:hover .mk-product-card-gallery__nav,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-image:focus-within .mk-product-card-gallery__nav {
  opacity: 1;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-product-card-gallery__nav:hover,
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-product-card-gallery__nav:focus-visible {
  background: rgb(17 17 17 / 0.88);
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-product-card-gallery__nav[hidden] {
  display: none !important;
}

@media (hover: none) {
  .wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .mk-product-card-gallery__nav {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .mk-kiddie-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mk-kiddie-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  header.wp-block-template-part > .wp-block-group.has-primary-background-color {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }

  header.wp-block-template-part > .wp-block-group.has-primary-background-color p {
    font-size: 12px !important;
  }

  .mk-kiddie-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRODUCT CARD FIGMA ENHANCEMENTS — wishlist, slide-up button, brand label
   ========================================================================== */

/* Image wrapper needs relative for overlay positioning */
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-image {
  overflow: hidden;
}

/* Transition image on hover (600ms ease like Figma) */
.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product) .wc-block-components-product-image img {
  transition: transform 0.6s ease-out !important;
}

/* --- Wishlist heart button --- */
.mk-card-wishlist {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2d1f2d;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product):hover .mk-card-wishlist {
  opacity: 1;
}

.mk-card-wishlist:hover {
  background: #fde5f1;
  color: #2d1f2d;
}

.mk-card-wishlist.is-liked {
  opacity: 1;
  background: #fde5f1;
  color: #2d1f2d;
}

.mk-card-wishlist.is-liked svg {
  fill: currentColor;
}

/* --- Slide-up overlay action button --- */
.mk-card-overlay-actions {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 0.75rem !important;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 10;
}

.wp-block-post-template li:is(.wp-block-post.product, .wc-block-product.product):hover .mk-card-overlay-actions {
  transform: translateY(0);
}

/* Override button styles inside overlay */
.mk-card-overlay-actions .mk-catalog-add-to-cart,
.mk-card-overlay-actions .mk-catalog-choose-size {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background-color: rgba(45, 31, 45, 0.9) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 0.875rem 1rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease !important;
}

.mk-card-overlay-actions .mk-catalog-add-to-cart:hover,
.mk-card-overlay-actions .mk-catalog-choose-size:hover {
  background-color: #2d1f2d !important;
}

/* Plus icon in button */
.mk-btn-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mk-btn-plus-icon svg {
  stroke: #fff;
}

