/*
 Theme Name:   Flatsome Child — Wine Market
 Theme URI:    https://wine-market.pl
 Description:  Child theme dla Wine Market oparty na Flatsome
 Author:       Wine Market
 Template:     flatsome
 Version:      1.0.0
 Text Domain:  flatsome-child
*/

/* =========================================================
   WINE MARKET — FLATSOME CHILD THEME CSS
   Paleta: krem #FAF7F2, złoto #8B1A1A, granat #1B2A4A, ciemny #1A1410
   Fonty: Cormorant Garamond (tytuły), Montserrat (tekst)
   ========================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- ZMIENNE --- */
:root {
  --wm-gold: #8B1A1A;
  --wm-gold-light: #C4975A;
  --wm-navy: #1B2A4A;
  --wm-dark: #1A1410;
  --wm-cream: #FAF7F2;
  --wm-text: #2C2420;
}

/* =========================================================
   TYPOGRAFIA GLOBALNA
   ========================================================= */
body {
  font-family: 'Montserrat', sans-serif !important;
  color: var(--wm-text) !important;
  background: #fff !important;
}

h1, h2, h3, h4, h5, h6,
.title, .entry-title,
.product-title, .woocommerce-loop-product__title {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em !important;
}

p, li, a, span, div,
.button, button,
.widget, label, input {
  font-family: 'Montserrat', sans-serif !important;
}

/* =========================================================
   TOP BAR
   ========================================================= */
#top-bar,
.top-bar,
#top-bar-sticky-wrapper .top-bar {
  background-color: var(--wm-navy) !important;
  border-bottom: none !important;
}

#top-bar *,
.top-bar * {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
}

#top-bar a:hover,
.top-bar a:hover {
  color: var(--wm-gold) !important;
}

/* =========================================================
   HEADER / NAWIGACJA
   ========================================================= */
#header,
.header-main,
.header-wrapper {
  background: #fff !important;
  border-bottom: 1px solid rgba(156,114,64,0.15) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

/* Logo */
.header-logo img,
.logo img {
  max-height: 55px !important;
}

/* Menu główne */
.nav-bar > ul > li > a,
#main-nav > ul > li > a,
.main-nav > ul > li > a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--wm-dark) !important;
  padding: 0 16px !important;
}

.nav-bar > ul > li > a:hover,
#main-nav > ul > li > a:hover {
  color: var(--wm-gold) !important;
}

/* Dropdown menu */
.nav-dropdown,
.dropdown-menu {
  border-top: 2px solid var(--wm-gold) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

.nav-dropdown a {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  color: var(--wm-dark) !important;
  padding: 10px 20px !important;
}

.nav-dropdown a:hover {
  color: var(--wm-gold) !important;
  background: var(--wm-cream) !important;
}

/* Koszyk */
.cart-icon,
.header-cart {
  color: var(--wm-dark) !important;
}

.cart-item-count,
.cart-count {
  background: var(--wm-gold) !important;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 9px !important;
}

/* =========================================================
   USP BAR (pasek pod menu)
   ========================================================= */
.usp-bar,
.section-usp,
[data-section-id="usp"] {
  background: var(--wm-navy) !important;
  padding: 10px 0 !important;
}

/* =========================================================
   SLIDER / HERO
   ========================================================= */
.banner-inner h1,
.banner-inner h2,
.banner-inner h3,
.banner-inner .title,
.banner-inner .banner-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 300 !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
  color: #fff !important;
}

.banner-inner p,
.banner-inner .subtitle,
.banner-inner .banner-subtitle {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,0.85) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4) !important;
}

/* Przyciski na slajdzie */
.banner-inner .button,
.banner-inner a.button {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  background: var(--wm-gold) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px 32px !important;
  transition: background 0.25s ease !important;
}

.banner-inner .button:hover {
  background: var(--wm-gold-light) !important;
  color: #fff !important;
}

.banner-inner .button.outline,
.banner-inner .button.button-outline {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
  color: #fff !important;
}

.banner-inner .button.outline:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* =========================================================
   SEKCJE / TYTUŁY
   ========================================================= */
.section-title,
.products-heading,
.widget-title,
h3.title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 36px !important;
  font-weight: 300 !important;
  color: var(--wm-dark) !important;
  letter-spacing: 0.02em !important;
}

/* Subtitle nad tytułem */
.section-subtitle,
.products-subtitle {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--wm-gold) !important;
}

/* =========================================================
   KARTY PRODUKTÓW
   ========================================================= */
.product-small,
.product,
li.product {
  border: 1px solid rgba(0,0,0,0.06) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  background: #fff !important;
}

.product-small:hover,
.product:hover,
li.product:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
  transform: translateY(-2px) !important;
}

/* Nazwa produktu */
.woocommerce-loop-product__title,
.product-title,
.product-small .title,
li.product h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--wm-dark) !important;
  line-height: 1.3 !important;
}

/* Cena */
.price,
.woocommerce-Price-amount,
.product-small .price {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #8B1A1A !important;
}

/* Przycisk "Do koszyka" */
.add_to_cart_button,
.button.product_type_simple,
.product .button {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  background: var(--wm-dark) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 20px !important;
  transition: background 0.25s ease !important;
}

.add_to_cart_button:hover,
.button.product_type_simple:hover,
.product .button:hover {
  background: var(--wm-gold) !important;
  color: #fff !important;
}

/* Badge "Nowość", "Wyprzedaż" */
.product .badge,
.product .onsale {
  background: var(--wm-gold) !important;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  border-radius: 0 !important;
}

/* =========================================================
   SIDEBAR / FILTRY
   ========================================================= */
.sidebar .widget-title,
.sidebar h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--wm-dark) !important;
  border-bottom: 1px solid rgba(156,114,64,0.2) !important;
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
}

.sidebar .widget {
  margin-bottom: 32px !important;
}

/* Price slider */
.ui-slider-range {
  background: var(--wm-gold) !important;
}

.ui-slider-handle {
  border-color: var(--wm-gold) !important;
}

/* Checkboxy filtrów */
.woocommerce-widget-layered-nav a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  color: var(--wm-text) !important;
}

.woocommerce-widget-layered-nav a:hover {
  color: var(--wm-gold) !important;
}

/* =========================================================
   STRONA PRODUKTU (single)
   ========================================================= */
.product_title,
.entry-title.product_title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 300 !important;
  color: var(--wm-dark) !important;
  line-height: 1.15 !important;
}

.single-product .price {
  font-size: 24px !important;
  color: var(--wm-gold) !important;
  font-weight: 600 !important;
}

.single_add_to_cart_button,
.single-product .button {
  background: var(--wm-gold) !important;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 16px 40px !important;
  transition: background 0.25s ease !important;
}

.single_add_to_cart_button:hover {
  background: var(--wm-gold-light) !important;
}

/* =========================================================
   KAFLE KATEGORII (custom HTML)
   ========================================================= */
.category-tiles a:hover {
  opacity: 0.88 !important;
  transform: translateY(-2px) !important;
  transition: all 0.25s ease !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
/* Własny footer (klasy .wm-footer) */
.wm-footer {
  background-color: var(--wm-navy) !important;
  background-image: none !important;
}

.wm-footer__heading {
  color: var(--wm-gold) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
}

.wm-footer a,
.wm-footer p,
.wm-footer li,
.wm-footer address {
  color: rgba(255,255,255,0.72) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  font-style: normal !important;
  line-height: 2 !important;
}

.wm-footer a:hover {
  color: var(--wm-gold) !important;
}

/* Flatsome footer (backup) */
#footer,
.footer-wrapper,
.footer-1 {
  background-color: var(--wm-navy) !important;
  background-image: none !important;
}

.footer-1 .widget-title,
.footer-1 h3,
.footer-1 h4,
#footer .widget-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--wm-gold) !important;
  border: none !important;
}

.footer-1 p,
.footer-1 li,
.footer-1 a,
#footer p,
#footer li,
#footer a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.72) !important;
  line-height: 2 !important;
}

.footer-1 a:hover,
#footer a:hover {
  color: var(--wm-gold) !important;
}

.absolute-footer,
.footer-bottom,
.footer-bottom-bar {
  background-color: #152238 !important;
  color: rgba(255,255,255,0.4) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
}

/* =========================================================
   PRZYCISKI GLOBALNE
   ========================================================= */
.button,
button,
input[type="submit"] {
  border-radius: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
  letter-spacing: 0.1em !important;
}

.button.primary,
.button.color-primary,
a.button.primary {
  background: var(--wm-gold) !important;
  color: #fff !important;
}

.button.primary:hover,
a.button.primary:hover {
  background: var(--wm-gold-light) !important;
}

.button.secondary,
a.button.secondary {
  background: var(--wm-navy) !important;
  color: #fff !important;
}

/* =========================================================
   FORMULARZE
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  padding: 10px 14px !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--wm-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(156,114,64,0.12) !important;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumb,
.woocommerce-breadcrumb {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  color: rgba(0,0,0,0.4) !important;
  letter-spacing: 0.06em !important;
}

.woocommerce-breadcrumb a {
  color: var(--wm-gold) !important;
}

/* =========================================================
   KASA / CHECKOUT
   ========================================================= */
.woocommerce-checkout h3,
.woocommerce-checkout .shipping_address h3 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 24px !important;
  font-weight: 300 !important;
}

#place_order {
  background: var(--wm-gold) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  border-radius: 0 !important;
  padding: 16px 40px !important;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .banner-inner h2,
  .banner-inner .title {
    font-size: clamp(28px, 8vw, 52px) !important;
  }

  .section-title,
  .products-heading {
    font-size: 28px !important;
  }

  #top-bar .flex-row {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}