/*
 Theme Name:   Storefront Child - Numismatický styl
 Theme URI:    https://woocommerce.com/products/storefront/
 Description:  A child theme for the Storefront theme with numismatic styling.
 Author:       Gemini Code Assist
 Author URI:   https://gemini.google.com/
 Template:     storefront
 Version:      1.0.0
 License:      GNU General Public License v3 or later
 License URI:  https://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  storefront-child
*/

/* ============================================
   ELEGANTNÍ NUMISMATICKÝ STYL
   ============================================ */

/* Import klasických fontů */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* Elegantní barevná paleta */
:root {
    --color-parchment: #faf8f3;
    --color-warm-white: #f5f2ed;
    --color-light-taupe: #e6d7c3;
    --color-medium-brown: #b8956d;
    --color-deep-brown: #8b6f47;
    --color-dark-coffee: #5d4037;
    --color-antique-gold: #d4af37;
    --color-bronze-text: #6d4c2c;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Crimson Text', 'Libre Baskerville', Georgia, serif;
}
 
/* Základní typografie */
body {
    font-family: var(--font-body);
    background: var(--color-parchment);
    background-image: 
        /* Ornamentální vzory */
        radial-gradient(circle at 20% 20%, rgba(184, 149, 109, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 40% 70%, rgba(139, 111, 71, 0.06) 0%, transparent 15%),
        radial-gradient(circle at 90% 30%, rgba(184, 149, 109, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 10% 60%, rgba(212, 175, 55, 0.04) 0%, transparent 18%),
        /* Textury připomínající staré pergameny */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(139, 111, 71, 0.02) 2px,
            rgba(139, 111, 71, 0.02) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(184, 149, 109, 0.015) 3px,
            rgba(184, 149, 109, 0.015) 6px
        ),
        /* Základní gradient pozadí */
        linear-gradient(135deg, 
            var(--color-parchment) 0%, 
            #f7f4ef 25%, 
            var(--color-warm-white) 50%, 
            #f9f6f1 75%, 
            var(--color-parchment) 100%
        );
    background-size: 
        300px 300px,
        250px 250px,
        180px 180px,
        320px 320px,
        200px 200px,
        40px 40px,
        60px 60px,
        100% 100%;
    background-attachment: fixed;
    color: var(--color-dark-coffee);
    line-height: 1.7;
    font-size: 16px;
}

/* Magazin: skrýt štítky na výpisu článků a zarovnat náhled vlevo na desktopu */
.blog .entry-footer .tags-links { display: none !important; }
.blog .entry-meta a[rel="tag"], .blog .entry-footer a[rel="tag"] { display: none !important; }
.blog .entry-footer .cat-links { display: inline-block; }
@media (min-width: 768px) {
  .blog article.hentry { display: flow-root; }
  .blog article.hentry .post-thumbnail { float: left; width: 25%; max-width: 280px; margin: 0 18px 10px 0; }
  .blog article.hentry .post-thumbnail img { width: 100% !important; height: auto; display: block; }
  .blog .entry-content > img.wp-post-image { float: left; width: 25% !important; max-width: 320px; margin: 0 18px 10px 0; height: auto; display: block; }
  .blog .entry-content p { overflow: hidden; }
  .blog article.hentry .entry-header, .blog article.hentry .entry-content { overflow: hidden; }
}

/* Elegantní nadpisy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-bronze-text);
    font-weight: 500;
    letter-spacing: 0.3px;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

/* Čistý header - zmenšený */
.site-header {
    background: rgba(245, 242, 237, 0.95);
    border-bottom: 1px solid var(--color-light-taupe);
    box-shadow: 0 1px 5px rgba(93, 64, 55, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

.site-title a {
    font-family: var(--font-display);
    color: var(--color-bronze-text) !important;
    font-size: 1.1em;
    font-weight: 600;
   
    text-decoration: none;
}

/* Numismatické logo s symbolem */
.site-title a::before {
   
}

.site-title a:hover::before {
    color: var(--color-medium-brown);
}

/* Zmenšené menu */
.main-navigation {
    font-size: 0.9em;
}

.main-navigation ul li a {
    font-family: var(--font-body);
    color: var(--color-deep-brown);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 8px 12px;
}

.main-navigation ul li a:hover {
    color: var(--color-antique-gold);
}

/* Čisté produktové karty bez rámečků */
.woocommerce ul.products li.product {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    overflow: visible;
    padding: 20px 10px;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
}

/* Hranaté obrázky s elegantnami rámečky */
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
    border: 4px solid var(--color-medium-brown);
    border-radius: 8px;
    padding: 8px;
    background: var(--color-warm-white);
    transition: all 0.4s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.15);
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__link img {
    border-color: var(--color-antique-gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
    transform: scale(1.02);
}

/* Elegantní názvy produktů */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-display);
    color: var(--color-bronze-text);
    font-size: 1.4em;
    font-weight: 500;
    margin: 20px 0 10px;
    text-align: center;
    line-height: 1.3;
}

/* Rafinované ceny */
.woocommerce .price {
    font-family: var(--font-display);
    color: var(--color-antique-gold);
    font-weight: 600;
    font-size: 1.4em;
    text-align: center;
    font-style: italic;
}

.woocommerce .price del {
    color: var(--color-medium-brown);
    opacity: 0.6;
    font-style: normal;
}

/* Elegantní tlačítka */
.button, 
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--color-deep-brown);
    color: var(--color-warm-white);
    border: 2px solid var(--color-deep-brown);
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--color-antique-gold);
    border-color: var(--color-antique-gold);
    color: var(--color-dark-coffee);
    transform: translateY(-1px);
}

/* Čistá detailní stránka produktu */
.single-product .product {
    background: rgba(245, 242, 237, 0.92);
    border: none;
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 3px 20px rgba(93, 64, 55, 0.08);
    backdrop-filter: blur(8px);
    position: relative;
}

.single-product .product .product_title {
    font-family: var(--font-display);
    color: var(--color-bronze-text);
    font-size: 2.8em;
    text-align: center;
    font-weight: 500;
    margin-bottom: 30px;
    font-style: italic;
}

/* Hlavní obrázek produktu */
.single-product .woocommerce-product-gallery__wrapper img {
    border: 4px solid var(--color-medium-brown);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.18);
    background: var(--color-warm-white);
    padding: 6px;
}

/* Kompaktní galerie náhledů pod hlavním obrázkem */
.single-product .woocommerce div.product .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.single-product .woocommerce div.product .flex-control-thumbs li {
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}
.single-product .woocommerce div.product .flex-control-thumbs img {
    width: 100% !important;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--color-light-taupe);
    background: var(--color-warm-white);
    padding: 0;
    box-shadow: 0 1px 6px rgba(93, 64, 55, 0.08);
}
.single-product .woocommerce div.product .flex-control-thumbs img:hover {
    border-color: var(--color-antique-gold);
}
.single-product .woocommerce div.product .flex-control-thumbs img.flex-active {
    border-color: var(--color-antique-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Kompaktní chování na mobilu – horizontální posuvník náhledů */
@media (max-width: 600px) {
  .single-product .woocommerce div.product .flex-control-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .single-product .woocommerce div.product .flex-control-thumbs li {
    flex: 0 0 auto;
    width: 64px !important;
  }
  .single-product .woocommerce div.product .flex-control-thumbs img {
    width: 64px !important;
    height: 64px;
  }
}

/* Přebití původních WooCommerce marginů u columns-4 – pár px mezery */
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
    margin-right: 6px !important;
    margin-bottom: 6px;
    float: none !important;
    width: auto !important;
    display: inline-block;
}

/* Čistý popis produktu */
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel {
    font-family: var(--font-body);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 25px 0;
    margin: 20px 0;
    line-height: 1.8;
    font-size: 16px;
}

.woocommerce-Tabs-panel h2 {
    border-bottom: 2px solid var(--color-light-taupe);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Stylové kontaktní informace */
#obfuscated-contact-info {
    background: rgba(245, 242, 237, 0.9);
    border: 1px solid var(--color-light-taupe);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    font-family: var(--font-body);
    box-shadow: 0 2px 10px rgba(93, 64, 55, 0.05);
    backdrop-filter: blur(5px);
}

#obfuscated-contact-info p {
    margin: 12px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

#obfuscated-contact-info strong {
    color: var(--color-bronze-text);
    font-family: var(--font-display);
    font-weight: 600;
}

/* Elegantní footer */
.site-footer {
    background: linear-gradient(135deg, 
        rgba(139, 111, 71, 0.95) 0%, 
        rgba(93, 64, 55, 0.98) 100%
    );
    color: var(--color-warm-white);
    border-top: 1px solid var(--color-bronze-text);
    padding: 40px 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.site-footer a {
    color: #ffffff !important;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--color-antique-gold) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.site-footer p,
.site-footer li,
.site-footer span {
    color: var(--color-warm-white);
}

/* ============================================
   NUMISMATICKÉ ORNAMENTÁLNÍ POZADÍ
   ============================================ */

/* Ornamentální pseudo-elementy pro hlavní obsah */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Kornery s ornamentálními vzory */
        radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.08) 0%, transparent 30%),
        radial-gradient(ellipse at top right, rgba(184, 149, 109, 0.06) 0%, transparent 30%),
        radial-gradient(ellipse at bottom left, rgba(139, 111, 71, 0.05) 0%, transparent 30%),
        radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.07) 0%, transparent 30%),
        /* Centrální ornamentální kruh */
        radial-gradient(circle at center, 
            transparent 40%, 
            rgba(184, 149, 109, 0.03) 45%, 
            rgba(212, 175, 55, 0.02) 50%, 
            transparent 55%
        );
    background-size: 
        600px 400px,
        600px 400px,
        600px 400px,
        600px 400px,
        800px 800px;
    z-index: -2;
    pointer-events: none;
}

/* Ornamentální dekorativní prvky */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Vzory připomínající mincové ornamenty */
        repeating-conic-gradient(
            from 0deg at 15% 15%, 
            transparent 0deg 30deg, 
            rgba(184, 149, 109, 0.02) 30deg 60deg, 
            transparent 60deg 90deg
        ),
        repeating-conic-gradient(
            from 45deg at 85% 85%, 
            transparent 0deg 45deg, 
            rgba(212, 175, 55, 0.015) 45deg 90deg, 
            transparent 90deg 135deg
        ),
        repeating-conic-gradient(
            from 90deg at 15% 85%, 
            transparent 0deg 60deg, 
            rgba(139, 111, 71, 0.01) 60deg 120deg, 
            transparent 120deg 180deg
        ),
        repeating-conic-gradient(
            from 135deg at 85% 15%, 
            transparent 0deg 30deg, 
            rgba(184, 149, 109, 0.015) 30deg 90deg, 
            transparent 90deg 120deg
        );
    background-size: 
        400px 400px,
        350px 350px,
        300px 300px,
        450px 450px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Dekorativní ornamentální pruhy */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-medium-brown) 20%, 
        var(--color-antique-gold) 50%, 
        var(--color-medium-brown) 80%, 
        transparent 100%
    );
    z-index: 1;
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-antique-gold) 20%, 
        var(--color-medium-brown) 50%, 
        var(--color-antique-gold) 80%, 
        transparent 100%
    );
    z-index: 1;
}

/* Ornamentální pozadí pro produktové sekce */
.woocommerce ul.products {
    position: relative;
}

.woocommerce ul.products::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.04) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(184, 149, 109, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 75% 25%, rgba(139, 111, 71, 0.02) 0%, transparent 20%),
        radial-gradient(circle at 25% 75%, rgba(212, 175, 55, 0.03) 0%, transparent 25%);
    background-size: 
        200px 200px,
        250px 250px,
        180px 180px,
        220px 220px;
    z-index: -1;
    border-radius: 20px;
}

/* Responzivní design */
@media (max-width: 768px) {
    .site-title a {
        font-size: 2em;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .single-product .product {
        padding: 25px;
        margin: 15px 0;
    }
    
    .single-product .product .product_title {
        font-size: 2.2em;
    }
    
    .woocommerce ul.products li.product {
        padding: 15px 5px;
    }
}

/* ============================================
   RESPONZIVNÍ ÚPRAVY PRO ZMENŠENÝ HEADER
   ============================================ */

/* Header na mobilních zařízeních */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
    }
    
    .site-title a {
        font-size: 1.4em;
    }
    
    .site-title a::before {
        font-size: 1em;
        margin-right: 5px;
    }
    
    .main-navigation {
        font-size: 0.85em;
    }
    
    .main-navigation ul li a {
        padding: 6px 8px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .single-product .product {
        padding: 25px;
        margin: 15px 0;
    }
    
    .single-product .product .product_title {
        font-size: 2.2em;
    }
    
    .woocommerce ul.products li.product {
        padding: 15px 5px;
    }
}

/* Tablet zobrazení */
@media (max-width: 1024px) and (min-width: 769px) {
    .site-title a {
        font-size: 1.6em;
    }
    
    .main-navigation {
        font-size: 0.9em;
    }
}

/* Subtilní animace pro produkty */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    transition: color 0.3s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--color-antique-gold);
}

/* Vylepšení pro full-width layout */
.full-width .col-full {
    max-width: 100%;
    padding: 0 20px;
}

/* Elegantní separátory */
.woocommerce-tabs .panel h2:first-child {
    position: relative;
}

.woocommerce-tabs .panel h2:first-child::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-antique-gold);
}

/* ============================================
   SKRYTÍ NÁKUPNÍCH PRVKŮ - INZERTNÍ WEB
   ============================================ */

/* Skrytí tlačítek "Přidat do košíku" */
.woocommerce .add_to_cart_button,
.woocommerce .single_add_to_cart_form,
.woocommerce .cart,
.woocommerce .checkout,
.woocommerce-cart,
.woocommerce-checkout,
.add-to-cart,
.single_add_to_cart_form .cart,
.woocommerce div.product form.cart,
.woocommerce #respond input#submit.single_add_to_cart_button,
.woocommerce a.button.product_type_simple,
.woocommerce button.button.product_type_simple {
    display: none !important;
}

/* Skrytí ceny na kartách v archivech, ale zobrazit na detailu */
.archive .woocommerce ul.products li.product .price,
.blog .woocommerce ul.products li.product .price,
.home .woocommerce ul.products li.product .price,
.tax-product_cat .woocommerce ul.products li.product .price,
.tax-product_tag .woocommerce ul.products li.product .price,
.post-type-archive-product .woocommerce ul.products li.product .price {
    display: none !important;
}

/* Skrytí košíku v headeru */
.site-header-cart,
.cart-contents,
.woocommerce-cart-form,
.cart-collaterals {
    display: none !important;
}

/* Úprava layoutu bez košíku */
.single-product .summary .price {
    margin-bottom: 16px;
    font-size: 1.6em;
    text-align: center;
    display: block !important; /* přebije případné globální skrytí */
}

/* Odkazy pod popisem na detailu produktu */
.single-product .product-extra-links {
    margin: 14px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.single-product .product-extra-links .product-category-line {
    text-align: center;
    font-weight: 600;
}
.single-product .product-extra-links a {
    align-self: center;
}

.single-product .product-meta-info {
    margin-top: 8px;
    text-align: center;
    color: #666;
    font-size: 0.95em;
}

/* Počet zobrazení na detailu */
.single-product .product-view-counter {
    margin-top: 8px;
    text-align: center;
    color: #444;
}

/* Skrýt duplicitní kategorii v defaultním Woo meta bloku */
.single-product .product_meta .posted_in {
    display: none !important;
}

/* ============================================
   User Product Editor – required fields styling
   ============================================ */
.ufe-product-form .field.required label .req {
    color: #b71c1c;
    margin-left: 4px;
}
.ufe-product-form .field.error input,
.ufe-product-form .field.error textarea,
.ufe-product-form .field.error select {
    border-color: #b71c1c !important;
    background: #fdecea;
}
.ufe-product-form .ufe-notice {
    padding: 8px 10px;
    background: #fff3cd;
    border-left: 4px solid #ffec99;
}

/* Image previews actions */
.ufe-previews .actions { display: flex; gap: 6px; align-items: center; }
.ufe-previews .make-main { background: #eee; border: 1px solid #ccc; padding: 2px 6px; cursor: pointer; }
.ufe-previews .make-main.active { background: #ffd54f; border-color: #f0b400; }
.ufe-previews .remove { background: #f8d7da; border: 1px solid #dc3545; color: #721c24; padding: 2px 8px; cursor: pointer; }

/* Progress bar */
.ufe-product-form .ufe-progress { position: relative; height: 10px; background: #f1f1f1; border-radius: 6px; margin: 10px 0 16px; overflow: hidden; }
.ufe-product-form .ufe-progress .bar { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, #4caf50, #81c784); transition: width .25s ease; }
.ufe-product-form .ufe-progress .label { margin-top: 6px; font-size: .9em; color: #555; text-align: right; cursor: help; }
.ufe-product-form .ufe-progress .hint { margin-top: 4px; font-size: .85em; color: #666; text-align: right; }

/* Disabled submit styling */
.ufe-product-form #ufe_submit.is-disabled,
.ufe-product-form #ufe_submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Inline hint under fields */
.ufe-product-form .ufe-inline-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.85em;
    color: #b71c1c;
}

/* Map containers */
.ufe-map { height: 260px; border-radius: 6px; overflow: hidden; margin: 8px 0 12px; }
.product-map { height: 280px; }

/* City suggestions dropdown */
.ufe-city-suggest { position: relative; }
.ufe-city-suggest { position: relative; }
.ufe-city-suggest[role="listbox"] { display:none; position: absolute; left:0; right:0; background:#fff; border:1px solid #ddd; max-height:180px; overflow:auto; z-index: 1000; }
.ufe-city-suggest [role="option"] { padding:6px 8px; cursor:pointer; }
.ufe-city-suggest [role="option"]:hover, .ufe-city-suggest [role="option"]:focus { background:#f5f5f5; }

.ufe-geo-btn { font-size: .85em; margin-left: 8px; padding: 2px 8px; }

/* Top action bar */
.site-action-bar {
    width: 100%;
    background: var(--color-bronze-text);
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.site-action-bar a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.site-action-bar a .icon { display:inline-flex; align-items:center; justify-content:center; line-height: 1; }
.site-action-bar a .icon svg { width: 1.1em; height: 1.1em; display:block; }
.site-action-bar a:hover, .site-action-bar a:focus { text-decoration: underline; }

/* Header centered search bar */
.site-header .site-search-bar { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 6px 12px; }
.site-header .site-search-bar form[role="search"] { width: 100%; max-width: 640px; }
.site-header .site-search-bar form[role="search"] { display: flex; align-items: center; gap: 8px; }
.site-header .site-search-bar .search-field { width: 100%; flex: 7 1 0; }
.site-header .site-search-bar input[type="submit"],
.site-header .site-search-bar button[type="submit"] { flex: 3 1 0; width: auto; }

@media (max-width: 768px) {
  .site-header .site-search-bar { order: 50; width: 100%; padding: 8px 0 0; }
  .site-header .site-search-bar form[role="search"] { max-width: none; }
  /* Move main menu (hamburger) to top-right, above search */
  .site-header .site-branding { order: 5; }
  .site-header .storefront-primary-navigation { order: 10; }
  .site-header .site-header-cart { order: 15; margin-left: 8px; }
  /* With search moved below nav, extra padding reduced */
  .site-header .col-full { position: relative; }
  .site-header .site-search-bar { padding-top: 8px; }
  /* Place the whole primary navigation container to top-right */
  .site-header .storefront-primary-navigation { position: absolute; top: 6px; right: 12px; z-index: 1001; }
  .site-header .storefront-primary-navigation .menu-toggle { margin-left: auto; }
  /* Ensure handheld dropdown overlays the search */
  .handheld-navigation,
  .storefront-primary-navigation .handheld-navigation,
  .main-navigation.toggled .handheld-navigation {
    position: relative;
    z-index: 2000;
  }
  /* Keep search below the handheld overlay */
  .site-header .site-search-bar { z-index: 1; }
}
/* Desktop uses default Storefront order (no custom flex ordering) */
/* Hide duplicate Storefront header search instances; keep only our .site-search-bar */
.site-header .site-search,
.site-header .widget_product_search,
.site-header .storefront-product-search {
  display: none !important;
}

/* Search suggest dropdown */
.search-suggest-box { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #ddd; z-index: 9999; display: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.search-suggest-box .item { padding: 8px 10px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.search-suggest-box .item:hover, .search-suggest-box .item:focus { background: #f7f7f7; }
.search-suggest-box .item-category .label::before { content: '🗂️ '; }
.search-suggest-box .item-product .label::before { content: '🛒 '; }

/* Search categories bar on results */
.search-categories-bar { margin: 10px 0 14px; font-size: .95em; }
.search-categories-bar a { color: var(--color-link, #0a58ca); }

/* Zvýraznění kontaktních informací místo košíku */
.single-product #obfuscated-contact-info {
    margin-top: 30px;
    border: 2px solid var(--color-antique-gold);
    background: rgba(212, 175, 55, 0.1);
}



/* ============================================
   ÚPRAVA VELIKOSTI LOGA A HEADERU
   ============================================ */

/* Zmenšení paddingu v headeru */
.site-header {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Zmenšení paddingu v menu */
.main-navigation ul li a {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* Zmenšení velikosti písma loga pro desktop */
.site-title a {
    font-size: 1.5em !important;
}

/* Zmenšení velikosti písma loga pro tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .site-title a {
        font-size: 1.4em !important;
    }
}

/* Zmenšení velikosti písma loga pro mobilní zařízení */
@media (max-width: 768px) {
    .site-title a {
        font-size: 1.2em !important;
    }
}

/* ============================================
   FORCE FULL-WIDTH CONTENT (NO SIDEBAR)
   ============================================ */
body.full-width .site-content .content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

body.full-width .site-content .widget-area {
    display: none !important;
}

/* Ensure container spans full width too */
body.full-width .col-full {
    max-width: 100% !important;
}

/* Left sidebar custom rules removed to restore previous layout */

/* Place sidebar on the left for Woo shop archives without changing widths */
body.post-type-archive-product .site-content .widget-area,
body.tax-product_cat .site-content .widget-area,
body.tax-product_tag .site-content .widget-area,
body.woocommerce-shop .site-content .widget-area {
    float: left;
}
body.post-type-archive-product .site-content .content-area,
body.tax-product_cat .site-content .content-area,
body.tax-product_tag .site-content .content-area,
body.woocommerce-shop .site-content .content-area {
    float: right;
}
/* Add inner gap between sidebar and content without affecting widths */
body.post-type-archive-product .site-content .content-area,
body.tax-product_cat .site-content .content-area,
body.tax-product_tag .site-content .content-area,
body.woocommerce-shop .site-content .content-area {
    padding-left: 24px;
    box-sizing: border-box;
}

/* Make shop archives container full width like other pages */
body.post-type-archive-product .col-full,
body.tax-product_cat .col-full,
body.tax-product_tag .col-full,
body.woocommerce-shop .col-full {
    max-width: 100% !important;
    padding: 0 20px;
}
/* Product Watchdog block above footer */
.product-watchdog-wrapper {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin: 0 auto;
    text-align: center;
}

/* =========================
   MAGAZIN – ÚPRAVY VÝPISU
   ========================= */
/* Skrytí štítků na výpisu článků */
.blog .tags-links,
.blog .entry-footer .tags-links,
.blog .storefront-post-taxonomy .tags-links,
.blog .entry-taxonomy .tags-links { display: none !important; }

/* Obrázek vlevo max 25% šířky na desktopu */
@media (min-width: 768px) {
  .blog article.hentry { display: flow-root; }
  .blog article.hentry .post-thumbnail { float: left; width: 25% !important; max-width: 320px; margin: 0 18px 10px 0; clear: none; }
  .blog article.hentry .post-thumbnail img { width: 100% !important; height: auto; display: block; }
  .blog article.hentry .entry-header, .blog article.hentry .entry-content { overflow: hidden; }
}

.product-watchdog-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Lay out Product Watchdog inputs in 3 columns */
.product-watchdog-form form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.product-watchdog-form form p {
    margin: 0;
}

.product-watchdog-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.product-watchdog-form input[type="email"],
.product-watchdog-form input[type="text"] {
    width: 100% !important;
}

.product-watchdog-form input[type="submit"] {
    width: 100%;
    padding: 10px 14px;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .product-watchdog-form form {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SUBCATEGORY LIST (2-COLUMN)
   ============================================ */
.wc-subcat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.wc-subcat-list.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
}

.wc-subcat-list li {
    margin: 0;
}

.wc-subcat-list a {
    text-decoration: none;
    font-weight: 600;
}

.wc-subcat-list .count {
    color: #666;
    margin-left: 6px;
}

.wc-subcat-heading {
    margin: 10px 0 12px;
}

@media (max-width: 640px) {
    .wc-subcat-list.two-col {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SORTING LINKS + PAGINATION
   ============================================ */
.storefront-child-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 10px 0 18px;
    flex-wrap: wrap;
}

.catalog-ordering-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-ordering-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-deep-brown);
    padding: 6px 10px;
    border: 1px solid var(--color-light-taupe);
    border-radius: 6px;
    background: #fff;
}

.catalog-ordering-links a.active,
.catalog-ordering-links a:hover {
    color: var(--color-dark-coffee);
    border-color: var(--color-antique-gold);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Hide any leftover default dropdown if present */
.woocommerce-ordering { display: none !important; }

/* Center pagination on its own row */
nav.woocommerce-pagination {
    clear: both;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* ============================================
   USER PRODUCT EDITOR FORM
   ============================================ */
.ufe-product-form input[type="text"],
.ufe-product-form input[type="email"],
.ufe-product-form select,
.ufe-product-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-light-taupe, #ddd);
    border-radius: 4px;
    box-sizing: border-box;
}

.ufe-product-form label {
    font-weight: 600;
}

/* Drag & drop upload */
.ufe-dropzone {
    margin-top: 6px;
    padding: 16px;
    border: 2px dashed var(--color-light-taupe, #d9d9d9);
    border-radius: 8px;
    text-align: center;
    color: #555;
    background: #fafafa;
    cursor: pointer;
}
.ufe-dropzone.over { background: #fff7e6; border-color: var(--color-antique-gold, #d4af37); }

.ufe-previews {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.ufe-preview {
    position: relative;
    border: 1px solid var(--color-light-taupe, #e5e5e5);
    border-radius: 6px;
    padding: 6px;
    background: #fff;
}
.ufe-preview img { width: 100%; height: 90px; object-fit: cover; border-radius: 4px; }
.ufe-preview .name { font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ufe-preview .remove {
    position: absolute;
    top: 4px;
    right: 4px;
    border: 1px solid #b71c1c;
    background: #d32f2f;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.ufe-preview .remove:hover { background: #b71c1c; }
.ufe-preview .remove:focus { outline: 2px solid rgba(211,47,47,0.35); outline-offset: 1px; }
.ufe-preview .drag-handle { position: absolute; left: 4px; top: 4px; font-size: 14px; cursor: move; opacity: 0.7; }
.ufe-preview.existing.dragging, .ufe-preview.dragging { opacity: 0.6; }

/* Category selector */
.ufe-category-control { position: relative; }
.ufe-category-control #ufe_category_search {
    width: 100%; padding: 8px; border: 1px solid var(--color-light-taupe, #ddd); border-radius: 4px; box-sizing: border-box;
}
.ufe-category-list {
    max-height: 220px; overflow: auto; border: 1px solid var(--color-light-taupe, #ddd); border-top: none; border-radius: 0 0 6px 6px; background: #fff; padding: 6px;
}
.ufe-category-list [role="option"] { padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.ufe-category-list [role="option"].active { background: rgba(212,175,55,0.15); }
.ufe-category-list [role="option"][data-level="1"] { padding-left: 18px; }

/* Full-width submit button with gradient */
.ufe-product-form input[type="submit"],
.ufe-product-form .button[type="submit"],
.ufe-product-form .button {
    width: 100%;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.95) 0%, rgba(93, 64, 55, 0.98) 100%);
    color: #fff;
    border: 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
}
/* Global primary button style for CTA links */
.ufe-primary-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.95) 0%, rgba(93, 64, 55, 0.98) 100%);
    color: #fff !important;
    border: 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}
.ufe-primary-button:hover { filter: brightness(1.03); }


/* Note about selected category on editor */
.ufe-category-note {
    margin: 8px 0 10px;
    padding: 8px 10px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--color-light-taupe, #e5e0d6);
    border-radius: 6px;
    font-weight: 600;
}

/* Product meta (ID + date) under title */
.product-meta-info {
    margin: 6px 0 10px;
    font-size: 0.95em;
    color: #555;
}

/* Archived product notice */
.product-archived-notice {
    margin: 8px 0 12px;
    padding: 10px 12px;
    background: #fff3f3;
    border: 1px solid #f1c0c0;
    color: #8a1f1f;
    border-radius: 6px;
    font-weight: 600;
}

/* =========================
   MAGAZIN – ÚPRAVY VÝPISU
   ========================= */
/* Skrytí štítků na výpisu článků */
.blog .tags-links,
.blog .entry-footer .tags-links,
.blog .storefront-post-taxonomy .tags-links,
.blog .entry-taxonomy .tags-links,
.home .tags-links,
.home .entry-footer .tags-links,
.home .entry-meta a[rel="tag"],
.home .entry-footer a[rel="tag"] { display: none !important; }

/* Obrázek vlevo max 25% šířky na desktopu – pro variantu s IMG v entry-content */
@media (min-width: 768px) {
  .home .entry-content > img.wp-post-image,
  /* removed clickable wrapper variant */
  .blog .entry-content > img.wp-post-image { float:left; width:25% !important; max-width:320px; height:auto; margin:0 18px 10px 0; display:block; }
  .home .entry-content .mag-excerpt,
  .blog .entry-content .mag-excerpt { overflow:hidden; }
}
/* Enable line-clamp for excerpt paragraph; lines are set via JS based on image height */
.home .entry-content .mag-excerpt,
.blog .entry-content .mag-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Hide author on listings and single posts */
.blog .entry-meta .byline,
.blog .entry-meta .author,
.blog .entry-meta a[rel="author"],
.single-post .entry-meta .byline,
.single-post .entry-meta .author,
.single-post .entry-meta a[rel="author"]{ display:none !important; }
