/* ===========================================
   Gastronom Language Switcher Button v2
   =========================================== */
.gls-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    display: flex;
    gap: 2px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 2px;
}

/* When moved into header by JS */
.gls-switcher.gls-in-header {
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    gap: 4px;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
    z-index: auto;
}

.gls-btn {
    border: none !important;
    background: transparent !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 700;
    color: #999 !important;
    transition: all 0.2s ease !important;
    line-height: 1;
}

.gls-btn:hover {
    color: #1a3a5c !important;
    background: transparent !important;
}

.gls-btn.active {
    background: #1a3a5c !important;
    color: #fff !important;
    box-shadow: 0 1px 4px rgba(26,58,92,0.3);
}

@media (max-width: 768px) {
    .gls-switcher {
        top: auto;
        bottom: 12px;
        right: 12px;
    }
    .gls-switcher.gls-in-header {
        position: static;
    }
}

/* ===========================================
   GASTRONOM SITE-WIDE STYLING OVERHAUL
   Color scheme: Navy (#1a3a5c) + Gold (#c8a455)
   =========================================== */

/* --- Color Scheme Override --- */
/* Change all red/green theme accents to navy blue */
a, 
.woocommerce-result-count,
.cat-item a,
.widget_product_categories a,
.entry-title a:hover {
    color: #1a3a5c !important;
}

a:hover,
.cat-item a:hover,
.widget_product_categories a:hover {
    color: #c8a455 !important;
}

/* Primary buttons: red -> navy */
button,
input[type="submit"],
.button,
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wp-block-button__link,
#theme-starter .starter-btn a,
.starter-btn a,
.wc-block-grid__product-add-to-cart a,
a.added_to_cart,
.food_grocery_store_starter .starter-btn a {
    background-color: #1a3a5c !important;
    background: #1a3a5c !important;
    color: #fff !important;
    border-color: #1a3a5c !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wp-block-button__link:hover,
a.added_to_cart:hover {
    background-color: #c8a455 !important;
    background: #c8a455 !important;
    border-color: #c8a455 !important;
    color: #fff !important;
}

/* Search button */
.search-box button,
.woocommerce-product-search button,
form.woocommerce-product-search button[type="submit"] {
    background: #1a3a5c !important;
    color: #fff !important;
    border: none !important;
}

.search-box button:hover,
.woocommerce-product-search button:hover {
    background: #c8a455 !important;
}

/* Header background */
.header,
.main-header,
.site-header,
#header,
header.header {
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

/* Navigation menu */
.main-navigation a,
.primary-navigation a,
nav.main-navigation ul li a,
.main-menu a,
#theme-starter .main-menu a {
    color: #333 !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.main-navigation a:hover,
.primary-navigation a:hover,
nav.main-navigation ul li a:hover,
.main-navigation .current-menu-item > a,
.primary-navigation .current-menu-item > a,
nav.main-navigation ul li.current-menu-item > a {
    color: #1a3a5c !important;
}

/* Active menu item styling */
.main-navigation .current-menu-item > a,
nav.main-navigation ul li.current-menu-item > a {
    color: #1a3a5c !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #1a3a5c !important;
    padding-bottom: 2px !important;
}

/* --- Logo Size Fix --- */
.logo img,
.custom-logo,
.site-logo img,
.custom-logo-link img,
img.custom-logo,
.header .logo img,
.site-branding img {
    max-height: 70px !important;
    max-width: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.logo,
.custom-logo-link,
.site-logo,
.site-branding {
    max-height: 80px !important;
    display: flex !important;
    align-items: center !important;
}

/* Force logo container to not stretch */
.logo.p-lg-0 {
    max-width: 100px !important;
}

/* Hide "Gastronom" text under logo (site-title on header) */
.site-title,
.header .site-title,
h1.site-title,
p.site-title,
[class*="site-title"] {
    display: none !important;
}

/* Hide site description in header if any */
.site-description {
    display: none !important;
}

/* --- Hide category dropdown in search form --- */
.product-cat-box,
.product-cat,
.drp_dwn_menu {
    display: none !important;
}

/* --- Homepage Cleanup --- */
/* Hide page title on front page (theme uses .vw-page-title) */
body.home .entry-title,
body.home .page-title,
body.home h1.entry-title,
body.home h1.vw-page-title,
body.page-id-27 .entry-title,
body.page-id-27 h1.entry-title,
body.page-id-27 h1.vw-page-title,
h1.vw-page-title {
    display: none !important;
}

/* Hide breadcrumbs on front page (theme misspells as .bradcrumbs) */
body.home .woocommerce-breadcrumb,
body.home .breadcrumbs,
body.home .breadcrumb,
body.home .bradcrumbs,
body.home nav.woocommerce-breadcrumb,
body.page-id-27 .woocommerce-breadcrumb,
body.page-id-27 .breadcrumbs,
body.page-id-27 .bradcrumbs {
    display: none !important;
}

/* Hide the red tag pills on homepage */
body.home .tags-bg,
body.home .tag-cloud-link,
body.page-id-27 .tags-bg,
body.page-id-27 .tag-cloud-link,
body.home .entry-meta,
body.page-id-27 .entry-meta {
    display: none !important;
}

/* --- Banner / Cover Block Styling --- */
.wp-block-cover {
    min-height: 450px !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.wp-block-cover h1,
.wp-block-cover h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    letter-spacing: 0.5px !important;
}

.wp-block-cover p {
    font-size: 1.15rem !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

.wp-block-cover .wp-block-button__link {
    font-size: 1.1rem !important;
    padding: 14px 36px !important;
    border-radius: 30px !important;
    background: #c8a455 !important;
    border-color: #c8a455 !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
}

.wp-block-cover .wp-block-button__link:hover {
    background: #1a3a5c !important;
    border-color: #1a3a5c !important;
}

/* --- Section Headings --- */
.entry-content h2 {
    text-align: center;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1a3a5c !important;
    margin: 2rem 0 1.5rem !important;
    position: relative;
    padding-bottom: 12px;
}

.entry-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c8a455;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Category List Styling --- */
.wp-block-woocommerce-product-categories ul,
.wc-block-product-categories-list {
    list-style: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 12px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.wp-block-woocommerce-product-categories ul li,
.wc-block-product-categories-list-item {
    background: #f8f9fa !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e9ecef !important;
}

.wp-block-woocommerce-product-categories ul li:hover,
.wc-block-product-categories-list-item:hover {
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.12) !important;
    transform: translateY(-2px) !important;
    border-color: #1a3a5c !important;
}

.wp-block-woocommerce-product-categories ul li a,
.wc-block-product-categories-list-item a {
    display: block !important;
    padding: 16px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-align: center !important;
}

.wp-block-woocommerce-product-categories ul li a:hover {
    color: #1a3a5c !important;
}

/* Hide broken category images */
.wp-block-woocommerce-product-categories img,
.wc-block-product-categories-list-item img {
    display: none !important;
}

/* --- Related Products on Single Product Page --- */
/* Fix: clear floats so "Похожие товары" appears below gallery+summary */
.woocommerce div.product section.related,
section.related.products {
    clear: both !important;
    width: 100% !important;
    margin-top: 2em !important;
}

.woocommerce div.product section.related h2,
section.related.products h2 {
    color: #1a3a5c !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1em !important;
}

/* --- WooCommerce Product Cards --- */
.woocommerce ul.products li.product,
.wc-block-grid__product {
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 1px solid #eee !important;
    padding-bottom: 15px !important;
}

.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-3px) !important;
}

.woocommerce ul.products li.product .price,
.wc-block-grid__product .wc-block-grid__product-price {
    color: #1a3a5c !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: #333 !important;
}

/* --- Footer --- */
.footer,
footer,
#footer,
.site-footer {
    background: #1a3a5c !important;
    color: #ccc !important;
    padding: 30px 0 15px !important;
}

.footer a,
footer a,
.site-footer a {
    color: #c8a455 !important;
}

.footer a:hover,
footer a:hover,
.site-footer a:hover {
    color: #fff !important;
}

/* Hide VWThemes credit */
.footer .copyright,
.site-footer .copyright,
.footer-content-right,
footer .site-info,
.powered-by,
.theme-flavor,
footer p:last-child {
    display: none !important;
}

/* Custom footer copyright - injected by plugin */
.gls-footer-credit {
    text-align: center;
    padding: 15px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 15px;
}

/* --- Hide broken image on Contact page --- */
.elementor-element-1b6dbd1 {
    display: none !important;
}

/* --- Hide default footer widgets (Archives, Meta, Categories) --- */
.footer_hide {
    display: none !important;
}

/* --- Scroll-to-top button --- */
.scrollup,
.scroll-top,
#scroll-top,
.back-to-top {
    background: #1a3a5c !important;
    color: #fff !important;
    border-radius: 50% !important;
}

.scrollup:hover,
.scroll-top:hover {
    background: #c8a455 !important;
}

/* --- Spacing and Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #333 !important;
    line-height: 1.6 !important;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WooCommerce sidebar on shop page */
.woocommerce-ordering select {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
}

/* Price filter, rating stars in navy */
.star-rating span::before,
.woocommerce .star-rating span::before {
    color: #c8a455 !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background: #c8a455 !important;
    color: #fff !important;
    border-radius: 4px !important;
}

/* --- Latest Posts (News) section --- */
.wp-block-latest-posts {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.wp-block-latest-posts li {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.wp-block-latest-posts__post-title {
    color: #1a3a5c !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.wp-block-latest-posts__post-date {
    color: #999 !important;
    font-size: 0.85rem !important;
}

/* --- Cookie consent bar styling --- */
.cookie-notice,
.cookie-bar {
    background: #1a3a5c !important;
}

/* --- WooCommerce mini-cart --- */
.widget_shopping_cart .total {
    color: #1a3a5c !important;
    font-weight: 700 !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .wp-block-cover {
        min-height: 300px !important;
    }
    
    .wp-block-cover h1 {
        font-size: 1.6rem !important;
    }
    
    .wp-block-cover p {
        font-size: 0.95rem !important;
    }
    
    .wp-block-woocommerce-product-categories ul {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .entry-content h2 {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 480px) {
    .wp-block-woocommerce-product-categories ul {
        grid-template-columns: 1fr !important;
    }
}

/* === Cart/Checkout UX === */
/* Pick-up point note on cart */
.gls-pickup-note {
    margin: 2px 0 0 24px !important;
    color: #888 !important;
    font-style: italic !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* Hide Google Pay / Apple Pay express checkout on cart page (only show on checkout) */
body.woocommerce-cart .wcpay-express-checkout-wrapper,
body.woocommerce-cart .wc-stripe-payment-request-wrapper,
body.woocommerce-cart #wcpay-express-checkout-wrapper,
body.woocommerce-cart [id*="payment-request"] {
    display: none !important;
}

/* === Bilingual page content: show/hide by language === */
/* Default: show RU, hide SK (JS will toggle based on cookie/localStorage) */
.gls-content-sk { display: none !important; }
.gls-content-ru { display: block !important; }
