/* ======================================================
   ZUIOTIC – WOOCOMMERCE CORE (FINAL)
   Stable • Clean • Production-ready
====================================================== */


/* ======================================================
   PRODUCT PAGE – BASE
====================================================== */

.single-product .woocommerce form.cart {
  margin-top: 24px;
}

.single-product table.variations label {
  font-size: 14px;
  font-weight: 500;
}

.single-product select {
  border: 1px solid #D6D6D2;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
}

.single-product .quantity input.qty {
  width: 72px;
  height: 44px;
  border: 1px solid #D6D6D2;
  font-size: 14px;
  text-align: center;
}

.single-product button.single_add_to_cart_button {
  background: #1F2A33;
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.single-product button.single_add_to_cart_button:hover {
  opacity: 0.9;
}

.single-product button.single_add_to_cart_button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}


/* ======================================================
   SHOP PAGE – HOVER EFFECTS (LOCKED & SAFE)
   This block fixes refresh / cache issues
====================================================== */

.woocommerce ul.products li.product {
  cursor: pointer;
}

/* Image soft zoom */
.woocommerce ul.products li.product img {
  transition: transform 0.35s ease;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.04);
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  text-decoration: none;
  transition: text-decoration-color 0.2s ease;
}

.woocommerce ul.products li.product:hover
.woocommerce-loop-product__title {
  text-decoration: underline;
  text-underline-offset: 3px; /* modern browsers */
}

/* Disable hover on touch devices */
@media (hover: none) {
  .woocommerce ul.products li.product:hover img {
    transform: none;
  }

  .woocommerce ul.products li.product:hover
  .woocommerce-loop-product__title {
    text-decoration: none;
  }
}


/* ======================================================
   PRODUCT GALLERY – STRUCTURE (PDP)
====================================================== */

.single-product .woocommerce-product-gallery {
  display: block;
  position: relative;
}

/* Main image */
.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  border-radius:5px;
}

/* Flexslider viewport */
.single-product .flex-viewport {
  width: 100%;
  margin-bottom: 10px;
}

/* Hide magnifier */
.single-product .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* Disable Woo default click */
.single-product .woocommerce-product-gallery__image a {
  pointer-events: none;
}

/* A5 — Mobile Gallery Spacing */
@media (max-width: 768px) {
  .single-product .woocommerce-product-gallery {
    margin-bottom: 20px;
  }
}

/* =========================================
   ZUIOTIC – LOCK MAIN IMAGE FRAME (FINAL)
========================================= */

/* Fix the FRAME size */
.single-product .woocommerce-product-gallery__image {
  height: 520px;          /* desktop frame */
  overflow: hidden;
}

/* Make image fit INSIDE the frame */
.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* IMPORTANT */
}
/* ======================================================
   THUMBNAILS – DESKTOP + MOBILE SAFE
====================================================== */

.single-product .flex-control-thumbs {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  margin: 12px 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  overflow-x: auto;
  border-radius:3px;
}

.single-product .flex-control-thumbs li {
  width: 64px !important;
  height: 64px !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
  border-radius:3px;
}

.single-product .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
  border-radius:3px;
}

.single-product .flex-control-thumbs li:hover,
.single-product .flex-control-thumbs li.flex-active {
  border-color: #1F2A33;
}


/* ======================================================
   MOBILE ADJUSTMENTS
====================================================== */

@media (max-width: 768px) {

  .single-product .flex-control-thumbs {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .single-product .flex-control-thumbs li {
    width: 60px !important;
    height: 60px !important;
    border-radius: 5px;
  }
  .single-product .quantity input.qty {
    width: 100%;
    height: 48px;
    border-radius: 3px;
  }
}

@media (max-width: 480px) {
  .single-product .flex-control-thumbs li {
    width: 55px !important;
    height: 55px !important;
  }
}


/* ======================================================
   LIGHTBOX (CLICK TO ZOOM)
====================================================== */

#zuiotic-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#zuiotic-lightbox:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

#zuiotic-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}


/* ======================================================
   SAFETY OVERRIDES (Woo conflicts)
====================================================== */

.woocommerce-product-gallery.woocommerce-product-gallery--with-images {
  display: block !important;
}

/* Prevent thumbnails inheriting main image rules */
.single-product .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
}

/* === PDP IMAGE POLISH === */

.single-product .woocommerce-product-gallery__image {
  border-radius: 5px;
  background: #f6f6f6;
}

/* subtle depth */
.single-product .woocommerce-product-gallery__image img {
  border-radius: 5px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* micro hover feedback */
.single-product .woocommerce-product-gallery__image img:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* === PDP THUMBNAILS POLISH === */

.single-product .flex-control-thumbs li {
  border-radius: 5px;
  background: #f5f5f5;
}

.single-product .flex-control-thumbs img {
  border-radius: 5px;
}
/* === PDP SPACING RHYTHM === */

.single-product .product_title {
  margin-bottom: 14px;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.single-product .price {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}

.single-product .woocommerce-product-details__short-description {
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.6;
  color: #5e666d;
  max-width: 92%;
}

.single-product form.cart {
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* === ADD TO CART MICRO FEEDBACK === */

.single-product button.single_add_to_cart_button {
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.single-product button.single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* === TRUST LINE POLISH === */

.single-product p.text-\[13px\] {
  margin-top: 18px;
  color: #6b7280;
}

/* ======================================================
   A2 — PRODUCT INFO STRUCTURE (FABRIC / FIT / CARE)
====================================================== */

.single-product section > div {
  background: #fafafa;
  border-radius: 5px;
  padding: 20px 18px;
}

.single-product section h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #111827;
}

.single-product section p {
  font-size: 14px;
  line-height: 1.65;
  color: #5e666d;
}
@media (min-width: 1024px) {
  .single-product section.grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .single-product section > div {
    padding: 18px 16px;
  }

  .single-product section.grid {
    gap: 16px;
  }
}

/* Trust line below Add to Cart */
.single-product .trust-line,
.single-product p.text-\[13px\] {
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* A5 — Mobile Trust Line */
@media (max-width: 768px) {
  .single-product .trust-line {
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .single-product form.cart {
    margin-top: 20px;
  }

  .single-product button.single_add_to_cart_button {
    width: 100%;
    text-align: center;
    width: 100%;
    height: 52px;
    border-radius: 3px; /* your brand rule */
  }
  .single-product .product_title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .single-product .woocommerce-product-details__short-description {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 18px;
  }
  .single-product .price {
    margin-bottom: 14px;
  }

}

/* ======================================================
   A9 — ZUIOTIC STORY BLOCK
====================================================== */

.zuiotic-story {
  max-width: 720px;
  margin: 60px auto 80px;
  padding: 0 10px;
}

.zuiotic-story-block {
  margin-bottom: 36px;
}

.zuiotic-story-block h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1F2A33;
}

.zuiotic-story-block p {
  font-size: 14px;
  line-height: 1.7;
  color: #5E666D;
  max-width: 640px;
}

@media (max-width: 768px) {
  .zuiotic-story {
    margin: 40px auto 60px;
  }

  .zuiotic-story-block {
    margin-bottom: 28px;
  }
}

/* ======================================================
   ZUIOTIC – PDP TRUST STRIP (A10)
====================================================== */

.zuiotic-pdp-trust {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #EAEAEA;
}

.zuiotic-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zuiotic-trust-item span {
  font-size: 14px;
  font-weight: 500;
  color: #1F2A33;
}

.zuiotic-trust-item small {
  font-size: 12px;
  color: #5E666D;
}

/* Mobile layout */
@media (max-width: 768px) {
  .zuiotic-pdp-trust {
    flex-direction: column;
    gap: 12px;
  }
}

/* ======================================================
   ZUIOTIC – PDP WHEN TO WEAR (A11)
====================================================== */

.zuiotic-when-to-wear {
  margin-top: 32px;
}

.zuiotic-when-to-wear h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #1F2A33;
}

.zuiotic-wear-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zuiotic-wear-tags span {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid #D6D6D2;
  border-radius: 5px;
  color: #1F2A33;
  background: #ffffff;
}

/* Mobile spacing */
@media (max-width: 768px) {
  .zuiotic-wear-tags span {
    font-size: 12px;
    padding: 7px 12px;
  }
}

/* ======================================================
   A12 – ADD TO CART MICRO INTERACTION
====================================================== */

.single-product button.single_add_to_cart_button {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.single-product button.single_add_to_cart_button:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.single-product button.single_add_to_cart_button:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* ======================================================
   A12 – THUMBNAIL INTERACTION
====================================================== */

.single-product .flex-control-thumbs li {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.single-product .flex-control-thumbs li:hover {
  transform: translateY(-1px);
}

/* ======================================================
   A12 – CONTEXT TAG INTERACTION
====================================================== */

.zuiotic-wear-tags span {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.zuiotic-wear-tags span:hover {
  background-color: #F5F5F5;
  border-color: #1F2A33;
}
/* ======================================================
   A12 – MAIN IMAGE MICRO DEPTH
====================================================== */

.single-product .woocommerce-product-gallery__image img {
  transition: transform 0.35s ease;
}

.single-product .woocommerce-product-gallery__image img:hover {
  transform: scale(1.01);
}

/* ======================================================
   A13 – PDP MICRO-POLISH (SAFE)
   Purpose: visual rhythm & premium feel
   DO NOT add logic here
====================================================== */

/* Title breathing space */
.single-product .product_title {
  line-height: 1.25;
  margin-bottom: 14px;
}

/* Price separation */
.single-product .price {
  margin-bottom: 22px;
}

/* Short description readability */
.single-product .woocommerce-product-details__short-description {
  line-height: 1.55;
  margin-bottom: 26px;
}

/* Variations spacing */
.single-product table.variations {
  margin-bottom: 22px;
}

/* Fix quantity + add to cart alignment */
.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Prevent button from jumping */
.single-product form.cart .single_add_to_cart_button {
  margin-left: auto;
}

/* Quantity input polish */
.single-product .quantity input.qty {
  border-radius: 5px; /* matches site philosophy */
}

/* Add to cart button polish */
.single-product button.single_add_to_cart_button {
  border-radius: 5px; /* consistent softness */
}

/* Trust line spacing */
.single-product .product .trust-line,
.single-product .trust-line {
  margin-top: 18px;
  line-height: 1.4;
}

/* ======================================================
   A13-B – SIZE BUTTON SELECTOR (UI ONLY)
====================================================== */

/* Hide original dropdown (logic still works) */
.single-product table.variations {
  display: none;
}

/* Size button wrapper */
.zuiotic-size-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* Size button */
.zuiotic-size-btn {
  min-width: 52px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #D6D6D2;
  border-radius: 5px; /* brand rule */
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: #1F2A33;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover */
.zuiotic-size-btn:hover {
  border-color: #1F2A33;
}

/* Active */
.zuiotic-size-btn.active {
  background: #1F2A33;
  color: #ffffff;
  border-color: #1F2A33;
}

/* Disabled */
.zuiotic-size-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===============================
   ZUIOTIC – SIZE BUTTON STATES
================================ */

/* Disabled size */
.zuiotic-size-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

/* Active size */
.zuiotic-size-btn.active {
  border-color: #1F2A33;
  background: rgba(31, 42, 51, 0.05);
}

/* ===============================
   ZUIOTIC – SIZE GUIDE (A15)
================================ */

.zuiotic-size-guide-trigger {
  margin-top: 10px;
  font-size: 13px;
  color: #1F2A33;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* Overlay */
#zuiotic-size-guide {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#zuiotic-size-guide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal */
.zuiotic-size-guide-modal {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  border-radius: 5px;
  padding: 24px;
  position: relative;
}

/* Close button */
.zuiotic-size-guide-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  background: none;
}

/* Table */
.zuiotic-size-guide-modal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.zuiotic-size-guide-modal th,
.zuiotic-size-guide-modal td {
  border: 1px solid #E5E5E5;
  padding: 10px;
  font-size: 14px;
  text-align: center;
}
/* =====================================
   A17 – MODEL SIZE NOTE
===================================== */

.zuiotic-model-size {
  font-size: 13px;
  color: #5E666D;
  margin: 6px 0 10px; /* tighter */
  line-height: 1.4;
}

.zuiotic-model-size strong {
  font-weight: 500;
  color: #1F2A33;
}

/* FIX: Restore Woo variable product stacking */
.single-product .variations_form.cart {
  display: block;
}

.single-product .single_variation_wrap {
  display: block;
}

.single-product .woocommerce-variation-add-to-cart {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* FORCE SIZE → CART LINE BREAK (FINAL FIX) */

.single-product .zuiotic-size-group {
  width: 100%;
}

.single-product .quantity {
  margin-right: 8px;
}

/* FINAL CART ALIGNMENT FIX */

.single-product form.cart {
  justify-content: flex-start;
}

.single-product .quantity,
.single-product button.single_add_to_cart_button {
  margin-top: 8px;
}
/* ======================================================
   A18 — STICKY ADD TO CART (MOBILE ONLY)
====================================================== */

@media (max-width: 768px) {

  .zuiotic-sticky-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 9998;
  }

  .zuiotic-sticky-cart .quantity {
    flex: 0 0 72px;
  }

  .zuiotic-sticky-cart button.single_add_to_cart_button {
    flex: 1;
    height: 48px;
    border-radius: 5px;
  }

  /* Space for sticky bar */
  body.single-product {
    padding-bottom: 90px;
  }
}