/*
Theme Name: Tornos Child - Evolve
Template: tornos-brand-base
Description: Evolveブランド用の差分のみを持つ子テーマ。親テーマ(tornos-brand-base)は編集不要。
Version: 0.1.0-draft
Text Domain: tornos-child-evolve

★配色はすべて仮。正式なブランドガイド(わく)が届いたら数値のみ差し替える。
*/

:root {
  --brand-color-primary: #123c69; /* @ASSUMPTION 仮のEvolveカラー */
  --brand-color-accent: #f2a03d;  /* @ASSUMPTION 仮のEvolveカラー */
}

/* AquaCap 55–57: prevent gallery min-content width from stretching mobile grid. */
@media (max-width: 767px) {
  body.single-product:is(.postid-55, .postid-56, .postid-57) div.product {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.single-product:is(.postid-55, .postid-56, .postid-57) div.product > * {
    min-width: 0;
    box-sizing: border-box;
  }
  body.single-product:is(.postid-55, .postid-56, .postid-57) div.product div.images,
  body.single-product:is(.postid-55, .postid-56, .postid-57) div.product div.summary {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.single-product:is(.postid-55, .postid-56, .postid-57) div.product .tornos-aquacap-siblings {
    width: auto !important;
    min-width: 0;
  }
}

/* Weight Belt 152: keep the disabled quantity readable during sales preparation. */
body.single-product.postid-152 .quantity::before {
  content: "数量";
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}
body.single-product.postid-152 .quantity input.qty:disabled {
  width: 72px;
  min-height: 40px;
  opacity: 1 !important;
  color: #555 !important;
  -webkit-text-fill-color: #555;
  background: #f3f3f3;
  border: 1px solid #ccc;
  cursor: not-allowed;
}

body.single-product.postid-152 .woocommerce-variation-add-to-cart-disabled,
body.single-product.postid-152 .woocommerce-variation-add-to-cart-disabled .quantity {
  opacity: 1 !important;
}
body.single-product.postid-152 .single_add_to_cart_button:disabled {
  opacity: .5 !important;
}
