/* ==============================================
   OBUWIEDOMOWE.PL — Global Site Stylesheet
   Colors stay: --brand:#edcfa8, --ink:#453321
   ============================================== */

/* --- Google Fonts: Inter --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg:        #faf7f3;
  --surface:   #ffffff;
  --ink:       #453321;
  --ink-2:     #735739;
  --muted:     #9b846d;
  --brand:     #edcfa8;
  --brand-2:   #cba97f;
  --brand-dark:#7d5a35;
  --accent:    #1AB394;
  --danger:    #ff5f6d;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 8px 32px rgba(69,51,33,.09);
  --shadow-sm: 0 3px 12px rgba(69,51,33,.07);
  --transition: .22s ease;
}

/* ---- Base ---- */
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink-2); text-decoration-color: rgba(0,0,0,.2); transition: color var(--transition), text-decoration-color var(--transition); }
a:hover { color: var(--brand-dark); text-decoration-color: var(--brand-dark); }
.container { max-width: 1200px; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--ink); letter-spacing: -.3px; }
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
.lead { color: var(--muted); font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  border-radius: 999px;
  padding: .55rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-2); color: #fff3cd !important; border-color: var(--brand-2); }
.btn-primary:hover { background: var(--brand-dark) !important; border-color: var(--brand-dark) !important; color: #fff !important; }
.btn-secondary { background: #fff3cd !important; color: var(--brand-dark) !important; border: 1px solid #eadfce; }
.btn-secondary:hover { background: #fdeec4 !important; }
.btn-outline { background: #fff; border: 1px solid #e7e0d7; color: var(--ink-2); }
.btn-outline:hover { background: #f6efe7; }
.btn-sm { padding: .38rem .85rem; font-size: .88rem; }

/* ---- Top Strip ---- */
.top-strip {
  color: var(--brand-dark) !important;
  background: linear-gradient(-45deg, rgba(162,132,94,.16), rgba(162,132,94,.28), rgba(162,132,94,.16), rgba(162,132,94,.28));
  background-size: 200% 200%;
  animation: topstripShift 10s ease infinite;
  font-size: clamp(.78rem, .9vw, .92rem);
  font-weight: 500;
}
@keyframes topstripShift {
  0%   { background-position: 0% 50% }
  50%  { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}
@media (prefers-reduced-motion: reduce) { .top-strip { animation: none; } }
.top-strip a { color: inherit; text-decoration: none; }
.top-strip a:hover { text-decoration: underline; }
.top-strip .strip-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; min-height: 44px; }
.top-strip .strip-text { line-height: 1.35; }
.strip-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.strip-actions .btn { font-size: .8rem; line-height: 1.1; padding: .35rem .7rem; }
@media (max-width: 576px) {
  .top-strip .strip-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .strip-actions { justify-content: center; }
}

/* ---- Navbar ---- */
.nav-compact { padding: .4rem 0; background: var(--surface); transition: box-shadow var(--transition); }
.nav-compact.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.nav-grid { display: grid; align-items: center; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .nav-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .nav-grid { grid-template-columns: 1fr auto 1fr; } }
.left-zone, .right-zone { display: flex; align-items: center; gap: .5rem; }
.right-zone { justify-content: flex-end; }

/* Logo */
.logo-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 20px; }
.logo-wrap img { height: 44px; max-width: 100%; object-fit: contain; transition: opacity var(--transition); }
.logo-wrap:hover img { opacity: .85; }
.site-tagline { font-size: .75rem; font-weight: 500; color: var(--muted); margin-top: .15rem; letter-spacing: .2px; }

/* Sticky nav */
#headerTop { transition: box-shadow .25s ease, background-color .25s ease; width: 100%; }
#headerTop.scrolled {
  background-color: rgba(255,255,255,.97);
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  position: sticky; top: 0; left: 0; width: 100%; z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Nav toggle button */
.tab-btn {
  background: var(--bg);
  border: 1px solid #e0d8ce;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  cursor: pointer;
  padding: .45rem .9rem;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.tab-btn:hover { background: #fff6ea; border-color: var(--brand-2); box-shadow: var(--shadow-sm); }

/* Fullwidth dropdown */
.fullwidth-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--surface);
  padding: 24px 0 28px;
  border-top: 1px solid #ede5d8;
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 1050;
}
.fullwidth-dropdown.active { display: block; animation: dropdownIn .2s ease; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
#dropdownOverlay {
  position: fixed; inset: 0;
  background: rgba(69,51,33,.45);
  backdrop-filter: blur(2px);
  z-index: 1040; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
#dropdownOverlay.active { opacity: 1; visibility: visible; }
.arrow-icon { display: inline-block; transition: transform .3s; margin-left: auto; }
.arrow-icon.open { transform: rotate(180deg); }

/* ---- Search ---- */
.search-container { position: relative; width: 100%; }
.search-container .form-control {
  border-radius: 999px;
  border: 1.5px solid #e0d8ce;
  padding-left: 2.4rem;
  background: var(--bg);
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.search-container .form-control:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(237,207,168,.3);
  background: #fff;
}
.search-container .input-group-text {
  background: transparent;
  border: none;
  position: absolute;
  z-index: 10;
  left: .6rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  color: var(--muted);
}
.search-container .input-group { position: relative; }
#search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 1000;
  background: var(--surface);
  border: 1px solid #e0d8ce;
  border-radius: var(--radius-sm);
  max-height: 300px; overflow: auto;
  box-shadow: var(--shadow);
}
.search-item { padding: 10px 14px; border-bottom: 1px solid #f0ebe3; cursor: pointer; font-size: .93rem; }
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #fdf8f2; }

/* ---- Hero Slider ---- */
.hero { position: relative; margin: 10px 0; }
.splide__slide--hero { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 320px; background: #e9dfd0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) brightness(.97); transition: transform 6s ease; }
.splide__slide.is-active .hero-img { transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.15) 55%, transparent); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 2rem; }
.hero-content h1 { font-weight: 700; letter-spacing: -.3px; font-size: 1.8rem; margin-bottom: .5rem; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-content p { opacity: .92; max-width: 640px; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.hero-cta { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
@media (min-width: 992px) { .hero-content { padding: 2.5rem; } .hero-content h1 { font-size: 2.4rem; } .hero-card { min-height: 440px; } }

/* Splide pagination */
.splide__pagination__page { background: rgba(237,207,168,.6); transition: background var(--transition), transform var(--transition); }
.splide__pagination__page.is-active { background: var(--brand-2); transform: scale(1.2); }

/* ---- Cards / Modules ---- */
.card-clean {
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-clean:hover { box-shadow: 0 14px 40px rgba(69,51,33,.12); transform: translateY(-2px); }

.module {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin-bottom: 20px;
}

.badge-soft { background: #f3ede5; color: var(--ink-2); border-radius: 999px; padding: .25rem .65rem; font-size: .82rem; font-weight: 500; }

/* ---- Product tiles in dropdown ---- */
.product-tile {
  border: 1px solid #ede5d8;
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.product-tile:hover { background: var(--surface); box-shadow: var(--shadow); transform: translateY(-2px); }
.product-tile img { border-radius: 8px; width: 100%; height: 140px; object-fit: cover; }
.product-tile h5 { font-size: .95rem; font-weight: 600; margin: 8px 0 4px; color: var(--ink); }
.product-tile .price { font-weight: 700; color: var(--brand-dark); font-size: 1rem; }

/* ---- SEO nav ---- */
.seo-nav-wrap { border-top: 1px solid #ede5d8; border-bottom: 1px solid #ede5d8; background: var(--surface); }
.seo-nav { display: flex; gap: .5rem; overflow: auto; padding: .55rem 0; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.seo-nav a { white-space: nowrap; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid #e0d8ce; font-size: .9rem; color: var(--ink-2); text-decoration: none; background: #fff; font-weight: 500; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.seo-nav a:hover { background: var(--brand); border-color: var(--brand-2); color: var(--brand-dark); }

/* ---- Forms ---- */
.form-control { border-radius: var(--radius-sm); border: 1.5px solid #e0d8ce; font-size: .95rem; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.form-control:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3.5px rgba(237,207,168,.32); background: #fff; }
.form-label { font-weight: 500; color: var(--ink); font-size: .93rem; margin-bottom: .35rem; }
.input-group-text { background: var(--bg); border-color: #e0d8ce; }

/* ---- Modals ---- */
.modal-content { border-radius: var(--radius); border: 1px solid #ede5d8; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.modal-header { border-bottom-color: #ede5d8; }
.modal-footer { border-top-color: #ede5d8; }
.modal-title { font-weight: 700; color: var(--ink); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid #ede5d8;
  background: var(--surface);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-brand { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.footer-tagline { font-size: .85rem; color: var(--muted); }
.footer-heading { font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .92rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--brand-dark); }
.footer-divider { border-color: #ede5d8; margin: 24px 0 16px; }
.footer-bottom { font-size: .82rem; color: var(--muted); text-align: center; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink-2); }

/* ---- FAQ / Details ---- */
.faq details { border: 1.5px solid #ede5d8; border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface); transition: box-shadow var(--transition); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq details summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq details summary::after { content: '+'; font-size: 1.2rem; color: var(--brand-2); margin-left: .5rem; transition: transform var(--transition); }
.faq details[open] summary::after { content: '−'; }
.faq details + details { margin-top: 10px; }

/* ---- Cart sidebar ---- */
.cart-sidebar { position: fixed; top: 0; right: -370px; width: 340px; height: 100vh; background: var(--surface); box-shadow: -10px 0 40px rgba(0,0,0,.1); transition: right .3s cubic-bezier(.4,0,.2,1); padding: 20px; overflow-y: auto; z-index: 1050; border-left: 1px solid #ede5d8; }
.cart-sidebar.open { right: 0; }

/* ---- Toggle Switch ---- */
.switch { position: relative; display: inline-block; width: 56px; height: 30px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #d9d9d9; border-radius: 30px; transition: .25s; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #777; cursor: pointer; }
.slider:before { content: "NIE"; }
.switch input:checked + .slider { background: var(--accent); color: #fff; }
.switch input:checked + .slider:before { content: "TAK"; }
.slider:after { content: ""; position: absolute; height: 22px; width: 22px; left: 4px; bottom: 4px; background: #fff; transition: .25s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.switch input:checked + .slider:after { transform: translateX(26px); }

/* ---- Utilities ---- */
.shadow-lg-soft { box-shadow: var(--shadow); }
.rounded-2xl { border-radius: var(--radius); }
.text-muted-2 { color: var(--muted); }
.bg-custom { background: var(--bg); }
.divider { height: 1px; background: linear-gradient(to right, transparent, #ede5d8, transparent); margin: 28px 0; border: none; }

/* ---- Scroll behaviour ---- */
html { scroll-behavior: smooth; }

/* ---- Splide general ---- */
.splide__slide { border: none; }
.splide__arrow { background: rgba(255,255,255,.85); border-radius: 50%; box-shadow: var(--shadow-sm); transition: background var(--transition), transform var(--transition); }
.splide__arrow:hover { background: #fff; transform: scale(1.05); }
