/*
Theme Name: Rubicello
Theme URI: https://dev.magiaopakowan.pl
Author: Rubicello
Author URI: https://dev.magiaopakowan.pl
Description: Motyw WordPress dla Rubicello – producenta opakowań jubilerskich i prezentowych. Obsługuje niestandardowy typ postu "produkt" z polami meta SKU i wymiarów oraz wyszukiwanie po wymiarach.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: rubicello
Tags: e-commerce, custom-post-type, search, polish
*/

/* ============================================================
   ZMIENNE CSS
   ============================================================ */
:root {
  --accent-color: #8d252a;
  --accent-hover: #6f1d21;
  --contrast-color: #ffffff;
  --surface-color: #ffffff;
  --background-color: #ffffff;
  --text-color: #212529;
  --muted-color: #6c757d;
  --border-color: #dee2e6;
  --dark-background: #1a1a1a;
  --header-height: 120px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Roboto', sans-serif; color: var(--text-color); background: var(--background-color); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   DIMENSION LINKS (filtry wymiarów)
   ============================================================ */
.dimension-link {
  padding: 4px 10px;
  margin: 5px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}
.dimension-link:hover,
.dimension-link.active {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

/* ============================================================
   COOKIE BAR
   ============================================================ */
#cookie-bar {
  background: rgba(255,255,255,0.95);
  color: #000;
  border-top: 1px solid #ddd;
}
#accept-cookies {
  background-color: var(--accent-color);
  border: none;
  margin-right: 100px;
}
#accept-cookies:hover { background-color: var(--accent-hover); }
.cookie-links a {
  color: var(--accent-color);
  text-decoration: underline;
  margin-left: 10px;
}

/* ============================================================
   SEARCH FORM – wyszukiwanie po wymiarach
   ============================================================ */
.dimension-search-row input.form-control {
  border: 1px solid var(--accent-color) !important;
  border-radius: 50px;
  background-color: var(--surface-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  color: var(--accent-color) !important;
}
.dimension-search-label {
  color: var(--accent-color);
  padding-top: 10px;
  text-align: center;
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 99999;
  background: var(--accent-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.scroll-top:hover { background: var(--accent-hover); }
.scroll-top.active { display: flex; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #fff;
  transition: opacity .4s ease, visibility .4s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }

/* ============================================================
   ULUBIONE – przyciski
   ============================================================ */
.add-to-favorites { transition: all 0.2s; }
.add-to-favorites.active i,
.add-to-favorites:hover i { color: var(--accent-color); }
.add-to-favorites.active { background: #fff3f3; }

/* ============================================================
   GALERIA REALIZACJI
   ============================================================ */
.venue-gallery {
    position: relative;
    overflow: hidden;
}
.venue-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.venue-gallery:hover img { transform: scale(1.05); }

.venue-gallery .product-overlay {
    position: absolute !important;
    inset: auto 0 0 0 !important;
    background: rgba(0,0,0,.4);
    padding: 8px !important;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.venue-gallery:hover .product-overlay { opacity: 1; }

.venue-info {
    background: var(--accent-color);
    display: flex;
    align-items: center;
    min-height: 300px;
}
.venue-info h1, .venue-info p { color: #fff; }

/* ============================================================
   FORMULARZ ULUBIONYCH
   ============================================================ */
.blog-comment-form-2.section { padding: 60px 0; background: #f9f9f9; }
.blog-comment-form-2 h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.blog-comment-form-2 .form-group { margin-bottom: 16px; }

/* ============================================================
   FILTRY WYMIARÓW – zwijanie do 2 linii
   ============================================================ */
.filters {
    position: relative;
}
.filters-inner {
    max-height: 82px;   /* ~2 linie przycisków (36px każda) */
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.filters-inner.expanded {
    max-height: 2000px; /* wystarczająco duże żeby pokazać wszystko */
}
.filters-toggle {
    display: inline-block;
    margin-top: 6px;
    cursor: pointer;
    font-size: .82rem;
    color: var(--accent-color);
    background: none;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 3px 12px;
    transition: all .2s;
}
.filters-toggle:hover {
    background: var(--accent-color);
    color: #fff;
}
.filters-toggle .icon { font-size: .75rem; }



#scroll-sentinel {
    height: 1px;
}