/**
Theme Name: Virtue Web Solutions
Author: Virtue Web Solutions Ltd.
Author URI: https://virtuewebsolutions.co.uk
Description: Bespoke website theme by Virtue Web Solutions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virtue
Template: astra
*/

:root {
    --primary: #156031;
    --secondary: #f5f5f5;
    --tertiary: #82c2e6;
    --quaternary: #cbe3ef;
    --quinary: #f7f3ea;
}

html {
    overflow-y: auto;
}

section {
    padding: 80px 0;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1225px !important;
}

.secondary a *, .site-footer a *, .site-header a *, a {
    transition: all 0.5s ease !important;
}

p:last-of-type {
    margin-bottom: 0;
}

.gap-10 { height: 10px; }
.gap-20 { height: 20px; }
.gap-30 { height: 30px; }
.gap-40 { height: 40px; }
.gap-50 { height: 50px; }
.gap-60 { height: 60px; }
.gap-70 { height: 70px; }
.gap-80 { height: 80px; }
.gap-90 { height: 90px; }
.gap-100 { height: 100px; }

.pinch-20 { margin: auto; width: 20%; }
.pinch-40 { margin: auto; width: 40%; }
.pinch-50 { margin: auto; width: 50%; }
.pinch-60 { margin: auto; width: 60%; }
.pinch-75 { margin: auto; width: 75%; }
.pinch-80 { margin: auto; width: 80%; }

.h-100 {
    height: 100%;
}

.text-center {
    text-align: center !important;
}

.bg-primary {
    background-color: var(--primary);
}
    .bg-primary, .bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5 {
        color: #fff;
    }
.bg-secondary {
    background-color: var(--secondary);
}
.bg-tertiary {
    background-color: var(--tertiary);
}

.bg-quaternary {
    background-color: var(--quaternary);
}
.bg-quinary {
    background-color: var(--quinary);
}

.d-inline-block {
    display: inline-block !important;
}

.flex-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}

.align-center {
    align-items: center !important;
}

.grecaptcha-badge { 
    visibility: hidden !important;
}

.btn {
    width: auto;
    padding: 10px 40px;
    border: 1px solid #fff;
    display: inline-block;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.5s ease;
}
.btn-row {
    display: flex;
    gap: 1rem;
}
.btn-primary {
    color: #888;
    background-color: #fff;
}
    .btn-primary:hover {
        color: #fff;
        background-color: rgba(0, 0, 0, 0);
    }
.btn-secondary {
    border: 1px solid #fff;
}
    .btn-secondary:hover {
        color: #888;
        background-color: #fff;
    }

/* ### CONTENT ### */

.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
@media (min-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ===== PDP Tabs (scoped) ===== */
.pdp-tabs {
  --pdp-accent: #6bc43a; /* Garnier-ish green; tweak as needed */
  --pdp-text:   #111;
  --pdp-muted:  #777;
  --pdp-border: #e6e6e6;
  --pdp-bg:     #fff;
}

/* Left rail */
.pdp-tabs .pdp-tablist {
  display: grid;
  gap: 8px;
  position: relative;
}

.pdp-tabs .pdp-tab {
    text-align: initial;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    border: none;
    padding: 16px 24px 16px 16px;
    line-height: 22px;
    font-size: 16px;
    box-shadow: inset 0 -1px 0 rgba(211, 215, 213, .5);
    font-family: Gotham SSm A, Gotham SSm B, sans-serif-light, sans-serif;
    font-style: normal;
    font-weight: 400;
    text-transform: none;
    color: #21362c;
    background: #fff;
    cursor: pointer;
}
    .pdp-tabs .pdp-tab img {
        margin-right: 10px;
    }

.pdp-tabs .pdp-tab:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pdp-accent) 35%, white 65%);
}

.pdp-tabs .pdp-tab.is-active {
    font-weight: 700;
    background: #dae7da;
}

.pdp-tabs .pdp-tabpanel:not(.is-active) {
  display: none;
}

@media (max-width: 991.98px) {
  .pdp-tabs .pdp-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-title {
    font-size: 16px;
    font-weight: 700;
}

/* ### MEDIA QUERIES ### */

@media (max-width: 991.98px) {
    .pinch-50 { 
        margin: auto; width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    div.wpforms-container .wpforms-form .wpforms-field:not(.wpforms-field-phone):not(.wpforms-field-select-style-modern):not(.wpforms-field-radio):not(.wpforms-field-checkbox):not(.wpforms-field-layout):not(.wpforms-field-repeater) {
        overflow-x: visible !important;
    }
}

/* ### FORMS ### */

.form-wrap {
    padding: 30px;
    background-color: #aaa;
    border-radius: 5px;
}

.form-wrap .wpforms-container-full {
    margin: 0 !important;
}
.form-wrap .wpforms-field {
    margin-bottom: 10px !important;
    padding: 0 !important;
}
.form-wrap .wpforms-field-label,
.form-wrap .wpforms-field-sublabel {
    margin: 0 !important;
    margin-bottom: 5px !important;
    font-weight: 400 !important;
}
.form-wrap .wpforms-error {
    margin-top: 5px !important;
}

.form-wrap .wpforms-submit {
    padding: 10px 40px !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 18px !important;
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 5px !important;
    box-shadow: 0 !important;
    transition: all 0.5s ease !important;
}
    .form-wrap .wpforms-submit:hover {
        color: var(--primary) !important;
        background-color: #fff !important;
        background: #fff !important;
    }

textarea.wpforms-field-large {
    min-height: 250px;
}

/* ### Scrollbar ### */

/* width */
::-webkit-scrollbar {
    width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation Classes */

.fadeIn,
.fadeSlideUp,
.fadeSlideDown,
.fadeSlideFromLeft,
.fadeSlideFromRight,
.fadeZoomIn {
    opacity: 0;
}
.fadeIn.active{
    animation-name: fadeIn;
    animation-duration: 0.5s;
    animation-timing-function: ease-in;
    animation-delay: 0;
    animation-fill-mode: forwards;
}
.fadeSlideUp.active {
    animation-name: fadeSlideUp;
    animation-duration: 0.5s;
    animation-timing-function: ease-in;
    animation-delay: 0;
    animation-fill-mode: forwards;
}
.fadeSlideDown.active {
    animation-name: fadeSlideDown;
    animation-duration: 0.5s;
    animation-timing-function: ease-in;
    animation-delay: 0;
    animation-fill-mode: forwards;
}
.fadeSlideFromLeft.active {
    animation-name: fadeSlideFromLeft;
    animation-duration: 0.5s;
    animation-timing-function: ease-in;
    animation-delay: 0;
    animation-fill-mode: forwards;
}
.fadeSlideFromRight.active {
    animation-name: fadeSlideFromRight;
    animation-duration: 0.5s;
    animation-timing-function: ease-in;
    animation-delay: 0;
    animation-fill-mode: forwards;
}
.fadeZoomIn.active {
    animation-name: fadeZoomIn;
    animation-duration: 0.5s;
    animation-timing-function: ease-in;
    animation-delay: 0;
    animation-fill-mode: forwards;
}

.delay0 { animation-delay: 0; }
.delay01 { animation-delay: 0.1s; }
.delay02 { animation-delay: 0.2s; }
.delay03 { animation-delay: 0.3s; }
.delay04 { animation-delay: 0.4s; }
.delay05 { animation-delay: 0.5s; }
.delay06 { animation-delay: 0.6s; }
.delay07 { animation-delay: 0.7s; }
.delay08 { animation-delay: 0.8s; }
.delay09 { animation-delay: 0.9s; }
.delay1 { animation-delay: 1; }

/* Animation */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeSlideFromRight {
    from {
        transform: translateX(80px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeSlideFromLeft {
    from {
        transform: translateX(-80px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeSlideUp {
    from {
        transform: translateY(80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeSlideDown {
    from {
        transform: translateY(-80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeZoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Category grids only */
body.tax-product_cat ul.products li.product .price,
body.tax-product_cat ul.products li.product .star-rating { display: none !important; }

/* Only on category archives */
body.tax-product_cat ul.products li.product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Reserve space for up to ~3 lines at current font size */
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
  line-height: 1.25; /* match your theme if different */
  min-height: calc(1em * 1.25 * 3); /* 3 lines worth */
  margin-bottom: .5rem;
}

/* Push CTAs to bottom */
body.tax-product_cat ul.products li.product .button,
body.tax-product_cat ul.products li.product .add_to_cart_button,
body.tax-product_cat ul.products li.product .product_type_variable,
body.tax-product_cat ul.products li.product .product_type_grouped,
body.tax-product_cat ul.products li.product .added_to_cart {
  margin-top: auto;
}

/* Keep price & stars hidden */
body.tax-product_cat ul.products li.product .price,
body.tax-product_cat ul.products li.product .star-rating { display: none !important; }

/* Hide quantity selectors site-wide; we output static values instead */
.single-product form.cart .quantity,
.woocommerce-cart .quantity,
.woocommerce-mini-cart .quantity { display: none !important; }

/* Ensure our static qty looks neat in the cart table */
.woocommerce-cart td.product-quantity .vws-qty-static {
  display: inline-block;
  min-width: 1.25ch;
  text-align: left;
}

/* (Optional) also hide any +/- buttons some themes add */
.woocommerce .qty, .quantity .qty,
.woocommerce .quantity .minus, .woocommerce .quantity .plus { display: none !important; }

.quantity {
    display: none !important;
}

.woocommerce-breadcrumb,
.woocommerce-message,
.woocommerce-error,
.wc-block-cart {
    margin-top: 36px !important;
}

/* Make the search grid behave like category archive */
body.search ul.products {
  display: grid !important;
  gap: 24px;
}
@media (min-width: 992px) { body.search ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 991.98px) { body.search ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) { body.search ul.products { grid-template-columns: 1fr; } }

/* Align CTAs to the bottom of each tile */
body.search ul.products li.product {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.search ul.products li.product .button,
body.search ul.products li.product .add_to_cart_button,
body.search ul.products li.product .product_type_variable,
body.search ul.products li.product .product_type_grouped,
body.search ul.products li.product .added_to_cart { margin-top: auto; }

/* Match your category archive: hide price & rating on search too */
body.search ul.products li.product .price,
body.search ul.products li.product .star-rating { display: none !important; }

.ast-woocommerce-container {
    padding: 0 !important;
}

#primary {
    margin-top: 0 !important;
}

/* Thank You page: remove vertical padding from all <section> blocks */
body.woocommerce-order-received .site-main section,
body.woocommerce-order-received .entry-content section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ast-scroll-to-top-right {
    bottom: 50px;
}

.garnier-icon-footer {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wc-block-checkout__add-note,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block {
    display: none;
}

/* Persist the ✓ tick and "added" state */

.woocommerce a.button.added,
.woocommerce button.button.added,
.woocommerce .add_to_cart_button.added,
.woocommerce .single_add_to_cart_button.added {
  position: relative;
  padding-left: 2rem; /* room for tick */
}

/* Use a persistent tick on .added */
.woocommerce a.button.added::before,
.woocommerce button.button.added::before,
.woocommerce .add_to_cart_button.added::before,
.woocommerce .single_add_to_cart_button.added::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  line-height: 1;
}

/* Hide Woo's default transient tick/animation (we control it now) */
.woocommerce a.button.added::after,
.woocommerce button.button.added::after,
.woocommerce .add_to_cart_button.added::after,
.woocommerce .single_add_to_cart_button.added::after {
  display: none !important;
}

/* Optional: a slightly calmer green when added */
.woocommerce a.button.added,
.woocommerce button.button.added,
.woocommerce .add_to_cart_button.added,
.woocommerce .single_add_to_cart_button.added {
  /* uncomment to tint
  background-color: #6bc43a;
  border-color: #6bc43a;
  color: #fff;
  */
}

.ast-on-card-button {
    display: none !important;
}