/*
Theme Name: Breaking-The-Night
Theme URI: 
Author: Bartosz Adamczyk
Author URI: 
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: breaking-the-night
Tags: 
*/

:root {
  --custom-zinc-50: #fafafa;
  --custom-zinc-100: #f4f4f5;
  --custom-zinc-200: #e4e4e7;
  --custom-zinc-300: #d4d4d8;
  --custom-zinc-400: #a1a1aa;
  --custom-zinc-500: #71717a;
  --custom-zinc-600: #52525b;
  --custom-zinc-700: #3f3f46;
  --custom-zinc-800: #27272a;
  --custom-zinc-900: #18181b;
  --custom-zinc-950: #09090b;
}

.desktop-hide {
  display: none;
}

/* ------------ NAVBAR ------------ */
.nav {
  border-bottom: var(--custom-zinc-300) 1px solid;
  box-sizing: border-box;
  background-color: #fff !important;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 8px 24px;
}

/* Linki nawigacyjne */
.wp-block-navigation a:hover {
  color: #3f3f46 !important;
  text-decoration: underline;
}

/* Ilość produktów w koszyku */
.wc-block-mini-cart__badge {
  font-size: 1rem;
}
/* Search button */
.wp-block-search__button {
  background-color: transparent;
  color: #27272a;
  font-size: 1.5rem;
  padding: 0;
}

/* Stylowanie menu */
.category-menu {
  display: flex;
  gap: 1.5rem;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.category-menu .menu-item {
  position: relative;
  display: flex;
  align-items: center;
}

.category-menu .menu-item > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #27272a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.category-menu .menu-item:hover > a {
  color: #3f3f46;
  text-decoration: underline;
}

/* Stylowanie SVG */
.chevron-icon {
  width: 0.88rem;
  height: 0.88rem;
  transition: transform 0.3s ease-in-out;
}

/* Animacja obrotu */
.category-menu .menu-item:hover .chevron-icon {
  transform: rotate(-180deg);
}

/* Ukrywanie podmenu */
.category-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: transparent;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

/* Pokaż podmenu po najechaniu na kategorię */
.category-menu .menu-item:hover .sub-menu {
  max-height: 100vh;
  opacity: 1;
  visibility: visible;
  padding: 0.5rem;
  background-color: #fff;
  border: #27272a 1px solid;
}

/* Stylowanie elementów podkategorii */
.category-menu .sub-menu .menu-item > a {
  padding: 5px 15px;
  color: #3f3f46;
  text-decoration: none;
}

.category-menu .sub-menu .menu-item > a:hover {
  color: #3f3f46;
  text-decoration: underline;
}

/* ------------ Product gallery ------------ */

/* Kontener dla galerii zdjęć */
.custom-product-gallery {
  display: flex;
  flex-direction: column;
  margin: 0; /* Usuń domyślne marginesy */
  padding: 0; /* Usuń domyślne paddingi */
  z-index: 0;
}

/* Każde zdjęcie */
.custom-product-image {
  margin: 0; /* Usuń domyślny margines */
  padding: 0; /* Usuń domyślny padding */
}

.custom-product-image img {
  width: 50vw; /* 50% szerokości ekranu */
  height: 120vh; /* Cała wysokość ekranu */
  object-fit: cover; /* Przycięcie, by zdjęcie wypełniło całą przestrzeń */
  display: block; /* Usunięcie odstępu wokół obrazka (wyłącza domyślne wiersze wokół obrazka) */
  margin: 0 auto; /* Centrowanie */
}

/* ------------ Warianty ------------ */

/* Styl dla nagłówka z wyborem rozmiaru */
.size-header {
  font-size: 1rem;
  color: var(--custom-zinc-800);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Styl dla komórki tabeli zawierającej wariant */
td.value {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start; /* Wyrównanie do lewej */
  margin-bottom: 1rem;
}

/* Ukrycie domyślnego radio buttona */
td.value input[type="radio"] {
  appearance: none;
  display: none;
}

/* Styl dla etykiety radio buttona (wygląd przycisku) */
td.value label {
  font-size: 1em;
  font-weight: normal !important;
  width: 3.75rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--custom-zinc-800); /* Kolor tekstu */
  border: 1px solid var(--custom-zinc-300); /* Kolor obramowania */
  cursor: pointer;
}

/* Styl dla radio buttona, kiedy jest zaznaczony */
td.value input[type="radio"]:checked + label {
  border: 1px solid var(--custom-zinc-900);
  font-weight: bold !important;
}

/* Styl dla niedostępnych opcji - zmniejszona przezroczystość i przekreślenie */
td.value input[type="radio"]:disabled + label {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Ukrycie linku resetującego warianty */
a.reset_variations {
  display: none !important;
}

/* Ukrycie informacji o dostępności */
.woocommerce-variation-availability {
  display: none;
}

/* Styl dla etykiety wariantu (np. Size, Color) */
th.label {
  display: block; /* Etykieta w nowej linii */
}

/* ------------ Omnibus ------------ */

.iworks-omnibus {
  color: var(--custom-zinc-500);
  font-weight: normal;
  font-size: 0.8rem;
}

/* ------------ Product info ------------ */

.product-info-container {
  position: sticky;
  top: 15vh;
  z-index: 0;
}

/* ------------ Product details ------------ */

/* 🔥 Overlay i panel są na końcu body, więc mają najwyższy stacking */
.tab-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(95, 95, 95, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 100000;
}

.tab-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 🔥 Panel wysuwa się z prawej strony */
.tab-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 30vw;
  height: 100vh;
  background: white;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  padding: 24px;
  overflow-y: auto;
  z-index: 100001;
}

.tab-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1rem;
  cursor: pointer;
}

.tab-close:hover {
  color: var(--custom-zinc-500);
}

.tab-content {
  padding-bottom: 24px;
}

.tab-panel.active {
  right: 0;
}

/* 🔥 Styl dla listy tabów */
.product-tabs-container {
  display: flex;
  flex-direction: column;
}

.tab-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.75rem 0;
  color: var(--custom-zinc-800);
}

.tab-toggle:hover {
  color: var(--custom-zinc-600);
}

.tab-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease; 
}

.tab-toggle:hover .tab-arrow {
  transform: translateX(4px);
}

.tab-title {
  position: relative;
  display: inline-block; /* ważne, żeby underline dopasował się do tekstu */
}

.tab-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--custom-zinc-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* klucz: hover na rodzicu .tab-toggle */
.tab-toggle:hover .tab-title::after {
  transform: scaleX(1);
}

/* ------------ Mobile product image gallery ------------ */

.custom-gallery-container {
  width: 100%;
  overflow: hidden;
}
.swiper {
  width: 100%;
  height: 50vh;
}
.swiper-wrapper {
  display: flex;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw !important;
  height: 50vh !important;
  flex-shrink: 0;
}
.gallery-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.image-thumbnails {
  display: flex;
  justify-content: center;
}

.thumbnail {
  cursor: pointer;
}

.thumbnail img {
  width: 25vw;
  height: 25vw;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: grayscale(1);
}

/* ------------ Mobile navbar------------ */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -105%;
  width: 90%;
  height: 100%;
  background: white;
  transition: left 0.3s ease-in-out;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  padding: 60px 20px 20px 20px; /* zwiększony margines od góry */
  overflow-y: auto;
}
.mobile-menu-overlay.active {
  left: 0;
}
.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}
.mobile-menu-close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.accordion .accordion-item {
  margin-bottom: 10px;
}
.accordion .accordion-title {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}
.accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 20px;
}
.accordion .accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.accordion .accordion-content a {
  text-decoration: none;
}

.mobile-menu-footer {
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  text-align: center;
}

.profile-button {
  display: block;
  background-color: var(--custom-zinc-800);
  color: var(--custom-zinc-100);
  text-decoration: none;
  max-width: 80%;
  margin: auto;
  text-align: center;
  padding: 16px;
}

.static-pages {
  margin-top: 1rem;
}
.static-pages ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.static-pages a {
  text-decoration: none;
  color: var(--custom-zinc-800);
  font-weight: 600;
}

/* ------------ Zoom na obrazek ------------ */
.wc-block-components-product-image {
  overflow: hidden; /* Zapobiega wyjściu obrazka poza kontener */
}

.attachment-woocommerce_single {
  transition: transform 0.3s ease-in-out;
}

.attachment-woocommerce_single:hover {
  transform: scale(1.1); /* Zoom wewnętrzny */
}

.gallery-img-full {
  position: relative;
  overflow: hidden;
}

/* Obrazek + ciemne przyciemnienie */
.gallery-img-full img {
  transition: transform 0.3s ease-in-out;
  display: block;
  width: 100%;
}

.gallery-img-full::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.gallery-img-full:hover img {
  transform: scale(1.1);
}

.gallery-img-full:hover::after {
  opacity: 0.6;
}

/* Tekst - domyślnie niewidoczny */
.Hoodie::before,
.Tee::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
  pointer-events: none;
}

/* Pokaż tekst na hover */
.Hoodie:hover::before,
.Tee:hover::before {
  opacity: 1;
}

/* Konkretny tekst dla każdej klasy */
.Hoodie::before {
  content: "Bluzy";
}

.Tee::before {
  content: "Koszulki";
}

/* ------------ O nas ------------ */
.about-container {
  min-height: 100vh;
}

.first-container {
  margin-top: 10vh !important;
}

/* ------------ Account ------------ */

.account-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15vh auto !important;
}

.account-container div:first-of-type {
  display: flex;
  flex-direction: column;
  width: 60%;
}
.woocommerce-MyAccount-navigation {
  width: 100% !important;
  border-bottom: 1px solid var(--custom-zinc-300);
  margin-bottom: 3rem;
  font-weight: bold;
}

.woocommerce-MyAccount-navigation > ul {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  padding: 0;
}

.woocommerce-MyAccount-content {
  width: 100% !important;
}

.woocommerce-Address {
  width: 45% !important;
}

/* ------------ Custom ------------ */

.all-products-link {
  color: var(--custom-zinc-700);
  text-decoration: none !important;
  font-size: 1.15rem;
}

/* ------------ Contact form ------------ */

.contact-form-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 650px;
  margin: 0 auto;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--custom-zinc-300);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--custom-zinc-900);
  background: transparent;
  resize: none;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border: none;
  outline: none;
  border-bottom: 2px solid var(--custom-zinc-800); /* ciemniejsza kreska */
}

/* Placeholder w polach */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--custom-zinc-500);
  font-weight: 400;
}

.contact-form textarea {
  min-height: 140px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-row a {
  text-decoration: underline;
}

.contact-form input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.188rem;
  background: var(--custom-zinc-600);
  appearance: none;
  cursor: pointer;
  position: relative;
}

.contact-form input[type="checkbox"]:hover {
  background: var(--custom-zinc-800);
}

/* checkmark jako pseudo-element */
.contact-form input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  top: 4px;
  left: 8px;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-form input[type="checkbox"]:checked {
  background: var(--custom-zinc-800);
}

.contact-form input[type="checkbox"]:checked::after {
  opacity: 1;
}

.contact-form button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--custom-zinc-800);
  width: 100%;
  padding: 8px;
  color: var(--custom-zinc-200);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--custom-zinc-700);
}

.contact-form-success {
  background-color: #0ac95a;
  border-radius: 4px;
  padding: 8px 12px;
}

.contact-form-error {
  background-color: #ff4d4f;
  border-radius: 4px;
  padding: 8px 12px;
}

.has-custom-zinc-100-1-background-color:hover {
  background-color: var(--custom-zinc-200) !important;
}
.wc-block-components-product-image a {
  transition: transform 0.3s ease-in-out;
}

.wc-block-components-product-image a:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .desktop-hide {
    display: block;
  }

  .mobile-full {
    max-width: 100%;
  }

  .nav {
    padding: 0;
  }

  .faq-width {
    max-width: 95%;
  }

  /* ------------ Product info container------------ */
  .mobile-hide {
    display: none !important;
  }

  .product-info-column {
    padding: 0 !important;
  }

  .product-info-container {
    position: static;
    max-width: 100%;
    padding: 0 24px;
    z-index: 0;
  }

  .product-container {
    margin-top: 5vh !important;
  }

  .tab-panel {
    width: 80vw;
  }
  /* ------------ Footer------------ */
  .footer-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }

  .footer-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    align-items: center;
  }
  /* ------------ Zoom na obrazek ------------ */

  .attachment-woocommerce_single:hover {
    transform: none; /* Zoom wewnętrzny */
  }

  /* ------------ Home gallery------------ */

  .home-gallery {
    flex-direction: column;
  }

  .gallery-img-full {
    width: 100% !important;
  }

  /* ------------ O nas ------------ */
  .about-container {
    min-height: 0;
  }
  .about-margin {
    margin: 10vh 0;
  }

  /* ------------ Account ------------ */

  .account-container div:first-of-type {
    width: 95%;
  }
  .woocommerce-Address {
    width: 100% !important;
  }

  .size-woocommerce_single {
    height: auto !important;
    aspect-ratio: auto 600 / 768;
  }
  .product-additional-info {
    padding: 0 !important;
  }

  .contact-form input[type="checkbox"] {
    width: 2.5rem;
    height: 1.5rem;
  }
}
