/*
 Theme Name:   Astra Child
 Theme URI:    https://fatefinder.org
 Description:  Astra Child Theme for FateFinder with bug fixes and SEO enhancements
 Author:       FateFinder
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* =====================================================
   Product Title Fix — Single Product Page (h1)
   and Shop/Archive Page (h2.woocommerce-loop-product__title)
   Override Astra's oversized h1/h2 with negative letter-spacing
   ===================================================== */
.woocommerce div.product .product_title,
.woocommerce div.product h1.entry-title,
h1.product_title.entry-title {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    font-family: 'Cinzel', 'Helvetica', serif !important;
    color: #fce38a !important;
    margin-bottom: 0.5rem !important;
    word-break: break-word !important;
}

/* Shop / Archive product card titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce-loop-product__title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    font-family: 'Cinzel', 'Helvetica', serif !important;
    color: #fce38a !important;
    margin: 12px 0 6px !important;
    word-break: break-word !important;
    white-space: normal !important;
}

@media (max-width: 768px) {
    .woocommerce div.product .product_title,
    h1.product_title.entry-title {
        font-size: 1.4rem !important;
    }
}

/* =====================================================
   Shop / Archive Page — Dark Mystical Theme
   ===================================================== */

/* Page background */
.woocommerce-shop .site-content,
.tax-product_cat .site-content,
.woocommerce-shop #content,
.woocommerce-shop .ast-container {
    background: transparent !important;
}

/* "Showing the single result" count */
.woocommerce-result-count {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 0.8rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* Fix top empty space on shop page */
.woocommerce-shop .ast-above-header-section,
.woocommerce-shop .ast-main-header-bar-alignment,
.woocommerce-shop .hfb-header ~ .ast-primary-header-bar {
    margin-bottom: 0 !important;
}

/* Product grid cards */
.woocommerce ul.products li.product {
    background: linear-gradient(160deg, #13082a 0%, #1a0b2e 100%) !important;
    border: 1px solid rgba(252, 227, 138, 0.1) !important;
    border-radius: 18px !important;
    padding: 20px !important;
    transition: all 0.35s ease !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product:hover {
    border-color: rgba(252, 227, 138, 0.35) !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 50px rgba(187, 134, 252, 0.2), 0 0 30px rgba(252, 227, 138, 0.1) !important;
}

/* Product card image */
.woocommerce ul.products li.product img {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-bottom: 12px !important;
}

/* Category name above title */
.woocommerce ul.products li.product .ast-woo-product-category {
    color: rgba(187, 134, 252, 0.7) !important;
    font-size: 0.7rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* Price on product card */
.woocommerce ul.products li.product .price {
    color: #fce38a !important;
    font-size: 1.1rem !important;
    font-family: 'Cinzel', serif !important;
}

/* Add to cart button on cards */
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .button {
    background: linear-gradient(135deg, rgba(252, 227, 138, 0.15), rgba(187, 134, 252, 0.15)) !important;
    color: #fce38a !important;
    border: 1px solid rgba(252, 227, 138, 0.3) !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 10px 22px !important;
    transition: all 0.3s ease !important;
    margin-top: 8px !important;
}

.woocommerce ul.products li.product .button:hover {
    background: linear-gradient(135deg, #fce38a, #bb86fc) !important;
    color: #1a0b2e !important;
    border-color: transparent !important;
    box-shadow: 0 4px 20px rgba(252, 227, 138, 0.4) !important;
}

/* =====================================================
   WooCommerce Single Product Page — Full Dark Theme
   ===================================================== */

/* --- Page background — match homepage deep dark purple --- */
.single-product .site-content,
.single-product #content,
.single-product .ast-container,
.woocommerce-shop .site-content,
.woocommerce-shop #content {
    background: transparent !important;
}

body.single-product,
body.woocommerce-shop,
body.tax-product_cat {
    background-color: #0b0510 !important;
}

/* --- Product layout wrapper --- */
.single-product div.product {
    background: linear-gradient(160deg, #0f0720 0%, #1a0b2e 60%, #0b0510 100%);
    border: 1px solid rgba(252, 227, 138, 0.12);
    border-radius: 24px;
    padding: 40px !important;
    margin-top: 20px !important;
    box-shadow: 0 0 80px rgba(187, 134, 252, 0.08), inset 0 0 60px rgba(11, 5, 16, 0.5);
}

/* --- Category badge --- */
.single-product-category a {
    display: inline-block;
    background: rgba(252, 227, 138, 0.1);
    border: 1px solid rgba(252, 227, 138, 0.3);
    color: #fce38a !important;
    font-size: 0.7rem !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    padding: 4px 14px !important;
    border-radius: 50px !important;
    margin-bottom: 12px !important;
    text-decoration: none !important;
}

/* --- Price --- */
.single-product div.product .price,
.single-product div.product p.price {
    font-size: 2rem !important;
    color: #fce38a !important;
    font-family: 'Cinzel', serif !important;
    margin: 12px 0 !important;
    text-shadow: 0 0 20px rgba(252, 227, 138, 0.4) !important;
}

/* --- Availability --- */
.ast-stock-detail {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px !important;
}

.ast-stock-detail .in-stock {
    color: #7fff9a !important;
    font-weight: 600 !important;
}

/* --- Quantity input --- */
.single-product .quantity .input-text.qty {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(252, 227, 138, 0.3) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 1rem !important;
    width: 70px !important;
    height: 48px !important;
    text-align: center !important;
}

/* --- Add to Cart button --- */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
    background: linear-gradient(135deg, #fce38a, #bb86fc) !important;
    color: #1a0b2e !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 40px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 25px rgba(252, 227, 138, 0.35) !important;
    margin-left: 12px !important;
}

.single-product .single_add_to_cart_button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 40px rgba(252, 227, 138, 0.55), 0 0 60px rgba(187, 134, 252, 0.3) !important;
}

/* --- Product meta (SKU / Category / Tags) --- */
.single-product .product_meta {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 18px !important;
    margin-top: 20px !important;
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 0.5px !important;
}

.single-product .product_meta span {
    display: block !important;
    margin-bottom: 5px !important;
}

.single-product .product_meta a {
    color: #bb86fc !important;
    text-decoration: none !important;
}

.single-product .product_meta a:hover {
    color: #fce38a !important;
}

/* --- Tabs --- */
.single-product .woocommerce-tabs .wc-tabs {
    border-bottom: 1px solid rgba(252, 227, 138, 0.2) !important;
    background: transparent !important;
    padding: 0 !important;
    margin-top: 40px !important;
    display: flex !important;
    gap: 6px !important;
}

.single-product .woocommerce-tabs .wc-tabs li {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: none !important;
    border-radius: 10px 10px 0 0 !important;
    margin: 0 !important;
}

.single-product .woocommerce-tabs .wc-tabs li a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 10px 22px !important;
    display: block !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.single-product .woocommerce-tabs .wc-tabs li.active,
.single-product .woocommerce-tabs .wc-tabs li:hover {
    background: rgba(252, 227, 138, 0.07) !important;
    border-color: rgba(252, 227, 138, 0.3) !important;
}

.single-product .woocommerce-tabs .wc-tabs li.active a,
.single-product .woocommerce-tabs .wc-tabs li:hover a {
    color: #fce38a !important;
}

/* --- Tab content panel --- */
.single-product .woocommerce-Tabs-panel {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-top: none !important;
    border-radius: 0 12px 12px 12px !important;
    padding: 30px 35px !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* --- Description typography --- */
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3,
.single-product .woocommerce-Tabs-panel h4 {
    color: #fce38a !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: 2px !important;
    font-size: 1rem !important;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    border-left: 3px solid #bb86fc !important;
    padding-left: 12px !important;
}

.single-product .woocommerce-Tabs-panel p {
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.8 !important;
    font-size: 0.95rem !important;
}

.single-product .woocommerce-Tabs-panel ul li {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 6px !important;
    padding-left: 6px !important;
    line-height: 1.7 !important;
}

.single-product .woocommerce-Tabs-panel hr {
    border-color: rgba(252, 227, 138, 0.15) !important;
    margin: 20px 0 !important;
}

.single-product .woocommerce-Tabs-panel strong,
.single-product .woocommerce-Tabs-panel b {
    color: #fce38a !important;
}

/* --- Gallery image --- */
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery .wp-post-image {
    border-radius: 16px !important;
    border: 1px solid rgba(252, 227, 138, 0.15) !important;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5) !important;
}

/* --- Breadcrumb --- */
.single-product .woocommerce-breadcrumb {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 0.78rem !important;
    letter-spacing: 1px !important;
    margin-bottom: 16px !important;
}

.single-product .woocommerce-breadcrumb a {
    color: rgba(187, 134, 252, 0.7) !important;
    text-decoration: none !important;
}

/* =====================================================
   Star Rating Fix - WooCommerce
   Replace font-dependent "sssss" with Unicode stars
   ===================================================== */
.woocommerce .star-rating::before {
    content: "\2606\2606\2606\2606\2606";
    font-family: inherit;
    color: #d4af37;
}

.woocommerce .star-rating span::before {
    content: "\2605\2605\2605\2605\2605";
    font-family: inherit;
    color: #d4af37;
}

/* Ensure star rating displays correctly */
.woocommerce .star-rating {
    font-family: "WooCommerce", serif;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    display: block;
}

/* =====================================================
   Back to Top Button
   ===================================================== */
#fatefinder-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fce38a, #bb86fc);
    color: #1a0b2e;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(252, 227, 138, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

#fatefinder-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(252, 227, 138, 0.6);
    background: linear-gradient(135deg, #bb86fc, #fce38a);
}

#fatefinder-back-to-top.visible {
    display: flex;
}

@media (max-width: 768px) {
    #fatefinder-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* =====================================================
   Auth Redirect Overlay - Dark Theme Override
   (nextend-facebook-connect "Hold On" screen)
   ===================================================== */
#nsl-redirect-overlay {
    background-color: rgba(11, 5, 16, 0.92) !important;
    backdrop-filter: blur(8px) !important;
}

#nsl-redirect-overlay-container {
    background-color: #1a0b2e !important;
    border: 1px solid rgba(252, 227, 138, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 0 60px rgba(187, 134, 252, 0.2) !important;
    padding: 40px !important;
}

#nsl-redirect-overlay-spinner {
    border-color: rgba(252, 227, 138, 0.2) !important;
    border-top-color: #fce38a !important;
    box-shadow: inset 0 0 0 1px rgba(252, 227, 138, 0.2), 0 0 0 1px rgba(252, 227, 138, 0.2) !important;
}

#nsl-redirect-overlay-title {
    color: #fce38a !important;
    font-size: 20px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    margin-top: 10px !important;
}

#nsl-redirect-overlay-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
}

/* =====================================================
   Date & Time Picker - Dark Mode
   (The Fatebook / birth date inputs)
   ===================================================== */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
    color-scheme: dark;
    background-color: #1a0b2e;
    color: #fce38a;
    border: 1px solid rgba(252, 227, 138, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus {
    border-color: #fce38a;
    outline: none;
    box-shadow: 0 0 10px rgba(252, 227, 138, 0.2);
}

/* =====================================================
   Blog Single Post — Cosmic Dark Theme
   ===================================================== */

/* ── Page background ── */
body.single-post {
    background-color: #0b0510 !important;
}
body.single-post .site-content,
body.single-post #content,
body.single-post .ast-container {
    background: transparent !important;
}

/* ── Featured image hero ── */
.ff-post-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: clamp(300px, 45vh, 480px);
    background-color: #0d0620;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
    overflow: hidden;
}

.ff-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 2, 8, 0.3) 0%,
        rgba(11, 5, 16, 0.6) 55%,
        rgba(11, 5, 16, 0.97) 100%
    );
    pointer-events: none;
}

.ff-post-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 32px 40px;
    box-sizing: border-box;
}

.ff-post-hero__cat {
    display: inline-block;
    background: rgba(187, 134, 252, 0.15);
    border: 1px solid rgba(187, 134, 252, 0.4);
    color: #bb86fc !important;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    text-decoration: none !important;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}
.ff-post-hero__cat:hover {
    background: rgba(187, 134, 252, 0.3);
    color: #fff !important;
}

/* div.ff-post-hero__title avoids Astra's 200px h1 override entirely */
div.ff-post-hero__title,
.ff-post-hero__title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7);
    /* Reset any inherited h-tag styles */
    border: none;
    padding: 0;
    background: none;
}

.ff-post-hero__meta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

/* ── Hide default Astra title / meta / featured image on single posts ── */
body.single-post .entry-header,
body.single-post .ast-single-post-featured-section,
body.single-post header.entry-header {
    display: none !important;
}

/* ── Article content container ── */
body.single-post .ast-article-single {
    background: linear-gradient(160deg, #0f0720 0%, #130a24 60%, #0b0510 100%) !important;
    border: 1px solid rgba(252, 227, 138, 0.08) !important;
    border-top: none !important;
    border-radius: 0 0 20px 20px !important;
    padding: 48px 40px 56px !important;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5) !important;
    max-width: 780px !important;
    margin: 0 auto !important;
}

/* ── Content typography ── */
body.single-post .entry-content {
    color: rgba(255,255,255,0.75) !important;
    font-size: 1.02rem !important;
    line-height: 1.85 !important;
}

body.single-post .entry-content p {
    color: rgba(255,255,255,0.72) !important;
    margin-bottom: 1.4em !important;
    font-size: 1.02rem !important;
    line-height: 1.85 !important;
}

body.single-post .entry-content h2 {
    font-family: 'Cinzel', serif !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: none !important;
    color: #fce38a !important;
    margin: 2.4em 0 0.8em !important;
    line-height: 1.35 !important;
    border-left: 3px solid #bb86fc !important;
    padding-left: 14px !important;
    border-bottom: none !important;
    letter-spacing: 0.5px !important;
}

body.single-post .entry-content h3 {
    font-family: 'Cinzel', serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: rgba(252,227,138,0.85) !important;
    margin: 1.8em 0 0.6em !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    line-height: 1.4 !important;
}

body.single-post .entry-content strong,
body.single-post .entry-content b {
    color: #fce38a !important;
    font-weight: 600 !important;
}

body.single-post .entry-content em {
    color: rgba(187,134,252,0.9) !important;
    font-style: italic !important;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
    color: rgba(255,255,255,0.72) !important;
    padding-left: 1.6em !important;
    margin-bottom: 1.4em !important;
}

body.single-post .entry-content ul li,
body.single-post .entry-content ol li {
    margin-bottom: 0.55em !important;
    line-height: 1.75 !important;
    color: rgba(255,255,255,0.70) !important;
}

body.single-post .entry-content ul li::marker {
    color: #bb86fc !important;
}

body.single-post .entry-content a:not([class]) {
    color: #bb86fc !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(187,134,252,0.35) !important;
    transition: color 0.2s, text-decoration-color 0.2s !important;
}
body.single-post .entry-content a:not([class]):hover {
    color: #fce38a !important;
    text-decoration-color: rgba(252,227,138,0.5) !important;
}

/* ── Inline blog images ── */
body.single-post .entry-content figure.wp-block-image {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(252,227,138,0.1) !important;
    margin: 2em 0 !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4) !important;
}
body.single-post .entry-content figure.wp-block-image img {
    border-radius: 12px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
body.single-post .entry-content figcaption.wp-element-caption {
    background: rgba(0,0,0,0.5) !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.8rem !important;
    font-style: italic !important;
    letter-spacing: 0.5px !important;
    padding: 8px 16px !important;
    text-align: center !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
}

/* ── CTA blocks inside blog posts ── */
body.single-post .entry-content div[style*="border-left"] {
    border-radius: 8px !important;
}

/* ── Post navigation (prev / next) ── */
body.single-post .post-navigation {
    margin-top: 48px !important;
    padding-top: 32px !important;
    border-top: 1px solid rgba(252,227,138,0.12) !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
}
body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
    flex: 1 !important;
}
body.single-post .post-navigation a {
    display: block !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(252,227,138,0.12) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    transition: all 0.25s ease !important;
    line-height: 1.5 !important;
}
body.single-post .post-navigation a:hover {
    border-color: rgba(187,134,252,0.4) !important;
    color: #bb86fc !important;
    background: rgba(187,134,252,0.06) !important;
}
body.single-post .post-navigation .nav-previous a::before {
    content: '← ';
    color: #bb86fc;
}
body.single-post .post-navigation .nav-next a::after {
    content: ' →';
    color: #bb86fc;
}

/* ── Related posts / comments ── */
body.single-post .comments-area {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-top: 40px !important;
    color: rgba(255,255,255,0.7) !important;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .ff-post-hero { height: 260px; }
    .ff-post-hero__inner { padding: 0 20px 32px; }
    .ff-post-hero__title { font-size: 1.4rem !important; }
    body.single-post .ast-article-single { padding: 28px 20px 40px !important; }
    body.single-post .post-navigation { flex-direction: column !important; }
}

/* =====================================================
   Social Share Bar — Blog Posts & Products
   ===================================================== */

.ff-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 40px 0 8px;
    padding: 24px 0 0;
    border-top: 1px solid rgba(252, 227, 138, 0.12);
}

.ff-share__label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-right: 6px;
}

/* All share buttons — <a> and <button> unified */
a.ff-share__btn,
button.ff-share__btn,
.ff-share .ff-share__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 14px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(187, 134, 252, 0.22) !important;
    background: rgba(187, 134, 252, 0.06) !important;
    color: rgba(220, 200, 255, 0.7) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    font-family: inherit !important;
    line-height: 1 !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
}
.ff-share__btn svg { flex-shrink: 0; }
a.ff-share__btn:hover,
button.ff-share__btn:hover { transform: translateY(-2px); }

.ff-share__btn--twitter:hover  { border-color:rgba(29,161,242,0.55)!important; background:rgba(29,161,242,0.1)!important; color:#62c8ff!important; }
.ff-share__btn--facebook:hover { border-color:rgba(100,140,220,0.55)!important; background:rgba(66,103,178,0.1)!important; color:#8ab4f8!important; }
.ff-share__btn--pinterest:hover{ border-color:rgba(230,0,35,0.5)!important;    background:rgba(230,0,35,0.08)!important;  color:#ff6b7a!important; }
.ff-share__btn--whatsapp:hover { border-color:rgba(37,211,102,0.5)!important;  background:rgba(37,211,102,0.08)!important;color:#25d366!important; }
.ff-share__btn--copy:hover     { border-color:rgba(252,227,138,0.5)!important; background:rgba(252,227,138,0.08)!important;color:#fce38a!important; }

.single-product .ff-share { margin-top: 24px; }

@media (max-width: 480px) {
    .ff-share__btn span { display: none !important; }
    a.ff-share__btn,
    button.ff-share__btn { padding: 8px 10px !important; }
    .ff-share__label { width: 100%; margin-bottom: 4px; }
}

/* ══════════════════════════════════════════════════════
   Blog Archive / Library Page — Card Grid Styling
   ══════════════════════════════════════════════════════ */

/* Page background */
body.blog,
body.category,
body.archive.category {
    background-color: #0b0510 !important;
}

/* Post cards on archive */
body.blog .ast-article-post,
body.category .ast-article-post {
    background: linear-gradient(160deg, #13082a 0%, #1a0b2e 100%) !important;
    border: 1px solid rgba(252,227,138,0.1) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4) !important;
}
body.blog .ast-article-post:hover,
body.category .ast-article-post:hover {
    border-color: rgba(187,134,252,0.35) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 50px rgba(187,134,252,0.15) !important;
}

/* Card title */
body.blog .entry-title a,
body.category .entry-title a {
    font-family: 'Cinzel', serif !important;
    color: #fce38a !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    text-transform: none !important;
}
body.blog .entry-title a:hover,
body.category .entry-title a:hover {
    color: #bb86fc !important;
}

/* Card excerpt */
body.blog .entry-content p,
body.category .entry-content p {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
}

/* Card meta */
body.blog .entry-meta,
body.category .entry-meta {
    color: rgba(187,134,252,0.6) !important;
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
}

/* =====================================================
   Shop Page — Cosmic Hero Section
   ===================================================== */

/* Hero wrapper */
.ff-shop-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 340px;
    background: linear-gradient(180deg, #050208 0%, #0d0620 50%, #0b0510 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    padding: 60px 24px 56px;
    box-sizing: border-box;
}

/* Nebula clouds */
.ff-shop-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
}
.ff-shop-nebula--1 {
    width: 560px; height: 320px;
    background: radial-gradient(ellipse, rgba(187,134,252,0.30) 0%, transparent 65%);
    top: -80px; left: -100px;
    animation: ff-nebula-drift 12s ease-in-out infinite alternate;
}
.ff-shop-nebula--2 {
    width: 480px; height: 280px;
    background: radial-gradient(ellipse, rgba(252,227,138,0.22) 0%, transparent 65%);
    bottom: -60px; right: -80px;
    animation: ff-nebula-drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes ff-nebula-drift {
    from { transform: translateY(0) scale(1);    opacity: 1; }
    to   { transform: translateY(28px) scale(1.12); opacity: 0.75; }
}

/* Star canvas */
#ff-shop-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Glow orbs */
.ff-shop-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}
.ff-shop-orb--gold {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(252,227,138,0.6), transparent 65%);
    top: -10%; left: 8%;
    animation: ff-orb-pulse 5s ease-in-out infinite;
}
.ff-shop-orb--purple {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(187,134,252,0.55), transparent 65%);
    bottom: -20%; right: 5%;
    animation: ff-orb-pulse 7s ease-in-out infinite reverse;
}
@keyframes ff-orb-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.45; }
    50%       { transform: scale(1.2);  opacity: 0.65; }
}

/* Hero inner content */
.ff-shop-hero__inner {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Eyebrow line */
.ff-shop-hero__eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(187, 134, 252, 0.75);
    margin: 0 0 14px;
}

/* Main title */
.ff-shop-hero__title {
    font-family: 'Cinzel', serif !important;
    font-size: clamp(2.8rem, 6vw, 4.5rem) !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin: 0 0 14px !important;
    line-height: 1.1 !important;
    text-shadow: 0 0 60px rgba(187, 134, 252, 0.3) !important;
}

.ff-gold {
    background: linear-gradient(135deg, #ffe566 0%, #fce38a 40%, #e8a800 70%, #fce38a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ff-gold-shimmer 3s linear infinite;
}
@keyframes ff-gold-shimmer {
    0%   { background-position: 0% center;    filter: drop-shadow(0 0 16px rgba(252,227,138,0.55)); }
    50%  { background-position: 100% center;  filter: drop-shadow(0 0 36px rgba(252,227,138,0.90)); }
    100% { background-position: 200% center;  filter: drop-shadow(0 0 16px rgba(252,227,138,0.55)); }
}

/* Subtitle */
.ff-shop-hero__sub {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 36px !important;
}

/* Category pills */
.ff-shop-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ff-cat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 9px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.28s ease;
    backdrop-filter: blur(6px);
}

.ff-cat-pill:hover {
    border-color: rgba(252, 227, 138, 0.4);
    color: #fce38a;
    background: rgba(252, 227, 138, 0.07);
}

.ff-cat-pill--active {
    background: linear-gradient(135deg, rgba(252,227,138,0.18), rgba(187,134,252,0.18));
    border-color: rgba(252, 227, 138, 0.5);
    color: #fce38a;
    box-shadow: 0 0 20px rgba(252, 227, 138, 0.2);
}

/* Decorative separator after hero / before product grid */
.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering {
    margin-bottom: 24px !important;
}

@media (max-width: 600px) {
    .ff-shop-hero {
        min-height: 280px;
        padding: 48px 16px 44px;
        margin-bottom: 32px;
    }
    .ff-shop-hero__title {
        font-size: 2.4rem !important;
        letter-spacing: 5px !important;
    }
}

/* =====================================================
   WooCommerce Empty Orders - Seek Your Artifacts Button
   ===================================================== */
.woocommerce-MyAccount-orders--empty .woocommerce-Button,
.woocommerce-info .wc-forward {
    background: linear-gradient(135deg, #fce38a, #bb86fc) !important;
    color: #1a0b2e !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(252, 227, 138, 0.3) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.woocommerce-MyAccount-orders--empty .woocommerce-Button:hover,
.woocommerce-info .wc-forward:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 0 30px rgba(252, 227, 138, 0.5), 0 0 60px rgba(187, 134, 252, 0.3) !important;
    animation: gold-breathe 2s ease-in-out infinite !important;
}

@keyframes gold-breathe {
    0%, 100% { box-shadow: 0 0 20px rgba(252, 227, 138, 0.4); }
    50%       { box-shadow: 0 0 40px rgba(252, 227, 138, 0.8), 0 0 80px rgba(187, 134, 252, 0.4); }
}
