/* 
 * ProDerma Skin Club - Premium Membership Styles
 * Based on Figma Specifications
 */

:root {
    --pd-skin-club-primary: #AFC4A2;
    --pd-skin-club-secondary: #FDF6EE;
    --pd-skin-club-tan: #F4DFCD;
    --pd-skin-club-dark: #1E1E1E;
    --pd-skin-club-grey: #5A5A5A;
}

.pd-skin-club-page {
    font-family: 'Open Sans', sans-serif;
    color: var(--pd-skin-club-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #FFFBF6;
}

/* Helper Classes */
.pd-section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 120px;
    position: relative;
}

.pd-h1 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1;
    margin-bottom: 24px;
}

.pd-h2 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.12;
    margin-bottom: 30px;
}

.pd-body-l {
    font-size: 17px;
    line-height: 1.35;
}

.pd-btn-sage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: #AFC4A2;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px; /* More rectangular */
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Single line */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-btn-sage:hover {
    background: #9ab38c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175, 196, 162, 0.3);
}

/* 1. Breadcrumbs */
.pd-breadcrumbs {
    padding: 20px 120px 0;
    font-size: 12px;
    color: #A0A0A0;
}

/* 2. Hero Section */
.pd-skin-club-page .pd-hero-wrapper {
    background: #FFFBF6;
    margin-top: 10px;
}

.pd-skin-club-page .pd-hero-desktop {
    display: flex;
    align-items: center;
    min-height: 500px;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #FDF6EE;
}

.pd-skin-club-page .pd-hero-card {
    background: rgba(253, 246, 238, 0.98) !important;
    padding: 35px 50px !important;
    border-radius: 0 16px 16px 0 !important;
    width: 420px !important; /* Fixed width to be smaller */
    box-shadow: 15px 0 40px rgba(0,0,0,0.03) !important;
    position: relative;
    z-index: 10;
    margin-right: auto;
}

.pd-skin-club-page .pd-hero-card .pd-h1 {
    font-size: 36px !important;
    line-height: 1.1;
    margin-bottom: 15px;
}

.pd-skin-club-page .pd-hero-card .pd-body-l {
    font-size: 15px !important;
    margin-bottom: 25px;
}

.pd-hero-mobile {
    display: none;
}

@media (max-width: 1200px) {
    .pd-hero-desktop {
        background-size: cover;
    }
    .pd-hero-card {
        padding-left: 40px !important;
        width: 400px !important;
    }
}

@media (max-width: 768px) {
    .pd-hero-desktop {
        display: none;
    }
    .pd-hero-mobile {
        display: block !important;
        position: relative;
        background: #FFFBF6;
        padding-top: 10px;
    }
    .pd-hero-mobile-img-wrap {
        display: flex;
        justify-content: flex-end;
        padding-right: 0;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 1;
    }
    .pd-hero-mobile-img {
        width: 80% !important;
        max-width: 300px;
        height: auto;
        display: block;
    }
    .pd-hero-mobile-content {
        position: relative;
        z-index: 10;
        padding: 40px 20px 60px !important; /* Force space below image */
        text-align: left;
    }
    .pd-hero-mobile-content .pd-h1 {
        font-size: 30px !important;
        line-height: 1.1;
        margin-bottom: 15px;
    }
}

/* 3. Path Section */
.pd-path-section {
    text-align: center;
    padding: 40px 20px;
}

.pd-path-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pd-path-item {
    flex: 1;
    max-width: 350px;
    text-align: center;
}

.pd-path-tag {
    background: #AFC4A2;
    padding: 4px 12px;
    border-radius: 2px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    display: inline-block;
}

.pd-path-item p {
    font-size: 14px;
    color: #5A5A5A;
}

.pd-path-arrow {
    font-size: 20px;
    color: #6A6A6A;
    margin-top: 5px;
}

/* 4. Membership Plans Section */
.pd-membership-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px 20px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-membership-section h2.pd-h2 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.12;
    text-align: center;
    color: #1E1E1E;
    margin-bottom: 60px;
    max-width: 650px;
}

.pd-plans-grid {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Ensures all cards have the same height */
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.pd-plan-card {
    flex: 1;
    max-width: 380px;
    background: #FDF6EE;
    border: 1px solid #F4DFCD;
    border-radius: 12px;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: auto; /* Allow stretch from grid */
}

.pd-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.pd-plan-card.highlight {
    flex: 1;
    max-width: 400px;
    background: #AFC4A2;
    border: 1px solid #AFC4A2;
    color: #FFFFFF;
    box-shadow: 0 15px 40px rgba(175, 196, 162, 0.25);
    z-index: 2;
}

.pd-plan-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    color: #1E1E1E;
    margin-bottom: 20px;
    min-height: 50px;
    display: block;
}

.pd-plan-card h3 span {
    display: block;
    font-size: 14px;
    color: #5A5A5A;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    margin-top: 5px;
}

.pd-plan-card.highlight h3 {
    color: #FFFFFF;
}

.pd-plan-card.highlight h3 span {
    color: rgba(255, 255, 255, 0.8);
}

.pd-plan-price-box {
    width: 235px;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid #F4DFCD;
    border-radius: 4px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pd-plan-card.highlight .pd-plan-price-box {
    opacity: 0.7;
    border: none;
}

.pd-price-now {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 23px;
    line-height: 1.2;
    color: #1E1E1E;
}

.pd-price-regular {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: #1E1E1E;
    display: block;
    margin-bottom: 20px;
}

.pd-plan-card.highlight .pd-price-regular {
    color: #FFFFFF;
}

.pd-card-separator {
    height: 1px;
    background: #AFC4A2;
    width: 100%;
    margin: 10px 0;
}

.pd-plan-card.highlight .pd-card-separator {
    background: #FDF6EE;
}

.pd-plan-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    flex: 1; /* Take up available space to push footer down */
}

.pd-plan-features li {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.5; /* Improved for multi-line */
    color: #AFC4A2;
    margin-bottom: 12px; /* Increased for breathing room */
    padding-left: 20px;
    position: relative;
}


.pd-plan-card.highlight .pd-plan-features li {
    color: #FDF6EE;
    font-weight: 400;
}

.pd-plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: inherit;
}

.pd-plan-footer-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: #1E1E1E;
    margin: 20px 0;
}

.pd-plan-card.highlight .pd-plan-footer-text {
    color: #FFFFFF;
}

.pd-btn-plan {
    width: 100%;
    max-width: 260px;
    height: 48px;
    background: #F4DFCD;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    color: #1E1E1E;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0; /* Reduced margin since we use flex:1 on list */
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
    text-transform: uppercase;
}

.pd-plan-card.highlight .pd-btn-plan {
    background: #FFFFFF;
    border: none;
}

.pd-btn-plan:hover {
    background: #E8CCB5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 223, 205, 0.3);
    filter: brightness(0.95);
}

/* 5. Skin Credits */
.pd-credits-section {
    padding: 50px 120px;
    text-align: center;
    background: #FCF9F5;
    margin: 20px 0;
}

@media (min-width: 1400px) {
    .pd-credits-section {
        max-width: 1400px;
    }
}

.pd-credits-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pd-credit-box {
    flex: 1;
    background: #FFFFFF;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(175, 196, 162, 0.08);
    border: 1px solid rgba(175, 196, 162, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-credit-box:hover {
    transform: translateY(-5px);
}

.pd-credit-box h4 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

.pd-credit-box p {
    font-size: 14px;
    color: #5A5A5A;
}

/* 6. Comparison Table */
.pd-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    min-width: 800px; /* Force minimum width for horizontal scroll */
}

.pd-comparison-section {
    padding: 30px 120px;
    overflow-x: auto; /* Enable scrolling */
    -webkit-overflow-scrolling: touch;
}

.pd-comparison-table th {
    background: #AFC4A2;
    color: #FFFFFF;
    padding: 15px;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
    border: 1px solid #FFF;
}

.pd-comparison-table td {
    padding: 15px;
    font-size: 13px;
    border: 1px solid #AFC4A2;
    text-align: center;
}

.pd-comparison-table td:first-child {
    text-align: left;
    font-weight: 700;
    color: #FFFFFF;
    background: #AFC4A2 !important;
    border-color: #FFFFFF;
}

.pd-comparison-table th:first-child {
    background: #8FA880; /* Darker sage for the corner */
}

.pd-comparison-table tr:nth-child(even) td:not(:first-child) {
    background: rgba(175, 196, 162, 0.05);
}

.pd-table-price-row td {
    background: #AFC4A2 !important;
    color: #FFFFFF;
    font-weight: 800;
}

.pd-regular-price {
    display: block;
    font-size: 12px;
    text-decoration: line-through;
    font-weight: 400;
}

/* 7. Bottom Sections */
.pd-conditions-section {
    margin: 40px 0;
}

.pd-conditions-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.pd-conditions-list {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-condition-row {
    background: #FDF6EE;
    border-left: 4px solid #AFC4A2;
    padding: 15px 20px;
    border-radius: 4px;
}

.pd-condition-row p {
    margin: 0;
    font-size: 15px;
    color: #1E1E1E;
}

.pd-conditions-image-wrap {
    flex: 1;
}

.pd-conditions-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pd-not-sure-section {
    padding: 60px 20px;
    text-align: center;
    background: #FCF9F5;
    margin-top: 40px;
}

.pd-not-sure-section .pd-h2 {
    margin-bottom: 20px;
}

.pd-not-sure-section .pd-body-l {
    max-width: 600px;
    margin: 0 auto 40px;
}

.pd-not-sure-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* Responsive Overrides */
@media (max-width: 1200px) {
    .pd-section-container, .pd-membership-section, .pd-comparison-section, .pd-breadcrumbs {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 992px) {
    .pd-conditions-layout {
        flex-direction: column;
        gap: 40px;
    }
    .pd-not-sure-section {
        padding: 60px 20px;
        margin-top: 40px;
    }
    .pd-plans-grid, .pd-path-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .pd-plan-card, .pd-path-item {
        max-width: 360px;
        width: 100%;
    }
    .pd-membership-section {
        width: 100%;
        margin: 40px 0;
        padding: 40px 15px;
    }
    .pd-path-grid {
        gap: 15px;
        margin-top: 20px;
    }
    .pd-path-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    .pd-not-sure-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }
    .pd-btn-sage {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 14px 20px;
        font-size: 15px;
        letter-spacing: 0.5px;
    }
    .pd-comparison-section {
        padding: 40px 15px;
    }
    .pd-path-section {
        padding: 20px 10px;
    }
    .pd-credits-grid {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    .pd-credit-box {
        background: #FFFFFF;
        border: 1px solid #AFC4A2;
        border-left: 5px solid #AFC4A2;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    }
}

@media (max-width: 600px) {
    .pd-section-container, .pd-comparison-section, .pd-credits-section, .pd-breadcrumbs {
        padding-left: 15px;
        padding-right: 15px;
    }
    .pd-h1 { font-size: 32px; }
    .pd-h2 { font-size: 26px; }
}
