/* Dedicated High-Converting Product Landing Page & On-Page Checkout CSS */
.lg-landing-wrapper {
    padding: 28px 0 80px;
}

/* Urgency / Promo Strip inside Product Landing */
.lg-urgency-banner {
    background: linear-gradient(90deg, #fff0f4, #fef6eb);
    border: 1px dashed var(--lg-primary);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.lg-urgency-text {
    font-weight: 700;
    color: var(--lg-secondary);
    font-size: 0.95rem;
}
.lg-countdown {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lg-cd-box {
    background: var(--lg-secondary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.88rem;
    min-width: 44px;
    text-align: center;
}

/* Hero Product Showcase Split */
.lg-lp-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--lg-shadow);
    margin-bottom: 40px;
}

.lg-lp-gallery {
    position: sticky;
    top: 96px;
    align-self: start;
}
.lg-main-image {
    border-radius: 16px;
    overflow: hidden;
    background: #faf6f5;
    border: 1px solid var(--lg-border);
    margin-bottom: 14px;
    aspect-ratio: 1 / 1;
}
.lg-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lg-thumb-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.lg-thumb-item {
    width: 78px;
    height: 78px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.lg-thumb-item.active,
.lg-thumb-item:hover {
    border-color: var(--lg-primary);
}
.lg-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Pitch Details */
.lg-lp-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.lg-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}
.lg-badge-authentic {
    background: #e6f6f0;
    color: #0f6848;
}
.lg-badge-fast {
    background: #fef1e6;
    color: #b45309;
}
.lg-lp-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lg-secondary);
    line-height: 1.3;
    margin-bottom: 12px;
}
.lg-lp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #f59e0b;
    margin-bottom: 16px;
}
.lg-lp-rating span {
    color: var(--lg-muted);
    font-weight: 600;
}

.lg-lp-price-box {
    background: #fcf8f9;
    border: 1px solid #f2dce3;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.lg-lp-price-box .price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--lg-primary);
}
.lg-lp-price-box del {
    font-size: 1.15rem;
    color: #9e9396;
    margin-left: 8px;
}
.lg-lp-price-box ins {
    text-decoration: none;
}
.lg-vat-note {
    font-size: 0.8rem;
    color: var(--lg-muted);
    background: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--lg-border);
}

/* Tabby & Tamara Official-Style Installment Widgets */
.lg-bnpl-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
}
.lg-bnpl-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--lg-border);
    background: #fff;
    font-size: 0.9rem;
}
.lg-bnpl-card.tabby-card {
    border-right: 4px solid #3eedbf;
}
.lg-bnpl-card.tamara-card {
    border-right: 4px solid #f7b267;
}
.lg-bnpl-logo {
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.lg-bnpl-logo.tabby {
    background: #3eedbf;
    color: #07221b;
}
.lg-bnpl-logo.tamara {
    background: #f7b267;
    color: #2e1602;
}

/* Key Benefits List (Cosmetics / Footwear / Bags adaptable) */
.lg-lp-highlights {
    list-style: none;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.lg-lp-highlights li {
    background: #faf7f6;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quantity Bundle Offers (Buy More Save More) */
.lg-bundles-box {
    margin-bottom: 24px;
}
.lg-bundles-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--lg-secondary);
}
.lg-bundle-option {
    border: 2px solid var(--lg-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.lg-bundle-option.active,
.lg-bundle-option:hover {
    border-color: var(--lg-primary);
    background: #fff9fb;
}
.lg-bundle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lg-bundle-tag {
    background: var(--lg-primary);
    color: #fff;
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

/* Direct Scroll-to-Checkout Button */
.lg-jump-checkout-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.15rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lg-primary), var(--lg-primary-dark));
    color: #fff;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(184, 93, 121, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Story / Features Deep Dive Section */
.lg-lp-story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 44px;
}
.lg-story-card {
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--lg-shadow);
}
.lg-story-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--lg-secondary);
}
.lg-story-card p {
    font-size: 0.92rem;
    color: var(--lg-muted);
}

/* Embedded Direct On-Page Checkout Section */
.lg-onpage-checkout-section {
    background: var(--lg-surface);
    border: 2px solid var(--lg-primary);
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 16px 40px rgba(184, 93, 121, 0.12);
    margin-bottom: 48px;
}
.lg-checkout-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--lg-border);
}
.lg-checkout-header h2 {
    font-size: 1.75rem;
    color: var(--lg-secondary);
    font-weight: 800;
    margin-bottom: 6px;
}
.lg-checkout-header p {
    color: var(--lg-muted);
    font-size: 0.95rem;
}

/* Styling WooCommerce Checkout inside Landing Page */
.lg-onpage-checkout-section .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
}
.lg-onpage-checkout-section .col2-set {
    width: 100% !important;
    float: none !important;
}
.lg-onpage-checkout-section .col-1,
.lg-onpage-checkout-section .col-2 {
    width: 100% !important;
    float: none !important;
}
.lg-onpage-checkout-section input.input-text,
.lg-onpage-checkout-section select,
.lg-onpage-checkout-section textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--lg-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.96rem;
    background: #fdfcfb;
    transition: border-color 0.2s ease;
}
.lg-onpage-checkout-section input.input-text:focus {
    border-color: var(--lg-primary);
    outline: none;
    background: #fff;
}
.lg-onpage-checkout-section #order_review_heading {
    display: none;
}
.lg-onpage-checkout-section #order_review {
    width: 100% !important;
    float: none !important;
    background: #faf6f7;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--lg-border);
}
.lg-onpage-checkout-section #place_order {
    width: 100%;
    background: var(--lg-success) !important;
    color: #fff !important;
    padding: 16px 24px !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 0 8px 20px rgba(22, 128, 92, 0.28);
}

/* Trust & Compliance Guarantee Bar */
.lg-compliance-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--lg-border);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lg-muted);
}

/* Sticky Mobile Bar */
.lg-sticky-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid var(--lg-border);
    padding: 12px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .lg-lp-hero,
    .lg-lp-story-grid,
    .lg-onpage-checkout-section .woocommerce-checkout,
    .lg-compliance-bar {
        grid-template-columns: 1fr;
    }
    .lg-lp-gallery {
        position: static;
    }
    .lg-lp-highlights {
        grid-template-columns: 1fr;
    }
    .lg-sticky-bar {
        display: flex;
    }
}


/* Enhanced Mobile & Tablet Responsive Rules (iPhone, Android & iPad) */
@media (max-width: 768px) {
    .lg-landing-wrapper {
        padding: 14px 0 90px;
    }
    .lg-lp-hero {
        padding: 18px 14px;
        gap: 20px;
        border-radius: 16px;
    }
    .lg-lp-title {
        font-size: 1.45rem;
    }
    .lg-lp-price-box .price {
        font-size: 1.6rem;
    }
    .lg-bnpl-card {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
    .lg-bundle-option {
        padding: 10px 12px;
        flex-direction: row;
        gap: 8px;
    }
    .lg-onpage-checkout-section {
        padding: 20px 14px;
        border-radius: 16px;
    }
    .lg-checkout-header h2 {
        font-size: 1.35rem;
    }
    .lg-onpage-checkout-section input.input-text,
    .lg-onpage-checkout-section select,
    .lg-onpage-checkout-section textarea {
        font-size: 16px !important; /* Prevents iOS Safari auto-zoom on input focus */
        padding: 12px 14px;
    }
    .lg-onpage-checkout-section #order_review {
        padding: 16px 12px;
    }
}


/* Strict Zero-Overflow Mobile Rules for All Smartphones (320px - 768px) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    .lg-container {
        padding: 0 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .lg-lp-hero,
    .lg-lp-story-grid,
    .lg-onpage-checkout-section .woocommerce-checkout,
    .lg-compliance-bar,
    .lg-lp-highlights {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
    }
    .lg-lp-hero *,
    .lg-onpage-checkout-section * {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
    }
    .lg-bnpl-card,
    .lg-bundle-option {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        width: 100% !important;
    }
    .lg-bundle-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .lg-onpage-checkout-section table.shop_table {
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 0.85rem !important;
    }
    .lg-onpage-checkout-section table.shop_table th,
    .lg-onpage-checkout-section table.shop_table td {
        padding: 8px 6px !important;
        word-break: break-word !important;
    }
    .lg-onpage-checkout-section #payment ul.payment_methods li {
        padding: 10px !important;
        margin-bottom: 8px !important;
        border: 1px solid var(--lg-border) !important;
        border-radius: 10px !important;
        background: #fff !important;
    }
}
