/* City Flowers - Kwiaciarnia Białystok */
/* Nowy CSS wzorowany na Jupiter theme */
/* Fonty: Lato (body) + Playfair Display (headings) */
/* Kolory: accent #27842f (zielony), text #333, bg #fff */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Playfair+Display:wght@400;700&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #27842f; text-decoration: none; transition: color 0.2s; }
a:hover { color: #1a5c20; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

h1 { font-size: 2rem; margin-bottom: 0.8rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* === LAYOUT === */
.mk-grid, .header-grid {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.clearboth, .clearfix { clear: both; }
.clearboth::after, .clearfix::after { content: ''; display: table; clear: both; }

/* === HEADER === */
.mk-header, header.mk-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

.mk-header-holder { position: relative; }

.mk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 0 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.header-logo, .mk-desktop-logo {
    display: flex;
    align-items: center;
}

.header-logo img, .mk-desktop-logo img {
    max-height: 60px;
    width: auto;
}

.mk-header-bg { display: none; }

/* === NAVIGATION === */
.mk-classic-menu-wrapper, .mk-main-navigation {
    display: flex;
    align-items: center;
}

.mk-classic-nav-bg { display: none; }

.main-navigation-ul, .mk-main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation-ul > li, .mk-main-navigation > ul > li {
    position: relative;
}

.main-navigation-ul > li > a, .mk-main-navigation > ul > li > a,
.menu-item > a {
    display: block;
    padding: 28px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    transition: color 0.2s;
}

.main-navigation-ul > li > a:hover, .mk-main-navigation > ul > li > a:hover,
.menu-item > a:hover {
    color: #27842f;
}

/* Dropdown menu */
.sub-menu, .mk-nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 200;
    padding: 10px 0;
}

li:hover > .sub-menu, li:hover > .mk-nav-sub { display: block; }

.sub-menu li a, .mk-nav-sub li a {
    display: block;
    padding: 8px 20px;
    font-size: 0.82rem;
    color: #555;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.sub-menu li a:hover, .mk-nav-sub li a:hover { color: #27842f; background: #f9f9f9; }

.mk-nav-arrow { display: none; }

/* Mobile navigation */
.mk-nav-responsive-link, .mk-css-icon-menu {
    display: none;
    cursor: pointer;
}

.mk-responsive-nav, .mk-responsive-wrap,
nav.menu-main-menu-container,
ul.mk-responsive-nav { display: none; }

/* === BREADCRUMBS === */
.mk-breadcrumbs, .mk-breadcrumbs-inner {
    padding: 15px 0;
    font-size: 0.82rem;
    color: #999;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
}

.mk-breadcrumbs a { color: #999; }
.mk-breadcrumbs a:hover { color: #27842f; }

/* === MAIN CONTENT === */
.mk-main-wrapper-holder {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.mk-padding-wrapper, .mk-header-padding-wrapper {
    padding: 0;
}

/* === WOOCOMMERCE PRODUCT === */
.single-product .theme-content > .product {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.product {}

.woocommerce-product-gallery {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

.woocommerce-product-gallery__wrapper { display: flex; flex-direction: column; gap: 10px; }

.woocommerce-product-gallery__image img {
    width: 100%;
    border-radius: 4px;
}

.entry-summary, .summary {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

.product_title, h1.product_title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27842f;
    margin-bottom: 20px;
}

.price del { color: #999; font-weight: 400; font-size: 1.1rem; }
.price ins { text-decoration: none; }

.woocommerce-product-details__short-description,
.product_description {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #555;
}

/* Tabs */
.woocommerce-tabs {
    width: 100%;
    margin-top: 50px;
    clear: both;
}

.woocommerce-tabs .tabs, .wc-tabs {
    list-style: none;
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    padding: 0;
}

.woocommerce-tabs .tabs li a, .wc-tabs li a {
    display: block;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.woocommerce-tabs .tabs li.active a, .wc-tabs li.active a {
    color: #27842f;
    border-bottom-color: #27842f;
}

.woocommerce-Tabs-panel { padding: 10px 0; }

/* Variable product - attributes table */
table.variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.variations td { padding: 10px 0; }
table.variations label { font-weight: 700; font-size: 0.9rem; }
table.variations select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Additional info table */
.shop_attributes, table.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.shop_attributes th, .shop_attributes td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 0.9rem;
}

.shop_attributes th { font-weight: 700; width: 35%; color: #666; }

/* Related products */
.related.products, section.related {
    margin-top: 60px;
    width: 100%;
    clear: both;
}

.related.products h2, section.related h2 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    grid-column: 1 / -1;
}

/* Related products grid layout */
section.related.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product loop images - ensure proper size */
.product-loop-thumb img,
.mk-product-holder img.product-loop-image,
.mk-product-holder img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-radius: 4px;
}

/* Hide search/read-more buttons in product loops */
.product_loop_button,
.product-item-footer a.product_loop_button {
    display: none !important;
}

/* === PRODUCT GRID (category/shop pages) === */
.products, ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    list-style: none;
    padding: 0;
}

.products .product, ul.products li.product, .mk-product-holder {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.products .product a img, .mk-shop-item-detail img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.woocommerce-loop-product__title, .mk-shop-item-detail .product-title,
h2.woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: #333;
}

.products .product .price, .mk-shop-item-detail .price {
    font-size: 1rem;
    font-weight: 700;
    color: #27842f;
}

/* Product loop container */
.mk-product-loop { margin-bottom: 40px; }

/* === CATEGORY PAGE === */
.woocommerce-result-count {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
}

.woocommerce-ordering { margin-bottom: 20px; }

/* === GALLERY === */
.gallery, .wp-block-gallery, .galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery img, .gallery-item img { border-radius: 4px; }

/* === PAGES (O nas, Kontakt) === */
.entry-content, .mk-single-content {
    max-width: 800px;
    line-height: 1.8;
    font-size: 1rem;
}

.entry-content h2, .mk-single-content h2 { margin-top: 30px; }

/* === FOOTER === */
footer, .mk-footer, .footer {
    background: #111;
    color: #aaa;
    padding: 40px 0 20px;
}

.footer-content, .mk-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

footer a, .mk-footer a, .footer a { color: #ccc; }
footer a:hover, .mk-footer a:hover, .footer a:hover { color: #27842f; }

.footer-contact-boxes {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Copyright */
.footer-bg-accent, .copyright-bar {
    background: #0a0a0a;
    padding: 15px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* === POST NAVIGATION === */
.mk-post-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.mk-post-nav a { color: #666; font-size: 0.9rem; }
.mk-post-nav a:hover { color: #27842f; }

.mk-pavnav-icon { display: none; }

/* === PAGE TITLE === */
.mk-page-section, .mk-background-stretch {
    position: relative;
}

/* === UTILITIES === */
.mk-go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #27842f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mk-go-top:hover { background: #1a5c20; }

/* Hide various Jupiter elements that don't work without JS */
.mk-preloader, .mk-fullscreen-search-overlay,
.mk-side-dashboard, #mk-fullscreen-nav { display: none !important; }

/* Hide duplicate light logo (only show dark logo) */
.mk-desktop-logo.light-logo { display: none; }

/* Fix dropdown: hide by default, show on hover */
.sub-menu { display: none !important; }
li:hover > .sub-menu { display: block !important; }

/* Gallery opacity fix (JS normally reveals) */
.woocommerce-product-gallery { opacity: 1 !important; }

/* Product page title area */
#mk-page-introduce { background: #f9f9f9; padding: 20px 0; margin-bottom: 20px; }
#mk-page-introduce .page-title { font-family: 'Playfair Display', serif; }

/* Product loop fixes */
.product-loop-thumb { overflow: hidden; border-radius: 4px; }
.product-loop-thumb img { width: 100%; }
.mk-shop-item-detail { padding: 10px 0; }

/* Hide empty footer wrapper from Jupiter */
#mk-footer .footer-wrapper:empty,
#mk-footer .mk-padding-wrapper:empty { display: none; }

/* WooCommerce tabs - show description by default */
.woocommerce-Tabs-panel { display: block; }
.woocommerce-Tabs-panel#tab-additional_information { display: none; }
.wc-tabs li.description_tab a { color: #27842f; border-bottom-color: #27842f; }

/* Header right (empty cart icon area) */
.mk-header-right:empty { display: none; }

/* === HOMEPAGE SECTIONS === */
.vc_row, .wpb_row {
    padding: 40px 0;
}

.vc_column-inner, .wpb_wrapper { padding: 15px; }

.vc_row-fluid { max-width: 1140px; margin: 0 auto; }

.mk--row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.mk--col {
    padding: 0 15px;
}

.mk--col--3-12 { flex: 0 0 25%; max-width: 25%; }

/* Thumbnails / lazy load fix */
img[data-mk-image-src-set],
img[data-lazy-src],
img[data-src] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* BFI thumb / lazy load transparent placeholders */
img[src*="dummy-transparent"] {
    min-height: 200px;
    background: #f0f0f0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .products, ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    .product {
        flex-direction: column;
    }

    .woocommerce-product-gallery,
    .entry-summary, .summary {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mk--col--3-12 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 768px) {
    .mk-header-inner {
        flex-wrap: wrap;
        min-height: 60px;
    }

    .mk-classic-menu-wrapper, .mk-main-navigation,
    .mk-header-nav-container { display: none; }

    .mk-nav-responsive-link, .mk-css-icon-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 30px;
        cursor: pointer;
    }

    .mk-css-icon-menu-line-1,
    .mk-css-icon-menu-line-2,
    .mk-css-icon-menu-line-3 {
        height: 3px;
        background: #111;
        border-radius: 2px;
    }

    .products, ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 { font-size: 1.5rem; }
    .price { font-size: 1.2rem; }

    .mk--col--3-12 { flex: 0 0 100%; max-width: 100%; }

    .mk-main-wrapper-holder { padding: 20px 15px 40px; }
}

@media (max-width: 480px) {
    .products, ul.products {
        grid-template-columns: 1fr;
    }

    .main-navigation-ul > li > a { padding: 12px; font-size: 0.8rem; }
}
