/*
Theme Name: Siennas Pet Shop
Theme URI: http://siennaspetshop.gr
Description: Pet Shop.
Author: Chris Lilitsas
Template: twentytwentyfour
Version: 1.0.0
*/

.woocommerce div.product form.cart div.quantity .qty {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast-2);
	border-radius: 4px;
	padding: 18px 20px;
	color: var(--wp--preset--color--contrast-2);
}

.page .wc-block-components-totals-wrapper {
	border-top-color: #232323;
}

.page .is-large.wc-block-cart .wc-block-cart-items td {
	border-top-color: #232323;
}

.page .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__container::after {
	border-left-color: #232323;
}

.archive .orderby {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast-2);
	border-radius: 4px;
	padding: 18px 20px;
	color: var(--wp--preset--color--contrast-2);
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}


/* Fix Gallery */
ul.wc-block-product-gallery-large-image__container {
	margin-block-start: 0;
	margin-block-end: 0;
	padding-inline-start: 0;
}

.woocommerce .wp-block-woocommerce-product-image-gallery {
	max-width: initial !important;
}

.woocommerce div.product div.images {
	margin-bottom: 0;
}

/* Fix mini cart */
h2.wc-block-mini-cart__title {
	font-size: 1.3em;
}
.wc-block-mini-cart__footer-actions a {
	padding: 10px 5px;
}
@media only screen and (min-width: 481px) {
	.wc-block-mini-cart__footer-actions a:first-child {
		width: 30%;
	}
}

/* Selection colors */
::-moz-selection { /* Code for Firefox */
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--contrast-2);
}

::selection {
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--contrast-2);
}

/*
 * Minimal style.
 *
 * We need this selector to work in both the editor and the front-end context, and
 * to be specific enough to override core's rules being at specificity (0,4,3) `.woocommerce div.product .woocommerce-tabs ul.tabs li`.
 *
 * This is why we use the `html body` selector which set the specificity to (0,4,4).
 */
html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs {
	padding: 0;
	border-bottom-width: 0;
	border-bottom-color: inherit; /* Backward compatibility for TT3, TT2. */
}
html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs::after,
html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs::before {
	display: none;
}
html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li {
	color: inherit;
	background: transparent;
	border-color: transparent;
	border-style: solid;
	border-width: 0;
	border-bottom-width: 2px;
	border-radius: 0;
	margin: 0;
	padding: 0 1em;
	display: inline-block;
	float: none; /* Backward compatibility for TT3, TT2. */
	font-weight: bold;
	opacity: 0.65;
}
html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li a {
	padding: 0.5em 0;
	color: inherit;
	border: none;
	text-shadow: none;
	text-decoration: none;
	display: inline-block;
}

html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li:hover {
	opacity: 1;
}

html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li:hover a {
	color: inherit;
	border: none;
	text-decoration: none;
}

html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li.active {
	color: var(--wp--preset--color--contrast-2);
	background: inherit;
	border-color: var(--wp--preset--color--contrast-2);
	opacity: 1;
}
html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li.active a {
	color: var(--wp--preset--color--contrast-2);
	border: none;
	text-decoration: none;
}

@media only screen and ( max-width: 768px ) {
	html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li {
		display: block;
		border-left-width: 2px;
		border-bottom-width: 0;
	}
}

html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li:first-child {
	margin-left: 0; /* Backward compatibility for TT3, TT2. */
}

html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li::after,
html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li::before {
	display: none;
}

/* Tabs: Additional Infromation Styling */
html body.woocommerce.woocommerce-page table.woocommerce-product-attributes {
	border: none;
	border-spacing: 0;
}
html body.woocommerce.woocommerce-page table.woocommerce-product-attributes th,
html body.woocommerce.woocommerce-page table.woocommerce-product-attributes td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast-2-muted);
}

html body.woocommerce.woocommerce-page table.woocommerce-product-attributes tr:first-of-type th,
html body.woocommerce.woocommerce-page table.woocommerce-product-attributes tr:first-of-type td {
	border-top: 1px solid var(--wp--preset--color--contrast-2-muted);
}
html body.woocommerce.woocommerce-page table.woocommerce-product-attributes th {
	border-right: 1px solid var(--wp--preset--color--contrast-2-muted);
	padding: 0.3em 0;
	text-align: left;
	color: var(--wp--preset--color--contrast-2);
	font-family: var(--wp--preset--font-family--emilios-bold);
}
html body.woocommerce.woocommerce-page table.woocommerce-product-attributes td {
	padding: 0.3em 0.75em;
	color: var(--wp--preset--color--contrast);
}
html body.woocommerce.woocommerce-page table.woocommerce-product-attributes td p {
	padding: 0;
}


/* // Preloader. */
.preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--base);
	z-index: 9999;
}

.preloader.fade-out {
    opacity: 0;
    transition: all 0.6s ease;
}

.preloader .img-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: auto;
	z-index: 99999;
}

img {
	max-width: 100%;
}

/* Define the keyframes for the bouncy rotation animation */
@keyframes rotateBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-20deg);
  }
  60% {
    transform: rotate(10deg);
  }
  90% {
    transform: rotate(10deg);
  }
}

/* Apply the bouncy rotation animation to images with the class .rotate-bounce */
.rotate-bounce {
  animation: rotateBounce 2s infinite;
  /* Adjust the duration (2s in this example) based on your preference */
  transform-origin: center;
  /* Set the rotation origin to the center of the image */
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image img {
	border-radius: 0.8rem;
}

.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
	border-radius: 0.8rem;
}

.wp-block-query .wc-block-grid__product-image img {
	border-radius: 0.8rem;
}

.woocommerce div.product div.images ol.flex-control-thumbs {
	margin-top: 1em;
}

html body.woocommerce .wp-block-woocommerce-product-details ul.tabs.wc-tabs li {
	font-family: var(--wp--preset--font-family--siennas-bold);
}
