/*
 Theme Name:   Protein Mafia (Astra Child)
 Theme URI:    https://wpastra.com/
 Description:  Child theme for Astra
 Author:       Tom Name
 Author URI:   https://proteinmafia.com
 Template:     astra
 Version:      1.1.1
*/

/* Optional: import parent theme styles */
@import url("../astra/style.css");


/* Product Content Tabs */
.pm-details-wrapper {
    margin-bottom: 2rem;
}

.pm-details-wrapper .pm-label {
    font-weight: 700;
}

.woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs {
    display: none;
}

.pm-tabs {
    border-top: 1px solid #f5f5f5;padding-top: 2rem;
}

.pm-tabs {
    margin: 0 auto;
    width: 100%;
}
.pm-tabs input[type=radio] {
    display: none;
}
.pm-tabs .content > div {
    display: none;
    padding: 30px;
    line-height: 1.5;
    font-size: 17px;
}
.pm-tabs .tab {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.pm-tabs .tab label {
    cursor: pointer;
    float: left;
    text-align: center;
    padding: 0.25rem 0;
    margin: 0 1rem;
    /*font-family: "Agenor-Regular";*/
}

#description:checked ~ .tab label:nth-child(1),
#usage:checked ~ .tab label:nth-child(2),
#nutritional:checked ~ .tab label:nth-child(3),
#tab-4:checked ~ .tab label:nth-child(4) {
    box-shadow: none;
    color: #282828;
    border-bottom: 1px solid #e0e0e0;
}

#description:checked ~ .content div:nth-child(1),
#usage:checked ~ .content div:nth-child(2),
#nutritional:checked ~ .content div:nth-child(3),
#tab-4:checked ~ .content div:nth-child(4) {
    display: block;
    padding: 0;
    margin: 2.5rem auto 1rem auto;
}

/* sticky nav */

/* product card  */
.woocommerce-js ul.products li.product a img {
    max-height: 15.75rem;
    object-fit: contain;
}

.woocommerce-js ul.products li.product {
    border: 1px solid #e6e6e6;
    padding: 1rem;
}

/* banner bg fix */
section.ast-archive-entry-banner {
    background: none;
}

/* center pagination */
nav.woocommerce-pagination {
    text-align: center;
}

.pm-details-wrapper {
    margin-bottom: 2rem;
}

.pm-details-wrapper .pm-label {
    font-weight: 700;
}

.woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs {
    display: none;
}

.pm-tabs {
    border-top: 1px solid #f5f5f5;padding-top: 2rem;
}

/* custom nav fix */
.home .ast-sticky-active .main-header-menu > .menu-item.current-menu-item > .menu-link {
    font-weight: bold !important;
    color: #ffffff !important;
}

/* home */
.ast-theme-transparent-header .ast-sticky-active.ast-sticky-shrunk .ast-main-header-wrap {
    background-color: black !important;
}

.ast-sticky-active.ast-sticky-shrunk .custom-logo-link {
    background: #fff;
    display: flex;
    margin-bottom: -3rem;
    padding: 0.5rem;
    border-radius: 100%;
    outline: 4px solid #f7f7f7;
}

/* home */
.ast-theme-transparent-header .ast-sticky-active.ast-sticky-shrunk .custom-logo-link {
    background: #000000;
	  outline: 4px solid #1e1e1e;
}

.ast-sticky-active.ast-sticky-shrunk .custom-logo-link img {
    width: 120px !important;
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

.ast-theme-transparent-header #masthead .site-logo-img .transparent-custom-logo img {
    max-height: 125px !important;
}

.ast-sticky-below-shrink .ast-sticky-shrunk .site-logo-img img {
    max-width: 125px !important;
    max-height: 125px !important;
}

.woocommerce-page .site-logo-img img {
    max-width: 125px !important;
    max-height: 125px !important;
}

/* custom dropdown fix */
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu li {
    padding: 0.5rem;
}
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu li a {
    color: #000000 !important;
}

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu li:hover {
    background: #000000 !important;
}

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu li:hover a {
    color: #fff !important;
}

/* custom shop filtering */
.woof.woof_sid.woof_sid_generator_6842a9e490164 {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    z-index: -1;
    transition: all .3s ease-in-out;
}

.woof.woof_sid.woof_sid_generator_6842a9e490164.show {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transition: all .3s ease-in-out;
}

.woof.woof_sid.woof_sid_generator_6842a9e490164 {
    background: #f8f8f8;
    padding: 1rem 1rem;
    margin-bottom: 2rem;
}

/* brands page filtering  */
.product-category-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    margin-top: 2rem;
}

.product-category-list li {
    flex: 1 1 calc(25% - 1rem); /* 4 per row on desktop */
    box-sizing: border-box;
}

.product-category-list a {
    display: block;
    border: 1px solid #c3c3c3;
    padding: 1rem;
    text-decoration: none !important;
    text-align: center;
    height: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.product-category-list a:hover {
    border-color: #888;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-category-list a img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.product-category-list a span {
    display: block;
    margin-top: 0.75rem;
    font-weight: bold;
    color: #333;
}

/* Responsive stacking on smaller screens */
@media (max-width: 1024px) {
    .product-category-list li {
        flex: 1 1 calc(33.333% - 1rem); /* 3 per row */
    }
}

@media (max-width: 768px) {
    .product-category-list li {
        flex: 1 1 calc(50% - 1rem); /* 2 per row */
    }
}

@media (max-width: 480px) {
    .product-category-list li {
        flex: 1 1 100%; /* 1 per row on small screens */
    }
}


.product-category-search-wrapper label {
    font-weight: 800;
    text-align: center;
    display: block;
    margin-bottom: 0.5rem;
}

.product-category-list {
    justify-content: flex-start;
}

.product-category-list li {
    flex-grow: 0;
}

// flavour, size pill
span.price .rrp-price {
    display: block;
    width: 100%;
}

span.price .flav-size-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

span.price .flav-size-wrapper .product-size,
span.price .flav-size-wrapper .product-flavour {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid #e9e9e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1),
                0 1px 2px -1px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
	margin-top: 0.125rem;
}

span.price .flav-size-wrapper .product-size {
    background: #9E9E9E;
}

span.price .flav-size-wrapper .product-flavour {
    background: #3a3a3a;
	margin-right: 0.25rem;
}

span.price ins .woocommerce-Price-amount.amount {
    font-weight: bold;
    font-size: 1.125rem;
}

.pm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pm-value {
  text-align: right;
  min-width: 150px;
}

.pm-details-wrapper ~ .cart {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item.hidden {
/*     display: none; */
}

/* Product Categories */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
}

.category-tiles .tile {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none !important;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-height: 100px;
}

.category-tiles .tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: white;
}

.category-tiles .tile-title {
  user-select: none;
  text-decoration: none;
}

/* style mobile nav */
.ast-header-break-point .main-navigation .stack-on-mobile li.account, .ast-header-break-point .main-navigation .stack-on-mobile li.search, .ast-header-break-point .main-navigation .stack-on-mobile li.cart {
  background: #e7e7e7;
  border-top: 1px solid #a2a2a2;
}

.ast-header-break-point .main-navigation .stack-on-mobile li.account a::before {
  content: "👤";
  margin-right: 1rem;
}

.ast-header-break-point .main-navigation .stack-on-mobile li.search a::before {
  content: "🔎";
  margin-right: 1rem;
}

.ast-header-break-point .main-navigation .stack-on-mobile li.cart a::before {
  content: "🛒";
  margin-right: 1rem;
}

/* // old products */
/* article ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 0;
  list-style: none;
  margin: 2em 0;
}

article ul li {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

article ul li:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

article ul li img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 15px;
}

article ul li h3 {
  font-size: 16px !important;
  text-decoration: none !important;
  font-weight: 600;
  margin: 0 0 5px;
  color: #222;
}

article ul li a {
  color: inherit;
  text-decoration: none !important;
}

article ul li h3 a {
  color: inherit;
  text-decoration: none;
}

article ul li h3 a:hover {
  color: #0073aa;
  text-decoration: none;
}

article ul li h4 {
  font-size: 14px !important;
  text-decoration: none !important;
  color: #777;
  margin: 0 0 10px;
}

article ul li p {
  font-size: 16px;
  font-weight: bold;
  color: #111;
  margin: 0;
} */