/*
Theme Name: Nurboese-Theme
Template: sonaar
Version: 1.0.0
Description: A modern child theme for Nurböse Kinky Party with custom homepage.
Author: Nurböse Team
*/

/* ============================================
   MOBILE MENU - OVERLAPPING HERO, STICKY & TRANSPARENT
   ============================================ */

/* Force desktop menu visibility up to 1024px */
@media (min-width: 1024px) {
    .classic-menu.responsive {
        display: none !important;
    }

    .classic-menu:not(.responsive) {
        display: block !important;
    }
}

/* Mobile menu header - FIXED and overlapping hero at top */
.classic-menu.responsive {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: transparent !important;
    z-index: 9999 !important;
    transition: background 0.3s ease !important;
}

/* Remove the spacer/padding on the wrapper that pushes hero down */
.menu-type-classic-menu {
    padding-top: 0 !important;
}

/* When scrolled (mini class added by Sonaar JS on desktop, is-scrolled added by us on mobile) */
.classic-menu.responsive.mini,
.classic-menu.responsive.is-scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Mobile menu background element - keep transparent at top */
.classic-menu.responsive .menu-responsive-bg {
    background: transparent !important;
}

/* When menu is opened (visible), show dark background for the menu content */
.classic-menu.responsive.visible .menu-responsive-bg {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Sandwich icon always white */
.classic-menu.responsive .responsive-header a.sandwich-icon {
    color: #fff !important;
}

/* Mobile menu text color for dark theme */
.classic-menu.responsive #menu-main-menu li,
.classic-menu.responsive #menu-responsive-menu li {
    color: #fff !important;
}

.classic-menu.responsive .classic-menu-hot-links a {
    color: #fff !important;
}

/* Active menu item indicator */
.classic-menu.responsive ul:not(.sub-menu)>.menu-item.active>a:before,
.classic-menu.responsive ul:not(.sub-menu)>.current-menu-item>a:before {
    background: #9370DB !important;
}

/* ============================================
   HEADER - LOGO POSITIONING
   Matches live site: centered at top, left on scroll
   ============================================ */

/* DEFAULT STATE (at top of page): Logo centered */
.classic-menu .logo,
.classic-menu .sonaar-logo,
.classic-menu .custom-logo-link,
.menu-container .logo {
    text-align: center !important;
    display: block !important;
    margin: 0 auto !important;
    transition: all 0.3s ease;
}

.classic-menu .menu-container,
.classic-menu .menu-container.has-responsive-menu {
    text-align: center !important;
}

.classic-menu .logo img,
.classic-menu .custom-logo {
    margin: 0 auto !important;
    display: block !important;
}

.classic-menu .menu-level-0.logo-pull-top {
    text-align: center !important;
    justify-content: center !important;
}

/* SCROLLED STATE: Logo moves to LEFT, menu on right
   ONLY use .mini class - this is added ONLY when scrolling
   (Do NOT use .mini-active - it's always present!) */
.classic-menu.mini .logo,
.classic-menu.mini li.logo,
.classic-menu.mini li.logo.logo-pull-top {
    text-align: left !important;
    margin: 0 !important;
    margin-right: auto !important;
    display: inline-block !important;
    vertical-align: middle;
    position: absolute !important;
    left: 20px !important;
}

.classic-menu.mini .logo img,
.classic-menu.mini .custom-logo {
    margin: 0 !important;
    display: inline-block !important;
    max-height: 40px;
    width: auto;
}

.classic-menu.mini .menu-container {
    text-align: right !important;
    display: block !important;
}

.classic-menu.mini ul#menu-main-menu,
.classic-menu.mini ul#menu-main-menu.logo-pull-top {
    text-align: right !important;
    justify-content: flex-end !important;
    display: flex !important;
    align-items: center;
    padding-left: 150px !important;
    /* Make room for the left-positioned logo */
}

/* Explicitly hide responsive menu in sticky header to prevent overlapping */
.classic-menu.mini ul#menu-responsive-menu {
    display: none !important;
}

/* Ensure the logo is visible and properly sized when scrolled */
.classic-menu.mini .sonaar-logo {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Make the sticky header compact and slim like the live site */
.classic-menu.mini {
    height: 70px !important;
    max-height: 70px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.classic-menu.mini .menu-container {
    height: 70px !important;
    max-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Hide submenu dropdowns by default, show only on hover */
.classic-menu.mini .sub-menu,
.classic-menu.mini .menu-level-1,
.classic-menu.mini ul.sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    padding: 10px 0 !important;
    min-width: 200px !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* Show submenu on hover */
.classic-menu.mini .menu-item:hover>.sub-menu,
.classic-menu.mini .menu-item:hover>.menu-level-1,
.classic-menu.mini .menu-item:hover>ul.sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Submenu items styling */
.classic-menu.mini .sub-menu li,
.classic-menu.mini .menu-level-1 li {
    display: block !important;
    padding: 5px 20px !important;
}

.classic-menu.mini .sub-menu a,
.classic-menu.mini .menu-level-1 a {
    color: #fff !important;
    font-size: 14px !important;
    padding: 5px 0 !important;
}

.classic-menu.mini .sub-menu a:hover,
.classic-menu.mini .menu-level-1 a:hover {
    color: #9370DB !important;
}

/* Ensure top-level menu items are visible and properly spaced */
.classic-menu.mini ul#menu-main-menu>li {
    display: inline-flex !important;
    align-items: center !important;
    height: 70px !important;
    position: relative !important;
}

.classic-menu.mini ul#menu-main-menu>li>a {
    color: #fff !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}


/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Make sure body and main areas have black background */
body,
.site-main,
.content-area {
    background-color: #000 !important;
}

/* ============================================
   HOMEPAGE SPECIFIC - HIDE ELEMENTOR CONTENT
   ============================================ */

/* On homepage, hide any Elementor content that might appear after our custom content */
body.home .nb-custom-homepage~.elementor,
body.home .nb-custom-homepage+.elementor-page,
body.page-template-front-page .elementor-widget-container:empty {
    display: none !important;
}

/* ============================================
   TYPOGRAPHY CONSISTENCY
   ============================================ */

/* Ensure Oswald is used for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
}

/* Add underline to h2 like on the live site */
.nb-section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #9370DB;
    margin-top: 10px;
}

/* ============================================
   SMOKE EFFECT
   ============================================ */

.nb-smoke-layer {
    filter: blur(20px) contrast(1.2) brightness(1.2);
    will-change: transform, opacity;
}

/* Add purple tint to specific layers */
.nb-smoke-layer.layer-2 {
    filter: blur(30px) contrast(1.5) drop-shadow(0 0 20px rgba(147, 112, 219, 0.4));
}

.nb-smoke-layer.layer-4 {
    filter: blur(40px) contrast(0.8) hue-rotate(280deg);
}

.smoke-container {
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    mix-blend-mode: screen;
}

/* ============================================
   WOOCOMMERCE DARK MODE STYLES
   ============================================ */

/* Main Container & Text */
.woocommerce,
.woocommerce-page,
.woocommerce-page .site-content,
.woocommerce-page .entry-content,
.woocommerce table.shop_table {
    background-color: #000 !important;
    color: #e5e5e5 !important;
}

/* Headings */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.woocommerce h5,
.woocommerce h6,
.woocommerce .woocommerce-billing-fields h3,
.woocommerce .woocommerce-shipping-fields h3,
.woocommerce #order_review_heading {
    color: #fff !important;
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #9370DB;
    /* Purple accent */
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Links */
.woocommerce a {
    color: #9370DB !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(147, 112, 219, 0.6);
}

/* Buttons (Primary & Secondary) */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
    background-color: transparent !important;
    color: #fff !important;
    border: 1px solid #9370DB !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover {
    background-color: #9370DB !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.5);
    transform: translateY(-2px);
}

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
    border-color: #555 !important;
    color: #777 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Form Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    padding: 12px !important;
    border-radius: 4px !important;
    font-family: 'Inter', sans-serif;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #9370DB !important;
    outline: none;
    box-shadow: 0 0 0 1px #9370DB;
}

/* Labels */
.woocommerce form .form-row label {
    color: #aaa !important;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables (Cart, Checkout Review) */
.woocommerce table.shop_table {
    border: 1px solid #333 !important;
    border-collapse: collapse !important;
    border-radius: 0 !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    background-color: #0a0a0a !important;
    border: 1px solid #222 !important;
    color: #ddd !important;
    padding: 15px !important;
}

.woocommerce table.shop_table th {
    color: #fff !important;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

/* Payment Methods Box */
.woocommerce-checkout #payment {
    background: #111 !important;
    border-radius: 4px !important;
    padding: 20px !important;
    border: 1px solid #333 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #333 !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #222 !important;
    color: #ccc !important;
    border: none !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #222 !important;
}

/* Notices / Alerts */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #111 !important;
    color: #fff !important;
    border-top: 3px solid #9370DB !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    color: #9370DB !important;
}

/* Order Total & Price */
.woocommerce-Price-amount {
    color: #fff !important;
    font-weight: bold;
}

.woocommerce-Price-currencySymbol {
    color: #9370DB !important;
}

/* Cart Empty Message */
.cart-empty.woocommerce-info {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
}

/* Account Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    border: 1px solid #333;
    border-radius: 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #333;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 15px 20px;
    color: #ccc !important;
    transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #9370DB;
    color: #000 !important;
    font-weight: 600;
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

@keyframes shimmer {
    0% {
        transform: translateX(-150%) skewX(-15deg);
    }

    100% {
        transform: translateX(150%) skewX(-15deg);
    }
}

/* Base state for the glint div */
.nb-glint-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-150%) skewX(-15deg);
    pointer-events: none;
    z-index: 15;
}

/* Trigger animation on parent hover */
.hero-cta-btn:hover .nb-glint-effect {
    animation: shimmer 0.8s ease-in-out forwards;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(147, 112, 219, 0.6);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 3s infinite;
}
/* ============================================
   CHECKOUT STYLING
   ============================================ */

/* Payment Method Labels (e.g., Barzahlung) - Ensure white text */
.wc_payment_method label,
.wc_payment_method input[type="radio"] + label {
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Payment Box Background */
.woocommerce-checkout #payment {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #eeeeee !important;
}

.woocommerce-checkout #payment div.payment_box:before {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   SINGLE PRODUCT CUSTOMIZATIONS
   ============================================ */

/* 1. Green Glowing Dot for In Stock */
.stock.in-stock {
    color: #4ade80 !important; /* Tailwind green-400 */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stock.in-stock:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* 2. Color Dropdown as CLICKABLE SWATCHES */
.variations td.value {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Hide default select if JS replacement is hard, but here we style the select to look better OR assume we use a plugin. 
   Since we don't have a plugin, we'll style the SELECT to be cleaner for now, 
   OR assume the user wants standard select but 'clickable' means better UX.
   ATTEMPT: Stylized Radio Buttons if possible?
   Standard WooCommerce uses <select>. To make them clickable tiles requires JS or a plugin.
   We will style the SELECT to be a premium aesthetic for now. 
*/

.variations select {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.variations select:focus {
    border-color: #9370DB;
    box-shadow: 0 0 0 2px rgba(147,112,219,0.2);
}

/* 3. Meta Data Styling (Category) */
.product_meta {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.product_meta a {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 5px;
    text-decoration: none;
    border-bottom: 1px solid rgba(147,112,219,0.5);
    transition: all 0.3s ease;
}

.product_meta a:hover {
    color: #9370DB;
    border-bottom-color: #9370DB;
}
