/*
Theme Name: Hackuji Child
Theme URI: https://hackuji.cz
Description: Child theme pro Hackuji.cz - háčkovaný eshop
Author: Hackuji
Template: astra
Version: 1.0.0
Text Domain: hackuji-child
*/

/* === PROMĚNNÉ === */
:root {
  --hk-brown:       #5C3317;
  --hk-brown-mid:   #7A4528;
  --hk-brown-light: #A0623A;
  --hk-cream:       #F5EFE6;
  --hk-beige:       #EAD9C6;
  --hk-beige-mid:   #D4BFA4;
  --hk-text:        #3B2012;
  --hk-text-light:  #7A5C46;
  --hk-white:       #FFFFFF;
  --hk-radius:      12px;
  --hk-shadow:      0 4px 16px rgba(92,51,23,0.10);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--hk-cream) !important;
  color: var(--hk-text) !important;
  font-family: 'Georgia', 'Times New Roman', serif !important;
  margin: 0;
}

a { color: var(--hk-brown); text-decoration: none; }
a:hover { color: var(--hk-brown-mid); }

h1, h2, h3, h4, h5, h6 {
  color: var(--hk-brown) !important;
  font-family: 'Georgia', serif !important;
}

/* === HLAVIČKA === */
#masthead,
.site-header,
header.site-header {
  background-color: var(--hk-brown) !important;
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.ast-container { max-width: 1200px !important; }

/* Logo / název */
.site-title a,
.site-title a:visited,
.ast-site-identity a,
.ast-site-identity .site-title a {
  color: var(--hk-white) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}

/* Nav menu */
.main-header-menu,
.ast-nav-menu {
  background: transparent !important;
}

.main-header-menu .menu-item > a,
.ast-nav-menu > li > a {
  color: #F0E0D0 !important;
  font-size: 15px !important;
  font-family: Georgia, serif !important;
  padding: 28px 18px !important;
  transition: color 0.2s !important;
}

.main-header-menu .menu-item > a:hover,
.ast-nav-menu > li > a:hover,
.main-header-menu .current-menu-item > a {
  color: var(--hk-white) !important;
  background: transparent !important;
}

/* Dropdown menu */
.main-header-menu .sub-menu,
.ast-nav-menu .sub-menu {
  background: var(--hk-brown) !important;
  border: none !important;
  border-radius: 0 0 var(--hk-radius) var(--hk-radius) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
  min-width: 200px !important;
}

.main-header-menu .sub-menu .menu-item a,
.ast-nav-menu .sub-menu li a {
  color: #F0E0D0 !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  display: block;
}

.main-header-menu .sub-menu .menu-item a:hover,
.ast-nav-menu .sub-menu li a:hover {
  background: var(--hk-brown-mid) !important;
  color: var(--hk-white) !important;
}

/* === HERO SEKCE === */
.hk-hero {
  position: relative;
  min-height: 480px;
  background-color: var(--hk-beige);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hk-hero .hk-hero-content {
  width: 100%;
}

@media (max-width: 768px) {
  .hk-hero {
    min-height: 320px;
  }
}

.wp-block-shortcode,
.wp-block-shortcode > * {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.wp-block-shortcode .hk-hero {
  margin: 0 !important;
}

.wp-block-shortcode .hk-features,
.wp-block-shortcode .hk-section,
.wp-block-shortcode .hk-categories {
  width: 100% !important;
}

.hk-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,239,230,0.62) 38%, rgba(245,239,230,0.1) 100%);
}

.hk-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  width: 100%;
}

.hk-hero-content h1 {
  font-size: clamp(36px, 5vw, 58px) !important;
  color: var(--hk-brown) !important;
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 520px;
}

.hk-hero-content p {
  font-size: 17px;
  color: var(--hk-text-light);
  max-width: 380px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.hk-btn {
  display: inline-block;
  background: var(--hk-brown);
  color: var(--hk-white) !important;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-family: Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.hk-btn:hover {
  background: var(--hk-brown-mid) !important;
  transform: translateY(-2px);
  color: var(--hk-white) !important;
}

.hk-btn-outline {
  background: transparent;
  color: var(--hk-brown) !important;
  border: 2px solid var(--hk-brown);
}

.hk-btn-outline:hover {
  background: var(--hk-brown) !important;
  color: var(--hk-white) !important;
}

/* === IKONY POD HERO === */
.hk-features {
  background: var(--hk-beige);
  padding: 28px 40px;
}

.hk-features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hk-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hk-feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--hk-brown);
}

.hk-feature-text {
  font-size: 13px;
  color: var(--hk-text-light);
  line-height: 1.4;
  font-weight: 600;
}

/* === SEKCE NADPIS === */
.hk-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.hk-section-title {
  text-align: center;
  font-size: 28px !important;
  color: var(--hk-brown) !important;
  margin-bottom: 8px !important;
}

.hk-section-line {
  width: 50px;
  height: 3px;
  background: var(--hk-brown-light);
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* === KATEGORIE GRID === */
.hk-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hk-category-card {
  position: relative;
  border-radius: var(--hk-radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  display: block;
  text-decoration: none !important;
}

.hk-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hk-category-card:hover img { transform: scale(1.05); }

.hk-category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--hk-brown);
  color: var(--hk-white) !important;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === WOOCOMMERCE PRODUKTY === */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product {
  background: var(--hk-white) !important;
  border-radius: var(--hk-radius) !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: var(--hk-shadow) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 28px rgba(92,51,23,0.15) !important;
}

.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important;
  color: var(--hk-text) !important;
  font-family: Georgia, serif !important;
  padding: 16px 16px 4px !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .price {
  color: var(--hk-brown) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 4px 16px 12px !important;
  display: block !important;
}

.woocommerce ul.products li.product .button {
  background: var(--hk-brown) !important;
  color: var(--hk-white) !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
  margin: 0 16px 16px !important;
  border: none !important;
  width: calc(100% - 32px) !important;
  text-align: center !important;
  display: block !important;
  transition: background 0.2s !important;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--hk-brown-mid) !important;
}

/* Badge NOVINKA */
.woocommerce span.onsale {
  background: var(--hk-brown) !important;
  color: var(--hk-white) !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
}

/* === PATIČKA === */
.site-footer,
#colophon {
  background: var(--hk-brown) !important;
  color: #D4C4B4 !important;
  padding: 50px 0 20px !important;
}

.site-footer .widget-title,
#colophon .widget-title {
  color: var(--hk-white) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 16px !important;
}

.site-footer a,
#colophon a {
  color: #D4C4B4 !important;
  font-size: 13px;
  line-height: 2;
}

.site-footer a:hover,
#colophon a:hover { color: var(--hk-white) !important; }

.ast-footer-copyright,
.site-info {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  margin-top: 30px !important;
  padding-top: 20px !important;
  text-align: center !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.5) !important;
}

/* === SINGLE PRODUKT === */
.woocommerce div.product .product_title {
  color: var(--hk-brown) !important;
  font-size: 28px !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--hk-brown) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--hk-brown) !important;
  border-bottom-color: var(--hk-brown) !important;
}

/* === KOŠÍK & CHECKOUT === */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
  background: var(--hk-brown) !important;
  border-radius: 30px !important;
}

/* === BREADCRUMB === */
.woocommerce .woocommerce-breadcrumb {
  color: var(--hk-text-light) !important;
  font-size: 13px !important;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--hk-brown-light) !important;
}

/* === RESPONSIVITA === */
@media (max-width: 1024px) {
  .hk-categories { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .hk-features-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hk-hero { min-height: 320px; }
  .hk-hero-content { padding: 40px 20px; }
  .hk-hero-content h1 { font-size: 32px !important; }
  .hk-section { padding: 40px 20px; }
  .hk-features { padding: 20px; }
  .hk-features-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .hk-categories { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .hk-features-inner { grid-template-columns: 1fr; }
}

/* === FULL-WIDTH HERO FIX === */
/* Pouze content kontejner, ne header */
body.hk-front-page #content.site-content > .ast-container,
body.home #content.site-content > .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.hk-front-page,
body.home {
  overflow-x: hidden;
}

/* === MOBILNÍ MENU === */
/* Hamburger ikona — bílá (na hnědém headeru) */
button.menu-toggle.ast-mobile-menu-trigger-minimal,
.menu-toggle {
  color: var(--hk-white) !important;
  background: transparent !important;
  border: none !important;
}

/* Mobilní menu dropdown — hnědé pozadí, ne přes celou výšku */
#ast-mobile-header .main-header-bar-navigation,
#ast-mobile-header .ast-main-header-wrap,
.ast-mobile-header-content,
.ast-mobile-popup-content {
  background-color: var(--hk-brown) !important;
}

#ast-mobile-header .main-header-bar-navigation {
  max-height: 70vh !important;
  overflow-y: auto !important;
}

/* Položky menu */
#ast-mobile-header .main-header-bar-navigation .menu-item > a,
.ast-mobile-header-content .menu-item > a,
.ast-mobile-popup-content .menu-item > a {
  color: #F0E0D0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding: 12px 20px !important;
}

#ast-mobile-header .main-header-bar-navigation .menu-item > a:hover,
.ast-mobile-popup-content .menu-item > a:hover {
  color: var(--hk-white) !important;
  background: var(--hk-brown-mid) !important;
}
