/*
Theme Name: Kadence Child
Theme URI: https://farmalucnydvor.sk
Description: Custom child theme for Kadence
Author: Farma Lucny Dvor
Author URI: https://farmalucnydvor.sk
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadence-child
*/

/* Import Poppins Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Design Colors */
:root {
    --primary-beige: #f5f1e8;
    --primary-green: #364633;
    --primary-orange: #be6e31;
    --text-dark: #364633;
    --white: #ffffff;
}

/* Base Styles */
body,
#wrapper,
.site,
#page,
.content-bg,
#content {
    background-color: var(--primary-beige) !important;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

#main {
    background-color: var(--primary-beige) !important;
}

/* Hero Container and Site Container - Same Background */
.hero-container,
.site-container,
.site-hero-container,
.entry-hero-container-inner,
.entry-hero.page-hero-section {
    background-color: var(--primary-beige) !important;
}

/* Reduce Cart/Checkout/Terms Hero Section Height */
.woocommerce-cart .entry-hero.page-hero-section,
.woocommerce-checkout .entry-hero.page-hero-section,
.woocommerce-cart .entry-hero.entry-hero-layout-standard,
.woocommerce-checkout .entry-hero.entry-hero-layout-standard,
body.woocommerce-cart .entry-hero,
body.woocommerce-checkout .entry-hero,
.page .entry-hero.page-hero-section,
.page .entry-hero.entry-hero-layout-standard,
.hero-section-overlay {
    min-height: 80px !important;
    height: auto !important;
    padding: 10px 20px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

/* Reduce Cart/Checkout/Terms Title Container */
.woocommerce-cart .entry-hero-container-inner,
.woocommerce-checkout .entry-hero-container-inner,
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header,
.page .entry-hero-container-inner,
.page .entry-header {
    padding: 10px 0 !important;
    min-height: auto !important;
}

/* Cart/Checkout/Page Title - Dark Green */
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-cart h1.title,
.woocommerce-checkout h1.title,
.page .entry-title,
.page h1.title,
.entry-hero .entry-title {
    margin: 0 !important;
    padding: 5px 0 !important;
    font-size: 32px !important;
    color: #364633 !important;
}

/* Kadence Advanced Heading - Dark Green */
.kt-adv-heading467_a292f5-d3,
.wp-block-kadence-advancedheading.kt-adv-heading467_a292f5-d3,
h2.kt-adv-heading467_a292f5-d3 {
    color: #364633 !important;
}

/* Entry Content Wrap - Minimal Padding */
.entry-content-wrap {
    padding: 10px !important;
}

/* Entry Content and Single Content - Dark Green Text */
.entry-content,
.single-content,
.entry-content p,
.single-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
    color: #364633 !important;
}

/* Hide the full text in checkout terms span and replace with custom text */
.wc-block-checkout__terms .wc-block-components-checkbox__label,
.wc-block-checkout__terms--with-separator .wc-block-components-checkbox__label,
.wp-block-woocommerce-checkout-terms-block .wc-block-components-checkbox__label {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

/* Show only custom text without "Zásady ochrany" */
.wc-block-checkout__terms .wc-block-components-checkbox__label::before,
.wc-block-checkout__terms--with-separator .wc-block-components-checkbox__label::before,
.wp-block-woocommerce-checkout-terms-block .wc-block-components-checkbox__label::before {
    content: 'Pokračovaním v nákupe súhlasíte s našimi ' !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: inline !important;
    color: #364633 !important;
}

/* Keep links visible with normal font size */
.wc-block-checkout__terms .wc-block-components-checkbox__label a,
.wc-block-checkout__terms--with-separator .wc-block-components-checkbox__label a,
.wp-block-woocommerce-checkout-terms-block .wc-block-components-checkbox__label a {
    font-size: 0 !important;
    line-height: 1.5 !important;
    color: #364633 !important;
}

/* Replace link text with "Obchodnými podmienkami" */
.wc-block-checkout__terms .wc-block-components-checkbox__label a[href*="obchodne-podmienky"]::before,
.wc-block-checkout__terms--with-separator .wc-block-components-checkbox__label a[href*="obchodne-podmienky"]::before {
    content: 'Obchodnými podmienkami' !important;
    font-size: 14px !important;
    text-decoration: underline !important;
    color: #364633 !important;
}

/* Hide any privacy policy links */
.wc-block-components-checkbox__label a[href*="privacy"],
.wc-block-components-checkbox__label a[href*="zasady"],
.wc-block-checkout__terms a[href*="privacy-policy"],
.wc-block-checkout__terms a[href*="zasady-ochrany"] {
    display: none !important;
}

/* Terms and Conditions text - Dark Green */
.woocommerce-terms-and-conditions,
.woocommerce-terms-and-conditions h4,
.woocommerce-terms-and-conditions p,
.woocommerce-terms-and-conditions a {
    color: #364633 !important;
}

/* Limit content width - center layout like maindesign.png */
.site-container,
.content-container,
#primary,
.entry-content,
.site-footer,
footer {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Full width for hero section only */
.hero-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure WordPress blocks respect max-width */
.wp-block-group__inner-container,
.wp-block-cover__inner-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
.site-header,
#masthead,
.site-header-wrap,
header.site-header {
    background-color: var(--primary-beige) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 5px 0;
}

.site-header .site-container,
.site-header-wrap {
    background-color: transparent !important;
    padding: 5px 0 !important;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove all vertical lines from header */
.site-header *,
.site-header *::before,
.site-header *::after {
    border-left: none !important;
    border-right: none !important;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    text-transform: none;
    font-size: 16px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
}

/* Override Kadence theme header styles */
.site-top-header-wrap,
.site-main-header-wrap,
.site-branding {
    background-color: var(--primary-beige) !important;
    border-left: none !important;
    border-right: none !important;
}

/* Remove vertical dividers between header and content */
.site-header-wrap::after,
.site-header-wrap::before,
#masthead::after,
#masthead::before {
    display: none !important;
    border: none !important;
}

/* Remove any Kadence vertical separators */
.header-section-divider,
.header-navigation-layout-standard .header-menu-container::before,
.header-navigation-layout-standard .header-menu-container::after {
    display: none !important;
}

/* Main Content Area */
.site-main,
#primary {
    background-color: var(--primary-beige) !important;
}

/* Hero Section */
.hero-section,
.entry-hero,
.page-hero-section {
    display: flex;
    align-items: center;
    background-color: var(--primary-beige);
    min-height: 600px;
    padding: 0;
    overflow: hidden;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
}

.hero-content {
    flex: 1;
    padding: 60px 80px;
    background-color: var(--primary-beige);
    max-width: 50%;
}

.hero-image {
    flex: 1;
    height: 100%;
    min-height: 600px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content h1 {
    font-size: 38px;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.hero-checklist li {
    padding: 6px 0;
    color: var(--text-dark);
    font-size: 15px;
}

.hero-checklist li:before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #2d3a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #a55d28;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Oznamy Section */
.oznamy-section {
    padding: 80px 20px;
    background-color: var(--primary-beige);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.oznamy-section h2 {
    text-align: center;
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.oznamy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-orange), transparent);
}

.oznamy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.oznamy-card {
    background-color: #fffefd;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.oznamy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.oznamy-card .card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 32px;
}

.oznamy-card .card-icon.icon-clock {
    background-color: rgba(54, 70, 51, 0.15);
    color: var(--primary-green);
}

.oznamy-card .card-icon.icon-alert {
    background-color: rgba(190, 110, 49, 0.15);
    color: var(--primary-orange);
}

.oznamy-card .card-icon.icon-reviews {
    background-color: rgba(190, 110, 49, 0.15);
    color: var(--primary-orange);
}

.oznamy-card h3 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.oznamy-card h3 .icon {
    font-size: 24px;
    display: inline-block;
}

.oznamy-card .hours {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
    flex-grow: 1;
}

.oznamy-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

.oznamy-card .btn-primary,
.oznamy-card .btn-secondary {
    margin-top: auto;
    text-align: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 8px;
}

.review-card {
    background: #fffefd;
    color: var(--text-dark);
}

.review-card h3 {
    color: var(--text-dark);
}

.review-stars {
    color: var(--primary-orange);
    font-size: 24px;
    margin-bottom: 15px;
    text-align: left;
}

/* Responsive adjustments for max-width layout */
@media (min-width: 1441px) {
    body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .oznamy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Hero section - vertical layout like mobiledesign */
    .hero-section {
        flex-direction: column;
        min-height: 500px;
        position: relative;
    }

    .hero-content {
        max-width: 100%;
        padding: 40px 30px;
        position: relative;
        z-index: 2;
        background: linear-gradient(to bottom, rgba(245, 241, 232, 0.95), rgba(245, 241, 232, 0.85));
    }

    .hero-image {
        min-height: 400px;
        width: 100%;
        order: 2;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 5px;
        flex-wrap: nowrap;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        flex: 1;
        min-width: 0;
        text-align: center;
        font-size: 10px;
        padding: 7px 6px;
        white-space: nowrap;
        line-height: 1.2;
    }

    /* Even smaller on iPhone screens */
    @media (max-width: 390px) {
        .btn-primary, .btn-secondary {
            font-size: 9px;
            padding: 6px 5px;
        }
    }

    /* Oznamy section - 2 columns on mobile like design */
    .oznamy-section {
        padding: 40px 15px;
    }

    .oznamy-section h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .oznamy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    /* Mobile cards with background images support */
    .oznamy-card {
        padding: 30px 25px;
        min-height: 280px;
        position: relative;
        overflow: hidden;
    }

    .oznamy-card.has-background-image {
        background-size: cover;
        background-position: center;
        color: var(--white);
    }

    .oznamy-card.has-background-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
        z-index: 1;
    }

    .oznamy-card.has-background-image * {
        position: relative;
        z-index: 2;
        color: var(--white);
    }

    /* Adjust icon size for mobile */
    .oznamy-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    /* Mobile buttons in cards - fit side by side */
    .oznamy-card .btn-primary,
    .oznamy-card .btn-secondary {
        width: auto !important;
        flex: 1;
        font-size: 12px !important;
        padding: 10px 8px !important;
        white-space: nowrap;
    }

    .oznamy-card {
        display: flex;
        flex-direction: column;
    }

    .oznamy-card .hero-buttons,
    .oznamy-card > div:last-child {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }

    .main-navigation {
        font-size: 14px;
    }

    /* Mobile-specific decorative elements */
    .oznamy-section h2::after {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 30px 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .oznamy-card {
        padding: 20px;
    }
}

/* ============================================
   WORDPRESS BLOCK EDITOR SUPPORT
   ============================================ */

/* WordPress Buttons */
.wp-block-button__link,
.wp-block-button a {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.wp-block-button.is-style-primary .wp-block-button__link,
.wp-block-button.farma-btn-primary .wp-block-button__link {
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
    padding: 8px 16px !important;
}

.wp-block-button.is-style-secondary .wp-block-button__link,
.wp-block-button.farma-btn-secondary .wp-block-button__link {
    background-color: var(--primary-orange) !important;
    color: var(--white) !important;
    padding: 8px 16px !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* WordPress Columns for Cards */
.wp-block-columns.oznamy-columns {
    margin: 0 auto;
    max-width: 1200px;
    gap: 25px;
}

.wp-block-column.farma-card {
    background-color: #faf8f2;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.wp-block-column.farma-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.wp-block-column.farma-card .card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 32px;
}

/* WordPress Cover Block for Hero */
.wp-block-cover.farma-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
}

.wp-block-cover.farma-hero .wp-block-cover__inner-container {
    max-width: 50%;
    padding: 60px 80px;
}

/* WordPress Lists with Checkmarks */
.wp-block-list.farma-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.wp-block-list.farma-checklist li {
    padding: 6px 0;
    color: var(--text-dark);
    font-size: 15px;
}

.wp-block-list.farma-checklist li:before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

/* WordPress Group/Section */
.wp-block-group.farma-section {
    padding: 60px 20px;
    background-color: var(--primary-beige);
}

.wp-block-group.oznamy-section-wp {
    padding: 40px 20px;
    background-color: var(--primary-beige);
}

.wp-block-group.oznamy-section-wp h2 {
    text-align: center;
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.wp-block-group.oznamy-section-wp h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-orange), transparent);
}

/* Remove default WordPress block spacing */
.farma-editable .wp-block-group,
.farma-editable .wp-block-cover {
    margin-top: 0;
    margin-bottom: 0;
}

/* WordPress Tables - Remove ALL outer borders from table element */
table,
.wp-block-table table,
table.wp-block-table,
.entry-content table,
figure.wp-block-table table,
table.has-text-color,
table.has-background,
table[style],
.kb-table,
.kadence-table,
tbody,
thead,
tfoot {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-collapse: collapse !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Reset all borders on cells first */
table td,
table th,
.wp-block-table table td,
.wp-block-table table th,
table.wp-block-table td,
table.wp-block-table th,
.entry-content table td,
.entry-content table th,
figure.wp-block-table table td,
figure.wp-block-table table th,
table.has-text-color td,
table.has-text-color th,
table.has-background td,
table.has-background th,
table[style] td,
table[style] th {
    border: 0 !important;
    border-right: 1px solid #ccc !important;
    border-bottom: 1px solid #ccc !important;
}

/* Remove right border from last column */
table td:last-child,
table th:last-child,
.wp-block-table table td:last-child,
.wp-block-table table th:last-child,
table.wp-block-table td:last-child,
table.wp-block-table th:last-child,
.entry-content table td:last-child,
.entry-content table th:last-child {
    border-right: 0 !important;
}

/* Remove bottom border from last row */
table tr:last-child td,
table tr:last-child th,
.wp-block-table table tr:last-child td,
.wp-block-table table tr:last-child th,
table.wp-block-table tr:last-child td,
table.wp-block-table tr:last-child th,
.entry-content table tr:last-child td,
.entry-content table tr:last-child th {
    border-bottom: 0 !important;
}

/* Remove outer border from any table wrapper */
.wp-block-table,
figure.wp-block-table,
.kb-table-container,
.kadence-blocks-table-container,
.wp-block-kadence-table {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Contact Page Styling */
.page-id-62 .wp-block-columns,
.page-kontakt .wp-block-columns,
.page-contact .wp-block-columns,
body[class*="kontakt"] .wp-block-columns,
body[class*="contact"] .wp-block-columns {
    max-width: 1200px;
    margin: 0 auto;
    gap: 25px;
}

.page-id-62 .wp-block-column,
.page-kontakt .wp-block-column,
.page-contact .wp-block-column,
body[class*="kontakt"] .wp-block-column,
body[class*="contact"] .wp-block-column {
    background-color: #faf8f2;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ensure equal height columns on contact page */
.page-id-62 .wp-block-columns,
.page-kontakt .wp-block-columns,
.page-contact .wp-block-columns,
body[class*="kontakt"] .wp-block-columns,
body[class*="contact"] .wp-block-columns {
    align-items: stretch;
}

/* Fix Kadence columns equal height on contact page */
.page-id-62 .wp-block-kadence-rowlayout,
.page-kontakt .wp-block-kadence-rowlayout,
.page-contact .wp-block-kadence-rowlayout,
body[class*="kontakt"] .wp-block-kadence-rowlayout,
body[class*="contact"] .wp-block-kadence-rowlayout {
    display: flex !important;
    align-items: stretch !important;
}

.page-id-62 .wp-block-kadence-column,
.page-kontakt .wp-block-kadence-column,
.page-contact .wp-block-kadence-column,
body[class*="kontakt"] .wp-block-kadence-column,
body[class*="contact"] .wp-block-kadence-column {
    display: flex !important;
    flex-direction: column !important;
}

.page-id-62 .kt-inside-inner-col,
.page-kontakt .kt-inside-inner-col,
.page-contact .kt-inside-inner-col,
body[class*="kontakt"] .kt-inside-inner-col,
body[class*="contact"] .kt-inside-inner-col {
    padding-bottom: 50px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-id-62 h2,
.page-kontakt h2,
.page-contact h2,
body[class*="kontakt"] h2,
body[class*="contact"] h2 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.page-id-62 h3,
.page-kontakt h3,
.page-contact h3,
body[class*="kontakt"] h3,
body[class*="contact"] h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-id-62 p,
.page-kontakt p,
.page-contact p,
body[class*="kontakt"] p,
body[class*="contact"] p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Contact Form Styling */
.page-id-62 .wpforms-container,
.page-id-62 .wpcf7,
.page-kontakt .wpforms-container,
.page-contact .wpforms-container,
.page-kontakt .wpcf7,
.page-contact .wpcf7,
body[class*="kontakt"] .wpforms-container,
body[class*="kontakt"] .wpcf7,
body[class*="contact"] .wpforms-container,
body[class*="contact"] .wpcf7 {
    background-color: #faf8f2;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-id-62 .wpforms-field-label,
.page-id-62 .wpcf7 label,
.page-kontakt .wpforms-field-label,
.page-contact .wpforms-field-label,
.page-kontakt .wpcf7 label,
.page-contact .wpcf7 label,
body[class*="kontakt"] .wpforms-field-label,
body[class*="kontakt"] .wpcf7 label,
body[class*="contact"] .wpforms-field-label,
body[class*="contact"] .wpcf7 label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.page-id-62 input[type="text"],
.page-id-62 input[type="email"],
.page-id-62 input[type="tel"],
.page-id-62 textarea,
.page-kontakt input[type="text"],
.page-kontakt input[type="email"],
.page-kontakt input[type="tel"],
.page-kontakt textarea,
.page-contact input[type="text"],
.page-contact input[type="email"],
.page-contact input[type="tel"],
.page-contact textarea,
body[class*="kontakt"] input[type="text"],
body[class*="kontakt"] input[type="email"],
body[class*="kontakt"] input[type="tel"],
body[class*="kontakt"] textarea,
body[class*="contact"] input[type="text"],
body[class*="contact"] input[type="email"],
body[class*="contact"] input[type="tel"],
body[class*="contact"] textarea {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.page-id-62 input[type="submit"],
.page-id-62 button[type="submit"],
.page-kontakt input[type="submit"],
.page-kontakt button[type="submit"],
.page-contact input[type="submit"],
.page-contact button[type="submit"],
body[class*="kontakt"] input[type="submit"],
body[class*="kontakt"] button[type="submit"],
body[class*="contact"] input[type="submit"],
body[class*="contact"] button[type="submit"] {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-id-62 input[type="submit"]:hover,
.page-id-62 button[type="submit"]:hover,
.page-kontakt input[type="submit"]:hover,
.page-kontakt button[type="submit"]:hover,
.page-contact input[type="submit"]:hover,
.page-contact button[type="submit"]:hover,
body[class*="kontakt"] input[type="submit"]:hover,
body[class*="kontakt"] button[type="submit"]:hover,
body[class*="contact"] input[type="submit"]:hover,
body[class*="contact"] button[type="submit"]:hover {
    background-color: #2d3a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive for WordPress Blocks */
@media (max-width: 768px) {
    .wp-block-cover.farma-hero .wp-block-cover__inner-container {
        max-width: 100%;
        padding: 40px 30px;
    }

    .wp-block-columns.oznamy-columns {
        flex-direction: column;
    }

    .wp-block-column.farma-card {
        margin-bottom: 20px;
    }

    .page-id-62 .wp-block-column,
    .page-kontakt .wp-block-column,
    .page-contact .wp-block-column,
    body[class*="kontakt"] .wp-block-column,
    body[class*="contact"] .wp-block-column {
        padding: 30px 25px;
    }

    .page-id-62 h2,
    .page-kontakt h2,
    .page-contact h2,
    body[class*="kontakt"] h2,
    body[class*="contact"] h2 {
        font-size: 32px;
    }

    .page-id-62 .wpforms-container,
    .page-id-62 .wpcf7,
    .page-kontakt .wpforms-container,
    .page-contact .wpforms-container,
    .page-kontakt .wpcf7,
    .page-contact .wpcf7,
    body[class*="kontakt"] .wpforms-container,
    body[class*="kontakt"] .wpcf7,
    body[class*="contact"] .wpforms-container,
    body[class*="contact"] .wpcf7 {
        padding: 30px 25px;
    }

    /* Mobile table adjustments - smaller font and padding */
    table td,
    table th,
    .wp-block-table table td,
    .wp-block-table table th {
        font-size: 11px !important;
        padding: 5px 3px !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
    }

    /* Hide duplicate checkout sidebar on mobile */
    .wc-block-components-sidebar.wc-block-checkout__sidebar,
    .wp-block-woocommerce-checkout-totals-block.is-sticky,
    .wc-block-checkout__sidebar.is-sticky {
        display: none !important;
    }
}

/* Extra small screens (Android phones like Samsung S21) */
@media (max-width: 480px) {
    table td,
    table th,
    .wp-block-table table td,
    .wp-block-table table th {
        font-size: 10px !important;
        padding: 4px 2px !important;
        word-wrap: break-word !important;
        line-height: 1.2 !important;
    }

    /* Extra small buttons - fit side by side on Samsung S21 */
    .oznamy-card .btn-primary,
    .oznamy-card .btn-secondary {
        font-size: 11px !important;
        padding: 9px 6px !important;
    }
}

/* ============================================
   WOOCOMMERCE STYLING - Beige Background
   ============================================ */

/* WooCommerce Shop & Product Pages */
.woocommerce,
.woocommerce-page,
.woocommerce-checkout,
.woocommerce-cart,
.woocommerce-account,
body.woocommerce,
body.woocommerce-page,
body.woocommerce-checkout,
body.woocommerce-cart,
.woocommerce-products-header,
.woocommerce-products-header .entry-content-wrap,
.woocommerce-products-header .content-bg,
header.woocommerce-products-header,
.archive .woocommerce-products-header {
    background-color: var(--primary-beige) !important;
}

/* Checkout & Cart Forms */
.woocommerce form.checkout,
.woocommerce-checkout form.checkout,
.woocommerce .cart-collaterals,
.woocommerce-cart .cart-collaterals,
.woocommerce table.cart,
.woocommerce-cart table.cart,
.woocommerce .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout #order_review,
.woocommerce #order_review {
    background-color: var(--primary-beige) !important;
}

/* Checkout Billing & Shipping Forms */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce form .form-row,
.woocommerce-checkout-payment,
#payment,
.woocommerce #payment ul.payment_methods {
    background-color: var(--primary-beige) !important;
}

/* Order Summary Table */
.woocommerce table.shop_table,
.woocommerce-checkout table.shop_table,
.woocommerce-cart table.shop_table,
table.woocommerce-checkout-review-order-table,
.woocommerce table.woocommerce-checkout-review-order-table {
    background-color: var(--primary-beige) !important;
}

/* Cart Totals & Order Totals */
.cart-totals,
.woocommerce-cart .cart-totals,
.cart_totals,
.woocommerce .cart_totals,
.woocommerce-checkout .order-total,
.shop_table tfoot {
    background-color: var(--primary-beige) !important;
}

/* Product Pages */
.woocommerce div.product,
.woocommerce #content div.product,
.single-product .product,
.woocommerce .product-details {
    background-color: var(--primary-beige) !important;
}

/* Account & My Orders Pages */
.woocommerce-account .woocommerce,
.woocommerce-MyAccount-content,
.woocommerce-orders-table,
.woocommerce-order,
.woocommerce-order-details {
    background-color: var(--primary-beige) !important;
}

/* Sidebar Widgets in Shop */
.woocommerce .widget,
.woocommerce aside.widget,
.woocommerce-page .widget {
    background-color: var(--primary-beige) !important;
}

/* Thank You / Order Received Page */
.woocommerce-order-received,
.woocommerce-thankyou-order-details,
.woocommerce-order-overview {
    background-color: var(--primary-beige) !important;
}

/* Override any white backgrounds in WooCommerce */
.woocommerce *[style*="background-color: #fff"],
.woocommerce *[style*="background-color: white"],
.woocommerce *[style*="background: #fff"],
.woocommerce *[style*="background: white"] {
    background-color: var(--primary-beige) !important;
}

/* ============================================
   HIDE SHIPPING NOTICE
   ============================================ */
/* Hide "Shipping will be calculated at checkout" text */
.woocommerce-shipping-destination,
p.woocommerce-shipping-destination,
.woocommerce-cart .woocommerce-shipping-destination,
.cart_totals .woocommerce-shipping-destination,
.shipping-notice,
.cart-collaterals .woocommerce-shipping-destination,
.woocommerce-cart-form ~ .cart-collaterals p.woocommerce-shipping-destination,
.cart_totals p:contains("Shipping"),
.woocommerce .cart_totals p,
.cart_totals tr.woocommerce-shipping-totals + p,
.woocommerce-cart .cart_totals > p,
.cart_totals .woocommerce-shipping-totals ~ p {
    display: none !important;
}

/* Additional specific hiding for shipping text after estimated total */
.cart_totals .wc-proceed-to-checkout ~ p,
.cart_totals .woocommerce-Price-amount ~ p,
.cart_totals table + p,
.woocommerce-cart .cart_totals table.shop_table + p {
    display: none !important;
}

/* WooCommerce Blocks - Hide shipping notice */
.wc-block-components-totals-footer-item-shipping,
.wc-block-components-totals-footer-item.wc-block-components-totals-footer-item-shipping {
    display: none !important;
}

/* Hide shipping options in checkout */
.wc-block-checkout__shipping-option.wc-block-components-checkout-step,
.wc-block-checkout__shipping-option,
.wc-block-components-checkout-step.wc-block-checkout__shipping-option {
    display: none !important;
}

/* Hide shipping summary in order summary */
.wp-block-woocommerce-checkout-order-summary-shipping-block.wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-shipping-block,
.wc-block-components-totals-wrapper.wp-block-woocommerce-checkout-order-summary-shipping-block {
    display: none !important;
}

/* Widen price column in cart table */
th.product-price,
td.product-price,
.woocommerce-cart table th.product-price,
.woocommerce-cart table td.product-price,
form.woocommerce-cart-form table th.product-price,
form.woocommerce-cart-form table td.product-price {
    min-width: 120px !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* Hide "Medzisúčet" / Subtotal column in cart table */
th.product-subtotal,
td.product-subtotal,
.woocommerce-cart table th.product-subtotal,
.woocommerce-cart table td.product-subtotal,
form.woocommerce-cart-form table th.product-subtotal,
form.woocommerce-cart-form table td.product-subtotal,
body.woocommerce-cart table.shop_table th.product-subtotal,
body.woocommerce-cart table.shop_table td.product-subtotal {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Remove right border from quantity column (last visible column) */
th.product-quantity,
td.product-quantity,
.woocommerce-cart table th.product-quantity,
.woocommerce-cart table td.product-quantity,
form.woocommerce-cart-form table th.product-quantity,
form.woocommerce-cart-form table td.product-quantity {
    border-right: none !important;
}

/* Remove left border from remove column if it exists after subtotal */
th.product-remove,
td.product-remove,
.woocommerce-cart table th.product-remove,
.woocommerce-cart table td.product-remove {
    border-left: none !important;
}

/* Remove all borders from cart table - target specific table */
table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents,
table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents th,
table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents td {
    border-right: 0 !important;
}

/* Remove border from last visible column in cart */
table.shop_table.cart th:last-child,
table.shop_table.cart td:last-child {
    border-right: 0 !important;
}

/* Change "Cena" to "Cena za 1 kg" in cart header */
.wc-block-cart-items__header-price {
    font-size: 0 !important;
}

.wc-block-cart-items__header-price::before {
    content: 'Cena za 1 kg' !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #364633 !important;
}

/* Change "Cena spolu" to "Cena za 1 kg" in cart header */
.wc-block-cart-items__header-total {
    font-size: 0 !important;
}

.wc-block-cart-items__header-total::before {
    content: 'Cena za 1 kg' !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #364633 !important;
}

/* Hide only specific cart totals items but NOT the wrapper */
.cart_totals table,
.cart_totals h2,
.cart_totals .shop_table,
.wc-block-cart__totals-title,
h2.wc-block-cart__totals-title,
.wc-block-components-totals-item,
.wc-block-components-totals-subtotal,
.wc-block-components-totals-fees,
.wc-block-components-totals-taxes,
.wc-block-components-totals-footer-item:not(.wc-block-components-totals-footer-item-tax),
.cart-summary,
.fld-unit-price,
.wc-block-components-order-summary-item__total-price {
    display: none !important;
}

/* Keep cart totals wrapper visible for button */
.cart-totals,
.cart_totals,
.woocommerce-cart .cart-totals,
.woocommerce .cart_totals {
    display: block !important;
    visibility: visible !important;
}

/* Hide original checkout button in cart totals - will be moved by JavaScript */
.cart-totals .wc-proceed-to-checkout,
.cart_totals .wc-proceed-to-checkout {
    display: none !important;
    visibility: hidden !important;
}

/* Keep checkout button visible after it's moved */
.actions .wc-proceed-to-checkout,
.actions .moved-checkout-button {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Add "/kg" after product price in cart */
.wc-block-cart-item__price .price.wc-block-components-product-price::after,
.wc-block-cart-item__price .wc-block-components-product-price::after,
td.wc-block-cart-item__price .price::after {
    content: ' /kg' !important;
    font-size: 12px !important;
    color: #364633 !important;
    font-weight: normal !important;
    margin-left: 2px !important;
}

/* Add "/ 1 kg" after product price in checkout order summary */
.wc-block-components-order-summary-item__individual-prices::after {
    content: ' / 1 kg' !important;
    font-size: 12px !important;
    color: #364633 !important;
    font-weight: normal !important;
    margin-left: 2px !important;
}

/* Make quantity bold and add "×" sign in checkout order summary */
.wc-block-components-order-summary-item__quantity {
    font-weight: bold !important;
}

.wc-block-components-order-summary-item__quantity::before {
    content: '× ' !important;
    font-weight: bold !important;
}

/* Change "Celková suma" to "Cena za 1 kg" in checkout order details */
.woocommerce-table__product-table th.product-total,
table.woocommerce-table--order-details th.product-total,
.woocommerce-checkout-review-order-table th.product-total {
    font-size: 0 !important;
}

.woocommerce-table__product-table th.product-total::before,
table.woocommerce-table--order-details th.product-total::before,
.woocommerce-checkout-review-order-table th.product-total::before {
    content: 'Cena za 1 kg' !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #364633 !important;
}

/* Hide "Cena spolu" from checkout order overview */
.woocommerce-order-overview__total.total,
li.woocommerce-order-overview__total {
    display: none !important;
}

/* Hide Subtotal and Total rows in checkout review table */
.woocommerce-checkout-review-order-table tr.cart-subtotal,
.woocommerce-checkout-review-order-table tr.order-total,
table.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal,
table.woocommerce-checkout-review-order-table tfoot tr.order-total,
.woocommerce-checkout-review-order-table tfoot,
table.woocommerce-checkout-review-order-table tfoot,
.woocommerce-checkout-review-order-table > tfoot,
table.woocommerce-checkout-review-order-table > tfoot,
#order_review tfoot,
#order_review table tfoot,
.woocommerce tfoot,
.woocommerce-checkout tfoot {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide "Cena spolu" column from orders table */
.woocommerce-orders-table__header-order-total,
th.woocommerce-orders-table__header-order-total,
.woocommerce-orders-table__cell-order-total,
td.woocommerce-orders-table__cell-order-total,
.woocommerce-orders-table th.order-total,
.woocommerce-orders-table td.order-total {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Hide update cart button on all devices */
button[name="update_cart"],
.woocommerce button[name="update_cart"],
input[name="update_cart"],
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart-form button[name="update_cart"],
.actions button[name="update_cart"],
button.button[name="update_cart"],
.woocommerce .actions .button[name="update_cart"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Style moved checkout button - normal width, not full width */
.moved-checkout-button,
.actions .wc-proceed-to-checkout,
.actions .checkout-button {
    width: auto !important;
    max-width: 300px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
}

.actions .wc-proceed-to-checkout a {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* ============================================
   LOGIN PROMPT - Button Style
   ============================================ */
.wc-block-checkout__login-prompt {
    background-color: #364633 !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}

.wc-block-checkout__login-prompt a,
.wc-block-checkout__login-prompt button {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.wc-block-checkout__login-prompt a:hover,
.wc-block-checkout__login-prompt button:hover {
    color: #f5f1e8 !important;
}

/* ============================================
   ALL WOOCOMMERCE BUTTONS - Dark Green Color
   ============================================ */
/* Universal button styling for all WooCommerce buttons */
.woocommerce button.button,
.woocommerce button.button.alt,
.woocommerce a.button,
.woocommerce a.button.alt,
.woocommerce input.button,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce-page button.button,
.woocommerce-page a.button,
.woocommerce-page input.button,
.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order,
.woocommerce-checkout #place_order,
button#place_order,
.woocommerce a.added_to_cart,
a.added_to_cart.wc-forward,
.woocommerce .woocommerce-MyAccount-content .button,
.woocommerce table.my_account_orders .button,
.woocommerce .order-again .button {
    background-color: #364633 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Hover state for all buttons */
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page button.button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page input.button:hover,
.woocommerce .cart .button:hover,
.woocommerce .cart input.button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-checkout #place_order:hover,
button#place_order:hover,
.woocommerce a.added_to_cart:hover,
a.added_to_cart.wc-forward:hover {
    background-color: #2d3a2a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* "Do košíka" button in product cards */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    background-color: #364633 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    width: calc(100% - 30px) !important;
    margin: 0 15px 15px 15px !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background-color: #2d3a2a !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   WOOCOMMERCE BLOCKS BUTTONS - Dark Green
   ============================================ */
/* WooCommerce Blocks (modern blocks like cart, checkout) */
.wc-block-cart__submit-container .wc-block-cart__submit-button,
.wc-block-components-button,
.wc-block-components-checkout-place-order-button,
.wp-block-button__link,
.wc-block-cart__submit-button,
.wc-block-components-button:not(.wc-block-components-button--text),
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.add-to-cart-text,
button.wc-block-components-product-button__button {
    background-color: #364633 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
.wc-block-components-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-button__link:hover,
.wc-block-cart__submit-button:hover,
button.wc-block-components-product-button__button:hover {
    background-color: #2d3a2a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* ============================================
   VIEW CART BUTTON - More Space from Top
   ============================================ */
/* "Zobraziť košík" link after adding to cart */
.woocommerce a.added_to_cart,
a.added_to_cart.wc-forward {
    margin-top: 15px !important;
    display: inline-block !important;
}

/* WooCommerce notice message with "Zobraziť košík" */
.woocommerce-message,
.woocommerce-info {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

/* "Zobraziť košík" button in product cards */
.woocommerce ul.products li.product .added_to_cart {
    margin-top: 15px !important;
    display: block !important;
    text-align: center !important;
}

/* WooCommerce Shop Page - Kadence Blocks Background */
.post-type-archive-product .kb-row-layout,
.post-type-archive-product .kadence-column,
.post-type-archive-product .kt-inside-inner-col,
.post-type-archive-product .kt-row-column-wrap,
.woocommerce.archive .kb-row-layout,
.woocommerce.archive .kadence-column,
.woocommerce.archive .kt-inside-inner-col,
.woocommerce.archive .kt-row-column-wrap,
body.woocommerce .kb-row-layout,
body.woocommerce .kadence-column,
body.woocommerce .kt-inside-inner-col,
body.woocommerce .kt-row-column-wrap,
.kt-row-column-wrap.kt-has-1-columns,
.kt-row-column-wrap.kb-theme-content-width,
.post-type-archive-product .wp-block-kadence-rowlayout,
body.woocommerce .wp-block-kadence-rowlayout {
    background-color: var(--primary-beige) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* WooCommerce Product List Background */
.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce .products-container {
    background-color: var(--primary-beige) !important;
}

/* ============================================
   WOOCOMMERCE SHOP PAGE - ESHOP DESIGN
   ============================================ */

/* Hero Section for Shop Page - No Background Image */
.post-type-archive-product .kb-row-layout:first-child,
.post-type-archive-product .kb-row-layout-id467_6ab642-4f,
body.woocommerce .kb-row-layout:first-child,
body.post-type-archive-product .wp-block-kadence-rowlayout:first-of-type,
.kb-row-layout-wrap.kb-row-layout-id467_6ab642-4f {
    background: var(--primary-beige) !important;
    background-image: none !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin-bottom: 5px !important;
    padding: 5px 20px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Additional selector for Kadence row wrap */
.wp-block-kadence-rowlayout.alignnone.kb-row-layout-id467_6ab642-4f {
    padding: 5px 20px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-bottom: 20px !important;
}

/* Remove any conflicting backgrounds from hero children */
.post-type-archive-product .kb-row-layout:first-child .kt-row-column-wrap,
.post-type-archive-product .kb-row-layout-id467_6ab642-4f .kt-row-column-wrap {
    background-color: transparent !important;
    background-image: none !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Hero Title Styling - White Rounded Box with Green Text */
.post-type-archive-product .kb-row-layout:first-child h2,
.post-type-archive-product .kb-row-layout-id467_6ab642-4f h2,
body.woocommerce .kb-row-layout:first-child h2,
.post-type-archive-product h2.kt-adv-heading467_a292f5-d3 {
    color: #364633 !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 10px 60px !important;
    background: #ffffff !important;
    border-radius: 50px !important;
    max-width: 600px !important;
    width: auto !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* WooCommerce Shop Toolbar */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    font-size: 14px;
    color: var(--text-dark);
}

/* Product Grid - 4 columns like design */
body.post-type-archive-product .woocommerce ul.products,
body.woocommerce ul.products.woo-archive-btn-button,
.woocommerce ul.products.columns-4,
.archive.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 20px 0 !important;
    list-style: none !important;
}

/* Individual Product Card */
body.post-type-archive-product ul.products li.product,
body.woocommerce ul.products li.product,
.woocommerce ul.products li.product,
ul.products li.product {
    background-color: #fff !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    width: 100% !important;
}

body.post-type-archive-product ul.products li.product:hover,
body.woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* Product Image Container */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative !important;
    display: block !important;
}

/* Product Image */
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px 12px 0 0 !important;
    object-fit: cover !important;
}

/* FARMA Logo removed as per request */

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin: 15px 15px 10px 15px !important;
    text-align: left !important;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin: 0 15px 15px 15px !important;
    text-align: left !important;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    width: calc(100% - 30px) !important;
    margin: 0 15px 15px 15px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background-color: #2d3a2a !important;
    transform: translateY(-2px) !important;
}

/* Responsive - 3 columns on tablets */
@media (max-width: 1200px) {
    body.post-type-archive-product .woocommerce ul.products,
    body.woocommerce ul.products,
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Responsive - 2 columns on small tablets */
@media (max-width: 992px) {
    body.post-type-archive-product .woocommerce ul.products,
    body.woocommerce ul.products,
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .post-type-archive-product .kb-row-layout:first-child h2,
    .post-type-archive-product .kb-row-layout-id467_6ab642-4f h2,
    body.woocommerce .kb-row-layout:first-child h2,
    .post-type-archive-product h2.kt-adv-heading467_a292f5-d3 {
        font-size: 32px !important;
        padding: 10px 40px !important;
        border-radius: 40px !important;
    }

    .post-type-archive-product .kb-row-layout:first-child,
    .post-type-archive-product .kb-row-layout-id467_6ab642-4f,
    body.woocommerce .kb-row-layout:first-child,
    .kb-row-layout-wrap.kb-row-layout-id467_6ab642-4f {
        min-height: auto !important;
        padding: 5px 20px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

/* Responsive - 2 columns on mobile */
@media (max-width: 768px) {
    body.post-type-archive-product .woocommerce ul.products,
    body.woocommerce ul.products,
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Smaller product cards on mobile - reduce grey area */
    body.post-type-archive-product ul.products li.product,
    body.woocommerce ul.products li.product,
    .woocommerce ul.products li.product,
    ul.products li.product,
    .related.products ul.products li.product,
    .upsells.products ul.products li.product {
        padding: 0 !important;
        background-color: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    /* Force all product images to same style */
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px 12px 0 0 !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Smaller product title and price spacing on mobile - consistent and compact */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product .woocommerce-loop-category__title,
    .related.products ul.products li.product .woocommerce-loop-product__title,
    .related.products ul.products li.product h2,
    .upsells.products ul.products li.product .woocommerce-loop-product__title,
    .upsells.products ul.products li.product h2 {
        margin: 8px 2px 6px 2px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--text-dark) !important;
        text-align: left !important;
        line-height: 1.3 !important;
    }

    .woocommerce ul.products li.product .price,
    .woocommerce ul.products li.product .price .amount,
    .related.products ul.products li.product .price,
    .related.products ul.products li.product .price .amount,
    .upsells.products ul.products li.product .price,
    .upsells.products ul.products li.product .price .amount {
        margin: 0 2px 8px 2px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: var(--text-dark) !important;
        text-align: left !important;
        display: block !important;
    }

    /* Reduce product-action-wrap padding on mobile */
    .woocommerce ul.products.woo-archive-action-on-hover li.product .product-action-wrap {
        padding: 0 3px !important;
    }

    /* Remove padding from product page content wrap on mobile */
    .single-product .entry.content-bg,
    .single-product .entry-content-wrap,
    body.single-product .entry-content-wrap {
        padding: 0 !important;
    }

    /* Smaller "Pridať do košíka" button on mobile */
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .add_to_cart_button,
    .related.products ul.products li.product .button,
    .related.products ul.products li.product .add_to_cart_button,
    .upsells.products ul.products li.product .button,
    .upsells.products ul.products li.product .add_to_cart_button {
        font-size: 10px !important;
        padding: 7px 1px !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
    }

    /* Smaller "Zobraziť košík" button on mobile */
    .woocommerce a.added_to_cart,
    a.added_to_cart.wc-forward,
    .woocommerce ul.products li.product .added_to_cart,
    .related.products ul.products li.product .added_to_cart,
    .upsells.products ul.products li.product .added_to_cart {
        font-size: 10px !important;
        padding: 7px 6px !important;
        margin: 5px 0 8px 0 !important;
        width: 100% !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    .post-type-archive-product .kb-row-layout:first-child,
    .post-type-archive-product .kb-row-layout-id467_6ab642-4f,
    body.woocommerce .kb-row-layout:first-child,
    .kb-row-layout-wrap.kb-row-layout-id467_6ab642-4f {
        min-height: auto !important;
        padding: 3px 15px !important;
        padding-top: 3px !important;
        padding-bottom: 3px !important;
        margin: 0 !important;
        margin-bottom: 5px !important;
    }

    .post-type-archive-product .kb-row-layout:first-child h2,
    .post-type-archive-product .kb-row-layout-id467_6ab642-4f h2,
    body.woocommerce .kb-row-layout:first-child h2,
    .post-type-archive-product h2.kt-adv-heading467_a292f5-d3 {
        font-size: 18px !important;
        padding: 6px 15px !important;
        border-radius: 30px !important;
        max-width: 95% !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Remove margin from product grid wrapper on mobile */
    .kb-row-layout-wrap.kb-row-layout-id467_c02407-7f,
    .kb-row-layout-id467_c02407-7f.wp-block-kadence-rowlayout {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ============================================
   ULTIMATE OVERRIDE - Force Grid Layout (4 columns)
   ============================================ */
html body.woocommerce-shop ul.products,
html body.post-type-archive-product ul.products,
html body.archive.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

@media (max-width: 1200px) {
    html body.woocommerce-shop ul.products,
    html body.post-type-archive-product ul.products,
    html body.archive.woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    html body.woocommerce-shop ul.products,
    html body.post-type-archive-product ul.products,
    html body.archive.woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    html body.woocommerce-shop ul.products,
    html body.post-type-archive-product ul.products,
    html body.archive.woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .fld-unit-suffix{
  font-size: 0.85em;
  color:#6b7a5a;
  margin-left:4px;
}

}
