/* ============================================================
   inline-checkout/template-6 — Muji / Zen Minimal
   Translated from public/inline-checkout-styles/tpl-6.css onto
   template-2's actual Blade DOM.

   Aesthetic: pure white canvas + khaki-gold accent + hairline
   borders + light-weight sans typography + square corners +
   underline-only inputs + minimal chrome (no shadows).

   Scope: ONLY inline-checkout's own classes.
   ============================================================ */

/* ============================================================
   SHELL — single column white canvas, no shadow
   ============================================================ */
.ic {
    --t6-bg:           #FFFFFF;
    --t6-text:         #1A1A1A;
    --t6-muted:        #888888;
    --t6-faint:        #AAAAAA;
    --t6-fainter:      #BBBBBB;
    --t6-accent:       #B89B6A;
    --t6-accent-rgb:   184, 155, 106;
    --t6-border:       #EBEBEB;
    --t6-input-border: #DCDCDC;
    --t6-card-bg:      #F8F8F6;
    --t6-error:        #CC4444;

    --bs-primary:       var(--t6-accent);
    --bs-primary-rgb:   var(--t6-accent-rgb);
    --bs-body-color:    var(--t6-text);
    --bs-border-color:  var(--t6-border);
    --bs-light-primary: rgba(184, 155, 106, 0.08);

    --t6-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    max-width: 540px;
    margin: 32px auto;
    padding: 36px 32px;
    background: var(--t6-bg);
    border: 0;
    box-shadow: none;
    border-radius: 0;
    color: var(--t6-text);
    font-family: var(--t6-sans);
    font-weight: 400;
    scroll-margin-top: 80px;
    position: relative;
}

/* ============================================================
   HEAD — centered, tiny eyebrow caps, thin underline border
   ============================================================ */
.ic .ic-head {
    text-align: center;
    padding: 0 0 28px;
    margin: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--t6-border);
    border-radius: 0;
    display: block;
}
.ic .ic-head::after { display: none; }
.ic .ic-head-eyebrow {
    display: block;
    font-family: var(--t6-sans);
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--t6-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-style: normal;
    background: transparent;
    padding: 0;
    margin: 0 0 10px;
}
.ic .ic-head-title {
    font-family: var(--t6-sans);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--t6-text);
    letter-spacing: -0.02em;
    text-transform: none;
    font-style: normal;
    margin: 0 0 6px;
}
.ic .ic-head-sub {
    font-family: var(--t6-sans);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--t6-faint);
    font-style: normal;
    margin: 0;
    letter-spacing: 0;
}

/* ============================================================
   ALERT
   ============================================================ */
.ic .ic-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    margin: 16px 0;
    background: rgba(204, 68, 68, 0.06);
    border: 0;
    border-left: 3px solid var(--t6-error);
    border-radius: 0;
    color: var(--t6-error);
    font-family: var(--t6-sans);
    font-size: 0.82rem;
}
.ic .ic-alert svg { flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   ROW / LAYOUT — collapse Bootstrap row to single column
   Muji aesthetic = single vertical stack, no fold/columns.
   ============================================================ */
.ic .row.g-4 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
    display: block;
}
.ic .row.g-4 > [class*="col-"] {
    padding: 0;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

/* ============================================================
   SECTIONS (.ic-card) — hairline divider between, no chrome
   ============================================================ */
.ic .ic-card {
    padding: 24px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--t6-border);
    border-radius: 0;
    margin: 0;
}
.ic .ic-card:last-of-type { border-bottom: 0; padding-bottom: 0; }
.ic .row > [class*="col-"]:first-child > .ic-card:first-child { padding-top: 24px; }

.ic .ic-card-head {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}
.ic .ic-card-num {
    width: auto;
    height: auto;
    background: transparent;
    color: var(--t6-faint);
    font-family: var(--t6-sans);
    font-size: 0.62rem;
    font-weight: 400;
    padding: 0;
    border: 0;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-right: 6px;
}
.ic .ic-card-num::after { content: ". "; }
.ic .ic-card-title {
    font-family: var(--t6-sans);
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--t6-faint);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}
.ic .ic-bundle-chip {
    font-family: var(--t6-sans);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--t6-muted);
    background: var(--t6-card-bg);
    border: 0;
    border-radius: 0;
    padding: 2px 8px;
    margin-left: 8px;
    letter-spacing: 0.06em;
    text-transform: none;
}

/* ============================================================
   VARIATION ROWS — borderless, 3px LEFT accent on active
   ============================================================ */
.ic .ic-variation-row,
.ic .ic-summary-row {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 12px 10px;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin: 0;
}
.ic .ic-variation-row.active,
.ic .ic-summary-row.active {
    border-left-color: var(--t6-accent);
    background: var(--t6-card-bg);
}
.ic .ic-variation-row:hover { background: var(--t6-card-bg); }
.ic .ic-variation-row.is-disabled { opacity: 0.4; cursor: not-allowed; }

.ic .ic-single-axis-rows {
    display: flex;
    flex-direction: column;
}
.ic .ic-single-axis-rows .ic-variation-row {
    border-bottom: 1px solid var(--t6-border);
}
.ic .ic-single-axis-rows .ic-variation-row:last-child {
    border-bottom: 0;
}

.ic .ic-variation-thumb,
.ic .add-to-products-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: var(--t6-card-bg);
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ic .ic-variation-thumb img,
.ic .add-to-products-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.ic .ic-variation-info,
.ic .add-to-products-infor { min-width: 0; }

.ic .ic-variation-name,
.ic .products-title {
    font-family: var(--t6-sans);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--t6-text);
    margin: 0 0 4px;
    line-height: 1.4;
    letter-spacing: 0;
}
.ic .ic-variation-combo-title {
    display: block;
    font-family: var(--t6-sans);
    font-size: 0.78rem;
    color: var(--t6-muted);
    margin-top: 2px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
}

/* Prices — accent-color current, muted strike-through old, plain discount */
.ic .ic-variation-prices,
.ic .products-navs {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 6px;
}
.ic .products-current-price,
.ic .ic-price-new {
    font-family: var(--t6-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--t6-accent);
    letter-spacing: -0.01em;
}
.ic .products-old-price,
.ic .ic-price-old {
    font-family: var(--t6-sans);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--t6-fainter);
    text-decoration: line-through;
}
.ic .products-discount-amount,
.ic .ic-price-discount {
    display: inline-block;
    font-family: var(--t6-sans);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--t6-muted);
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-style: normal;
    letter-spacing: 0;
}
.ic .products-save-amount,
.ic .ic-price-save {
    display: block;
    font-family: var(--t6-sans);
    font-size: 0.72rem;
    color: var(--t6-muted);
    font-style: normal;
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0;
}

/* Qty stepper — square hairline */
.ic .products-quantity-table,
.ic .ic-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--t6-input-border);
    border-radius: 0;
    overflow: hidden;
    margin-top: 8px;
    padding: 0;
}
.ic .ic-qty-btn,
.ic .procuts-less,
.ic .procuts-up {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--t6-text);
    font-family: var(--t6-sans);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    transition: background 0.1s ease;
}
.ic .ic-qty-btn:hover,
.ic .procuts-less:hover,
.ic .procuts-up:hover { background: var(--t6-card-bg); }
.ic .quantities,
.ic .ic-qty-input {
    width: 32px;
    height: 28px;
    text-align: center;
    background: transparent;
    color: var(--t6-text);
    border: 0;
    border-left: 1px solid var(--t6-input-border);
    border-right: 1px solid var(--t6-input-border);
    font-family: var(--t6-sans);
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0;
    -moz-appearance: textfield;
}
.ic .quantities::-webkit-inner-spin-button,
.ic .ic-qty-input::-webkit-inner-spin-button,
.ic .quantities::-webkit-outer-spin-button,
.ic .ic-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Active row check icon — square w/ hairline */
.ic .ic-variation-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: transparent;
    border: 1px solid var(--t6-border);
    border-radius: 0;
    align-self: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ic .ic-variation-row.active .ic-variation-check,
.ic .ic-summary-row.active .ic-variation-check {
    background: var(--t6-accent);
    border-color: var(--t6-accent);
    color: #FFFFFF;
}

/* Hide native radio */
.ic .single-selection { position: absolute; opacity: 0; pointer-events: none; }

/* Picker wrapper (multi/bundle) — hairline-divided, top border only */
.ic .ic-picker {
    padding-top: 14px;
    margin-top: 8px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--t6-border);
    border-radius: 0;
}

/* ============================================================
   FIELDS — underline-only inputs, no surrounding box
   ============================================================ */
.ic .ic-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ic .ic-field { display: flex; flex-direction: column; }
.ic .ic-label {
    font-family: var(--t6-sans);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--t6-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-style: normal;
}
.ic .ic-required {
    color: var(--t6-accent);
    font-weight: 600;
    font-style: normal;
    margin-left: 2px;
}
.ic .ic-optional {
    color: var(--t6-fainter);
    font-weight: 400;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

/* Underline-only inputs — design signature */
.ic input.ic-input,
.ic textarea.ic-input,
.ic .ic-input {
    border: 0;
    border-bottom: 1px solid var(--t6-input-border);
    background: transparent;
    border-radius: 0;
    padding: 8px 0;
    font-family: var(--t6-sans);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--t6-text);
    width: 100%;
    box-sizing: border-box;
    transition: border-bottom-color 0.15s ease;
    box-shadow: none;
    line-height: 1.4;
}
.ic textarea.ic-input { min-height: 64px; resize: vertical; padding: 8px 0; }
.ic input.ic-input:focus,
.ic textarea.ic-input:focus,
.ic .ic-input:focus {
    border-bottom-color: var(--t6-accent);
    outline: none;
    box-shadow: none;
    background: transparent;
}
.ic .ic-input::placeholder {
    color: #CCCCCC;
    font-weight: 400;
    font-style: normal;
    opacity: 1;
}
.ic input.ic-input.is-invalid,
.ic textarea.ic-input.is-invalid { border-bottom-color: var(--t6-error); }
.ic .invalid-feedback.ic-error {
    font-family: var(--t6-sans);
    font-size: 0.72rem;
    color: var(--t6-error);
    margin-top: 4px;
    font-style: normal;
    letter-spacing: 0;
}

/* ============================================================
   SHIPPING & PAYMENT — square radios, hairline divider between
   ============================================================ */
.ic .ic-shipping,
.ic .ic-payment {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ic .ic-shipping-option,
.ic .ic-payment-option {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--t6-border);
    border-radius: 0;
    cursor: pointer;
    margin: 0;
    font-family: var(--t6-sans);
    font-size: 0.88rem;
    transition: color 0.15s ease;
}
.ic .ic-shipping-option:last-child,
.ic .ic-payment-option:last-child { border-bottom: 0; }
.ic .ic-shipping-option input,
.ic .ic-payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ic .ic-shipping-radio,
.ic .ic-payment-radio {
    width: 14px;
    height: 14px;
    border: 1px solid var(--t6-input-border);
    background: transparent;
    border-radius: 0;
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ic .ic-shipping-option:has(input:checked) .ic-shipping-radio,
.ic .ic-payment-option:has(input:checked) .ic-payment-radio {
    border-color: var(--t6-accent);
    background: var(--t6-accent);
}
.ic .ic-shipping-option:has(input:checked) .ic-shipping-radio::after,
.ic .ic-payment-option:has(input:checked) .ic-payment-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: #FFFFFF;
    border-radius: 0;
}
.ic .ic-shipping-title,
.ic .ic-payment-option .ic-payment-title {
    font-family: var(--t6-sans);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--t6-text);
    letter-spacing: 0;
}
.ic .ic-shipping-option:has(input:checked) .ic-shipping-title,
.ic .ic-payment-option:has(input:checked) .ic-payment-title {
    color: var(--t6-accent);
}
.ic .ic-shipping-option .ic-shipping-charge,
.ic .ic-shipping-option .shipping-cost-amount {
    font-family: var(--t6-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--t6-muted);
    letter-spacing: 0;
}
.ic .ic-shipping-option:has(input:checked) .ic-shipping-charge,
.ic .ic-shipping-option:has(input:checked) .shipping-cost-amount {
    color: var(--t6-accent);
}
.ic .ic-payment-option .ic-payment-sub {
    grid-column: 2 / -1;
    font-family: var(--t6-sans);
    font-size: 0.78rem;
    color: var(--t6-muted);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
}
.ic .ic-payment-option .ic-payment-logo {
    max-height: 22px;
    width: auto;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Payment details panel — minimal indent, no chrome */
.ic .ic-payment-details,
.ic .payment_box {
    padding: 10px 0 4px 26px;
    background: transparent;
    border: 0;
    border-radius: 0;
    margin: 0;
    font-family: var(--t6-sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--t6-muted);
}
.ic .ic-payment-details .ic-wallet-meta,
.ic .payment_box .ic-wallet-meta {
    margin-bottom: 8px;
}
.ic .ic-payment-details .ic-wallet-meta .small,
.ic .payment_box .ic-wallet-meta .small {
    font-family: var(--t6-sans);
    font-size: 0.78rem;
    color: var(--t6-text);
    line-height: 1.6;
    font-weight: 400;
}
.ic .ic-payment-details .ic-wallet-meta strong,
.ic .payment_box .ic-wallet-meta strong { color: var(--t6-text); font-weight: 600; }
.ic .ic-payment-details .ic-input-label,
.ic .payment_box .ic-input-label {
    display: block;
    font-family: var(--t6-sans);
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--t6-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 8px 0 4px;
}
.ic .ic-payment-details .text-danger,
.ic .payment_box .text-danger { color: var(--t6-accent); }

/* ============================================================
   COUPON — flex row, underline-button apply
   ============================================================ */
.ic .ic-coupon {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ic .ic-coupon-field {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.ic .ic-coupon-field input.ic-input,
.ic .ic-coupon-field input {
    flex: 1 1 auto;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    font-style: normal;
}
.ic .ic-coupon-apply,
.ic [data-action="apply-coupon"] {
    flex-shrink: 0;
    background: transparent;
    color: var(--t6-muted);
    border: 0;
    border-bottom: 1px solid var(--t6-input-border);
    border-radius: 0;
    padding: 8px 0 8px 14px;
    font-family: var(--t6-sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 400;
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
    white-space: nowrap;
}
.ic .ic-coupon-apply:hover,
.ic [data-action="apply-coupon"]:hover {
    color: var(--t6-accent);
    border-bottom-color: var(--t6-accent);
}
.ic .ic-coupon-status,
.ic .ic-coupon-message {
    margin: 0;
    font-family: var(--t6-sans);
    font-size: 0.78rem;
    color: var(--t6-muted);
    font-weight: 400;
    letter-spacing: 0;
}
.ic .ic-coupon-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    background: var(--t6-card-bg);
    color: var(--t6-accent);
    border-radius: 0;
    font-weight: 400;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
}
.ic .ic-coupon-remove {
    margin-left: 6px;
    background: transparent;
    border: 0;
    color: var(--t6-faint);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}
.ic .ic-coupon-remove:hover { color: var(--t6-error); }

/* ============================================================
   TOTALS — hairline rows, larger grand
   ============================================================ */
.ic .ic-summary { margin: 0; }
.ic .products-amount-wrapper,
.ic .ic-totals {
    margin: 0 0 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.ic .products-amount-raw,
.ic .ic-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    font-family: var(--t6-sans);
    font-size: 0.85rem;
    color: var(--t6-muted);
    border-bottom: 1px solid var(--t6-border);
}
.ic .products-amount-raw:last-child,
.ic .ic-total-row:last-child { border-bottom: 0; }
.ic .products-amount-raw .ttle,
.ic .ic-total-label {
    color: var(--t6-muted);
    font-weight: 400;
    letter-spacing: 0;
}
.ic .products-amount-raw .amount,
.ic .ic-total-value {
    color: var(--t6-muted);
    font-weight: 400;
    text-align: right;
}
.ic .products-amount-raw .amount .products-current-price,
.ic .products-amount-raw .amount .ic-total-new {
    font-size: 0.85rem;
    color: var(--t6-text);
    font-weight: 400;
}
.ic .products-amount-raw .amount .products-old-price,
.ic .products-amount-raw .amount .ic-total-old {
    font-size: 0.76rem;
    margin-right: 6px;
    color: var(--t6-fainter);
}

.ic .products-total-amount,
.ic .ic-total-grand {
    margin-top: 0;
    padding-top: 10px;
    border-top: 0;
    border-bottom: 0;
    color: var(--t6-text);
    font-size: 1.05rem;
    font-weight: 500;
}
.ic .products-total-amount .ttle,
.ic .ic-total-grand .ic-total-label {
    color: var(--t6-text);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    font-size: 1.05rem;
}
.ic .products-total-amount .amount .products-current-price,
.ic .products-total-amount .amount .ic-total-new,
.ic .ic-total-grand .ic-total-value {
    color: var(--t6-text);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ic .ic-discount-code-chip:not(:empty) {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: var(--t6-card-bg);
    color: var(--t6-accent);
    border-radius: 0;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    font-weight: 400;
}

/* ============================================================
   SUBMIT BUTTON — solid black, gold on hover
   ============================================================ */
.ic .checkout-btn,
.ic .ic-submit {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 16px;
    background: #1A1A1A;
    color: #FFFFFF;
    border: 0;
    border-radius: 0;
    font-family: var(--t6-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
    box-shadow: none;
}
.ic .checkout-btn:hover,
.ic .ic-submit:hover { background: var(--t6-accent); }
.ic .checkout-btn svg,
.ic .ic-submit svg {
    width: 14px;
    height: 14px;
    color: #FFFFFF;
    vertical-align: middle;
    margin-right: 6px;
}
.ic .checkout-btn-text { line-height: 1.2; }
.ic .checkout-btn-value {
    font-weight: 600;
    color: inherit;
}

/* ============================================================
   TRUST BADGES — center, faint
   ============================================================ */
.ic .ic-trust {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: var(--t6-sans);
    font-size: 0.7rem;
    color: var(--t6-faint);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}
.ic .ic-trust span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ic .ic-trust svg {
    width: 12px;
    height: 12px;
    color: var(--t6-accent);
}

/* ============================================================
   COUPON OVERSHOOT — hide grand-total strike-through
   ============================================================ */
.products-total-amount .amount .products-old-price,
.products-total-amount .amount .ic-total-old,
.ic-total-grand .amount .products-old-price,
.ic-total-grand .amount .ic-total-old { display: none !important; }

/* ============================================================
   MOBILE — structural distinct treatment per rule
   - Tighter padding
   - Card-head turns vertical
   - Coupon-field stacks
   - Submit becomes left-aligned (vs centered desktop)
   - Variation row drops to 2-col w/ check on own line
   - Qty stepper full-width
   ============================================================ */
@media (max-width: 767.98px) {
    .ic {
        padding: 24px 20px;
        margin: 16px auto;
    }
    .ic .ic-head { padding: 0 0 20px; }
    .ic .ic-head-title { font-size: 1.25rem; }
    .ic .ic-head-sub { font-size: 0.74rem; }

    .ic .ic-card { padding: 18px 0; }

    /* Mobile-distinct: card-head vertical */
    .ic .ic-card-head { flex-direction: column; align-items: flex-start; gap: 2px; }
    .ic .ic-card-num { margin-right: 0; }

    /* Mobile-distinct: variation row 2-col w/ check own row */
    .ic .ic-variation-row,
    .ic .ic-summary-row {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 10px 8px;
    }
    .ic .ic-variation-thumb,
    .ic .add-to-products-image { width: 60px; height: 60px; }
    .ic .ic-variation-check {
        grid-column: 2;
        justify-self: end;
        margin-top: -6px;
    }
    .ic .ic-variation-name,
    .ic .products-title { font-size: 0.88rem; }

    /* Mobile-distinct: coupon stacks vertically */
    .ic .ic-coupon-field { flex-direction: column; gap: 8px; align-items: stretch; }
    .ic .ic-coupon-apply,
    .ic [data-action="apply-coupon"] {
        padding: 10px 0;
        text-align: left;
        width: 100%;
    }

    /* Mobile-distinct: submit text-align left + smaller letter-spacing */
    .ic .checkout-btn,
    .ic .ic-submit {
        text-align: left;
        padding-left: 18px;
        padding-right: 18px;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .ic .ic-fields { gap: 14px; }
    .ic .ic-label { font-size: 0.66rem; }

    .ic .products-total-amount,
    .ic .ic-total-grand { font-size: 0.95rem; }
    .ic .products-total-amount .amount .products-current-price,
    .ic .products-total-amount .amount .ic-total-new,
    .ic .ic-total-grand .ic-total-value { font-size: 0.95rem; }

    .ic .ic-trust { gap: 14px; font-size: 0.66rem; }
}
