/*
Theme Name: MagsPH
Theme URI: 
Author: MagsPH
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: magsph
Tags: 
*/

:where(.wp-site-blocks *:focus),
:root :where(.wp-element-button:focus, .wp-block-button__link:focus) {
  outline: none;
  box-shadow: none;
  border: none;
  outline-width: 0 !important;
  outline-style: none !important;
}

/* START of About main section CSS */
.about-main-section {
  position: relative;
}

.about-main-section-gray-bg {
  background-color: #FAFAFA;
  width: 49.17vw;
  height: 87.22vh;
  position: absolute;
  top: 0;
  right: 0;
}

/* END of About main section CSS */

/* START of Producs page CSS */

.product-buttons-wrapper {
  align-items: stretch;
}

.add-to-cart-button {
  flex-grow: 1;
}

button.wp-block-button__link.wp-element-button.wc-block-components-product-button__button.add_to_cart_button.ajax_add_to_cart.product_type_simple.has-background.has-jost-font-family.has-text-align-center.wc-interactive {
  border-radius: 2px;
  border-width: 2px !important;
  border-color: #1C1C1C !important;
  border-style: solid;
  gap: 10px !important;
  max-height: 56px;
}

p.woocommerce-result-count {
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.products-sorting select {
  font-family: var(--wp--preset--font-family--jost) !important;
  border-style: none;
  font-weight: 400;
  size: 1rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.wc-block-components-product-sale-badge.wc-block-components-product-sale-badge--align-left.wc-block-grid__product-onsale {
  background-color: #EF4444;
  border-radius: 2px;
  border-color: #EF4444;
  padding: 2px 12px;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: white;
}

.wc-block-components-product-price del {
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  text-decoration-color: #8C8D94;
  color: #8C8D94;
}

.wc-block-components-product-price.wc-block-grid__product-price.has-text-align-left.has-jost-font-family.has-text-align-left {
  display: flex;
  align-items: center;
  gap: 8px;
  ;
}

.wp-block-query-pagination-numbers {
  display: flex;
  gap: 4px;
}

span.page-numbers.current {
  display: grid;
  justify-content: center;
  width: 54px;
  border-radius: 2px;
  border-width: 2px;
  padding: 16px 0;
  background-color: #1C1C1C;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: white;
}

a.page-numbers {
  display: grid;
  justify-content: center;
  width: 54px;
  border-radius: 2px;
  border-width: 2px;
  padding: 16px 0;
  border-color: #1C1C1C;
  border-style: solid;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #1C1C1C;
  text-decoration: none !important;
}

a.wp-block-query-pagination-next {
  display: grid;
  justify-content: center;
  width: auto;
  border-radius: 2px;
  border-width: 2px;
  padding: 16px 32px;
  border-color: #1C1C1C;
  border-style: solid;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #1C1C1C;
  text-decoration: none !important;
}

a.wp-block-query-pagination-previous {
  display: grid;
  justify-content: center;
  width: auto;
  border-radius: 2px;
  border-width: 2px;
  padding: 16px 32px;
  border-color: #1C1C1C;
  border-style: solid;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #1C1C1C;
  text-decoration: none !important;
}

/* END of Producs page CSS */

/* START of shipping and delivery page CSS */
.shipping-timeframe-table table {
  border-collapse: collapse;
  border-color: #D8D8DD;
}

.shipping-timeframe-table td {
  border-color: #D8D8DD;
  padding: 6px 16px !important;
  color: #63646A;
}

.shipping-timeframe-table tr:first-child td {
  font-weight: 600 !important;
}

.shipping-timeframe-table td:first-child {
  border-right: none;
}

.shipping-timeframe-table td:nth-child(2) {
  border-left: none;
}

/* END of shipping and delivery page CSS */



.woocommerce-cart .wp-block-post-title {
  max-width: 1312px !important;
}


/*LINKS HOVER*/
.link-w-arrow {
  transition: all 0.3s ease;
  /* Smooth transition for the translate effect */
  display: inline-block;
  /* Ensures transform works correctly */
}

.link-w-arrow:hover {
  transform: translateX(10px);
  /* Moves the link 10px to the right on hover */
  text-decoration: underline;
  /* Adds an underline on hover */
}

/* Hover effect on linked featured images */
a>img.post-thumbnail,
a>.wp-post-image {
  transition: transform 0.3s ease, filter 0.3s ease;
}

a:hover>img.post-thumbnail,
a:hover>.wp-post-image {
  transform: scale(1.05);
  filter: brightness(0.85);
}



/*-------------------- HOMEPAGE STYLES----------------------*/

/* DASHBOARD MODEL IMG */

@media (min-width: 1450px) {
  .head-title {
    font-size: 124px !important;
    letter-spacing: 0px !important;
  }
}

@media (max-width: 828px) {
  .banner {
    min-height: fit-content !important;
    padding-top: 30px !important;
    padding-bottom: 58px !important;
    padding-left: 20px !important;
  }
}

/* FEATURED COLLECTION */

.small-feat .wc-block-featured-product__title {
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.small-feat .wc-block-featured-product__link {
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.main-feat .wc-block-featured-product__title {
  font-size: clamp(1.75rem, 0.8191rem + 2.9787vw, 3.5rem) !important;
}

.main-feat .wc-block-featured-product__description {
  font-size: 16px !important;
}

.main-feat .wc-block-featured-product__link {
  font-size: 24px !important;
}

/* .main-feat {
  align-content: flex-end !important;
  padding-bottom: 20px !important;
} */

/* Base styling for featured product items */
.featured-products .wp-block-woocommerce-product,
.featured-products .product,
.featured-products .wc-block-grid__product {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 8px;
}

/* Hover effect for featured products */
/* Default state */
.main-feat .wc-block-featured-product__background-image {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* On hover - fade and zoom */
.main-feat:hover .wc-block-featured-product__background-image {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Default state */
.small-feat .wc-block-featured-product__background-image {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* On hover - fade and zoom */
.small-feat:hover .wc-block-featured-product__background-image {
  opacity: 0.9;
  transform: scale(1.05);
}


@media (min-width: 1320px) {
  .open-sale-cover {
    max-height: 520px !important;
  }

  .open-sale-title {
    font-size: 74px !important;
    margin-right: -70px !important;
    letter-spacing: -1px !important;
    line-height: 1.17 !important;
    margin-top: -58px !important;
  }
}


/* Responsive adjustments */
@media (max-width: 768px) {

  .featured-products .wp-block-woocommerce-product:hover,
  .featured-products .product:hover,
  .featured-products .wc-block-grid__product:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.2);
  }
}

@media screen and (max-width: 480px) {
  /* .main-feat{
    min-height: 668px !important;
    max-width: 250px !important;
  } */

  /* .main-feat .wc-block-featured-product__title {
    font-size: 27px !important;
    padding: 0 10px 16px;;
  } */

  .main-feat .wc-block-featured-product__description {
    font-size: 14px !important;
    padding: 0 10px 16px;
    ;
  }

  .main-feat .wc-block-featured-product__link {
    font-size: 18px !important;
    padding: 0 10px 16px;
    ;
  }

  .wp-container-core-group-is-layout-49453d53 {
    gap: 20px !important;
    margin-bottom: -112px !important;
  }

  .wp-container-core-group-is-layout-e0b79ca8 {
    justify-content: flex-start;
  }

  /* .wp-container-core-group-is-layout-16254808 {
    margin-bottom: -112px !important;
  } */

  /* .small-feat {
    min-height: 316px !important ;
    max-width: 150px !important;
  } */
}


/* CATEGORIES CAROUSEL */
.cat {
  box-shadow: -1px 71px 102px 26px rgba(0, 0, 0, 0.1);
  overflow: hidden !important;
}

.metaslider.ms-theme-nexus .nexus-link {
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: #1F2023 !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  padding: 0px !important;
  text-transform: none !important;
}

.flex-viewport {
  overflow: visible !important;
}

#metaslider_453 .slides li {
  width: 304px !important;
  min-width: 304px !important;
  margin-right: 12px !important;
}

#metaslider_453>.flex-viewport>.slides li>.nexus-link,
#metaslider-id-453 .flexslider .nexus-link,
.metaslider.ms-theme-nexus .nexus-link {
  color: #1F2023 !important;
}

/* @media screen and (max-width: 2450px) {
   .flex-viewport{
   overflow: visible !important;
}
} */

@media screen and (max-width: 768px) {

  .metaslider.ms-theme-nexus .nexus-link {
    font-size: 18px !important;
  }

  /* Style captions for better mobile readability */
  #metaslider_453 .caption-wrap {
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
  }

  #metaslider_453 .caption {
    color: black;
    font-size: 12px;
    padding: 4px 8px;
    text-align: center;
  }
}

.metaslider .caption-wrap {
  position: relative;
  padding: 0px !important;
}

.metaslider.ms-theme-nexus .caption-wrap .caption {
  padding: 18px !important;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 500;
}

.metaslider.ms-theme-nexus .flexslider .flex-direction-nav li {
  top: 33% !important;
}

.flex-nav-next {
  right: -100px !important;
}

.flex-nav-prev {
  left: -100px !important;
}

/* Additional mobile optimizations */
@media screen and (max-width: 480px) {

  /* For very small screens, slightly smaller but still visible */
  #metaslider_453 .slides li {
    width: 100px !important;
    min-width: 100px !important;
    margin-right: 12px !important;
  }

  #metaslider_453 .slides li img {
    width: 100px !important;
    height: 100px !important;
    min-height: 100px !important;
  }
}


/* ------------------------NEWS AND UPDATES------------------------- */

/* Filter Button Styling */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-button {
  padding: 12px 24px;
  border: 2px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
}

.filter-button:hover,
.filter-button.active {
  background: #333;
  color: white;
  border-color: #333;
}

/* WordPress Button Styling */
.button-hover .wp-block-button.active-filter .wp-block-button__link {
  background: #333 !important;
  color: white !important;
  border-color: #333 !important;
}

.button-hover .wp-block-button__link {
  cursor: pointer;
  transition: all 0.3s ease;
}

.button-hover .wp-block-button__link:hover {
  background: #333 !important;
  color: white !important;
}

/* Post Grid Animation */
.wp-block-post-template li {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.wp-block-post-template li:hover {
  transform: translateY(-5px);
}

/* Loading and Error States */
.loading-posts,
.no-posts-message,
.error-message {
  grid-column: 1 / -1;
  width: 100%;
}

.loading-posts div,
.no-posts-message div,
.error-message div {
  background: #f9f9f9;
  border-radius: 8px;
  font-style: italic;
}


.wp-container-core-query-pagination-is-layout-ecd33c62 {
  gap: 0px !important;
}

.wp-container-core-query-pagination-is-layout-ecd33c62 .wp-block-query-pagination-numbers {
  display: flex;
  gap: 4px;
  padding: 0px 32px !important;
  border-width: 1px;
  border-top: 1.5px solid #D8D8DD;
  border-bottom: 1.5px solid #D8D8DD;
  border-left: 1.5px solid #D8D8DD;
  border-right: 1.5px solid #D8D8DD;
}

.wp-container-core-query-pagination-is-layout-ecd33c62 span.page-numbers.current {
  display: grid;
  justify-content: center;
  width: 24px;
  padding: 16px 0;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  background-color: white !important;
  border-bottom: 1px solid #1C1C1C;
  color: #1C1C1C;
  border-radius: 0 !important;
}

.wp-container-core-query-pagination-is-layout-ecd33c62 a.page-numbers {
  display: grid;
  justify-content: center;
  width: 24px;
  padding: 16px 0;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
}

.wp-container-core-query-pagination-is-layout-ecd33c62 a.wp-block-query-pagination-next {
  display: grid;
  justify-content: center;
  width: auto;
  border-radius: 0 !important;
  border-width: 1.5px;
  padding: 16px 32px;
  border-color: #D8D8DD !important;
  border-style: solid;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #1C1C1C;
  text-decoration: none !important;
}

.wp-container-core-query-pagination-is-layout-ecd33c62 a.wp-block-query-pagination-previous {
  display: grid;
  justify-content: center;
  width: auto;
  border-radius: 0 !important;
  border-width: 1.5px;
  padding: 16px 32px;
  border-color: #D8D8DD !important;
  border-style: solid;
  font-family: var(--wp--preset--font-family--jost) !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #1C1C1C;
  text-decoration: none !important;
}

/* Hover for numbered pagination links */
.wp-container-core-query-pagination-is-layout-ecd33c62 a.page-numbers:hover {
  background-color: #F5F5F5;
  color: #1C1C1C;
  cursor: pointer;
}

/* Hover for 'Next' button */
.wp-container-core-query-pagination-is-layout-ecd33c62 a.wp-block-query-pagination-next:hover {
  background-color: #1C1C1C;
  color: white;
  border-color: #1C1C1C;
  cursor: pointer;
}

/* Hover for 'Previous' button */
.wp-container-core-query-pagination-is-layout-ecd33c62 a.wp-block-query-pagination-previous:hover {
  background-color: #1C1C1C;
  color: white;
  border-color: #1C1C1C;
  cursor: pointer;
}

/* HIDE SITEMAP LINK IN SITEMAP PAGE */
/* Hide the whole list item if the link points to /sitemap/ */
.wp-block-page-list li:has(a[href*="/sitemap/"]) {
  display: none !important;
}




@media screen and (max-width: 1280px) {
  .content-padding {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}




/* filter btn responsiveness */
@media screen and (max-width: 480px) {
  .filter-btn a {
    padding: 15px !important;
  }
}




/* ADD TO CART AND WISHLIST RESPONSIVENESS */



@media screen and (max-width: 828px) {
  .wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/on-sale"] .add_to_cart_button {
    padding: 15px 0px;
  }

  .wp-container-core-group-is-layout-09f00e5f {
    gap: 4px !important;
  }
}



/* TESTIMONIES SLIDER */
.strong-view.wpmtst-modern .wpmtst-testimonial-content:before,
.strong-view.wpmtst-modern .wpmtst-testimonial-content:after {
  display: none;
}

.wpmtst-testimonial-content h4 {
  color: #1f2023 !important;
  font-size: clamp(15.747px, 0.984rem + ((1vw - 3.2px) * 0.516), 24px) !important;
}

.testimonial-name {
  color: #1f2023;
  font-size: clamp(15.747px, 0.984rem + ((1vw - 3.2px) * 0.516), 24px);
}

.testimonial-company {
  color: #63646a;
  font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.125), 16px);
}

.wc-block-components-form.wc-block-checkout__form > div:first-child {
  display: none !important;
}

@media (max-width: 1440px) {

  .wpmslider-viewport {
    width: 800px !important;
  }

  .wpmtst-testimonial .testimonial .t-slide {
    width: 800px !important;
  }

}

@media (max-width: 828px) {
  .wp-container-core-group-is-layout-644d0489 {
    padding-right: 0px !important;
    padding-left: 0px !important;
    overflow: hidden !important;
  }

  .wp-container-core-group-is-layout-00d5d048 {
    background-size: cover !important;
    text-align: center !important;
  }

  .wpmslider-viewport {
    width: 600px !important;
  }

  .wpmtst-testimonial .testimonial .t-slide {
    width: 600px !important;
  }
}

@media (max-width: 768px) {
  .wpmslider-viewport {
    width: 400px !important;
  }

  .wpmtst-testimonial .testimonial .t-slide {
    width: 400px !important;
  }
}

@media (max-width: 480px) {
  .wp-container-core-group-is-layout-4990d598 {
    margin-top: 0 !important;
    padding-top: 45px !important;
    padding-right: 35px !important;
    padding-bottom: 0 !important;
    padding-left: 35px !important;
  }

  .wpmslider-viewport {
    width: 350px !important;
  }

  .wpmtst-testimonial .testimonial .t-slide {
    width: 350px !important;
  }

  .wp-container-core-group-is-layout-00d5d048 {
    padding-bottom: 256px !important;
  }
}


/* Optional CSS for smooth transitions */
.wc-block-components-radio-control-accordion-option {
  transition: opacity 0.3s ease, height 0.3s ease;
}

.payment-method-hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.payment-method-visible {
  opacity: 1;
  height: auto;
}

/* Ensure smooth hiding/showing */
.wc-block-components-radio-control-accordion-option[style*="display: none"] {
  display: none !important;
}


/* Remove borders on links when clicked */
a:focus,
a:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}


/* Target all WooCommerce Product Image */
.wp-block-woocommerce-product-image {
  transition: opacity 200ms ease;
}

.wp-block-woocommerce-product-image:hover {
  opacity: 0.7;
}


/* Target all WooCommerce Add to Cart buttons */
.add_to_cart_button {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Hover effect */
.add_to_cart_button:hover {
  background-color: #1c1c1c !important;
  color: #ffffff !important;
  transform: scale(1.02);
}

.add_to_cart_button:hover svg path {
  stroke: #ffffff !important;
}

/* Cart & Checkout */
.wp-block-woocommerce-cart-totals-block {
  background: rgb(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 5px;
}

.cross-sells-product .wc-block-components-product-image img {
  height: 420px !important;
}

.cross-sells-product .add_to_cart_button {
  background-color: transparent !important;
  border: 2px solid !important;
  border-radius: 2px !important;
  color: black !important;
  width: 100% !important;
}

.cross-sells-product .add_to_cart_button:hover {
  background-color: #444 !important;
  color: #F0EEDF !important;
}



.wp-block-woocommerce-checkout-order-summary-block {
  background: rgb(255, 255, 255, 0.5);
}

@media (max-width: 724px) {
  .wp-block-woocommerce-checkout-order-summary-block {
    padding-left: 20px;
    padding-right: 20px;
  }
}



/* Show Now button in PABLO & ABOUT US */
/* Target the anchor inside the div with class "show-now" */
.show-now .wp-block-button__link {
  transition: all 0.3s ease !important;
  background-color: #B8860B;
  border-color: #B8860B;
  color: #ffffff;
  /* white text */
}

/* Add hover effect */
.show-now .wp-block-button__link:hover {
  background-color: #8B5E00 !important;
  /* darker gold for contrast */
  border-color: #8B5E00 !important;
  color: #ffffff !important;
  /* ensure text remains readable */
}

.show-now .wp-block-button__link a:focus,
a:active {
  border-width: 2px !important;
  border-color: #8B5E00 !important;
}

/* Testimonials */
.wpmtst-testimonial-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* show 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* products page buy now button */

button.wc-buy-now-btn.wc-buy-now-btn-single.single_add_to_cart_button.button.alt {
  cursor: pointer;
}

.wp-block-woocommerce-product-template.columns-4 {
  gap: var(--wp--preset--spacing--lg);
}

@media (max-width: 992px) {
  .wc-block-product-template.is-flex-container.is-flex-container.columns-4>li {
    width: calc(51.9% - var(--wp--preset--spacing--lg));
  }
}

@media (max-width: 600px) {
  .wc-block-product-template.is-flex-container.is-flex-container.columns-4>li {
    width: 100%;
  }
}


.footer-nav__column,
.onsale__grid>.wc-block-product-template {
  :has(> &) {
    container-type: inline-size;
  }
}


.onsale__grid>.wc-block-product-template, .wp-block-woocommerce-product-template.columns-4 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: clamp(24px, 1.0417vw, 32px);
}

@media screen and (min-width: 991px) {
  .onsale__grid>.wc-block-product-template, .wp-block-woocommerce-product-template.columns-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (min-width: 500px) and (max-width: 990px) {
  .onsale__grid>.wc-block-product-template, .wp-block-woocommerce-product-template.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.onsale__grid>.wc-block-product-template>li {
  width: auto !important;
}

@media screen and (min-width: 768px) and (max-width: 1440px) {
  .flex-direction-nav {
    width: 100% !important;
  }

  .flex-nav-prev {
    left: 2% !important;
  }

  .flex-nav-next {
    right: 2% !important;
  }
}

.mailpoet_form input[type="hidden"] + br {
  display: none;
}