/* membership.css */

.membership-page {
    background: #f6f7f9;
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: clamp(48px, 6vw, 84px);
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    color: #111827;
}

/* Breadcrumb */
.membership-breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
}

.membership-breadcrumb__inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.membership-breadcrumb a {
    color: #374151;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.membership-breadcrumb a:hover {
    color: var(--primary-color, #e62e05);
}

.membership-breadcrumb__sep {
    color: #9ca3af;
}

/* 3-Column Grid */
.membership-grid {
    max-width: 1260px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 36px) 20px 0;
    display: grid;
    grid-template-columns: clamp(260px, 26vw, 340px) 1fr clamp(290px, 28vw, 370px);
    gap: clamp(18px, 2.2vw, 28px);
    align-items: start;
}

/* Left Column */
.membership-left {
    position: sticky;
    top: 96px;
}

.membership-visual-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: auto;
    background: #e8eaed;
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.25);
}

.membership-visual-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: #e8eaed;
    display: block;
    transition: transform 0.5s ease;
}

.membership-visual-card:hover img {
    transform: scale(1.02);
}

.membership-visual-overlay {
    position: static;
    background: #111827;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.membership-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.membership-pill i {
    color: var(--primary-color, #e62e05);
}

.membership-discount-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.membership-visual-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.membership-visual-title span {
    color: #ffffff;
}

#cfgVisualTitlePrefix {
    color: var(--primary-color, #e62e05);
}

.membership-visual-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #e5e7eb;
}

.membership-visual-price .amt {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
}

.membership-visual-price .suffix {
    font-size: 0.82rem;
    color: #d1d5db;
}

/* Trust Grid */
.membership-trust-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.membership-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.membership-trust-item i {
    color: var(--primary-color, #e62e05);
    font-size: 1rem;
    margin-top: 2px;
}

.membership-trust-item .ti-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
}

.membership-trust-item .ti-sub {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 2px;
}

/* Middle Column */
.membership-middle {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: clamp(22px, 3vw, 32px);
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.04);
}

.membership-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff2ef;
    border: 1px solid rgba(230, 46, 5, 0.22);
    color: var(--primary-color, #e62e05);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.membership-title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.membership-title .brand-red {
    color: var(--primary-color, #e62e05);
}

.membership-subtitle {
    margin: 0 0 18px;
    font-size: 1.02rem;
    color: #4b5563;
    line-height: 1.6;
}

.membership-desc {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
}

.membership-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.highlight-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
    border-color: rgba(230, 46, 5, 0.22);
}

.highlight-box__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: #fff1ee;
    color: var(--primary-color, #e62e05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.highlight-box h3 {
    margin: 0 0 6px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.highlight-box p {
    margin: 0;
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.55;
}

.membership-section__heading {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.membership-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 11px;
}

.membership-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: #374151;
    line-height: 1.5;
}

.membership-features i {
    color: #16a34a;
    margin-top: 3px;
}

/* Accordion */
.membership-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    background: #f9fafb;
}

.membership-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    list-style: none;
}

.membership-accordion summary::-webkit-details-marker {
    display: none;
}

.membership-accordion[open] summary i {
    transform: rotate(180deg);
}

.membership-accordion summary i {
    transition: transform 0.2s ease;
    color: #6b7280;
}

.membership-accordion__body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.6;
}

.membership-accordion__body ol {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

/* Right Column: Purchase Box */
.membership-right {
    position: sticky;
    top: 96px;
}

.membership-buy-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 32px -12px rgba(17, 24, 39, 0.12);
}

.membership-buy-header {
    padding: 22px 22px 18px;
    background: #fff8f6;
    border-bottom: 1px solid rgba(230, 46, 5, 0.1);
}

.membership-buy-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.old-price {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: line-through;
}

.membership-buy-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.membership-buy-price {
    font-size: 2.35rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.membership-buy-tax {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.membership-buy-validity {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #4b5563;
    font-weight: 500;
}

.membership-buy-body {
    padding: 20px 22px 22px;
}

.membership-summary-list {
    display: grid;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eef0f3;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.86rem;
    color: #6b7280;
}

.summary-row strong {
    color: #111827;
    font-weight: 700;
    text-align: right;
}

.summary-row strong.text-success {
    color: #16a34a;
}

.membership-cart-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.84rem;
    font-weight: 600;
}

.membership-cart-status[hidden] {
    display: none;
}

.membership-cart-status a {
    color: #15803d;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 4px;
}

.membership-actions {
    display: grid;
    gap: 10px;
}

.membership-actions[hidden] {
    display: none;
}

.membership-active-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
}

.membership-active-box[hidden] {
    display: none;
}

.membership-active-box__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.membership-active-box__desc {
    margin: 10px 0 14px;
    font-size: 0.82rem;
    color: #166534;
    line-height: 1.45;
}

.membership-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.membership-countdown__item {
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: 10px;
    padding: 10px 4px;
}

.membership-countdown__item span {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.membership-countdown__item small {
    display: block;
    margin-top: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #15803d;
}

.membership-active-box__expiry {
    margin: 10px 0 0;
    font-size: 0.78rem;
    color: #15803d;
}

.btn-add-cart,
.btn-buy-now {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-add-cart {
    background: #ffffff;
    color: #111827;
    border: 2px solid #111827;
}

.btn-add-cart:hover {
    background: #111827;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-add-cart.is-in-cart {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #15803d;
}

.btn-buy-now {
    background: var(--primary-color, #e62e05);
    color: #ffffff;
    border: 2px solid var(--primary-color, #e62e05);
    box-shadow: 0 12px 22px rgba(230, 46, 5, 0.2);
}

.btn-buy-now:hover {
    background: var(--primary-color-hover, #cc2600);
    border-color: var(--primary-color-hover, #cc2600);
    transform: translateY(-1px);
}

.membership-buy-security {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
    display: grid;
    gap: 6px;
    font-size: 0.78rem;
    color: #6b7280;
}

.membership-buy-security i {
    color: #16a34a;
    margin-right: 6px;
}

/* Toast */
.membership-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111827;
    color: #ffffff;
    padding: 13px 18px;
    border-radius: 14px;
    box-shadow: 0 18px 30px rgba(17, 24, 39, 0.25);
    font-size: 0.88rem;
    font-weight: 600;
}

.membership-toast[hidden] {
    display: none;
}

.membership-toast i {
    color: #4ade80;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1060px) {
    .membership-grid {
        grid-template-columns: 1fr;
    }

    .membership-left {
        order: 1;
    }

    .membership-right {
        order: 2;
    }

    .membership-middle {
        order: 3;
    }

    .membership-left,
    .membership-right {
        position: static;
    }

    .membership-visual-card {
        aspect-ratio: auto;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .membership-visual-card {
        max-width: 100%;
        border-radius: 18px;
    }

    .membership-visual-overlay {
        padding: 14px;
    }

    .membership-visual-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .membership-visual-price .amt {
        font-size: 1.5rem;
    }

    .membership-highlights {
        grid-template-columns: 1fr;
    }
}