/*
Theme Name: Shopiume Blocksy Child
Theme URI: https://shopiume.com/
Description: Shopiume custom child theme for Blocksy. Full-width WooCommerce layout, no sidebar, and bottom-aligned footer.
Author: Shopiume
Template: blocksy
Version: 1.1.0
Text Domain: shopiume-blocksy-child
*/

:root {
  --shopiume-edge: clamp(16px, 2.5vw, 42px);
}

/* Page / sticky footer */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-container {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#main-container > main,
#main-container > .site-main,
main.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.ct-footer {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

/* Full-width Blocksy containers.
   Backgrounds span the viewport while a small edge padding keeps content readable. */
#main-container,
.ct-header,
.ct-footer,
.ct-header [data-row],
.ct-footer [data-row] {
  width: 100%;
  max-width: none;
}

.ct-header .ct-container,
.ct-footer .ct-container,
#main-container .ct-container {
  width: 100%;
  max-width: none !important;
  padding-left: var(--shopiume-edge) !important;
  padding-right: var(--shopiume-edge) !important;
  box-sizing: border-box;
}

/* Remove Blocksy/third-party boxed layout constraints on the main content. */
#main-container .content-area,
#main-container #primary,
#main-container .site-main,
.woocommerce #primary,
.woocommerce-page #primary {
  width: 100% !important;
  max-width: none !important;
  flex-basis: 100% !important;
}

/* Hide common sidebar wrappers so an accidental sidebar setting cannot squeeze the shop. */
.ct-sidebar,
#secondary,
aside#secondary,
.woocommerce-sidebar,
.woocommerce-page .widget-area {
  display: none !important;
}

/* Make common grid/layout wrappers use the available width. */
.woocommerce .site-main,
.woocommerce-page .site-main,
.woocommerce .content-area,
.woocommerce-page .content-area {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hero / full-bleed blocks created in Gutenberg or page builders. */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Header navigation breathing room */
.ct-header .ct-header-trigger,
.ct-header .ct-header-search,
.ct-header .ct-header-cart,
.ct-header .ct-header-account {
  flex-shrink: 0;
}

/* WooCommerce product grid uses the complete available content width. */
.woocommerce ul.products,
.woocommerce-page ul.products {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Prevent oversized media from creating horizontal scrolling. */
img,
video,
iframe {
  max-width: 100%;
}

/* Mobile */
@media (max-width: 689px) {
  :root {
    --shopiume-edge: 16px;
  }

  .ct-header .ct-container,
  .ct-footer .ct-container,
  #main-container .ct-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* =========================================================
   SHOPIUME — Liquid Bento inspired storefront styling
   Safe child-theme overrides for Blocksy + WooCommerce
   ========================================================= */
:root {
  --shopiume-bg: #f5f7fb;
  --shopiume-surface: #ffffff;
  --shopiume-ink: #121827;
  --shopiume-muted: #687386;
  --shopiume-cyan: #00b9d6;
  --shopiume-blue: #3978f6;
  --shopiume-violet: #8257e8;
  --shopiume-line: rgba(25, 40, 70, .10);
  --shopiume-shadow: 0 12px 36px rgba(25, 40, 70, .08);
  --shopiume-radius: 22px;
}

/* Clean storefront canvas */
body.shopiume-child-layout {
  background: var(--shopiume-bg);
  color: var(--shopiume-ink);
}
body.shopiume-child-layout #main-container {
  background: transparent;
}
body.shopiume-child-layout .site-main {
  padding-top: clamp(18px, 3vw, 42px);
  padding-bottom: clamp(28px, 4vw, 60px);
}

/* Header: crisp white glass-like surface */
body.shopiume-child-layout .ct-header {
  position: relative;
  z-index: 20;
}
body.shopiume-child-layout .ct-header [data-row] {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--shopiume-line);
  backdrop-filter: blur(16px);
}
body.shopiume-child-layout .ct-header .ct-container {
  min-height: 70px;
}
body.shopiume-child-layout .ct-header a,
body.shopiume-child-layout .ct-header .ct-icon {
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}
body.shopiume-child-layout .ct-header a:hover {
  color: var(--shopiume-blue);
}

/* Site content and shop headings */
body.shopiume-child-layout .entry-content,
body.shopiume-child-layout .woocommerce-products-header,
body.shopiume-child-layout .woocommerce-notices-wrapper {
  color: var(--shopiume-ink);
}
body.shopiume-child-layout .woocommerce-products-header {
  margin-bottom: 24px;
}
body.shopiume-child-layout .woocommerce-products-header__title,
body.shopiume-child-layout .entry-content h1,
body.shopiume-child-layout .entry-content h2,
body.shopiume-child-layout .entry-content h3 {
  color: var(--shopiume-ink);
  letter-spacing: -.035em;
}
body.shopiume-child-layout .woocommerce-products-header__title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  font-weight: 800;
}

/* Liquid Bento-style WooCommerce product cards */
body.shopiume-child-layout .woocommerce ul.products li.product,
body.shopiume-child-layout .woocommerce-page ul.products li.product {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(25,40,70,.075);
  border-radius: var(--shopiume-radius);
  background: var(--shopiume-surface);
  box-shadow: 0 5px 20px rgba(25,40,70,.035);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
body.shopiume-child-layout .woocommerce ul.products li.product:hover,
body.shopiume-child-layout .woocommerce-page ul.products li.product:hover {
  transform: translateY(-5px);
  border-color: rgba(0,185,214,.34);
  box-shadow: var(--shopiume-shadow), 0 0 0 1px rgba(0,185,214,.05);
}
body.shopiume-child-layout .woocommerce ul.products li.product a img,
body.shopiume-child-layout .woocommerce-page ul.products li.product a img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 8px;
  margin: 0 0 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f7faff, #eef3fb);
  transition: transform .35s ease;
}
body.shopiume-child-layout .woocommerce ul.products li.product:hover a img {
  transform: scale(1.035);
}
body.shopiume-child-layout .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--shopiume-ink);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  padding: 0;
  margin: 0 0 8px;
}
body.shopiume-child-layout .woocommerce ul.products li.product .price {
  color: var(--shopiume-blue);
  font-size: 18px;
  font-weight: 800;
  margin: 8px 0 12px;
}
body.shopiume-child-layout .woocommerce ul.products li.product .price del {
  color: #8b94a5;
  font-size: 13px;
  font-weight: 500;
  opacity: .8;
}
body.shopiume-child-layout .woocommerce ul.products li.product .price ins {
  text-decoration: none;
}
body.shopiume-child-layout .woocommerce ul.products li.product .star-rating {
  color: #f5a623;
  margin: 0 0 8px;
}
body.shopiume-child-layout .woocommerce span.onsale {
  top: 12px;
  left: 12px;
  min-height: auto;
  min-width: auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--shopiume-cyan), var(--shopiume-blue));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

/* Buttons: bright gradient accent, soft shape */
body.shopiume-child-layout .woocommerce a.button,
body.shopiume-child-layout .woocommerce button.button,
body.shopiume-child-layout .woocommerce input.button,
body.shopiume-child-layout .woocommerce #respond input#submit,
body.shopiume-child-layout .wp-block-button__link,
body.shopiume-child-layout .ct-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--shopiume-cyan), var(--shopiume-blue) 58%, var(--shopiume-violet));
  color: #fff;
  font-weight: 750;
  box-shadow: 0 7px 18px rgba(57,120,246,.18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
body.shopiume-child-layout .woocommerce a.button:hover,
body.shopiume-child-layout .woocommerce button.button:hover,
body.shopiume-child-layout .woocommerce input.button:hover,
body.shopiume-child-layout .wp-block-button__link:hover,
body.shopiume-child-layout .ct-button:hover {
  color: #fff;
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(57,120,246,.25);
}
body.shopiume-child-layout .woocommerce ul.products li.product a.button {
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  margin-top: 4px;
}

/* Forms, sorting and search controls */
body.shopiume-child-layout input[type="text"],
body.shopiume-child-layout input[type="email"],
body.shopiume-child-layout input[type="tel"],
body.shopiume-child-layout input[type="password"],
body.shopiume-child-layout input[type="search"],
body.shopiume-child-layout input[type="number"],
body.shopiume-child-layout select,
body.shopiume-child-layout textarea {
  border: 1px solid var(--shopiume-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
body.shopiume-child-layout input:focus,
body.shopiume-child-layout select:focus,
body.shopiume-child-layout textarea:focus {
  border-color: rgba(0,185,214,.7);
  box-shadow: 0 0 0 3px rgba(0,185,214,.10);
  outline: none;
}
body.shopiume-child-layout .woocommerce .woocommerce-ordering select,
body.shopiume-child-layout .woocommerce .woocommerce-result-count {
  font-size: 14px;
}

/* Product detail page */
body.shopiume-child-layout .single-product div.product .woocommerce-product-gallery,
body.shopiume-child-layout .single-product div.product .summary {
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--shopiume-line);
  border-radius: var(--shopiume-radius);
  background: #fff;
  box-shadow: 0 6px 24px rgba(25,40,70,.04);
}
body.shopiume-child-layout .single-product div.product .product_title {
  color: var(--shopiume-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
}
body.shopiume-child-layout .single-product div.product .summary .price {
  color: var(--shopiume-blue);
  font-size: 26px;
  font-weight: 850;
}
body.shopiume-child-layout .single-product div.product form.cart .quantity input {
  min-height: 46px;
  border-radius: 12px;
}

/* Cart and checkout surfaces */
body.shopiume-child-layout .woocommerce-cart table.shop_table,
body.shopiume-child-layout .woocommerce-checkout table.shop_table,
body.shopiume-child-layout .woocommerce-checkout #payment,
body.shopiume-child-layout .woocommerce-cart .cart-collaterals .cart_totals {
  overflow: hidden;
  border: 1px solid var(--shopiume-line);
  border-radius: 18px;
  background: #fff;
}
body.shopiume-child-layout .woocommerce table.shop_table th,
body.shopiume-child-layout .woocommerce table.shop_table td {
  padding: 14px;
}
body.shopiume-child-layout .woocommerce-message,
body.shopiume-child-layout .woocommerce-info,
body.shopiume-child-layout .woocommerce-error {
  border-radius: 14px;
}

/* Footer */
body.shopiume-child-layout .ct-footer {
  border-top: 1px solid var(--shopiume-line);
  background: #101827;
  color: #dbe4f3;
}
body.shopiume-child-layout .ct-footer a {
  color: #dbe4f3;
}
body.shopiume-child-layout .ct-footer a:hover {
  color: #54e5f5;
}

/* Accessible motion preference */
@media (prefers-reduced-motion: reduce) {
  body.shopiume-child-layout *,
  body.shopiume-child-layout *::before,
  body.shopiume-child-layout *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Responsive product cards */
@media (max-width: 689px) {
  body.shopiume-child-layout .woocommerce ul.products li.product,
  body.shopiume-child-layout .woocommerce-page ul.products li.product {
    padding: 10px;
    border-radius: 16px;
  }
  body.shopiume-child-layout .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
  }
  body.shopiume-child-layout .woocommerce ul.products li.product .price {
    font-size: 16px;
  }
  body.shopiume-child-layout .woocommerce ul.products li.product a.button {
    font-size: 12px;
    padding: 10px 8px;
  }
}
