/*
 * Shop archive: product cards, labels, ratings, action buttons and pagination.
 *
 * Loaded only when WooCommerce is active, and only on the pages that need it
 * (see educeet_woocommerce_enqueue_styles in inc/common/theme-scripts.php).
 */

.oit-shop-item {
  padding: 20px;
  padding-bottom: 25px;
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--wc-gray-1);
  border: 1px solid var(--wc-shadow);
}
.oit-shop-item:hover .oit-shop-thumb img {
  transform: scale(1.1);
}
.oit-shop-item:hover .oit-shop-action {
  top: 50%;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}
.oit-shop-thumb {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--wc-shadow);
}
.oit-shop-thumb img {
  width: 100%;
  border-radius: 10px;
  transition: 0.9s all ease;
}
.oit-shop-action {
  position: absolute;
  inset-inline-start: 30px;
  inset-inline-end: 30px;
  top: 30%;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
  text-align: center;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.oit-shop-action-btn {
  position: relative;
  display: block;
  padding: 12px 20px;
  line-height: 1;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  transition: 0.3s;
  color: var(--wc-black);
  background-color: var(--wc-white);
  border: 1px solid var(--wc-shadow);
}
.oit-shop-action-btn.oit-shop-woo-action--icon-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.oit-shop-action-btn span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-block;
  color: var(--wc-black);
}
.oit-shop-action-btn span span.text-1 {
  position: relative;
  display: block;
  transition: 0.3s;
}
.oit-shop-action-btn span span.text-2 {
  position: absolute;
  top: 100%;
  display: block;
  transition: 0.3s;
}
.oit-shop-action-btn:hover {
  color: var(--wc-black);
  background-color: var(--wc-theme-1);
}
.oit-shop-action-btn:hover span {
  color: var(--wc-white);
}
.oit-shop-action-btn:hover span span.text-1 {
  -webkit-transform: translateY(-150%);
  transform: translateY(-150%);
}
.oit-shop-action-btn:hover span span.text-2 {
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.oit-shop-title {
  font-size: 20px;
  line-height: 1.2;
  color: var(--wc-black);
}
@media only screen and (min-width: 1200px) and (max-width: 1399px), only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .oit-shop-title {
    font-size: 18px;
  }
}
.oit-shop-price {
  margin-bottom: 8px;
}
.oit-shop-price span {
  font-size: 16px;
  color: var(--wc-black);
}
.oit-shop-price del bdi {
  opacity: 0.6;
  font-size: 14px;
  padding-inline-start: 4px;
}
.oit-shop-price ins {
  text-decoration: none;
}
.oit-shop-card-btn {
  position: relative;
  display: block;
  padding: 13px 24px;
  line-height: 1;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  transition: 0.3s;
  color: var(--wc-white);
  background-color: var(--wc-black);
}
.oit-shop-card-btn:hover {
  color: var(--wc-white);
  background-color: var(--wc-theme-1);
}
.oit-shop-content .star-rating {
  margin-bottom: 8px;
}
.oit-shop-text p {
  font-size: 18px;
  line-height: 1.5;
}
@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .oit-shop-text p {
    font-size: 14px;
  }
}
.oit-shop-list-wrap .oit-shop-list-action-btn {
  width: 100%;
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}
.oit-shop-list-wrap .oit-shop-item {
  text-align: start;
}
.oit-shop-top p {
  margin-bottom: 0;
}

/* Shop badges*/
.oit-shop-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
}

.oit-shop-badges .oit-product-labels {
  display: inline-block;
  position: inherit;
}

/* WooCommerce Styles */
@font-face {
  font-family: star;
  src: url(../../fonts/woo/star.eot);
  src: url(../../fonts/woo/star.eot?#iefix) format("embedded-opentype"), url(../../fonts/woo/star.woff) format("woff"), url(../../fonts/woo/star.ttf) format("truetype"), url(../../fonts/woo/star.svg#star) format("svg");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: WooCommerce;
  src: url(../../fonts/woo/WooCommerce.eot);
  src: url(../../fonts/woo/WooCommerce.eot?#iefix) format("embedded-opentype"), url(../../fonts/woo/WooCommerce.woff) format("woff"), url(../../fonts/woo/WooCommerce.ttf) format("truetype"), url(../../fonts/woo/WooCommerce.svg#WooCommerce) format("svg");
  font-weight: 400;
  font-style: normal;
}
/* Ratting CSS */
.star-rating {
  position: relative;
  font-size: 0;
  width: 83px;
  overflow: hidden;
  line-height: 1.2;
  display: inline-block;
  color: var(--wc-black);
}

.star-rating::before, .star-rating span::before {
  font-family: var(--wc-ff-icon);
  content: "\f005\f005\f005\f005\f005";
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--wc-gray-2);
  font-size: 12px;
  font-weight: 700;
}

.star-rating span::before {
  color: var(--wc-theme-2);
}

.star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  font-size: 0;
  color: var(--wc-black);
}

.woocommerce p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  color: var(--wc-black);
}

.woocommerce p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: var(--wc-ff-icon);
  content: "\e021";
  text-indent: 0;
  color: var(--wc-theme-2);
}

.woocommerce p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  color: var(--wc-black);
}

.woocommerce p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: WooCommerce;
  content: "\e021";
  text-indent: 0;
  color: var(--wc-theme-2);
}

.woocommerce p.stars a:hover ~ a::before {
  content: "\e021";
}

.woocommerce p.stars:hover a::before {
  content: "\e020";
}

.woocommerce p.stars.selected a.active::before {
  content: "\e020";
}

.woocommerce p.stars.selected a.active ~ a::before {
  content: "\e021";
}

.woocommerce p.stars.selected a:not(.active)::before {
  content: "\e020";
}

/*
==================================================================
  EDUCEET — WooCommerce · Product Labels
==================================================================
  The Sale / New / Hot / custom badges over a product image.

  PHP    : inc/woocommerce/product-labels.php
  Enqueue: inc/common/theme-scripts.php  (handle: oit-product-labels)

  CONTENTS
    1. Positioning contexts
    2. The stack
    3. One badge
    4. Per-label tints (fallbacks only)
    5. Responsive
==================================================================
*/
/* ------------------------------------------------------------------
   1. Positioning contexts
   ------------------------------------------------------------------ */
.oit-shop-thumb,
.it-shop-thumb,
.oit-shop-details__wrapper,
.oit-shop-details__left-wrap {
  position: relative;
}

/* ------------------------------------------------------------------
   2. The stack
   ------------------------------------------------------------------ */
.oit-product-labels {
  color: var(--wc-white);
  gap: 6px;
  top: 12px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  position: absolute;
  top: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100% - 24px);
}

.oit-product-labels--start {
  inset-inline-start: 12px;
  align-items: flex-start;
}

.oit-product-labels--end {
  inset-inline-end: 12px;
  align-items: flex-end;
}

.oit-product-labels--rounded {
  border-radius: 6px;
}

.oit-product-labels--square {
  border-radius: 0;
}

/* ------------------------------------------------------------------
   3. One badge
   ------------------------------------------------------------------ */
.oit-product-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--wc-heading);
  color: var(--wc-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------
   4. Per-label tints
   ------------------------------------------------------------------ */
.oit-product-label--sale {
  background-color: var(--wc-danger);
}

.oit-product-label--new {
  background-color: var(--wc-theme-4);
}

.oit-product-label--hot {
  background-color: var(--wc-theme-5);
}

/* ------------------------------------------------------------------
   5. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
  .oit-product-labels {
    top: 8px;
    gap: 4px;
    padding: 3px 9px;
    font-size: 11px;
  }
}
/* ------------------------------------------------------------------
   Theme Options wiring
   ------------------------------------------------------------------ */
.oit-product-label {
  background-color: var(--oit-label-bg, var(--wc-heading));
  color: var(--oit-label-color, var(--wc-white));
}

.oit-product-label--sale {
  background-color: var(--oit-label-bg, var(--wc-danger));
}

.oit-product-label--new {
  background-color: var(--oit-label-bg, var(--wc-theme-4));
}

.oit-product-label--hot {
  background-color: var(--oit-label-bg, var(--wc-theme-5));
}

/* ------------------------------------------------------------------
   Label Shape
   ------------------------------------------------------------------*/
.oit-product-labels--pill .oit-product-label {
  border-radius: 999px;
}

.oit-product-labels--rounded .oit-product-label {
  border-radius: 6px;
}

.oit-product-labels--square .oit-product-label {
  border-radius: 0;
}

/* AJAX action-button busy state.
 * Quick view, wishlist and compare use .is-loading; WooCommerce cart uses
 * .loading. Keep both names during the class-name transition.
 */
.oit-shop-action-btn.is-loading,
.oit-shop-action-btn.loading {
  pointer-events: none;
  position: relative;
}

.oit-shop-action-btn.loading {
  left: auto;
  top: auto;
  transform: none;
}

.oit-shop-action-btn.is-loading > *,
.oit-shop-action-btn.loading > * {
  opacity: 0;
}

.oit-shop-action-btn.is-loading::after,
.oit-shop-action-btn.loading::after {
  animation: oit-shop-action-spinner 0.65s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 50%;
  margin: -9px 0 0 -9px;
  position: absolute;
  top: 50%;
  width: 18px;
}

@keyframes oit-shop-action-spinner {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .oit-shop-action-btn.is-loading::after,
  .oit-shop-action-btn.loading::after {
    animation-duration: 1.5s;
  }
}
/* ============================================================
   Shared action-button styles — text | icon | icon_text
   ============================================================
   oit_woo_action_content() builds the same markup for every action
   button: the icon SVG and/or

       <span class="oit-shop-details-action-text">
           <span class="text-1">…</span><span class="text-2">…</span>
       </span>

   That pair is the card's hover text-slide: .text-2 is meant to sit
   below the visible label and rise into place on hover.

   Until now the rules that arrange it were written against
   .oit-shop-action-btn in educeet-core.css — a product-card class.
   The single-product buttons use the same markup but not that class,
   so nothing positioned .text-2 and it rendered as a second copy of
   the label ("Add To WishlistAdd To Wishlist"), overflowing its box.

   These rules are keyed on .oit-shop-woo-action, which every button
   built by the helper carries, so the product page reuses exactly the
   behaviour the archive already had.
   ============================================================ */
.oit-shop-woo-action .oit-shop-details-action-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  overflow: hidden;
  color: inherit;
  line-height: 1;
}

.oit-shop-woo-action .oit-shop-details-action-text .text-1 {
  position: relative;
  display: block;
  transition: 0.3s;
}

.oit-shop-woo-action .oit-shop-details-action-text .text-2 {
  position: absolute;
  top: 100%;
  display: block;
  transition: 0.3s;
}

.oit-shop-woo-action:hover .oit-shop-details-action-text .text-1 {
  transform: translateY(-150%);
}

.oit-shop-woo-action:hover .oit-shop-details-action-text .text-2 {
  top: 50%;
  transform: translateY(-50%);
}

.oit-shop-woo-action--icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.oit-shop-woo-action--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Single product: the wishlist / compare boxes ───────────── */
.oit-shop-details__icon > a.oit-shop-woo-action--text,
.oit-shop-details__icon > a.oit-shop-woo-action--icon-text {
  width: auto;
  min-width: 60px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* ── Single product: Add to Cart ────────────────────────────── */
.oit-shop-details__btn.oit-shop-woo-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.oit-shop-pagination ul li {
  display: inline-block;
  list-style-type: none;
  margin: 0 4px;
}
.oit-shop-pagination ul li a, .oit-shop-pagination ul li span {
  font-weight: 500;
  font-size: 18px;
  transition: 0.3s;
  border-radius: 10px;
  border: 1px solid var(--wc-shadow);
}
@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px) {
  .oit-shop-pagination ul li a, .oit-shop-pagination ul li span {
    border-radius: 10px;
  }
}
@media (max-width: 767px) {
  .oit-shop-pagination ul li a, .oit-shop-pagination ul li span {
    border-radius: 10px;
  }
}
.oit-shop-pagination ul li a i, .oit-shop-pagination ul li span i {
  font-size: 20px;
}
.oit-shop-pagination ul li .current {
  background-color: var(--wc-theme-3);
  border: 1px solid var(--wc-theme-3);
}
.oit-shop-pagination ul li:hover a {
  background-color: var(--wc-theme-3);
  border: 1px solid var(--wc-theme-3);
}

/* shop */
ins {
  text-decoration: none;
}

/* cart button */
.wc-empty-cart-message {
  text-align: center;
}


.oit-shop-pagination ul li a, .oit-shop-pagination ul li span {
    height: 50px;
    width: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 500;
    font-size: 18px;
    transition: 0.3s;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--wc-black);
}
.oit-shop-pagination ul li .current {
    background-color: var(--oit-clr-green);
    border: 1px solid var(--oit-clr-green);
}