.tdg-ymal .tdg-shop-filters {
  display: none !important;
}
.tdg-ymal .tdg-products-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
.tdg-ymal .tdg-products-grid > .tdg-product-item:nth-child(n + 5) {
  display: none;
}
.tdg-shop-wrapper {
  margin: 0 auto;
  position: relative;
}

.tdg-shop-filters {
  margin-bottom: 30px;
  padding: 20px 0;
  border-radius: 8px;
  padding-left: 0;
}

.tdg-filter-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.tdg-filters-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-right: 10px;
}

.tdg-custom-select {
  position: relative;
  min-width: 200px;
  user-select: none;
}
div#tdg-potency-filter .tdg-select-options {
  min-width: 275px;
}
.tdg-select-option {
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.4em;
  padding: 10px 16px;
}

.tdg-select-option img {
  max-height: 15px;
  display: block;
}
.tdg-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: 55px;
  font-size: 14px;
  font-weight: 500;
  background: #f4f4f4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tdg-select-trigger:hover {
  border-color: #007cba;
}

.tdg-custom-select.open .tdg-select-trigger {
  border-radius: 20px;
  /* border-bottom-left-radius: 0; */
  /* border-bottom-right-radius: 0; */
}

.tdg-select-text {
  color: #333;
  flex: 1;
}

.tdg-select-arrow {
  width: 12px;
  height: 8px;
  transition: transform 0.3s ease;
  color: #666;
}

.tdg-custom-select.open .tdg-select-arrow {
  transform: rotate(180deg);
}

.tdg-select-options {
  position: absolute;
  top: 130%;
  left: 0;
  right: 0;
  background: #f4f4f4;
  border-top: none;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  /* max-height: 200px; */
  overflow-y: auto;
  opacity: 0;
  padding: 10px 0px;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.tdg-custom-select.open .tdg-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tdg-select-option {
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.tdg-select-option:last-child {
  border-bottom: none;
}

.tdg-select-option:hover {
  background: #f8f9fa;
}

.tdg-select-option.selected {
  background: var(--blue-gray);
  color: white;
  font-weight: 600;
}

.tdg-select-option.selected:hover {
  background: #0d1d27;
}

.tdg-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  min-height: 740px;
}

.tdg-product-item {
  background: white;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tdg-product-item:hover {
}

.tdg-product-item.hidden {
  display: none;
}

/* Product Image Container */
.tdg-product-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.tdg-product-image {
  width: 100%;
  height: 100%;
  background: #f4f4f4;
  border-radius: 20px;
  display: block;
  text-decoration: none;
}

.tdg-product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.tdg-product-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  border-radius: 20px;
}

.tdg-product-item:hover .tdg-product-hover-overlay {
  opacity: 1;
}

.tdg-add-to-cart-container {
  width: 100%;
}

.tdg-add-to-cart-btn {
  width: 100%;
  padding: 12px 45px;
  font-size: 16px;
  background: var(--accent-green);
  color: var(--blue-gray);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s ease;
  display: block;
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  justify-content: center;
  min-height: 55px;
  position: absolute;
  bottom: -100px;
  transition: color 0.3s ease, bottom 0.5s ease, background 0.3s linear;
}

.tdg-add-to-cart-btn:hover {
  background: var(--btn-hover-bg) !important;
  color: var(--btn-hover-color) !important;
  text-decoration: none;
}
.tdg-product-item:hover .tdg-add-to-cart-btn {
  bottom: 30px;
}

.tdg-product-info {
  padding: 20px 0;
}

.tdg-product-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  padding-bottom: 5px;
  color: var(--blue-gray);
  line-height: 1.3;
}

.tdg-product-flavor {
  font-size: 20px;
  color: var(--blue-gray);
  margin-bottom: 15px;
  max-width: max-content;
  padding: 0;
  line-height: 1;
  font-family: "Philosopher", Helvetica, Arial, Lucida, sans-serif;
}

.tdg-product-details {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.tdg-product-quantity {
  font-size: 14px;
  color: var(--blue-gray);
  font-weight: 400;
}

.tdg-product-potency {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tdg-potency-icon {
  width: auto;
  height: 18px !important;
}

.tdg-product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-gray);
}

.tdg-product-price .price {
  color: #007cba;
}

.tdg-product-price del {
  color: #999;
  font-weight: 400;
}
.tdg-add-to-cart-btn.success {
}
.tdg-add-to-cart-btn.error {
  background: #dc3545 !important;
}
.tdg-add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
a.added_to_cart.wc-forward {
  width: 100%;

  font-size: 16px;
  color: var(--accent-green);
  text-decoration: underline;
  font-weight: 600;
  text-align: center;
  display: block;
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  bottom: 90px;
  opacity: 0;
  transition: all ease 0.5s;
}
.tdg-product-item:hover a.added_to_cart.wc-forward {
  opacity: 1;
}
.tdg-add-to-cart-container {
  display: flex;
  align-items: center;
  flex-direction: column-reverse;
  gap: 5px;
  width: 100%;
}

.tdg-view-cart-btn {
  padding: 12px 24px;
  font-size: 16px;
  background: var(--blue-gray);
  color: var(--accent-green);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tdg-view-cart-btn:hover {
  background: var(--accent-green);
  color: var(--blue-gray);
}

.tdg-shop-loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.tdg-no-products {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tdg-reset-filters {
  margin-top: 20px;
  padding: 15px 30px;
  background: var(--accent-green);
  color: var(--blue-gray);
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tdg-reset-filters:hover {
  background: var(--blue-gray);
  color: var(--accent-green);
}

span.separator {
  color: #eaeaea;
}

.tdg-add-to-cart-btn svg {
  width: 20px;
  height: auto;
  margin-bottom: 2px;
  transition: all ease 0.3s;
}
.tdg-add-to-cart-btn svg path {
  transition: all ease 0.3s;
}
.tdg-add-to-cart-btn:hover svg path {
  fill: var(--accent-green);
}

.tdg-shop-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tdg-shop-loader.active {
  opacity: 1;
  visibility: visible;
}

.tdg-shop-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--blue-gray);
  border-radius: 50%;
  animation: tdg-spin 1s linear infinite;
}
.et_pb_section.brandsBanner {
  min-height: 630px !important;
  display: none !important;
}

body.filter-brands div#tdg-brand-filter,
body.filter-brands .tdg-filter-item.tdg-filter-brand {
  display: none;
}
body.filter-brands .tdg-shop-filters {
  display: none;
}
body.filter-brands.brand-canny-land .et_pb_section.brandsBanner.brand-cl {
  display: flex !important;
}
body.filter-brands.brand-best-budders .et_pb_section.brandsBanner.brand-bb {
  display: flex !important;
}
body.filter-brands.brand-high4low .et_pb_section.brandsBanner.brand-hl {
  display: flex !important;
}
body.filter-brands.brand-lifted-lollies .et_pb_section.brandsBanner.brand-ll {
  display: flex !important;
}
.tdg-filter-label {
  font-weight: 600;
  padding-left: 0;
  padding-bottom: 5px;
  color: var(--blue-gray);
}
.tdg-product-details {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.tdg-product-details span.tdg-product-quantity,
.tdg-product-details span.tdg-product-potency {
  border: 1px solid #ebebeb;
  padding: 6px 12px;
  min-height: 45px;
  text-transform: uppercase;
  pointer-events: none;
}

.tdg-product-details span.separator {
  display: none;
}
.tdg-button-loader {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: tdg-spin 1s linear infinite;
  display: inline-block;
}
@media (max-width: 980px) {
  .tdg-shop-wrapper {
  }

  .tdg-filter-group {
    /* flex-direction: column; */
    /* gap: 15px; */
    /* align-items: flex-start; */
  }

  .tdg-custom-select {
    width: 100%;
    min-width: 50%;
  }

  .tdg-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tdg-product-info {
    padding: 0;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .tdg-product-title {
    font-size: 20px;
    font-weight: 600;
  }
  .tdg-product-details {
    flex-direction: column-reverse;
    align-items: baseline;
    gap: 10px;
  }
  .tdg-product-price {
    font-size: 18px;
  }

  .tdg-filter-item {
    width: 100%;
  }

  .tdg-product-item .tdg-add-to-cart-btn {
    position: relative;
    bottom: unset;
    /* display: block; */
    min-width: unset;
    padding: 10px 20px;
    width: 100%;
    /* display: block; */
    margin: 0;
    font-size: 14px;
    margin-top: 14px;
    max-width: 100%;
  }

  .tdg-product-image-container {
    overflow: unset;
  }
  .tdg-product-item:hover .tdg-add-to-cart-btn {
    bottom: unset;
  }

  a.tdg-product-hover-overlay {
    display: none;
  }
}

@media (max-width: 480px) {
  .tdg-filter-group {
    flex-direction: column;
    gap: 20px;
  }

  .tdg-product-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 380px) {
  .tdg-products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.tdg-recommendations-section {
  margin-top: 60px;
}

.tdg-recommendations-inline-delimiter.tdg-delimiter-item {
  grid-column: 1 / -1; /* Span all columns */
  text-align: center;
  margin: 40px 0 20px 0;
  position: relative;
  background: none;
  border-radius: 0;
  min-height: auto;
}

.tdg-recommendations-inline-delimiter.tdg-delimiter-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
  z-index: 1;
}

.tdg-delimiter-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.tdg-delimiter-content h3 {
  background: white;
  padding: 0 30px;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-gray);
  display: inline-block;
}

.tdg-recommendation-item {
}

.tdg-recommendation-item:hover {
  opacity: 1;
}

.tdg-recommendations-delimiter {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.tdg-recommendations-delimiter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
  z-index: 1;
}

.tdg-recommendations-delimiter h3 {
  background: white;
  padding: 0 30px;
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  color: var(--blue-gray);
  position: relative;
  z-index: 2;
  display: inline-block;
}

.tdg-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.tdg-products-grid.no-products {
    min-height: 300px;
}

.tdg-no-products-message.tdg-no-products {min-height: 300px;font-size: 18px;}
@media (max-width: 980px) {
  .tdg-ymal .tdg-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .et_pb_section.brandsBanner {
    min-height: 700px !important;
  }
  .tdg-recommendations-section {
    margin-top: 40px;
  }

  .tdg-recommendations-delimiter {
    margin-bottom: 30px;
  }

  .tdg-recommendations-delimiter h3 {
    font-size: 20px;
    padding: 0 20px;
  }

  .tdg-recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tdg-recommendations-inline-delimiter.tdg-delimiter-item {
    margin: 30px 0 15px 0;
  }

  .tdg-delimiter-content h3 {
    font-size: 20px;
    padding: 0 20px;
  }
}

@media (max-width: 380px) {
  .tdg-recommendations-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@keyframes tdg-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
