/*
 Theme Name:     NM desserts theme
 Description:    NM desserts theme
 Author:         Ondra Firla
 Author URI:     https://www.firla.eu
 Template:       Divi
 Version:        1.0.0
*/

/* 

@import "css/mobile_grid.css";
@import "css/articles_grid.css";

*/
/*
@import "css/typo.css";
*/


.et_pb_button:hover, .et_pb_module .et_pb_button:hover {
    border: 1px solid #FFF !important;
}

.et_button_icon_visible .et_pb_button {
    padding-right: 2.5em !important;
}

body #page-container .et_pb_section .et_pb_button_1:after, body #page-container .et_pb_section .et_pb_button_1:hover:after {
    line-height: 1.1em !important;
}


.hero_symbols_01 {
	position: relative;
}

.hero_symbols_01:after {
	content: "";
	position: absolute;
	right: 30px;
	top: -340px;
	width: 800px;          /* desktop */
	max-width: 40vw;
	aspect-ratio: 1 / 1;  /* uprav dle reálného obrázku */
	background: url('https://nmcafe.cz/wp-content/uploads/2025/10/symbols.png') no-repeat;
	background-size: contain;
	z-index: 10;
}

/* tablet */
@media (max-width: 1024px) {
	.hero_symbols_01:after {
		width: 450px;
		max-width: 100%;
		top: -120px;
	}
}

/* telefon */
@media (max-width: 480px) {
	.hero_symbols_01:after {
		width: 250px;
		top: -40px;
		right: 10px;
	}
}


/* front prokudty */
.nm-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Každá dlaždice produktu */
.nm-product {
  position: relative;
  border: 1px solid #eee;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s ease;
  max-width: 360px;
  margin: 0 auto;
}

.nm-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

/* Obrázek s poměrem 3:4 */
.nm-product img {
  width: 100%;
  aspect-ratio: 9 / 10;         /* moderní metoda */
  object-fit: cover;           /* ořízne do poměru */
  object-position: center;     /* zarovná střed */
  display: block;
  background-color: #f8f8f8;
}

/* Obsah dlaždice */
.nm-product-info {
  padding: 14px 16px 12px;
  border-top: 1px solid #eee;
  text-align: left;
}

.nm-product-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0px;
  padding-bottom: 4px;
}

.nm-product-info p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
	padding-top:4px;
	padding-bottom:4px;
  color: #666;
}

/* Label „Doporučujeme!“ */
.nm-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* Tlačítko „+“ */
.nm-plus {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: #000;
  color: #fff;
  font-weight: bold;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}

.nm-plus:hover {
  background: #444;
}

/* Cena */
.nm-price {
  position: absolute;
  bottom: 14px;
  right: 16px;
  text-align: right;
  font-size: 15px;
  line-height: 1.2;
  color: #000;
}

.nm-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.nm-badge--doporučujeme { background: #000; }
.nm-badge--akce { background: #c62828; }              /* červená */
.nm-badge--novinka { background: #2e7d32; }           /* zelená */
.nm-badge--limitovana-edice { background: #f9a825; }  /* zlatá */

/* + neaktivní */
.nm-plus.disabled {
  background: #aaa;
  cursor: default;
  opacity: 0.6;
}



/* === KATEGORIE GRID === */
.nm-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;

  width: 100%;
  max-width: none;
  margin: 10px 0;
  padding: 0; /* ❗ zrušíme boční mezery */
}

/* === KARTA === */
.nm-category-card {
  position: relative;
  width: 100%;           /* šířka podle grid sloupce */
  border-radius: 40px; /* čtverec se zaoblením */
  overflow: hidden;
  text-decoration: none;
  background: #000;
  aspect-ratio: 1 / 1;   /* 🔒 vždy čtverec */
}

.nm-category-card:nth-child(even) {
  border-radius: 50%;
}

/* pozadí */
.nm-category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;     /* ořízne bez deformace */
  background-position: center;
  filter: brightness(0.6);
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* overlay s názvem */
.nm-category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nm-category-overlay span {
  font-family: "Polymath Display", sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
}

/* dekorativní kruh */
.nm-category-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  right: -60px;
  bottom: -60px;
  z-index: 1;
}



/* === HOVER (jen desktop) === */
@media (hover: hover) and (pointer: fine) {
  .nm-category-card:hover .nm-category-bg {
    transform: scale(1.05);
    filter: brightness(0.8);
  }

  .nm-category-card:hover .nm-category-circle {
    transform: scale(1.1);
    transition: transform 0.6s ease;
  }
}





/* ubytování */
/* GRID */
.nm-rooms-grid{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  justify-content:center; /* aby 1 karta nebyla nalepená vlevo */
}

/* KARTA */
.nm-room-card{
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius:0;
  overflow:hidden;
  box-shadow:none;
  transition: box-shadow .2s ease, transform .2s ease;
  
  /* default pro desktop */
  width: calc(33.333% - 18px);
  max-width: 360px; /* aby 1 karta nebyla obří */
  min-width: 280px;
}

/* HOVER NA CELOU KARTU */
.nm-room-card:hover{
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  transform: translateY(-2px);
}

/* OBRÁZEK */
.nm-room-image img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

/* HLAVIČKA */
.nm-room-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:14px 14px 10px;
  gap:12px;
}

.nm-room-title h3{
  margin:0;
  font-size:20px;
  font-weight:700;
}

.nm-room-subtitle{
  margin:2px 0 0;
  font-size:13px;
  opacity:.65;
}

.nm-room-price{
  text-align:right;
  line-height:1.1;
}

.nm-room-price strong{
  font-size:18px;
  font-weight:800;
}

.nm-room-price small{
  display:block;
  font-size:12px;
  opacity:.65;
  margin-top:2px;
}

/* SPODNÍ ČÁST */
.nm-room-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px 14px;
  border-top:1px solid #efefef;
  gap:10px;
}

.nm-room-capacity small{
  display:block;
  font-size:12px;
  opacity:.65;
  margin-bottom:6px;
}

.nm-room-dots{
  display:flex;
  gap:6px;
}

.nm-room-dots .dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#111;
  display:inline-block;
}

/* TLAČÍTKO – ČERNÉ, BÍLÝ TEXT, HRANATÉ */
.nm-room-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:0;
  background:#111;
  border:1px solid #111;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  transition:.2s;
  white-space:nowrap;
}

.nm-room-btn:hover{
  background:#000;
  border-color:#000;
  color:#fff;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .nm-room-card{
    width: calc(50% - 18px);
    max-width: 420px;
  }
}

@media (max-width: 640px){
  .nm-room-card{
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
	.hidden_mobile {
		display: none !important;
	}
}

.nm-room-dots .dot--half{
  position:relative;
  background:#e5e5e5; /* "prázdná" část */
  overflow:hidden;
}

.nm-room-dots .dot--half:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:50%;
  height:100%;
  background:#111; /* plná půlka */
}


@media (max-width: 767px) {
    .nm-footer-menu {
        display: none !important;
    }
}
