/*
Theme Name: BlessYou
Theme URI: https://blessyou.pl
Author: dotGrow
Author URI: https://dotgrow.net
Description: BlessYou FSE Theme
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: greenshift
Text Domain: blessyou
Tags: 
*/

/* General */

:root {
	--wp--preset--font-family--primary: var(--wp--preset--font-family--poppins);
}

button, .button {
    display: inline-block;
    cursor: pointer;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--small);
    line-height: var(--wp--custom--line-height--medium);
	font-weight: 400;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--textonprimary);
    padding: 0.375rem 1rem;
    text-decoration: none;
    white-space: normal;
    width: auto;
	border-radius: var(--wp--custom--border-radius--mini);
    box-shadow: none !important;
    transition: all 0.2s ease-in-out;
    border: none;
	
	&:hover {
		filter: brightness(0.95);
		transform: scale(1) !important;
	}
}

.woocommerce form .form-row {
	padding: 0 !important;
}

.woocommerce .show-password-input {
	background: none !important;
	right: 0 !important;
	top: 0 !important;
	height: 100% !important;
}

.woocommerce .woocommerce-form-register .woocommerce-privacy-policy-text {
	margin-bottom: 1rem;
}

/* Greenshift Global Overrides */
#greenshifttotop {
    background: #0F0E0E !important;
    fill: #FAFAFA !important;
    transition: background 0.3s ease 0.3s, fill 0.3s ease 0.3s; 
	right: 15px !important;
	bottom: 0 !important;
	border-radius: 0px !important;
}

.gspb-pricebox-old {
	.gspb_price_value {
		display: flex !important;
		flex-direction: row-reverse;
		column-gap: 0.5rem;
		align-items: center;
	}
}

.gs-dynamicpanel.active .gs-dynamicpanel-close {
	padding: 0;
}

.gs-dynamicpanel.active .gs-dynamicpanel-close svg {
	color: var(--wp--preset--color--basecolor);
}

.gs-sticky-enable {
	z-index: 1000 !important;
}

/* Cookie Consent */
#cm {
	max-width: 30rem !important;
}

/* Wishlist */
.tinvwl-input-group-addon, .tinvwl-input-group-btn {
	width: initial;
}

.tinvwl-input-group .form-control {
	padding: 0.25rem 0.75rem;
}

.tinv-wishlist tfoot .tinvwl-to-left+.tinvwl-to-right {
	margin-top: 0;
}

.tinvwl-to-left.look_in {
	display: none;
}

.tinvwl-to-right.look_in {
	display: flex;
	column-gap: 0.75rem;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	width: 100% !important;
}

.tinvwl_button_view {
	width: 100% !important;
}

/* Pagination Query Loops */
.pagination {
	margin-top: 2rem !important;
}

.page-numbers {
    padding: 0.25rem 0.5rem;
    display: inline-block;
    border-radius: var(--wp--custom--border-radius--small);
	transition: all 0.3s ease-in-out;
	margin: 0.25rem !important;
	min-width: 2.5rem;
	margin: 0 !important;
}

.page-numbers.current,
.page-numbers:hover {
	background-color: var(--wp--preset--color--primary);
}

.page-numbers.next,
.page-numbers.prev {
	border: 2px solid var(--wp--preset--color--primary);
}

/* Popupy na produktach */
/* Podstawowe style */
.size-table-container {
  font-family: var(--wp--preset--font-family--poppins);
  color: var(--wp--preset--color--basecolor);
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--wp--preset--color--contrastcolor);
}

.size-table-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--wp--preset--color--accent);
  font-size: 1.5em;
  font-weight: 600;
}

.size-table-container h3 {
  text-align: center;
  margin: 15px 0 10px 0;
  color: var(--wp--preset--color--secondary);
  font-size: 1.2em;
  font-weight: 500;
}

/* Style tabel */
.size-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.size-table th,
.size-table td {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #e0e0e0;
  font-size: 14px;
}

.size-table th {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--textonprimary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Zebra striping */
.size-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.size-table tbody tr:nth-child(even) {
  background-color: white;
}

.size-table tbody tr:hover {
  background-color: var(--wp--preset--color--primary);
  transition: background-color 0.2s ease;
}

/* Pierwsza kolumna z nazwami wymiarów */
.size-table td:first-child,
.size-table th:first-child {
  font-weight: 600;
  text-align: left;
  background-color: var(--wp--preset--color--button);
  color: var(--wp--preset--color--basecolor);
}

/* Mobile table - ukryta domyślnie */
.mobile-table {
  display: none;
}

/* Desktop table - widoczna domyślnie */
.desktop-table {
  display: table;
}

/* CSS-only taby dla bluzy z kapturem */
.tab-container {
  margin: 20px 0;
}

.tab-navigation {
  display: flex;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-container input[type="radio"] {
  display: none;
}

.tab-navigation label {
  flex: 1;
  padding: 12px 20px;
  background-color: var(--wp--preset--color--button);
  color: var(--wp--preset--color--textonprimary);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  border-right: 1px solid #ddd;
}

.tab-navigation label:last-child {
  border-right: none;
}

.tab-navigation label:hover {
  background-color: var(--wp--preset--color--primary);
}

#standard:checked ~ .tab-navigation label[for="standard"],
#premium:checked ~ .tab-navigation label[for="premium"] {
  background-color: var(--wp--preset--color--secondary);
  color: white;
}

.tab-content {
  display: none;
}

/* Domyślnie pokaż standard content */
.standard-content {
  display: block;
}

#standard:checked ~ .tab-contents .standard-content,
#premium:checked ~ .tab-contents .premium-content {
  display: block;
}

#premium:checked ~ .tab-contents .standard-content {
  display: none;
}

/* Media queries - Mobile view */
@media (max-width: 576px) {
  .size-table-container {
    padding: 15px;
  }
  
  .size-table-container h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
  }
  
  .desktop-table {
    display: none;
  }
  
  .mobile-table {
    display: table;
  }
  
  .size-table th,
  .size-table td {
    padding: 10px 6px;
    font-size: 13px;
  }
  
  .size-table th {
    font-size: 11px;
  }
  
  .tab-navigation {
    flex-direction: column;
  }
  
  .tab-navigation label {
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  
  .tab-navigation label:last-child {
    border-bottom: none;
  }
}

/* Bardzo małe ekrany */
@media (max-width: 400px) {
  .size-table th,
  .size-table td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .size-table th {
    font-size: 10px;
  }
}