/*
Theme Name: Mishuna Alchemists
Theme URI: https://mishuna.cz/
Author: Tony
Description: Čistá custom šablona pro alchymistickou dílnu s Tailwind designem a WooCommerce integrací.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: mishuna-alchemists
*/

/* Zde zatím nebude žádné CSS. 
Veškerý vizuál budeme řešit přímo v HTML šablonách pomocí Tailwind tříd.
*/

/* 1. UNIKÁTNÍ ARTEFAKTY: Schování výběru množství */
.quantity, .product-quantity, .wc-block-components-quantity-selector {
    display: none !important;
}

/* 2. VYPRODÁNO: Zšednutí a rituální pečeť */
.outofstock {
    filter: grayscale(100%);
    opacity: 0.6;
    position: relative;
    pointer-events: none; /* Zákaz klikání na vyprodaný artefakt */
}

.outofstock::after {
    content: "VYPRODÁNO";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    color: #D4AF37;
    border: 2px solid #D4AF37;
    padding: 12px 24px;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    white-space: nowrap;
}

/* Skrytí tlačítek u vyprodaných kusů */
.outofstock .add_to_cart_button, 
.outofstock .button,
.outofstock .ajax_add_to_cart {
    display: none !important;
}

/* 3. ZLATÁ OZNÁMENÍ (Fixní nahoře na středu) */
.woocommerce-error, 
.woocommerce-message, 
.woocommerce-info {
    position: fixed !important;
    top: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    background: #0a0a0a !important;
    border: 2px solid #D4AF37 !important;
    color: #ffffff !important;
    padding: 20px 40px !important;
    font-family: 'Cinzel Decorative', cursive !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.4) !important;
    width: auto !important;
    max-width: 90% !important;
    list-style: none !important;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 1px;
}

/* 4. FIX PRO ADRESU: Vynucení bílé barvy na černém */
.wc-block-components-address-display,
.wc-block-components-address-display *,
.wc-block-components-checkout-step__description * {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Tlačítko "Upravit" - zlaté a podtržené */
.wc-block-components-checkout-step__heading-button {
    color: #D4AF37 !important;
    text-decoration: underline !important;
    font-family: 'Cinzel Decorative', cursive !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
}


/* --- TOTÁLNÍ FIX STRÁNKY OBCHODNÍCH PODMÍNEK (Mishuna Alchemists) --- */

/* 1. Pozadí a celkový vzhled stránky */
.page-id-3 {
    background-color: #000 !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.95)), 
                      url('https://umishuny.cz/wp-content/themes/mishuna-alchemists/img/pozadi.jpg') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #ffffff !important;
}

/* 2. Odstranění bílých bloků a reset kontejneru */
.page-id-3 #primary, 
.page-id-3 main, 
.page-id-3 article {
    background: transparent !important;
    border: none !important;
}

/* 3. HLAVNÍ KONTEJNER (Box s textem) */
.page-id-3 .entry-content {
    max-width: 900px;
    margin: 60px auto !important;
    padding: 80px 60px !important;
    background: rgba(10, 10, 10, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    display: block !important;
}

/* 4. AGRESIVNÍ DEFINICE VELIKOSTÍ NADPISŮ */
/* Používáme vysoké hodnoty v pixelech, abychom přebili nastavení z editoru */

.page-id-3 .entry-content h1, 
.page-id-3 .entry-content h1 * { 
    font-size: 52px !important; 
}

.page-id-3 .entry-content h2, 
.page-id-3 .entry-content h2 * { 
    font-size: 38px !important; 
}

.page-id-3 .entry-content h3, 
.page-id-3 .entry-content h3 * { 
    font-size: 28px !important; 
}

/* Společné vlastnosti pro všechny nadpisy - Vynucení zlaté barvy i na vnořené spany */
.page-id-3 .entry-content h1, 
.page-id-3 .entry-content h2, 
.page-id-3 .entry-content h3,
.page-id-3 .entry-content h1 span,
.page-id-3 .entry-content h2 span,
.page-id-3 .entry-content h3 span {
    font-family: 'Cinzel Decorative', cursive !important;
    color: #D4AF37 !important; /* Tato barva teď přebije i manuálně vybranou bílou v editoru */
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    line-height: 1.2 !important;
    font-weight: bold !important;
}

/* Mezery a odsazení nadpisů */
.page-id-3 .entry-content h1, 
.page-id-3 .entry-content h2, 
.page-id-3 .entry-content h3 {
    margin-top: 3.5em !important; 
    margin-bottom: 1.2em !important; 
    display: block !important;
    clear: both !important;
}

/* Vynucení mezer mezi bloky */
.page-id-3 .entry-content > * {
    margin-bottom: 1.8rem !important;
}

/* První prvek v boxu nemá mezeru nahoře */
.page-id-3 .entry-content > *:first-child {
    margin-top: 0 !important;
}

/* 5. Odstavce a seznamy - prodyšnost */
.page-id-3 .entry-content p, 
.page-id-3 .entry-content li {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8 !important; 
    font-size: 16px !important;
    margin-bottom: 1.5em !important;
    display: block !important;
}

/* 6. Stylování odkazů */
.page-id-3 .entry-content a {
    color: #D4AF37 !important;
    text-decoration: underline !important;
    font-weight: bold;
}

.page-id-3 .entry-content a:hover {
    color: #fff !important;
}

/* 7. Fix pro Gutenberg oddělovače */
.page-id-3 .wp-block-separator {
    border: none !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
    margin: 4em auto !important;
    max-width: 60%;
    opacity: 1 !important;
}