/*
Theme Name: Arriba Nutrition

WooCommerce styles override
*/

/**
 * Shop tables
 */
table.shop_table_responsive thead {
  display: none;
}

table.shop_table_responsive tbody th {
  display: none;
}

table.shop_table_responsive tr td {
  display: block;
  text-align: right;
  clear: both;
}

table.shop_table_responsive tr td::before {
  content: attr(data-title) ": ";
  float: left;
}

table.shop_table_responsive tr td.product-remove a {
  text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
  display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
  display: none;
}

table.shop_table_responsive tr td.download-actions .button {
  display: block;
  text-align: center;
}

@media screen and (min-width: 48em) {
  table.shop_table_responsive thead {
    display: table-header-group;
  }

  table.shop_table_responsive tbody th {
    display: table-cell;
  }

  table.shop_table_responsive tr th,
  table.shop_table_responsive tr td {
    text-align: left;
  }

  table.shop_table_responsive tr td {
    display: table-cell;
  }

  table.shop_table_responsive tr td::before {
    display: none;
  }
}

/**
 * Products
 */
ul.products {
  margin: 0;
  padding: 0;
}

ul.products li.product {
  list-style: none;
  position: relative;
  margin-bottom: 2em;
}

ul.products li.product img {
  display: block;
}

ul.products li.product .button {
  display: block;
}

@media screen and (min-width: 48em) {
  ul.products li.product {
    width: 30.79667%;
    float: left;
    margin-right: 3.8%;
  }

  ul.products li.product.first {
    clear: both;
  }

  ul.products li.product.last {
    margin-right: 0;
  }

  ul.products.columns-1 li.product {
    float: none;
    width: 100%;
  }

  ul.products.columns-2 li.product {
    width: 48.1%;
  }

  ul.products.columns-3 li.product {
    width: 30.79667%;
  }

  ul.products.columns-4 li.product {
    width: 22.15%;
  }

  ul.products.columns-5 li.product {
    width: 16.96%;
  }

  ul.products.columns-6 li.product {
    width: 13.49333%;
  }
}

/**
 * Single product
 */
.single-product div.product {
  position: relative;
}

.single-product div.product .woocommerce-product-gallery {
  position: relative;
  float: left;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 2em;
  right: 1em;
  display: block;
  z-index: 99;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
  margin-bottom: 1em;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
  margin: 0;
  padding: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li {
  list-style: none;
  cursor: pointer;
  float: left;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li
  img {
  opacity: 0.5;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li
  img.flex-active {
  opacity: 1;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li:hover
  img {
  opacity: 1;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li {
  width: 48.1%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li:nth-child(2n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li:nth-child(2n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li {
  width: 30.79667%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li:nth-child(3n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li:nth-child(3n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li {
  width: 22.15%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li:nth-child(4n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li:nth-child(4n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li {
  width: 16.96%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li:nth-child(5n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li:nth-child(5n + 1) {
  clear: both;
}

.stock:empty::before {
  display: none;
}

.stock.in-stock {
  color: #0f834d;
}

.stock.out-of-stock {
  color: #e2401c;
}

/**
 * Checkout
 */
@media screen and (min-width: 768px) {
  .col2-set .form-row-first {
    float: left;
    margin-right: 3.8%;
  }

  .col2-set .form-row-last {
    float: right;
    margin-right: 0;
  }

  .col2-set .form-row-first,
  .col2-set .form-row-last {
    width: 48.1%;
  }
}

/**
 * General WooCommerce components
 */

/**
 * Header cart
 */
.site-header-cart {
  position: relative;
  margin: 0;
  padding: 0;
}

.site-header-cart .cart-contents {
  text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
  display: none;
}

.site-header-cart .product_list_widget {
  margin: 0;
  padding: 0;
}

/**
 * Star rating
 */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.618em;
  line-height: 1.618;
  width: 5.3em;
  font-family: star;
  font-weight: 400;
}

.star-rating::before {
  content: "\53\53\53\53\53";
  opacity: 0.25;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.star-rating span::before {
  content: "\53\53\53\53\53";
  top: 0;
  position: absolute;
  left: 0;
  color: #4169e1;
}

p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  margin-right: 1px;
  font-weight: 400;
}

p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: star;
  content: "\53";
  color: #404040;
  text-indent: 0;
  opacity: 0.25;
}

p.stars a:hover ~ a::before {
  content: "\53";
  color: #404040;
  opacity: 0.25;
}

p.stars:hover a::before {
  content: "\53";
  color: #4169e1;
  opacity: 1;
}

p.stars.selected a.active::before {
  content: "\53";
  color: #4169e1;
  opacity: 1;
}

p.stars.selected a.active ~ a::before {
  content: "\53";
  color: #404040;
  opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
  content: "\53";
  color: #4169e1;
  opacity: 1;
}

/**
 * Tabs
 */
.woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.woocommerce-tabs ul.tabs li {
  display: block;
  margin: 0;
  position: relative;
}

.woocommerce-tabs ul.tabs li a {
  padding: 1em 0;
  display: block;
}

.woocommerce-tabs .panel h2:first-of-type {
  margin-bottom: 1em;
}

/**
 * Password strength meter
 */
.woocommerce-password-strength {
  text-align: right;
}

.woocommerce-password-strength.strong {
  color: #0f834d;
}

.woocommerce-password-strength.short {
  color: #e2401c;
}

.woocommerce-password-strength.bad {
  color: #e2401c;
}

.woocommerce-password-strength.good {
  color: #3d9cd2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
  box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
  box-shadow: inset 2px 0 0 #e2401c;
}

.required {
  color: #f00;
}

/**
 * Notices
 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  background-color: #0f834d;
  clear: both;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
  background-color: #3d9cd2;
}

.woocommerce-error {
  background-color: #e2401c;
}

.demo_store {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 1em;
  background-color: #3d9cd2;
  z-index: 9999;
}

@media screen and (min-width: 48em) {
  /**
	 * Header cart
	 */
  .site-header-cart .widget_shopping_cart {
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 999999;
    left: -999em;
    display: block;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  }

  .site-header-cart:hover .widget_shopping_cart,
  .site-header-cart.focus .widget_shopping_cart {
    left: 0;
    display: block;
  }
}

/**
 * WooCommerce widgets
 */

/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
  margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
  text-align: right;
  line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
  float: left;
}

.widget_price_filter .ui-slider {
  position: relative;
  text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 1em;
  height: 1em;
  cursor: ew-resize;
  outline: none;
  background: #4169e1;
  box-sizing: border-box;
  margin-top: -0.25em;
  opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
  margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
  box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  display: block;
  border: 0;
  background: #4169e1;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
  height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
  height: 100%;
}

/* Woocommerce Styles */

.woocommerce-message {
  display: none;
}

.woocommerce-cart.full-width-content .content,
.woocommerce-checkout.full-width-content .content {
  max-width: 100%;
}

.woocommerce-cart .woocommerce table.shop_table td.actions {
  border: none;
  background: #f7f7f7;
}

.woocommerce-cart .entry-content form {
  width: 100%;
}

.woocommerce-cart .woocommerce .cart-collaterals {
  width: 33%;
}

.woocommerce-cart .woocommerce .cart-collaterals h2 {
  display: none;
}

.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
  width: 100%;
}

.cart-container {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#add_payment_method .cart-collaterals .cart_totals tr th,
.woocommerce-cart .cart-collaterals .cart_totals tr th,
.woocommerce-checkout .cart-collaterals .cart_totals tr th,
#add_payment_method table.cart th,
.woocommerce-cart table.cart th,
.woocommerce-checkout table.cart th,
.woocommerce-checkout table.shop_table th {
  color: var(--Main-black, #0f0f0f);
  font-size: 14px;
  font-size: 1.4rem;
}

#add_payment_method .cart-collaterals .cart_totals tr td,
.woocommerce-cart .cart-collaterals .cart_totals tr td,
.woocommerce-checkout .cart-collaterals .cart_totals tr td,
#add_payment_method table.cart td,
.woocommerce-cart table.cart td,
.woocommerce-checkout table.cart td,
.woocommerce-checkout table.shop_table td {
  color: #555;
  font-size: 16px;
  font-size: 1.6rem;
}

.woocommerce-cart .woocommerce table.shop_table th {
  border-bottom: 0.104vw solid var(--Main-black, #0f0f0f);
  font-family: "Coolvetica", sans-serif;
}

.woocommerce-cart .woocommerce table.shop_table,
.woocommerce-checkout .woocommerce table.shop_table {
  border: 0.104vw solid var(--Main-black, #0f0f0f);
  margin: 0;
  text-align: left;
  width: 100%;
  border-collapse: separate;
  border-radius: 0;
  margin-bottom: 35px;
}

body #add_payment_method #payment ul.payment_methods li input,
body.woocommerce-cart #payment ul.payment_methods li input,
body.woocommerce-checkout #payment ul.payment_methods li input {
  width: auto;
  margin: -2px 0.5em 0 0;
}

body .woocommerce form .form-row .input-checkbox {
  width: auto;
  margin: -2px 5px 0 0;
}

#add_payment_method .cart-collaterals .cart_totals tr td,
#add_payment_method .cart-collaterals .cart_totals tr th,
body.woocommerce-cart .cart-collaterals .cart_totals tr td,
body.woocommerce-cart .cart-collaterals .cart_totals tr th,
body.woocommerce-checkout .cart-collaterals .cart_totals tr td,
body.woocommerce-checkout .cart-collaterals .cart_totals tr th,
body .woocommerce table.shop_table th {
  border-top: none;
  border: none;
  text-align: right;
  padding: 10px 20px;
}

body #add_payment_method table.cart td,
body #add_payment_method table.cart th,
body.woocommerce-cart table.cart td,
body.woocommerce-cart table.cart th,
body.woocommerce-checkout table.cart td,
body.woocommerce-checkout table.cart th {
  /* border-right: 1px solid #e6e6e6; */
}

#add_payment_method .cart-collaterals .cart_totals tr th,
body.woocommerce-cart .cart-collaterals .cart_totals tr th,
body.woocommerce-checkout .cart-collaterals .cart_totals tr th {
}

.woocommerce-cart .cart-collaterals .cart_totals table th {
  /* border-bottom: 1px solid #e6e6e6; */
}

body .woocommerce #respond input#submit.alt,
body .woocommerce a.button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt {
  background: #72a40d !important;
  font-weight: 500;
}

body .woocommerce #respond input#submit.alt:hover,
body .woocommerce a.button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce input.button.alt:hover {
  background: var(--Main-black, #0f0f0f) !important;
}

body .woocommerce .cart .button,
body .woocommerce .cart input.button,
body .woocommerce #respond input#submit,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button {
  background: var(--Main-black, #0f0f0f) !important;
  color: #fff;
  font-weight: 500;
  border-radius: 40px;
}

body .woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  width: 100%;
  display: block;
  text-align: center;
  margin-bottom: 0;
  font-size: 1.25em;
  padding: 1em;
  border-radius: 40px;
  margin-top: 0.5em;
}

body .woocommerce form .form-row-first,
body .woocommerce form .form-row-last,
body .woocommerce-page form .form-row-first,
body .woocommerce-page form .form-row-last {
  width: 49%;
}

body .woocommerce #respond input#submit.disabled,
body .woocommerce #respond input#submit:disabled,
body .woocommerce #respond input#submit:disabled[disabled],
body .woocommerce a.button.disabled,
body .woocommerce a.button:disabled,
body .woocommerce a.button:disabled[disabled],
body .woocommerce button.button.disabled,
body .woocommerce button.button:disabled,
body .woocommerce button.button:disabled[disabled],
body .woocommerce input.button.disabled,
body .woocommerce input.button:disabled,
body .woocommerce input.button:disabled[disabled] {
  background: #ccc;
}

body .woocommerce a.checkout-button.button.alt {
  border-radius: 40px;
}

body .woocommerce #content table.cart td.actions .coupon,
body .woocommerce table.cart td.actions .coupon {
  width: 68%;
}

body #add_payment_method table.cart td.actions .coupon .input-text,
body.woocommerce-cart table.cart td.actions .coupon .input-text,
body.woocommerce-checkout table.cart td.actions .coupon .input-text {
  padding: 8px 6px 7px;
  width: 65%;
}

body .woocommerce table.shop_table td {
  padding: 15px;
  vertical-align: middle;
}

body .woocommerce-checkout table.shop_table td {
  text-align: right;
  border-right: 1px solid #e6e6e6;
  border-top: 0;
}

.woocommerce a.remove {
  margin: 0 auto;
}

.woocommerce-cart .woocommerce table.shop_table th {
  text-transform: capitalize;
}
.woocommerce-cart .woocommerce table.shop_table th.product-name {
  text-align: left;
}

.woocommerce-cart .woocommerce table.shop_table th.product-price,
.woocommerce-cart .woocommerce table.shop_table th.product-quantity,
.woocommerce-cart .woocommerce table.shop_table th.product-subtotal {
  text-align: right;
  display: table-cell;
}

.woocommerce-cart .woocommerce table.shop_table td.product-price .amount,
.woocommerce-cart .woocommerce table.shop_table td.product-subtotal .amount {
  font-family: "Coolvetica", sans-serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1.656px;
  color: var(--Main-black, #0f0f0f);
}

.woocommerce-cart .woocommerce table.shop_table .cart_item td.product-price,
.woocommerce-cart .woocommerce table.shop_table .cart_item td.product-quantity,
.woocommerce-cart .woocommerce table.shop_table .cart_item td.product-subtotal {
  text-align: right;
}

.woocommerce-cart
  .woocommerce
  table.shop_table
  .cart_item
  td.product-thumbnail
  img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.woocommerce-cart .woocommerce table.shop_table .cart_item td .product-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.woocommerce-cart
  .woocommerce
  table.shop_table
  .cart_item
  td
  .product-info
  .product-info-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.woocommerce-cart
  .woocommerce
  table.shop_table
  .cart_item
  td
  .product-info
  .product-info-text
  a {
  color: var(--Main-black, #0f0f0f);
  font-family: "Coolvetica", sans-serif;
}

.woocommerce-cart
  .woocommerce
  table.shop_table
  .cart_item
  td
  .product-info
  .product-info-text
  .remove {
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  opacity: 0.6;
  text-align: left;
  margin: 8px 0 0 0;
}

.woocommerce-checkout #add_payment_method #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li {
  list-style: none;
}

.woocommerce-checkout .woocommerce .col2-set {
  width: 47.8260869565%;
  margin-right: 4.347826087%;
}

.woocommerce-checkout .woocommerce .col2-set .col-1,
.woocommerce-checkout .woocommerce .col2-set .col-2 {
  margin-bottom: 2em;
  width: 100%;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  background: #fff;
  width: 47.8260869565%;
  margin-right: 0;
}

.woocommerce-checkout #ship-to-different-address-checkbox {
  width: auto;
  margin-left: 15px;
  margin-top: 10px;
  opacity: 1;
  position: static;
}

.woocommerce-checkout #ship-to-different-address label {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  margin-bottom: 1em;
  padding: 0;
  text-transform: uppercase;
  color: #000;
}

.woocommerce-checkout .woocommerce form .form-row.create-account label {
  padding-top: 2px;
  font-weight: bold;
}

.woocommerce-checkout .payment-fixed {
  position: fixed;
  z-index: 9;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 2em;
  left: 52%;
  margin-left: 0;
  padding: 20px;
  top: 0;
  width: 45.5% !important;
  -webkit-transition: padding 0.1s ease-in;
  -moz-transition: padding 0.1s ease-in;
  -o-transition: padding 0.1s ease-in;
  -ms-transition: padding 0.1s ease-in;
  transition: padding 0.1s ease-in;
}

.product-shipping-message {
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  padding: 10px 0px;
  border-top: 1px solid #139248;
  border-bottom: 1px solid #139248;
}

body .woocommerce table.shop_table tbody th,
body .woocommerce table.shop_table tfoot td,
body .woocommerce table.shop_table tfoot th {
  border-bottom: none;
}

body .woocommerce form .form-row input.input-text,
body .woocommerce form .form-row textarea {
  max-width: 100%;
}

body .woocommerce .product-name a {
  color: #000;
  pointer-events: none;
  cursor: default;
}

@media only screen and (max-width: 1139px) {
  .woocommerce-cart .entry-content form {
    width: 64%;
  }
}

@media only screen and (max-width: 980px) {
  .woocommerce-cart .entry-content form {
    width: 80%;
    float: none;
    margin: 0 auto;
  }

  .woocommerce-cart .woocommerce .cart-collaterals {
    width: 80%;
    float: None;
    margin: auto;
  }

  body .woocommerce #content table.cart td.actions .coupon,
  body .woocommerce table.cart td.actions .coupon {
    width: 100%;
  }

  body #add_payment_method table.cart td.actions .coupon .input-text,
  body.woocommerce-cart table.cart td.actions .coupon .input-text,
  body.woocommerce-checkout table.cart td.actions .coupon .input-text {
    width: 48%;
  }
}

@media only screen and (max-width: 650px) {
  .woocommerce-cart .entry-content form {
    width: 100%;
  }

  .woocommerce-cart .woocommerce .cart-collaterals {
    width: 100%;
  }

  .woocommerce-checkout .woocommerce .col2-set {
    width: 100%;
    margin-right: 0;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    width: 100%;
  }
}

/**
 * Label image thumbnails - optional visual distinction
 */
.thumbnail-item.label-thumbnail {
  /* Optional: Add a badge or border to distinguish label images */
  position: relative;
}

.thumbnail-item.label-thumbnail::after {
  content: '';
  /* Optional styling to distinguish label thumbnails */
  /* Uncomment below to add a small indicator */
  /* position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: #4CAF50;
  border-radius: 50%;
  border: 2px solid #fff; */
}

/* Main image cursor for lightbox */
.gallery-main img {
  cursor: zoom-in !important;
}
