/*
Theme Name: Hello Dirty Rides
Description: A mtb apparel website
Author: Yeshwin Anil & Dijo Matthew
Author URI: https://www.mambamarketing.co.uk/
Template: hello-elementor
Version: 1.0.0
*/

/* header icons hover */
.header-ico path {
  transition: fill 0.2s ease;
}

.header-ico:hover path {
  fill: #ce473e;
}

/* why card hover */
.why-card:hover .why-card-title .elementor-heading-title {
  color: #ce473e !important; /* change to your desired color */
  transition: color 0.3s ease;
}

.bounding-box {
  width: 85% !important; /* Adjust width as needed */
}

/* prod section */
/* Card */
.prod-card {
  transition: transform 0.3s ease;
}

/* Image */
.prod-card-img {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.06);
}

.prod-card-img img {
  width: 100%;
  display: block;
  border-radius: 5px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Overlay */
.prod-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

/* Title */
.prod-card-title .elementor-heading-title {
  transition: color 0.25s ease;
}

/* Hover effects (desktop only) */
@media (hover: hover) {
  .prod-card:hover {
    transform: translateY(-6px);
  }

  .prod-card:hover .prod-card-img img {
    transform: scale(1.06);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  }

  .prod-card:hover .prod-card-img::after {
    opacity: 1;
  }

  .prod-card:hover .prod-card-title .elementor-heading-title {
    color: #ce473e;
  }
}

/* Remove underline from sale price */
.prod-card ins {
  text-decoration: none;
}

/* Sale price color */
.prod-card ins .woocommerce-Price-amount {
  color: #ce473e;
  font-weight: 600;
}

/* Optional: soften regular (old) price */
.prod-card del .woocommerce-Price-amount {
  color: #999;
}

/* top collections card */
/* Parent setup */
.tp-collection-parent-cont {
  position: relative;
  overflow: hidden;
}

/* Normal card – visible by default */
.tp-collection-normal-cont {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Hover card – hidden by default */
.tp-collection-hower-cont {
  opacity: 0;
  visibility: hidden;

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center; /* vertical centre */
  justify-content: center; /* horizontal centre */

  transition: opacity 0.3s ease;
}

/* On hover: swap visibility */
.tp-collection-parent-cont:hover .tp-collection-normal-cont {
  opacity: 0;
}

.tp-collection-parent-cont:hover .tp-collection-hower-cont {
  opacity: 1;
  visibility: visible;
}

/* product section */
/*product images*/
.woocommerce div.product div.images {
  margin-bottom: 0;
}
/* Shared typography */
.wapf-field-label,
th.label {
  color: #979797;
  font-family: "Sora", sans-serif;
  font-size: 1em;
}

.wapf-input:hover,
.variations select:hover {
  color: #ce473e;
}

.wcboost-variation-swatches__item:hover,
.wcboost-variation-swatches__item:active,
.wcboost-variation-swatches__item.selected {
  color: white;
  background-color: #ce473e !important;
  border-color: #ce473e !important;
  font-weight: 800;
}
.wcboost-variation-swatches__wrapper {
  width: 100%;
}

/* Field container */
.wapf-field-container {
  display: flex;
  width: 100%;
  align-items: flex-start;
  flex-direction: column;
}

/* Input wrapper */
.wapf-input-wrapper {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

/* Input */
.wapf-input {
  border: 0;
  background: none;
  font-family: "Sora", sans-serif;
  font-size: 1em;
  padding-left: 0;
  font-weight: 500;
}

/* Variation swatches */
.wcboost-variation-swatches__item {
  padding: 5px 10px;
  font-weight: 500;
  font-size: 0.8em;
  border-radius: 10px !important;
}

/* Variations table */
.variations tr {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.variations th,
th.label {
  text-align: left;
  padding: 0;
}

.variations .value {
  /*padding-bottom: 0;*/
  /*padding-top:0;*/
}

.woocommerce div.product form.cart .variations {
  margin-bottom: 0;
}

.woocommerce div.product form.cart .reset_variations {
  display: none !important;
}

/* Remove zebra striping */
table.variations tbody > tr:nth-child(odd) > * {
  background-color: transparent !important;
}
table.variations tbody tr:hover > td,
table.variations tbody tr:hover > th {
  background-color: transparent !important;
}

/* =========================================
   ADD TO CART BUTTON (BASE)
========================================= */
.elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button {
  /* Layout */
  /*width: 100%;*/
  min-height: 52px;
  padding: 10px 60px !important;

  /* Background */
  background: url("https://stg-dirtyrides-devenv.kinsta.cloud/wp-content/uploads/2026/01/enter-btn.webp")
    center / cover no-repeat !important;

  /* Typography */
  font-size: 0.8em !important;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;

  /* Shape */
  border-radius: 5px !important;
  border: none;

  /* UX */
  cursor: pointer;
  transition:
    background-image 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* =========================================
   HOVER STATE – IMAGE SWAP
========================================= */
.elementor-widget-woocommerce-product-add-to-cart
  .single_add_to_cart_button:hover {
  background-image: url("https://stg-dirtyrides-devenv.kinsta.cloud/wp-content/uploads/2026/01/enter-btn-hov.webp") !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* =========================================
   ACTIVE / PRESS
========================================= */
.elementor-widget-woocommerce-product-add-to-cart
  .single_add_to_cart_button:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/*quantity*/
/* OUTER PILL */
.quantity {
  display: inline-flex;
  align-items: center;
  /*height: 58px;*/
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

/* MINUS / PLUS */
.quantity .qty-btn {
  width: 72px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 1em;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* INPUT */
.quantity .qty {
  /*width: 72px;*/
  /*height: 100%;*/
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1em;
  font-weight: 500;
  pointer-events: none; /* prevents typing */
}

/* DIVIDERS */
.quantity .qty-btn.minus {
  border-right: 1px solid #e5e5e5;
}

.quantity .qty-btn.plus {
  border-left: 1px solid #e5e5e5;
}

/* HOVER */
.quantity .qty-btn:hover {
  background: #ce473e;
  color: white;
}

/* REMOVE DEFAULT NUMBER SPINNERS */
.qty::-webkit-outer-spin-button,
.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty {
  -moz-appearance: textfield;
}

/* Variation price */

.woocommerce-variation-price {
  display: none !important;
}

/*mob and tab*/
@media (max-width: 1024px) {
  .single_add_to_cart_button {
    margin: 10px 0 !important;
    width: 100% !important;
  }

  .quantity {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .wcboost-variation-swatches__wrapper {
    width: 100% !important;
  }

  .wapf-field-label,
  th.label {
    font-size: 1em;
  }
}

/* reviews */
.custom-reviews-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.custom-reviews-summary .label {
  display: block;
  font-size: 0.9em;
  font-weight: 500;
  margin-bottom: 8px;
}

.custom-reviews-summary strong {
  font-size: 2em;
  font-weight: 700;
}

.write-review-btn {
  display: inline-block;
  background: #c55b4a;
  color: #fff !important;
  padding: 5px 25px;
  border-radius: 6px;
  font-size: 0.9em !important;
  font-weight: 500 !important;
}

.write-review-btn:hover {
  background: #222222;
}

.woocommerce-Reviews-title {
  font-weight: 500 !important;
  font-size: 0.9em !important;
}

.comment-text p {
  font-weight: 500;
}

.rating-number {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.woocommerce-review__verified {
  color: #999;
  font-size: 0.9em;
}

.woocommerce-verification-required,
.comment-text {
  font-weight: 500;
  color: #222;
  font-size: 0.9em !important;
}

/* =========================
   Reviews summary – mobile
   ========================= */
@media (max-width: 767px) {
  .custom-reviews-summary {
    grid-template-columns: 1fr; /* stack */
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 22px;
  }

  .custom-reviews-summary .label {
    font-size: 0.9em;
    margin-bottom: 6px;
  }

  .custom-reviews-summary strong {
    font-size: 1.6em; /* smaller than 2em */
  }

  .rating-number {
    font-size: 32px; /* down from 42 */
  }

  .write-review-btn {
    display: block; /* full width CTA */
    width: 100%;
    text-align: center;
    padding: 12px 16px; /* better tap target */
    font-size: 0.8em !important;
  }

  .woocommerce-Reviews-title {
    font-size: 1em !important;
  }

  .woocommerce-review__verified,
  .woocommerce-verification-required,
  .comment-text {
    font-size: 0.95em !important;
    line-height: 1.4;
  }
}

/* Optional: tablet (2 columns) */
@media (min-width: 768px) and (max-width: 1024px) {
  .custom-reviews-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* cart */

.elementor-menu-cart__main {
  margin: 5px; /* Margin for mobile */
}

@media (min-width: 768px) {
  .elementor-menu-cart__main {
    margin: 10px; /* Margin for tablet and desktop */
    width: 50%;
  }
}

.elementor-button--view-cart,
.elementor-button--checkout {
  transition: transform 0.1s ease-in-out;
}

.attachment-woocommerce_thumbnail {
  border-radius: 15px !important;
}

.elementor-menu-cart__subtotal {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.woocommerce-Price-amount {
  display: inline;
}

.elementor-button--view-cart:hover,
.elementor-button--checkout:hover {
  transform: scale(1);
  animation: buzz 0.3s infinite alternate;
}

@keyframes buzz {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.01);
  }
}
/* account dashboard */
.woocommerce-MyAccount-content-wrapper {
  border: 1px solid #e5e5e5 !important;
  padding: 25px !important;
  border-radius: 5px !important;
}
.woocommerce-info {
  border-top-color: #000;
}
.woocommerce-info::before {
  color: #000;
}
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  font-size: 0.85em;
  font-weight: 500;
}
.woocommerce-Button {
  background-color: #ce473e !important;
  color: #fff !important;
  border-radius: 5px !important;
  font-size: 1em !important;
}
a.button.wc-forward {
  background-color: #ce473e !important;
  color: #fff !important;
  border-radius: 5px !important;
  font-size: 1em !important;
}
.u-column1 h2,
.u-column2 h2 {
  text-align: center !important;
}
@media (max-width: 900px) {
  .woocommerce-MyAccount-content-wrapper {
    padding: 15px !important;
  }
  a.button.wc-forward {
    font-size: 0.85em !important;
  }
}
@media (max-width: 767px) {
  .woocommerce-MyAccount-content-wrapper {
    padding: 15px !important;
  }
  a.button.wc-forward {
    font-size: 0.8em !important;
  }
  .woocommerce-error,
  .woocommerce-info,
  .woocommerce-message {
    font-size: 0.65em !important;
  }
  .woocommerce-Button {
    font-size: 0.85em !important;
  }
  .woocommerce-form-login__submit {
    width: 100% !important;
  }
  .woocommerce-form-register__submit {
    width: 100% !important;
  }
  .woocommerce .login {
    padding: 25px 15px 25px 15px !important;
  }
  .woocommerce .register {
    padding: 25px 15px 25px 15px !important;
  }
}

/* filters */
/* =========================
   WPC Filters – cleaned CSS
   ========================= */

/* Widget container */
.widget_wpc_filters_widget {
  overflow: visible;
  background-color: #f0f0f0;
  border-radius: 5px;
  padding: 20px 10px;
}

/* Search field */
.wpc-search-field {
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.8em !important;
}

/* Links */
.wpc-filter-link {
  color: #222222 !important;
  font-size: 0.8em !important;
}

/* Label hover link colour */
/* Label hover link colour (EXCEPT color swatches) */
.wpc-filters-main-wrap
  .wpc-filters-labels
  li.wpc-term-item:not([id^="wpc-term-taxonomy-pa_color-"])
  input
  + label:hover
  a {
  color: #fff;
  font-size: 0.8em !important;
}

/* ONLY for "labels" style filters (e.g. size chips) */
.wpc-filters-main-wrap
  .wpc-filters-labels
  li.wpc-term-selected
  .wpc-filter-link {
  color: #fff !important;
}

/* Optional: hover for labels style filters */
.wpc-filters-main-wrap
  .wpc-filters-labels
  .wpc-label-input
  + label:hover
  .wpc-filter-link {
  color: #fff !important;
}

/* =========================
   Color swatches (pa_color only)
   ========================= */

/* Swatch circle */
.wpc-filters-main-wrap
  li[id^="wpc-term-taxonomy-pa_color-"]
  .wpc-filter-label-wrapper {
  width: 30px;
  height: 30px;
  border-radius: 100% !important;
  border: 2px solid rgba(0, 0, 0, 0.12);
  display: inline-flex;
  padding: 0;
  overflow: hidden;
  background: var(--wpc-swatch, #ccc);
}

/* Hide text but keep clickable */
.wpc-filters-main-wrap li[id^="wpc-term-taxonomy-pa_color-"] .wpc-filter-link {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0 !important;
  line-height: 0;
  color: transparent;
  text-decoration: none;
}

/* Hover ring */
.wpc-filters-main-wrap
  li[id^="wpc-term-taxonomy-pa_color-"]
  label:hover
  .wpc-filter-label-wrapper {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

/* Active (selected) ring */
.wpc-filters-main-wrap
  li[id^="wpc-term-taxonomy-pa_color-"].wpc-term-selected
  .wpc-filter-label-wrapper {
  outline: 2px solid #ce473e;
  outline-offset: 2px;
}

/* Keep swatch color on hover (don’t turn red) */
.wpc-filters-main-wrap
  li[id^="wpc-term-taxonomy-pa_color-"]
  .wpc-label-input
  + label:hover
  .wpc-filter-label-wrapper {
  background: var(--wpc-swatch, #ccc) !important;
  color: inherit !important;
}

/* ONLY color swatches: make label border transparent */
.wpc-filters-main-wrap
  .wpc-filters-labels
  li[id^="wpc-term-taxonomy-pa_color-"].wpc-term-item
  label {
  border-color: transparent !important;
}

/* =========================
   Price range slider
   ========================= */
.wpc-filters-range-inputs .ui-slider-horizontal .ui-slider-handle {
  border-radius: 10px !important;
  width: 30px !important;
  background-color: #ce473e !important;
}

.wpc-open-close-filters-button {
  border-radius: 10px !important;
  background: #ce473e !important;
  color: whitesmoke !important;
  font-size: 0.7em !important;
  border: none !important;
}

/* =========================
   Tablet tweaks
   ========================= */
/* Tablet + mobile: default = transparent */
/* Tablet + mobile: default = transparent */
@media (max-width: 1024px) {
  .widget.widget_wpc_filters_widget {
    background: transparent !important;
    padding-bottom: 0;
    padding-top: 0;
  }

  /* When OPEN (content visible) = grey */
  .widget.widget_wpc_filters_widget:has(
      .wpc-filters-widget-content[style*="display: block"]
    ) {
    background: #f0f0f0 !important;
    padding-top: 10px;
  }

  /* Fallback: plugin adds this class when open */
  .widget.widget_wpc_filters_widget:has(
      .wpc-filters-widget-content.wpc-opened
    ) {
    background: #f0f0f0 !important;
    padding-top: 10px;
  }
}

/* Make the chips/reset row visible */
.wpc-filters-widget-top-container {
  display: block !important;
  background: transparent !important;
}

/* Mobile safety */
@media (hover: none) {
  .prod-card-img::after {
    display: none;
  }
}

/* Mobile Changes */
@media (max-width: 767px) {
  .bounding-box {
    width: 95% !important;
  }
}

/* Tablet Changes */
@media (max-width: 1024px) and (min-width: 768px) {
  .bounding-box {
    width: 95% !important;
  }
}
