/*
Theme Name: Celyah Dark 3D Theme
Theme URI: https://github.com/celyah/wordpress-theme
Description: A luxury, minimalist glassmorphism-styled WordPress theme built for 3D-printed objects and digital STL files. Fully compatible with WooCommerce and Elementor / Elementor Pro.
Version: 1.0.0
Author: Custom Design Suite
Text Domain: celyah-3d
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.0
*/

/* ==========================================================================
   0. ROOT VARIABLES & BASE
   ========================================================================== */
:root {
    --celyah-purple-main: #7c3788;
    --celyah-violet-deep: #5c3588;
    --celyah-bg-dark: #0d0d0f;
    --celyah-card-bg: #141416;
    --celyah-inner-bg: #0f0f11;
    --celyah-border: #1c1c20;
    --celyah-text-main: #f4f4f5;
    --celyah-text-muted: #a1a1aa;
    --celyah-font-heading: 'Space Grotesk', sans-serif;
    --celyah-font-body: 'Plus Jakarta Sans', sans-serif;
    --celyah-max-width: 1300px;
}

* {
    box-sizing: border-box;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

body {
    background-color: var(--celyah-bg-dark) !important;
    color: var(--celyah-text-main);
    font-family: var(--celyah-font-body);
    position: relative;
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--celyah-font-heading);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
}

.celyah-container {
    max-width: var(--celyah-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Atmospheric Glows */
body::before {
    content: "";
    position: fixed;
    width: 800px;
    height: 800px;
    top: -250px;
    left: -250px;
    background: radial-gradient(circle, rgba(124, 55, 136, 0.15) 0%, rgba(92, 53, 136, 0.03) 50%, rgba(13, 13, 15, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    width: 900px;
    height: 900px;
    bottom: -200px;
    right: -250px;
    background: radial-gradient(circle, rgba(92, 53, 136, 0.12) 0%, rgba(124, 55, 136, 0.02) 60%, rgba(13, 13, 15, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   1. HEADER / FLOATING GLASS NAVIGATION
   ========================================================================== */
.site-header {
    background: transparent !important;
    padding: 30px 20px 10px 20px !important;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    background: rgba(20, 20, 23, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 12px 32px !important;
    max-width: var(--celyah-max-width) !important;
    margin: 0 auto !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.logo, .custom-logo-link {
    display: flex !important;
    align-items: center !important;
    max-width: 200px !important;
    flex-shrink: 0 !important;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text-wrap .site-title {
    font-family: var(--celyah-font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
}

.logo-text-wrap .site-subtitle {
    font-size: 8px;
    color: var(--celyah-text-muted);
    letter-spacing: 0.25em;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
}

.logo img,
.custom-logo,
.header-container img,
.site-header img {
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Light/dark logo swap — only relevant when a Light Mode Logo has been
   set in the Customizer; otherwise only .logo-dark ever gets rendered. */
.custom-logo.logo-light {
    display: none !important;
}

.navigation {
    display: flex;
    align-items: center;
}

.nav-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-menu-list li a {
    font-family: var(--celyah-font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu-list li a:hover,
.nav-menu-list li.current-menu-item > a {
    color: #ffffff;
}

/* Header Shop Meta Icons (account / cart) */
.header-shop-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 20px !important;
}

.header-shop-meta a {
    color: var(--celyah-text-muted) !important;
    background: transparent !important;
    padding: 8px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
}

.header-shop-meta a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.header-shop-meta a svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    fill: none !important;
    transition: transform 0.3s ease !important;
}

.header-shop-meta a:hover svg {
    transform: scale(1.08) !important;
}

.header-shop-meta .cart-badge {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    background: var(--celyah-purple-main) !important;
    color: #ffffff !important;
    font-family: var(--celyah-font-heading) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 8px var(--celyah-purple-main) !important;
    border: 1px solid var(--celyah-bg-dark) !important;
    line-height: 1 !important;
}

/* Light / dark theme toggle */
.celyah-theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    color: var(--celyah-text-muted) !important;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.celyah-theme-toggle:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.celyah-theme-toggle svg {
    width: 18px !important;
    height: 18px !important;
}

.celyah-theme-toggle .icon-sun {
    display: inline-flex;
}

.celyah-theme-toggle .icon-moon {
    display: none;
}

html.celyah-light .celyah-theme-toggle .icon-sun {
    display: none;
}

html.celyah-light .celyah-theme-toggle .icon-moon {
    display: inline-flex;
}

html.celyah-light .celyah-theme-toggle:hover {
    color: #1c1c22 !important;
    background-color: rgba(0, 0, 0, 0.06) !important;
}

/* Mobile nav toggle */
.celyah-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    margin-left: 8px;
}

@media (max-width: 900px) {
    .celyah-nav-toggle {
        display: inline-flex;
    }
    .navigation {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        background: rgba(20, 20, 23, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 12px;
        display: none;
        z-index: 998;
    }
    .navigation.is-open {
        display: block;
    }
    .nav-menu-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .nav-menu-list li {
        width: 100%;
    }
    .nav-menu-list li a {
        display: block;
        padding: 12px 10px;
        width: 100%;
    }
}

/* ==========================================================================
   2. BUTTONS (shared design language)
   ========================================================================== */
.celyah-btn-primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit,
.woocommerce a.button.alt.disabled,
.single_add_to_cart_button,
.wp-block-button__link {
    background: linear-gradient(90deg, var(--celyah-purple-main), var(--celyah-violet-deep)) !important;
    color: #ffffff !important;
    font-family: var(--celyah-font-body) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: box-shadow 0.25s ease, transform 0.2s ease !important;
    cursor: pointer;
}

.celyah-btn-primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.single_add_to_cart_button:hover {
    box-shadow: 0 12px 24px rgba(124, 55, 136, 0.35) !important;
    transform: translateY(-1px);
}

.celyah-btn-secondary {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.celyah-btn-secondary:hover {
    color: var(--celyah-purple-main);
}

/* ==========================================================================
   3. HERO SECTION (front-page)
   ========================================================================== */
.celyah-hero-section {
    margin: 24px auto 40px;
    max-width: var(--celyah-max-width);
    padding: 0 20px;
}

.celyah-hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.9) 0%, rgba(13, 13, 15, 0.95) 100%);
    border: 1px solid var(--celyah-border);
    border-radius: 24px;
    padding: 48px;
    overflow: hidden;
}

.celyah-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 55, 136, 0.15);
    border: 1px solid rgba(124, 55, 136, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.celyah-hero-eyebrow span.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--celyah-purple-main);
    display: inline-block;
}

.celyah-hero-eyebrow span.label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c084fc;
}

.celyah-hero-card h1 {
    font-size: 44px;
    max-width: 700px;
    margin-bottom: 16px;
}

.celyah-hero-card p {
    color: var(--celyah-text-muted);
    max-width: 600px;
    margin-bottom: 32px;
}

.celyah-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

@media (max-width: 640px) {
    .celyah-hero-card { padding: 28px; }
    .celyah-hero-card h1 { font-size: 30px; }
}

/* ==========================================================================
   4. WOOCOMMERCE — SHOP / ARCHIVE PRODUCT GRID
   ========================================================================== */
.celyah-shop-grid-section {
    max-width: var(--celyah-max-width);
    margin: 0 auto 60px;
    padding: 0 20px;
}

.celyah-shop-grid-section h2 {
    font-size: 26px;
    margin-bottom: 28px;
}

ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (max-width: 900px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 560px) {
    ul.products {
        grid-template-columns: 1fr !important;
    }
}

ul.products li.product {
    background-color: var(--celyah-card-bg) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    position: relative !important;
    width: auto !important;
}

ul.products li.product:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(124, 55, 136, 0.25) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

ul.products li.product a {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

ul.products li.product a img {
    background-color: var(--celyah-inner-bg) !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transition: transform 0.5s ease !important;
}

ul.products li.product:hover a img {
    transform: scale(1.02) !important;
}

ul.products li.product .onsale {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    background: var(--celyah-purple-main) !important;
    color: #ffffff !important;
    font-family: var(--celyah-font-heading) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 6px 12px !important;
    border-radius: 9999px !important;
    margin: 0 !important;
    z-index: 5 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
    box-shadow: 0 4px 12px rgba(124, 55, 136, 0.3) !important;
    left: 16px !important;
    right: auto !important;
}

.celyah-loop-product-category {
    display: block !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--celyah-text-muted) !important;
    font-weight: 700 !important;
    margin: 20px 20px 6px 20px !important;
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--celyah-font-heading) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

ul.products li.product .price {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 0 20px !important;
    margin: auto 0 16px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: baseline !important;
}

ul.products li.product .price del {
    color: var(--celyah-text-muted) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

ul.products li.product .price ins {
    text-decoration: none !important;
    color: #ffffff !important;
}

ul.products li.product .button {
    background-color: #2b2b30 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    margin: 0 20px 20px 20px !important;
    text-align: center !important;
    border: none !important;
    transition: background-color 0.2s !important;
    text-transform: none;
}

ul.products li.product .button:hover {
    background-color: #38383e !important;
}

.woocommerce-result-count,
.woocommerce-ordering select {
    color: var(--celyah-text-muted) !important;
}

.woocommerce-ordering select {
    background: var(--celyah-card-bg) !important;
    border: 1px solid var(--celyah-border) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--celyah-card-bg);
    border: 1px solid var(--celyah-border);
    color: var(--celyah-text-muted);
    text-decoration: none;
}

.woocommerce-pagination .page-numbers li .current,
.woocommerce-pagination .page-numbers li a:hover {
    background: var(--celyah-purple-main);
    color: #fff;
    border-color: var(--celyah-purple-main);
}

/* ==========================================================================
   5. WOOCOMMERCE — SINGLE PRODUCT
   ========================================================================== */
.celyah-product-wrap {
    max-width: var(--celyah-max-width);
    margin: 0 auto;
    padding: 20px 20px 80px;
}

/* Breadcrumb trail above the product title */
.woocommerce-breadcrumb,
.elementor-widget-breadcrumbs .elementor-breadcrumbs {
    font-family: var(--celyah-font-body) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--celyah-purple-main) !important;
    margin: 0 0 16px !important;
}

.woocommerce-breadcrumb a,
.elementor-breadcrumbs a,
.elementor-breadcrumbs__item a {
    color: #c084fc !important;
    text-decoration: none !important;
}

.woocommerce-breadcrumb a:hover,
.elementor-breadcrumbs a:hover {
    color: #ffffff !important;
}

/* Some builders prepend a home icon to the trail — hide it, the design is text-only */
.woocommerce-breadcrumb svg,
.woocommerce-breadcrumb .home-icon,
.elementor-breadcrumbs__home-icon {
    display: none !important;
}

/* Sale badge — applies wherever WooCommerce prints .onsale (loop AND single product) */
.onsale {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    background: var(--celyah-purple-main) !important;
    color: #ffffff !important;
    font-family: var(--celyah-font-heading) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    margin: 0 !important;
    z-index: 5 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
    box-shadow: 0 4px 12px rgba(124, 55, 136, 0.3) !important;
}

/* Gallery frame — covers both the WooCommerce 3.x+ gallery wrapper
   (.woocommerce-product-gallery) and the base .images container so the
   frame shows up regardless of gallery markup version. */
.woocommerce div.product div.images,
.woocommerce div.product div.images.woocommerce-product-gallery {
    background: var(--celyah-card-bg) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 16px !important;
    position: relative !important;
}

.woocommerce div.product div.images img,
.woocommerce-product-gallery__wrapper img,
.woocommerce-product-gallery__image img {
    border-radius: 12px !important;
}

.woocommerce-product-gallery__trigger {
    background: rgba(20, 20, 23, 0.85) !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 16px !important;
    right: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.woocommerce-product-gallery__trigger img {
    filter: invert(1);
    width: 16px !important;
    height: 16px !important;
}

.flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding: 0 0 8px 0 !important;
    margin: 16px 0 0 0 !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
}

.flex-control-thumbs li {
    flex: 0 0 84px !important;
    width: 84px !important;
    margin: 0 !important;
}

.flex-control-thumbs li img {
    border-radius: 12px !important;
    border: 2px solid transparent !important;
    background-color: var(--celyah-card-bg) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    opacity: 0.6 !important;
    width: 100% !important;
    height: auto !important;
}

.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
    opacity: 1 !important;
    border-color: var(--celyah-purple-main) !important;
}

/* Product title — force it white/bold regardless of any global link-color
   rule from parent/base styles (this is what was rendering blue). */
.woocommerce div.product .product_title,
h1.product_title {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: var(--celyah-font-heading) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}

.woocommerce div.product .product_title a {
    color: #ffffff !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 12px !important;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: var(--celyah-text-muted) !important;
    font-size: 15px !important;
    opacity: 1 !important;
    margin-right: 0 !important;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none !important;
}

/* "Save X" pill injected next to the price (see functions.php) */
.celyah-save-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    background: rgba(124, 55, 136, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(124, 55, 136, 0.3) !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--celyah-text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 20px 0;
}

/* Quantity + Add to cart */
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.woocommerce div.product form.cart .quantity {
    background: #1c1c20;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.woocommerce div.product form.cart .quantity input.qty {
    width: 50px;
    text-align: center;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 4px !important;
}

.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to cart CTA — high specificity so it wins over WooCommerce's own
   button.button defaults regardless of stylesheet load order. */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart a.single_add_to_cart_button {
    flex: 1 1 auto !important;
    background: linear-gradient(90deg, var(--celyah-purple-main), var(--celyah-violet-deep)) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-family: var(--celyah-font-body) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: none !important;
    transition: box-shadow 0.25s ease, transform 0.2s ease !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    box-shadow: 0 12px 24px rgba(124, 55, 136, 0.35) !important;
    transform: translateY(-1px);
}

/* Meta: categories / tags pills */
.woocommerce div.product .product_meta {
    border-top: 1px solid var(--celyah-border);
    padding-top: 20px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--celyah-text-muted);
}

.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: 8px;
}

.woocommerce div.product .product_meta a {
    background: #1c1c20;
    color: var(--celyah-text-muted);
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.15s;
    display: inline-block;
    margin: 2px;
}

.woocommerce div.product .product_meta a:hover {
    background: #2b2b30;
    color: #fff;
}

/* Tabs */
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    border-bottom: 1px solid var(--celyah-border);
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0 0 16px;
}

.woocommerce-tabs ul.tabs li a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--celyah-text-muted);
    text-decoration: none;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #fff;
    border-bottom: 2px solid var(--celyah-purple-main);
    padding-bottom: 16px;
}

.woocommerce-tabs .panel {
    color: var(--celyah-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

table.shop_attributes,
table.woocommerce-product-attributes {
    background: var(--celyah-card-bg) !important;
    border: 1px solid var(--celyah-border) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-bottom: 24px !important;
    border-collapse: collapse;
}

table.shop_attributes th {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--celyah-text-muted) !important;
    font-weight: 500 !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    text-align: left;
}

table.shop_attributes td {
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* Notices */
.woocommerce-error, .woocommerce-info, .woocommerce-message, .celyah-info-box {
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.9) 0%, rgba(26, 19, 31, 0.95) 100%) !important;
    border: 1px solid rgba(124, 55, 136, 0.2) !important;
    border-radius: 16px !important;
    color: var(--celyah-text-muted) !important;
    padding: 16px 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 30px !important;
    list-style: none !important;
}

.woocommerce-error strong, .woocommerce-info strong, .woocommerce-message strong, .celyah-info-box strong {
    color: #ffffff !important;
}

.woocommerce-error a.button, .woocommerce-message a.button {
    float: none !important;
    display: inline-block;
    margin-top: 10px;
}

/* Cart / Checkout base readability on dark bg */
.woocommerce table.shop_table {
    border: 1px solid var(--celyah-border) !important;
    border-radius: 16px;
    overflow: hidden;
    background: var(--celyah-card-bg);
}

.woocommerce table.shop_table th {
    background: rgba(255,255,255,0.02);
    color: var(--celyah-text-muted);
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    border-top: 1px solid var(--celyah-border) !important;
}

.woocommerce ul#shipping_method,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-checkout select {
    background: var(--celyah-inner-bg) !important;
    border: 1px solid var(--celyah-border) !important;
    color: #fff !important;
    border-radius: 10px !important;
}

/* ==========================================================================
   6. GENERIC PAGE / BLOG CONTENT
   ========================================================================== */
.celyah-page-content,
.celyah-single-content {
    max-width: var(--celyah-max-width);
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--celyah-text-muted);
    line-height: 1.8;
}

.celyah-page-content h1,
.celyah-single-content h1 {
    color: #fff;
    margin-bottom: 24px;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background: transparent;
    margin-top: auto;
    padding: 10px 20px 30px;
}

.footer-inner {
    padding: 0 !important;
}

.footer-glass-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: rgba(20, 20, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 56px 40px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Animated gradient hairline along the top edge of the card */
.footer-glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(124, 55, 136, 0) 10%,
        var(--celyah-purple-main) 45%,
        #b98bd0 50%,
        var(--celyah-purple-main) 55%,
        rgba(124, 55, 136, 0) 90%,
        transparent 100%);
    background-size: 220% 100%;
    animation: celyah-footer-shimmer 7s linear infinite;
    z-index: 2;
}

/* Two soft glow blobs echoing the body atmosphere */
.footer-glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 260px at 10% 0%, rgba(124, 55, 136, 0.14), transparent 60%),
        radial-gradient(420px 240px at 95% 100%, rgba(92, 53, 136, 0.14), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes celyah-footer-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -20% 0; }
}

/* Decorative rotating wireframe polyhedron, tucked in the corner */
.footer-wireframe {
    position: absolute;
    top: 50%;
    right: -90px;
    transform: translateY(-50%);
    color: var(--celyah-purple-main);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    animation: celyah-footer-spin 60s linear infinite;
}

@keyframes celyah-footer-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
}

.footer-grid--widgets {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-widget h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    margin: 0 0 20px;
}

.footer-widget p,
.footer-widget li {
    color: var(--celyah-text-muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-widget a {
    text-decoration: none;
    color: var(--celyah-text-muted);
    transition: color 0.2s ease;
}

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

.footer-col h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    margin: 0 0 20px;
}

.footer-col-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--celyah-purple-main);
    box-shadow: 0 0 10px 2px rgba(124, 55, 136, 0.7);
    flex-shrink: 0;
}

/* Brand column */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--celyah-font-heading);
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    letter-spacing: -0.01em;
}

.footer-logo svg {
    color: var(--celyah-purple-main);
    flex-shrink: 0;
}

.footer-tagline {
    color: var(--celyah-text-muted);
    font-size: 13px;
    line-height: 1.75;
    margin: 16px 0 24px;
    max-width: 340px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--celyah-text-muted);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-social-icon svg {
    width: 16px;
    height: 16px;
}

.footer-social-icon:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--celyah-purple-main), var(--celyah-violet-deep));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 55, 136, 0.4);
}

/* Link columns */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--celyah-text-muted);
    font-size: 13.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a::before {
    content: "";
    width: 0;
    height: 1px;
    margin-right: 0;
    background: var(--celyah-purple-main);
    transition: width 0.2s ease, margin-right 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 2px;
}

.footer-links a:hover::before {
    width: 10px;
    margin-right: 8px;
}

/* Newsletter column */
.footer-newsletter-copy {
    color: var(--celyah-text-muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 18px;
    max-width: 300px;
}

.footer-newsletter-form {
    display: flex;
    align-items: center;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
    max-width: 320px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-form:focus-within {
    border-color: rgba(124, 55, 136, 0.6);
    box-shadow: 0 0 0 4px rgba(124, 55, 136, 0.14);
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    font-family: var(--celyah-font-body);
    padding: 8px 0;
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: #6b6b71;
}

.footer-newsletter-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--celyah-purple-main), var(--celyah-violet-deep));
    color: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-newsletter-form button svg {
    width: 15px;
    height: 15px;
}

.footer-newsletter-form button:hover {
    box-shadow: 0 8px 18px rgba(124, 55, 136, 0.45);
    transform: translateX(1px);
}

/* Bottom bar */
.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom .footer-copyright {
    font-size: 10px;
    color: #6b6b71;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: monospace;
    margin: 0;
}

.footer-signature {
    font-size: 11px;
    color: #52525b;
    font-style: italic;
    order: 3;
    width: 100%;
    text-align: center;
}

.footer-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--celyah-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-to-top svg {
    width: 15px;
    height: 15px;
}

.footer-to-top:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--celyah-purple-main), var(--celyah-violet-deep));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 55, 136, 0.4);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 36px;
    }
    .footer-col--brand {
        grid-column: 1 / -1;
    }
    .footer-wireframe {
        opacity: 0.05;
    }
}

@media (max-width: 560px) {
    .footer-glass-card {
        padding: 40px 22px 22px;
        border-radius: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-signature {
        order: 0;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-wireframe,
    .footer-glass-card::before {
        animation: none;
    }
}

/* ==========================================================================
   8. LAYOUT SCAFFOLD
   ========================================================================== */
.celyah-site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.celyah-main {
    flex: 1;
}

/* Elementor canvas / full-width template: let Elementor own the page fully */
.elementor-template-canvas .site-header,
.elementor-template-canvas .site-footer {
    display: none;
}

/* ==========================================================================
   9. LIGHT MODE
   Activated by adding .celyah-light to <html> (see header.php inline
   snippet + assets/js/celyah-scripts.js). Re-declaring the custom
   properties here automatically re-colors every rule in this file that
   already reads from a var(--celyah-*) token; the rules below on top of
   that handle the spots that were written with hardcoded dark-theme
   colors (mostly #fff headings and rgba(255,255,255,x) glass borders).
   ========================================================================== */
html.celyah-light {
    --celyah-bg-dark: #f5f4f7;
    --celyah-card-bg: #ffffff;
    --celyah-inner-bg: #f1eff4;
    --celyah-border: #e6e3ea;
    --celyah-text-main: #1c1c22;
    --celyah-text-muted: #6c6c76;
}

/* Header */
html.celyah-light .header-container {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 40px rgba(20, 10, 30, 0.08);
}

html.celyah-light .celyah-logo-mark {
    color: #1c1c22 !important;
}

html.celyah-light .custom-logo.logo-dark {
    display: none !important;
}

html.celyah-light .custom-logo.logo-light {
    display: block !important;
}

html.celyah-light .logo-text-wrap .site-title {
    color: #1c1c22;
}

html.celyah-light .nav-menu-list li a {
    color: rgba(28, 28, 34, 0.55);
}

html.celyah-light .nav-menu-list li a:hover,
html.celyah-light .nav-menu-list li.current-menu-item > a {
    color: #1c1c22;
}

html.celyah-light .header-shop-meta a {
    color: #6c6c76 !important;
}

html.celyah-light .header-shop-meta a:hover {
    color: #1c1c22 !important;
    background-color: rgba(0, 0, 0, 0.06) !important;
}

html.celyah-light .celyah-nav-toggle {
    border-color: rgba(0, 0, 0, 0.12);
    color: #1c1c22;
}

@media (max-width: 900px) {
    html.celyah-light .navigation {
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(0, 0, 0, 0.08);
    }
}

/* Headings + secondary button link */
html.celyah-light h1,
html.celyah-light h2,
html.celyah-light h3,
html.celyah-light h4,
html.celyah-light h5,
html.celyah-light h6 {
    color: #1c1c22;
}

html.celyah-light .celyah-btn-secondary {
    color: #1c1c22;
}

/* Hero */
html.celyah-light .celyah-hero-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 245, 248, 0.95) 100%);
}

html.celyah-light .celyah-hero-eyebrow {
    background: rgba(124, 55, 136, 0.08);
    border-color: rgba(124, 55, 136, 0.22);
}

html.celyah-light .celyah-hero-eyebrow span.label {
    color: var(--celyah-purple-main);
}

/* Shop / archive product grid */
html.celyah-light ul.products li.product {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

html.celyah-light ul.products li.product:hover {
    box-shadow: 0 12px 30px rgba(20, 10, 30, 0.12) !important;
}

html.celyah-light ul.products li.product a img {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

html.celyah-light ul.products li.product .woocommerce-loop-product__title,
html.celyah-light ul.products li.product .price,
html.celyah-light ul.products li.product .price ins {
    color: #1c1c22 !important;
}

html.celyah-light ul.products li.product .button {
    background-color: #ece9f0 !important;
    color: #1c1c22 !important;
}

html.celyah-light ul.products li.product .button:hover {
    background-color: #ddd8e3 !important;
}

/* Single product */
html.celyah-light .woocommerce-breadcrumb a,
html.celyah-light .elementor-breadcrumbs a {
    color: var(--celyah-purple-main) !important;
}

html.celyah-light .woocommerce-breadcrumb a:hover,
html.celyah-light .elementor-breadcrumbs a:hover {
    color: #1c1c22 !important;
}

html.celyah-light .woocommerce div.product div.images,
html.celyah-light .woocommerce div.product div.images.woocommerce-product-gallery {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

html.celyah-light .woocommerce-product-gallery__trigger {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

html.celyah-light .woocommerce-product-gallery__trigger img {
    filter: none;
}

html.celyah-light .flex-control-thumbs li img {
    background-color: var(--celyah-card-bg) !important;
}

html.celyah-light .woocommerce div.product .product_title,
html.celyah-light h1.product_title,
html.celyah-light .woocommerce div.product .product_title a,
html.celyah-light .woocommerce div.product p.price,
html.celyah-light .woocommerce div.product span.price,
html.celyah-light .woocommerce div.product p.price ins,
html.celyah-light .woocommerce div.product span.price ins {
    color: #1c1c22 !important;
}

html.celyah-light .celyah-save-badge {
    background: rgba(124, 55, 136, 0.08) !important;
    border-color: rgba(124, 55, 136, 0.22) !important;
    color: var(--celyah-purple-main) !important;
}

html.celyah-light .woocommerce div.product form.cart .quantity {
    background: #f1eff4;
    border-color: rgba(0, 0, 0, 0.06);
}

html.celyah-light .woocommerce div.product form.cart .quantity input.qty {
    color: #1c1c22 !important;
}

html.celyah-light .woocommerce div.product .product_meta a {
    background: #f1eff4;
    color: #6c6c76;
}

html.celyah-light .woocommerce div.product .product_meta a:hover {
    background: #e4e0ea;
    color: #1c1c22;
}

html.celyah-light .woocommerce-tabs ul.tabs li.active a {
    color: #1c1c22;
}

html.celyah-light table.shop_attributes th,
html.celyah-light table.woocommerce-product-attributes th {
    background: rgba(0, 0, 0, 0.02) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

html.celyah-light table.shop_attributes td,
html.celyah-light table.woocommerce-product-attributes td {
    color: #1c1c22 !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

html.celyah-light .woocommerce-error,
html.celyah-light .woocommerce-info,
html.celyah-light .woocommerce-message,
html.celyah-light .celyah-info-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 243, 250, 0.95) 100%) !important;
    box-shadow: 0 10px 30px rgba(20, 10, 30, 0.08) !important;
}

html.celyah-light .woocommerce-error strong,
html.celyah-light .woocommerce-info strong,
html.celyah-light .woocommerce-message strong,
html.celyah-light .celyah-info-box strong {
    color: #1c1c22 !important;
}

html.celyah-light .woocommerce table.shop_table th {
    background: rgba(0, 0, 0, 0.02);
}

html.celyah-light .woocommerce ul#shipping_method,
html.celyah-light .woocommerce form .form-row input.input-text,
html.celyah-light .woocommerce form .form-row textarea,
html.celyah-light .woocommerce-checkout select {
    background: #ffffff !important;
    color: #1c1c22 !important;
}

/* Footer */
html.celyah-light .footer-glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 50px rgba(20, 10, 30, 0.1);
}

html.celyah-light .footer-col h5,
html.celyah-light .footer-widget h5,
html.celyah-light .footer-logo {
    color: #1c1c22 !important;
}

html.celyah-light .footer-social-icon {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #6c6c76;
}

html.celyah-light .footer-links a:hover,
html.celyah-light .footer-widget a:hover {
    color: #1c1c22;
}

html.celyah-light .footer-newsletter-form {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

html.celyah-light .footer-newsletter-form input[type="email"] {
    color: #1c1c22;
}

html.celyah-light .footer-newsletter-form input[type="email"]::placeholder {
    color: #a3a1aa;
}

html.celyah-light .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
}

html.celyah-light .footer-bottom .footer-copyright {
    color: #9a98a1;
}

html.celyah-light .footer-signature {
    color: #b3b1b9;
}

html.celyah-light .footer-to-top {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #6c6c76;
}

html.celyah-light .footer-wireframe {
    opacity: 0.05;
}
