/* ===========================================
   GLAM SHOP - CONVERSION FOCUSED CSS
   =========================================== */

:root {
    --glam-pink: #d63384;
    --glam-pink-soft: #fff1f7;
    --glam-pink-border: rgba(214, 51, 132, 0.18);
    --glam-text: #2f3542;
    --glam-muted: #6f7683;
    --glam-success: #1f8f55;
    --glam-success-soft: #effaf4;
    --glam-shadow: 0 18px 50px rgba(214, 51, 132, 0.12);
}

/* Woo banner reduction on shop/product pages */
.woocommerce-page .page-banner,
.single-product .page-banner {
    padding-top: 95px !important;
    padding-bottom: 95px !important;
    min-height: 0 !important;
}

.single-product .page-banner .bg-text,
.woocommerce-page .page-banner .bg-text {
    opacity: 0.12;
}

.single-product .blog-grid-section,
.woocommerce-page .blog-grid-section {
    padding-top: 95px !important;
    padding-bottom: 95px !important;
}

.single-product .catalog-product-page div.product {
    align-items: flex-start;
}

/* Product card */
.glam-product-enhanced {
    width: 100%;
    animation: glamFadeUp 0.55s ease both;
}

@keyframes glamFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-details-content.glam-enhanced {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fff4f9 100%);
    border: 1px solid var(--glam-pink-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--glam-shadow);
    overflow: hidden;
}

.product-details-content.glam-enhanced::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -80px;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(214, 51, 132, 0.14), rgba(214, 51, 132, 0));
    pointer-events: none;
}

.glam-product-kicker,
.glam-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--glam-pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.glam-product-title.product_title,
.product-details-content.glam-enhanced .product_title {
    color: var(--glam-pink);
    font-size: 31px;
    line-height: 1.18;
    margin: 0 0 14px;
    font-weight: 700;
}

.glam-rating-wrap,
.glam-new-product-note {
    margin-bottom: 18px;
}

.glam-rating-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--glam-muted);
    font-size: 13px;
}

.glam-new-product-note {
    background: rgba(214, 51, 132, 0.08);
    border: 1px solid rgba(214, 51, 132, 0.12);
    color: #88415f;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.45;
}

.glam-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.glam-price-label {
    flex: 0 0 100%;
    color: var(--glam-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: -4px;
}

.glam-price .old-price {
    color: #a9a9a9;
    font-size: 18px;
    font-weight: 600;
}

.glam-price .new-price,
.glam-price .regular-price,
.glam-price .regular-price .amount,
.glam-price .woocommerce-Price-amount {
    color: #1f2430;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.glam-price ins {
    text-decoration: none;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    background: var(--glam-success-soft);
    border: 1px solid rgba(31, 143, 85, 0.18);
    color: var(--glam-success);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.glam-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 20px 0;
}

.glam-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    background: #fff;
    border: 1px solid rgba(47, 53, 66, 0.08);
    border-radius: 10px;
    color: var(--glam-text);
    font-size: 13px;
    line-height: 1.35;
}

.glam-benefit span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 999px;
    background: var(--glam-pink-soft);
    color: var(--glam-pink);
    font-weight: 900;
    font-size: 12px;
}

.glam-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.glam-stock-in {
    background: var(--glam-success-soft);
    color: #20754a;
    border: 1px solid rgba(31, 143, 85, 0.18);
}

.glam-stock-low {
    background: #fff8e7;
    color: #8a5b00;
    border: 1px solid rgba(225, 155, 0, 0.2);
}

.glam-stock-out {
    background: #fff0f0;
    color: #9f2d2d;
    border: 1px solid rgba(200, 0, 0, 0.15);
}

.glam-description {
    color: var(--glam-muted);
    line-height: 1.7;
    margin-bottom: 22px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(47, 53, 66, 0.06);
    border-radius: 12px;
}

.glam-description p:last-child {
    margin-bottom: 0;
}

.glam-order-box form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px !important;
}

.glam-order-box form.cart .quantity {
    margin: 0 !important;
}

.glam-order-box .quantity input,
.woocommerce .quantity input.qty {
    border: 1px solid rgba(214, 51, 132, 0.28) !important;
    border-radius: 10px !important;
    min-height: 48px;
    text-align: center;
    background: #fff;
}

.glam-order-box .single_add_to_cart_button,
.woocommerce div.product form.cart .button,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
    min-height: 48px;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #ef5ca8, #d63384) !important;
    color: #fff !important;
    padding: 13px 22px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(214, 51, 132, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.glam-order-box .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(214, 51, 132, 0.28);
    opacity: 0.95;
}

.glam-contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(214, 51, 132, 0.22);
    background: #fff;
    color: var(--glam-pink) !important;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.glam-contact-cta:hover {
    background: var(--glam-pink-soft);
    transform: translateY(-1px);
}

.glam-safe-buying {
    background: #f5fff9;
    border: 1px solid rgba(31, 143, 85, 0.25);
    border-radius: 13px;
    padding: 18px;
    margin: 22px 0;
}

.glam-safe-buying h4 {
    color: var(--glam-success);
    margin: 0 0 13px;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.safety-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.safety-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #315846;
    font-size: 13px;
    line-height: 1.35;
}

.safety-item .icon {
    color: var(--glam-success);
    font-weight: 900;
}

.glam-mini-info {
    margin-top: 18px;
    border-top: 1px solid rgba(47, 53, 66, 0.08);
}

.glam-mini-info details {
    border-bottom: 1px solid rgba(47, 53, 66, 0.08);
    padding: 13px 0;
}

.glam-mini-info summary {
    cursor: pointer;
    color: var(--glam-text);
    font-weight: 800;
}

.glam-mini-info p {
    margin: 10px 0 0;
    color: var(--glam-muted);
    line-height: 1.6;
}

.glam-meta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(214, 51, 132, 0.12);
}

.glam-meta span {
    display: block;
    margin-bottom: 8px;
    color: var(--glam-muted);
    font-size: 13px;
}

.glam-meta a {
    color: var(--glam-pink);
    text-decoration: none;
    font-weight: 700;
}

.glam-meta a:hover {
    text-decoration: underline;
}

/* FAQ block */
.glam-product-faq {
    clear: both;
    margin-top: 55px;
}

.glam-product-faq-inner {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(47, 53, 66, 0.08);
    box-shadow: 0 14px 40px rgba(47, 53, 66, 0.06);
    padding: 38px;
}

.glam-product-faq h2 {
    margin: 0 0 22px;
    color: #1f2430;
    font-size: 34px;
    line-height: 1.15;
}

.glam-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.glam-faq-grid details {
    border: 1px solid rgba(214, 51, 132, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
    background: #fffafd;
}

.glam-faq-grid summary {
    cursor: pointer;
    color: var(--glam-text);
    font-weight: 800;
}

.glam-faq-grid p {
    margin: 11px 0 0;
    color: var(--glam-muted);
    line-height: 1.6;
}

/* Mobile sticky CTA */
.glam-mobile-sticky {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(214, 51, 132, 0.18);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(47, 53, 66, 0.18);
}

.glam-mobile-sticky.is-visible {
    display: flex;
}

.glam-mobile-sticky__price {
    flex: 1;
    color: #1f2430;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.2;
}

.glam-mobile-sticky__price small {
    display: block;
    color: var(--glam-muted);
    font-weight: 600;
    font-size: 11px;
    margin-top: 2px;
}

.glam-mobile-sticky__button {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef5ca8, #d63384);
    color: #fff;
    padding: 12px 14px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
}

/* Cart/checkout trust */
.glam-checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(31, 143, 85, 0.18);
    border-radius: 12px;
    background: var(--glam-success-soft);
    color: #315846;
    font-weight: 700;
}

.glam-checkout-trust span {
    margin-right: 10px;
}

/* Home hero injected improvements - only when JS finds current hero title */
.glam-hero-trust-injected {
    margin: 14px auto 0;
    max-width: 760px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.glam-hero-trust-injected span {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(5px);
}

/* Footer */
.glam-footer {
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.78);
}

.glam-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.glam-footer a:hover {
    color: #fff;
}

.glam-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 48px 0 28px;
}

.glam-footer__brand h3,
.glam-footer__col h4 {
    color: #fff;
    margin: 0 0 12px;
}

.glam-footer__brand p,
.glam-footer__col p,
.glam-footer__col li {
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.65;
    font-size: 14px;
}

.glam-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glam-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

@media (max-width: 991px) {
    .woocommerce-page .page-banner,
    .single-product .page-banner {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    .single-product .blog-grid-section,
    .woocommerce-page .blog-grid-section {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    .glam-footer__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .woocommerce-page .page-banner,
    .single-product .page-banner {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .single-product .page-title,
    .woocommerce-page .page-title {
        font-size: 34px !important;
    }

    .single-product .blog-grid-section,
    .woocommerce-page .blog-grid-section {
        padding-top: 48px !important;
        padding-bottom: 70px !important;
    }

    .product-details-content.glam-enhanced {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .glam-product-title.product_title,
    .product-details-content.glam-enhanced .product_title {
        font-size: 25px;
    }

    .glam-benefits,
    .safety-features,
    .glam-faq-grid {
        grid-template-columns: 1fr;
    }

    .glam-order-box form.cart {
        display: grid;
        grid-template-columns: 82px 1fr;
        gap: 10px;
    }

    .glam-order-box form.cart .single_add_to_cart_button {
        width: 100%;
    }

    .glam-product-faq-inner {
        padding: 24px 18px;
    }

    .glam-product-faq h2 {
        font-size: 26px;
    }

    body.single-product {
        padding-bottom: 82px;
    }
}

@media (max-width: 480px) {
    .glam-order-box form.cart {
        grid-template-columns: 1fr;
    }

    .glam-order-box .quantity input,
    .woocommerce .quantity input.qty {
        width: 100% !important;
    }
}
