/* ============================================================
   HAIIILEEN â€” Responsive + WCAG 2.2 AA CSS
   Injected 2026-07-25 via custom_css post (olympique theme)
   Scope: cart, checkout, policies, global
   ============================================================ */

/* â”€â”€ 1. WCAG 2.2 AA: Focus indicators â”€â”€ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #00c394;
  outline-offset: 3px;
  border-radius: 2px;
}

/* â”€â”€ 2. Reduced motion â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* â”€â”€ 3. CART HERO â”€â”€ */
.haiii-cart-hero {
  padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 80px);
}

@media (max-width: 768px) {
  .haiii-cart-hero .haiii-hero-h {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}

@media (max-width: 480px) {
  .haiii-cart-hero .haiii-hero-h {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.1;
  }
  .haiii-cart-hero .haiii-lead {
    font-size: .9375rem;
    line-height: 1.65;
  }
  .haiii-cart-hero .haiii-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .haiii-cart-hero .haiii-button {
    width: 100%;
    min-height: 48px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* â”€â”€ 4. CART STRIP (3-up notes) â”€â”€ */
.haiii-cart-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(12px, 3vw, 32px);
  padding: clamp(16px, 4vw, 40px) clamp(20px, 5vw, 80px);
}

@media (max-width: 600px) {
  .haiii-cart-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .haiii-cart-note {
    padding-left: 14px;
    border-left: 3px solid #00c394;
  }
  .haiii-cart-note h2 {
    font-size: 1.1rem;
  }
}

/* â”€â”€ 5. CART GRID (items + aside) â”€â”€ */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(16px, 4vw, 48px) clamp(20px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 1024px) {
  .cart-grid {
    grid-template-columns: 1fr minmax(240px, 280px);
  }
}

@media (max-width: 768px) {
  .cart-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cart-aside {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 480px) {
  .cart-grid {
    padding: 16px;
    gap: 24px;
  }
}

/* â”€â”€ 6. CART LINE ITEMS â”€â”€ */
.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  align-items: start;
}

@media (max-width: 600px) {
  .cart-line {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }
  .line-right {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
  }
  .line-thumb {
    width: 80px !important;
    height: 80px !important;
  }
  .line-meta {
    font-size: .8125rem;
  }
}

@media (max-width: 375px) {
  .cart-line {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }
  .line-thumb {
    width: 64px !important;
    height: 64px !important;
  }
}

/* â”€â”€ 7. QUANTITY CONTROLS: 44px touch targets â”€â”€ */
.qty button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty input {
  min-height: 44px;
  min-width: 52px;
  text-align: center;
}
.line-remove {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* â”€â”€ 8. CART BAR (sticky bottom) â”€â”€ */
.cart-bar {
  padding: clamp(10px, 2vw, 16px) clamp(20px, 5vw, 80px);
}

@media (max-width: 600px) {
  .cart-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
  }
  .cart-bar-total {
    flex: 1 1 auto;
  }
  .cart-bar .haiii-button {
    flex: 0 0 auto;
    min-height: 48px;
    min-width: 140px;
    text-align: center;
  }
}

@media (max-width: 375px) {
  .cart-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-bar .haiii-button {
    width: 100%;
    min-height: 52px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
  }
}

/* â”€â”€ 9. XSELL â€” hide fake inventory, surface commission CTA â”€â”€ */
.xsell .xcard:not(:last-child) {
  display: none;
}
.xsell .xcard:last-child {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
}
.xsell .xsell-grid {
  justify-items: center;
}
.xsell {
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 80px);
}

@media (max-width: 480px) {
  .xsell {
    padding: 32px 16px;
  }
  .xsell .xcard:last-child {
    max-width: 100%;
  }
}

/* â”€â”€ 10. HAIII BUTTON: global touch target â”€â”€ */
.haiii-button {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* â”€â”€ 11. CHECKOUT â”€â”€ */
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
  min-height: 44px;
  font-size: 1rem;
}

#place_order,
.woocommerce-checkout a.button,
.woocommerce-checkout button.button {
  min-height: 52px;
  font-size: 1rem;
}

@media (max-width: 960px) {
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    float: none;
    width: 100%;
    margin: 0 0 24px;
    clear: both;
  }
}

@media (max-width: 768px) {
  .woocommerce-checkout #payment .payment_methods {
    padding: 16px;
  }
  #place_order {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .woocommerce-checkout .form-row {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 12px;
  }
}

/* â”€â”€ 12. POLICY PAGES â”€â”€ */
.entry-content,
.page-content,
.woocommerce-privacy-policy-content {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .entry-content,
  .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* â”€â”€ 13. T&amp;C GRID â”€â”€ */
@media (max-width: 768px) {
  .haiii-terms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .haiii-terms-grid {
    padding: 0 16px;
  }
  .haiii-terms-card {
    padding: 20px;
  }
}

/* â”€â”€ 14. WIDE SCREENS (1440px+) â”€â”€ */
@media (min-width: 1440px) {
  .haiii-cart-hero,
  .haiii-cart-strip,
  .haiii-cart,
  .xsell {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1920px) {
  .haiii-cart-hero,
  .haiii-cart-strip,
  .haiii-cart,
  .xsell {
    max-width: 1600px;
  }
}

