/* EC page – Apple-inspired layout */
.ec-page {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    color: #1d1d1f;
    background-color: #fff;
    line-height: 1.6;
}

.ec-page * {
    font-size: inherit;
}

.ec-inner {
    width: min(1200px, 92vw);
    margin-left: auto;
    margin-right: auto;
}

.ec-head {
    padding: 2rem 0 3rem;
    background-color: #fff;
}

.ec-head #breadcrumb {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* Hero */
.ec-hero {
    padding: 2rem 0 4rem;
    background-color: #fff;
    text-align: center;
}

.ec-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

.ec-hero__lead {
    font-size: clamp(1.6rem, 2vw, 2rem);
    line-height: 1.7;
    color: #1d1d1f;
    max-width: 52em;
    margin: 0 auto;
}

/* Products table */
.ec-products {
    padding: 2rem 0 5rem;
    background-color: #fff;
}

.ec-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.6rem;
    color: #1d1d1f;
}

.ec-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #1d1d1f;
    border-bottom: 1px solid #d2d2d7;
    white-space: nowrap;
}

.ec-table thead th i {
    margin-right: 0.35em;
}

.ec-table tbody td {
    padding: 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #d2d2d7;
    color: #1d1d1f;
}

.ec-table__empty {
    text-align: center;
    padding: 3rem 1.25rem !important;
}

/* Color Me cart button overrides */
.ec-page .cartjs_product_table {
    display: none;
}

.ec-page tr.cartjs_sales_price,
.ec-page tr.cartjs_option {
    display: none;
}

.ec-page .cartjs_box {
    padding: 0 !important;
    margin: 0 !important;
}

.ec-product_cart {
    display: grid;
    gap: 0.8rem;
}

.ec-cart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ec-qty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.ec-qty__label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
}

.ec-qty__input {
    width: 5.6rem;
    min-height: 4.4rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 1.6rem;
    color: #1d1d1f;
    text-align: center;
    background-color: #fff;
}

.ec-cart-action {
    flex: 1 1 auto;
    min-width: 14rem;
}

.ec-page .ec-product_cart_btns {
    width: 100%;
}

.ec-page .cartjs_cart_in {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 4.4rem;
    padding: 0.65rem 1.5rem;
    background-color: #BC6499;
    border-radius: 980px;
    position: relative;
    transition: opacity 0.2s;
}

.ec-page .cartjs_cart_in:hover {
    opacity: 0.85;
}

.ec-page .cartjs_cart_in::after {
    display: none;
}

.ec-page .cartjs_cart_in .fa-cart-shopping {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
}

.ec-page .cartjs_cart_in [type="submit"] {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    height: auto !important;
    font-size: 1.6rem !important;
    color: #fff !important;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif !important;
    font-weight: 600;
    line-height: 1.2;
    user-select: none;
    cursor: pointer;
}

.ec-cart-fallback,
.ec-cart-fallback:visited {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 4.4rem;
    padding: 0.65rem 1.5rem;
    border-radius: 980px;
    background-color: #BC6499;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

.ec-cart-fallback .fa-cart-shopping {
    font-size: 1.4rem;
    line-height: 1;
}

.ec-cart-fallback-note {
    display: none;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #1d1d1f;
}

.ec-product_cart.is-cart-fallback .ec-cart-row {
    display: none;
}

.ec-product_cart.is-cart-fallback .ec-cart-fallback,
.ec-product_cart.is-cart-fallback .ec-cart-fallback-note {
    display: flex;
}

.ec-product_cart.is-cart-fallback .ec-cart-fallback-note {
    display: block;
}

.ec-cart-fallback:hover {
    opacity: 0.85;
}

/* Flow section */
.ec-flow {
    padding: 5rem 0;
    background-color: #f5f5f7;
}

.ec-section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 3rem;
    text-align: center;
}

.ec-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2.5rem;
}

.ec-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ec-step__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #d2d2d7;
}

.ec-step__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.ec-step__body p {
    color: #1d1d1f;
    line-height: 1.7;
}

/* Notes section */
.ec-notes {
    padding: 5rem 0 6rem;
    background-color: #fff;
}

.ec-notes__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.ec-notes__list li {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #1d1d1f;
    padding-left: 0;
}

.ec-notes__list a {
    color: #0066cc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ec-notes__list a:hover {
    text-decoration: none;
}

/* Responsive: card layout for table */
@media (max-width: 767px) {
    .ec-head {
        padding-bottom: 2.5rem;
    }

    .ec-hero {
        padding: 2.5rem 0 3rem;
        text-align: left;
    }

    .ec-table thead {
        display: none;
    }

    .ec-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #d2d2d7;
        border-radius: 12px;
        overflow: hidden;
    }

    .ec-table tbody td {
        display: block;
        border-bottom: 1px solid #d2d2d7;
        padding: 1.6rem 1.25rem;
    }

    .ec-table tbody td:last-child {
        border-bottom: none;
    }

    .ec-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        margin-bottom: 0.35rem;
        color: #1d1d1f;
    }

    .ec-table__empty {
        display: block;
        border: none;
    }

    .ec-step {
        flex-direction: column;
        gap: 1rem;
    }

    .ec-flow,
    .ec-notes {
        padding: 3.5rem 0;
    }

    .ec-cart-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ec-qty {
        justify-content: space-between;
    }

    .ec-qty__input {
        width: 7rem;
    }
}
