/* Shared page shell — fluid horizontal rhythm (aligned with index / about-us) */

body.page-layout > main,
body.page-layout main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

body.page-layout main .container {
  width: min(1080px, calc(100% - clamp(20px, 8vw, 48px)));
}

@media (max-width: 640px) {
  body.page-layout main .container {
    width: calc(100% - 24px);
  }
}

/* Local replacement for the Tailwind utilities `px-4 sm:px-[5%] md:px-[6%] lg:px-0`.
   Adopting this avoids loading the Tailwind Play CDN (and its production warning). */
.section-pad {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-pad {
    padding-left: 5%;
    padding-right: 5%;
  }
}

@media (min-width: 768px) {
  .section-pad {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (min-width: 1024px) {
  .section-pad {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------- Shared "Order" form (used by products & about-us) ---------- */
yop-order {
  display: block;
}

.order-form {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px);
  border: 1px solid #d8d8d8;
  border-radius: 22px;
  background: #fff;
  display: grid;
  gap: 0;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.order-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 720px) {
  .order-form-row {
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
  }
}

.order-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px) 4px;
  border-bottom: 1px solid #ececec;
}

@media (min-width: 720px) {
  .order-form-row .order-field {
    border-bottom: 1px solid #ececec;
  }

  .order-form-row .order-field + .order-field {
    border-left: 1px solid #ececec;
    padding-left: clamp(14px, 2vw, 22px);
  }
}

.order-field--textarea {
  align-items: flex-start;
}

.order-field--textarea .order-field-icon {
  margin-top: 4px;
}

.order-field-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #151515;
  opacity: 0.85;
}

.order-field input,
.order-field textarea,
.order-field select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: #000;
  line-height: 1.5;
  padding: 0;
}

.order-field--phone .order-phone-inputs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-field--phone .order-country-picker {
  position: relative;
  flex: 0 0 auto;
  max-width: min(168px, 44vw);
}

.order-field--phone .order-country-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0 16px 0 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23151515' stroke-width='1.2' stroke-linecap='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right center / 10px 6px;
  font: inherit;
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  line-height: 1.4;
  color: #000;
  cursor: pointer;
  text-align: left;
}

.order-field--phone .order-country-trigger:focus-visible {
  outline: 2px solid var(--brand, #f0bd18);
  outline-offset: 2px;
  border-radius: 4px;
}

.order-field--phone .order-country-flag {
  flex-shrink: 0;
  font-size: 1.15em;
  line-height: 1;
}

.order-field--phone .order-country-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.9;
}

.order-field--phone .order-country-dial {
  flex-shrink: 0;
  font-weight: 500;
  opacity: 0.85;
}

.order-field--phone .order-country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  max-height: min(280px, 50vh);
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.order-field--phone .order-country-menu[hidden] {
  display: none;
}

.order-field--phone .order-country-menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  line-height: 1.4;
  cursor: pointer;
}

.order-field--phone .order-country-menu li:hover,
.order-field--phone .order-country-menu li[aria-selected='true'] {
  background: #f5f5f5;
}

.order-field--phone .order-country-menu .order-country-name {
  flex: 1;
}

.order-field--phone .order-country-menu .order-country-dial {
  color: rgba(0, 0, 0, 0.55);
  font-weight: 500;
}

@media (max-width: 480px) {
  .order-field--phone .order-country-picker {
    max-width: min(118px, 38vw);
  }

  .order-field--phone .order-country-trigger .order-country-name {
    display: none;
  }
}

.order-field--phone input[type='tel'] {
  flex: 1;
  min-width: 0;
}

.order-field textarea {
  min-height: 96px;
  font-family: inherit;
  resize: none;
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: #000;
  opacity: 0.5;
}

.order-field input:focus::placeholder,
.order-field textarea:focus::placeholder {
  opacity: 0.3;
}

.order-submit {
  margin-top: clamp(20px, 3vw, 36px);
  width: 100%;
  height: clamp(56px, 7vw, 80px);
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #000;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.order-submit:hover,
.order-submit:focus-visible {
  opacity: 1;
  box-shadow: 0 8px 24px rgba(240, 189, 24, 0.3);
}

.order-submit:active {
  transform: translateY(1px);
}

.order-submit:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

.order-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.order-form-status {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: #166534;
}

.order-form-status--error {
  color: #b91c1c;
}

.order-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Unified heading alignment ---------- */
.h2-center, .text-center {
  text-align: center;
}
