/*
 Theme Name: Groser Child
 Template: groser
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #3ab54a;
  --green-light: #f0fbf2;
  --gold: #f5a623;
  --radius: 16px;
}

/* ═══ GRID ═══ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1380px;
  margin: 0 auto;
}

/* ═══ CARD ═══ */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: visible;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13);
}
.card.selected {
  outline: 2.5px solid var(--green);
  box-shadow: 0 0 0 5px rgba(58, 181, 74, 0.13);
}

.card.eco-product-card {
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  position: relative;
  list-style: none;
  overflow: hidden;
}
.card.eco-product-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card__img-wrap {
  position: relative;
  background: #fafaf8;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
}

/* Product card: ảnh full width, không co theo kích thước thumbnail gốc */
.card.eco-product-card .card__img-wrap {
  width: 100%;
  display: block;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.card.eco-product-card .card__img-wrap > a {
  display: block;
  width: 100%;
  line-height: 0;
}

.card.eco-product-card .nut-img {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  text-align: initial;
}

.card.eco-product-card .nut-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.card.eco-product-card:hover .nut-img {
  transform: none;
}

.card.eco-product-card:hover .nut-img img {
  transform: scale(1.08);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nut-img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  text-align: center;
}
.card:hover .nut-img {
  transform: scale(1.08);
}
.woocommerce ul.products li.product a img {
  margin: 0;
}

.woocommerce ul.products li.product.eco-product-card a img {
  width: 100%;
  max-width: 100%;
}

.card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;
  font-size: 14px;
  position: relative;
}
.icon-btn:hover {
  transform: scale(1.1);
  color: var(--green, #3ab54a);
  border-color: var(--green, #3ab54a);
}
.icon-compare.active {
  background: var(--green, #3ab54a);
  border-color: var(--green, #3ab54a);
  color: #fff;
}

.icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  right: 45px;
  background: #222;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}
.icon-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.card__body {
  padding: 15px 15px 0px 15px;
  position: relative;
  background: #fff;
  z-index: 2;
  background-color: #f9f9f9;
}

.card__content-push {
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card__name {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 8px;
  min-height: 44px;
}

.card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}
.card__rating .star-rating {
  font-size: 13px;
}
.review-count {
  font-size: 13px;
  color: #888;
}

.card__price {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 10px;
}

.card__sizes {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.size-btn {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #eee;
  background: #fafafa;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.size-btn:hover,
.size-btn.active {
  background: var(--green, #3ab54a);
  color: #fff;
  border-color: var(--green, #3ab54a);
}

/* Nút Add to Cart */
.card__atc-wrap {
  position: absolute;
  bottom: -40px;
  left: 15px;
  right: 15px;
  display: none;
}

.card__atc-wrap .button {
  width: 100%;
  text-align: center;
  border-radius: 5px !important;
  padding: 10px !important;
  background: var(--green, #3ab54a) !important;
  color: #fff !important;
  margin: 0 !important;
  transition: background 0.3s ease;
}

.card__atc-wrap .button .icon {
  color: #fff;
}

.card__atc-wrap .button:hover {
  background: #2b8c38 !important;
}

.card:hover .card__atc-wrap {
  display: flex;
  height: 39px;
  line-height: 10px;
}
.card:hover .card__body {
  transform: translateY(-60px);
}

#modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#modalOverlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 65vh !important;
  border-radius: 16px;
  position: relative;
  padding: 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
#modalOverlay.open .modal {
  transform: scale(1);
}

.modal__header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf8;
}
.modal__header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.modal__close-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.modal__close-icon:hover {
  background: #e44;
  color: #fff;
  border-color: #e44;
  transform: rotate(90deg);
}

.modal__body {
  padding: 25px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th,
.compare-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.compare-table th {
  background: #f9f9f9;
  font-weight: 700;
}
.compare-table .row-label {
  text-align: left;
  font-weight: 600;
  color: #444;
  background: #fdfdfd;
  width: 140px;
}
.compare-table tr:hover td {
  background: #f4fbf5;
}

.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.compare-bar.visible {
  transform: translateY(0);
}
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.compare-bar.visible {
  transform: translateY(0);
}

.bar__slots {
  display: flex;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
}
.bar__slot {
  min-width: 130px;
  flex-shrink: 0;
  border: 1.5px dashed #ccc;
  border-radius: 8px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #bbb;
  position: relative;
  background: #fafafa;
  transition: border-color 0.2s;
}
.bar__slot.filled {
  border-style: solid;
  border-color: var(--green, #3ab54a);
  background: #f4fbf5;
  color: #111;
  font-weight: 600;
  padding: 5px 25px 5px 10px;
  text-align: left;
  line-height: 1.3;
}
.bar__slot .slot-remove {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  font-size: 14px;
  color: #999;
  cursor: pointer;
}
.bar__slot .slot-remove:hover {
  color: #e44;
}
.bar__icons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.bar__count {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}
.bar__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: #666;
  transition: all 0.2s ease;
}
.bar__icon:hover {
  transform: scale(1.08);
}
.bar__icon.do-compare {
  background: var(--green, #3ab54a);
  border-color: var(--green, #3ab54a);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.bar__icon.do-compare:hover {
  background: #2b8c38;
}
.bar__icon.do-compare.disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  transform: none;
}
.bar__icon.do-clear:hover {
  color: #e44;
  border-color: #e44;
  background: #fff0f0;
}

#modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: none; /* Mặc định ẩn */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* Thêm class .open bằng JS để hiển thị Popup */
#modalOverlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
#modalOverlay.open .modal {
  transform: scale(1);
}

.modal__header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf8;
  flex-shrink: 0;
}
.modal__header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #111;
}
.modal__close-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
}
.modal__close-icon:hover {
  background: #e44;
  color: #fff;
  border-color: #e44;
  transform: rotate(90deg);
}

.modal__body {
  padding: 0;
  overflow-y: auto;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; 
}
.compare-table th,
.compare-table td {
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  vertical-align: middle;
  color: #444;
}
.compare-table td:last-child {
  border-right: none;
}
.compare-table th {
  background: #f9f9f9;
  font-weight: 700;
  font-size: 15px;
  color: #111;
}
.compare-table .row-label {
  text-align: left;
  font-weight: 600;
  color: #333;
  background: #fafaf8;
  width: 150px;
}
.compare-table tr:hover td {
  background: #f4fbf5;
}
.compare-table img.product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.tag-best {
  color: white;
  padding: 5px;
  border-radius: 20px;
  background-color: #3ab54a;
}
.icon-wishlist .woosw-btn {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 34px;
  height: 34px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important; 
  color: inherit !important;
  cursor: pointer;
  position: relative;
}

.icon-wishlist .woosw-btn::before {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 14px;
  display: block;
}

.icon-wishlist .woosw-btn.woosw-added::before {
  font-weight: 900;
  color: #3ab54a !important;
}

.icon-wishlist:hover {
  background: #3ab54a !important;
  border-color: #3ab54a !important;
  color: #3ab54a !important;
}

.icon-wishlist .woosw-btn:after {
  display: none !important;
}
.icon-quickview .woosq-btn {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 34px;
  height: 34px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important; 
  color: inherit !important;
  cursor: pointer;
  position: relative;
}

.icon-quickview .woosq-btn::before {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  display: block;
}

.icon-quickview:hover {
  background: #f0f4ff !important;
  border-color: #4a80f5 !important;
  color: #4a80f5 !important;
}
.icon-quickview .woosq-btn:after {
  display: none !important;
}
.purchase-options {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 10px;
}
.option-item {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}
.option-item:last-of-type {
  border-bottom: none;
}
.option-item.active {
  background-color: #fcfcfc;
}

.options-title {
  color: #006a4d;
  font-size: 18px;
  margin-bottom: 10px;
}
.badge-save {
  background: #ffeb3b;
  color: #333;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

.delivery-frequency {
  margin-top: 15px;
  padding-left: 30px;
}
.freq-label {
  font-size: 11px;
  font-weight: bold;
  color: #006a4d;
  margin: 0 0 5px 0;
}
.freq-select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
}
.freq-desc {
  font-size: 12px;
  margin-top: 5px;
  color: #666;
}

.sub-detail-link {
  padding: 10px 0;
  color: #006a4d;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ecolife-contact-wrapper {
  padding-top: 60px;
  margin-bottom: 40px;
  font-family: "Inter", sans-serif;
  clear: both;
  border-top: 1px solid #e0e0e0;
}

.ecolife-consultation-row {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  align-items: stretch;
}

.ecolife-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ecolife-image-col {
  flex: 1;
}

.ecolife-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.eco-heading {
  color: #219653;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.eco-subheading {
  font-size: 13px;
  color: #333;
  margin-bottom: 25px;
}

.eco-form-container input[type="text"],
.eco-form-container input[type="email"],
.eco-form-container input[type="tel"],
.eco-form-container textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}

.eco-form-container input[type="submit"] {
  background-color: #27ae60 !important;
  color: #fff !important;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
  transition: background 0.3s ease;
}

.eco-form-container input[type="submit"]:hover {
  background-color: #219653 !important;
}

.eco-form-container .form-row {
  display: flex;
  gap: 15px;
}
.eco-form-container .form-row > * {
  flex: 1;
}

.ecolife-contact-info-box {
  padding: 35px 40px;
  border-radius: 4px;
  padding-top: 80px;
  border-top: 1px solid #e0e0e0;
}

.eco-contact-header {
  background-color: #f6f6f6;
  padding: 20px 20px;
  margin: -35px -40px 30px -40px;
  border-radius: 4px 4px 0 0;
}

.eco-heading-border {
  color: #219653;
  font-size: 20px;
  font-weight: 800;
  border-left: 4px solid #219653;
  padding-left: 15px;
  margin: 0;
  text-transform: uppercase;
}

.eco-info-content {
  margin: 0px -40px 0px -40px;
  padding: 20px 40px;
  background-color: #f6f6f6;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.eco-strong-title {
  font-weight: 800;
  margin-top: 25px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 13px;
}

.eco-commitment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.eco-commitment-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.eco-commitment-list li::before {
  content: "•";
  color: #219653;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 16px;
}

.eco-contact-details p {
  margin-bottom: 10px;
}

.eco-contact-details i {
  width: 20px;
  text-align: center;
  color: #555;
  margin-right: 5px;
}
@media (max-width: 768px) {
  .ecolife-consultation-row {
    flex-direction: column;
  }
  .eco-form-container .form-row {
    flex-direction: column;
    gap: 0;
  }
  .ecolife-contact-info-box {
    padding: 25px 20px;
  }
  .eco-contact-header {
    margin: -25px -20px 20px -20px;
  }
}

.eco-cat-desc-bottom {
  margin-top: 50px;

  padding-top: 35px;
  padding-bottom: 35px;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}
.eco-cat-desc-bottom .eco-cat-title {
  color: var(--green, #3ab54a);
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.3;
}
.eco-cat-desc-bottom p {
  color: #444;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 0;
}

.eco-cat-desc-bottom strong {
  font-weight: 700;
  color: #111;
}

/* Product gallery zoom + nav — assets/css/product-gallery.css */

@media (max-width: 768px) {
  .eco-cat-desc-bottom {
    margin-top: 30px;
    padding-top: 25px;
  }
  .eco-cat-desc-bottom .eco-cat-title {
    font-size: 20px;
  }
  .eco-cat-desc-bottom p {
    font-size: 14px;
  }
}

    .sub-page-wrapper {
  padding: 40px 0;
}

.sub-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.sub-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  border-left: 4px solid #3ab54a;
  padding-left: 15px;
  margin-top: 50px;
}

#subMainTable {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
}

#subMainTable th {
  background: #89c08d;
  color: #fff;
  padding: 15px;
  text-align: left;
  font-size: 18px;
}

#subMainTable td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
  font-size: 16px;
}

#grandTotalDisplay {
  background: #ffff00;
  color: #e44;
  font-weight: 800;
  font-size: 22px;
  text-align: center;
}

.sub-purchase-box {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #eee;
}

.badge-save {
  background: #ffff00;
  color: #000;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 11px;
}

.btn-final-subscription {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 30px;
  font-weight: 700;
  margin-top: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-final-subscription:hover {
  background: #3ab54a;
}

.sub-sidebar .sidebar-box {
  position: sticky;
  top: 20px;
}

.sub-sidebar h3 {
  font-size: 16px;
  border-bottom: 2px solid #ffff00;
  display: inline-block;
  margin-bottom: 15px;
}
/* --- TABLE STYLING --- */
#subMainTable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#subMainTable th {
  background: #89c08d;
  color: #fff;
  padding: 18px;
  font-size: 16px;
  text-transform: uppercase;
}

#subMainTable td {
  padding: 15px 18px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.total-highlight {
  background: #ffff00 !important;
  color: #e44 !important;
  font-weight: 800;
  font-size: 22px;
  text-align: center;
}

/* --- QTY CONTROL --- */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: fit-content;
  background: #f9f9f9;
}

.qty-control button {
  border: none;
  background: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: bold;
  line-height: 20px;
}

.qty-control input {
  width: 40px;
  border: none;
  font-size: 16px !important;
  background: transparent;
  text-align: center;
  font-weight: 700;
  color: #333 !important;
  padding: 0;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
}

/* --- BUTTONS & BADGES --- */
.btn-remove {
  background: #fff0f0;
  color: #e44;
  border: 1px solid #ffdada;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-remove:hover {
  background: #e44;
  color: #fff;
}

.badge-weight {
  background: #f0f4f0;
  color: #2d8f3a;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #d4ead6;
}

.line-price {
  font-weight: 700;
  color: #333;
}
/* --- STYLE SIDEBAR SUBSCRIPTION --- */
.sub-sidebar {
  padding-left: 20px;
}

.sub-sidebar .sidebar-box {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #eee;
}

.sidebar-title,
.sub-sidebar .widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.sidebar-title::after,
.sub-sidebar .widget-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffff00;
}

.sub-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}

.sub-sidebar ul li a {
  color: #555;
  text-decoration: none;
  transition: 0.2s;
}

.sub-sidebar ul li a:hover {
  color: #3ab54a;
  padding-left: 5px;
}

.price-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.price-input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
}
.btn-filter-price {
  width: 100%;
  background: #3ab54a;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-filter-price:hover {
  background: #2d8f3a;
}

.eco-newsletter-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-image: url(http://localhost/wordpress/wp-content/uploads/2023/01/subscribe.jpg);
  background-position: center center;
  background-size: cover;
  margin-top: 50px;
}

.eco-news-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.3;
}

.eco-news-desc {
  font-size: 14px;
  color: #666;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.eco-news-form-wrapper {
  max-width: 550px;
  margin: 0 auto;
  position: relative;
}
.eco-news-form-wrapper form {
  width: 100%;
  margin: 0;
  position: relative;
}

.eco-news-form-wrapper input[type="email"],
.eco-news-form-wrapper input[type="text"] {
  width: 100%;
  height: 60px;
  padding: 0 160px 0 25px;
  border: 1px solid #94d0a0;
  border-radius: 50px;
  font-size: 15px;
  color: #333;
  outline: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.eco-news-form-wrapper input[type="email"]::placeholder {
  color: #aaa;
}

.eco-news-form-wrapper input[type="submit"],
.eco-news-form-wrapper button {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 50px;
  padding: 0 35px;
  background-color: #2ea33d;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.eco-news-form-wrapper input[type="submit"]:hover,
.eco-news-form-wrapper button:hover {
  background-color: #23802e;
  box-shadow: 0 4px 10px rgba(46, 163, 61, 0.3);
}

.eco-news-form-wrapper label {
  display: block;
  width: 100%;
  margin: 0;
}


.sub-info-tabs-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.sub-tabs-wrapper {
  background-color: #f7f7f7;
  padding: 40px 50px;
  border-radius: 4px;
}


.sub-tabs-nav {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #e5e5e5;
}


.sub-tabs-nav li {
  font-size: 18px;
  font-weight: 600;
  color: #b5b5b5;
  cursor: pointer;
  padding-bottom: 15px;
  position: relative;
  transition: color 0.3s ease;
}

.sub-tabs-nav li:hover {
  color: #666;
}


.sub-tabs-nav li.active {
  color: #111;
}

.sub-tabs-nav li.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #a6ce39;
}

.sub-tab-pane {
  display: none;
  padding-top: 30px;
  animation: fadeInTab 0.4s ease-in-out;
}

.sub-tab-pane.active {
  display: block;
}

.sub-tab-pane p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================== */
/* CUSTOM BLOG CATEGORY ARCHIVE               */
/* ========================================== */

.category-header .category-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}
.category-description {
  font-size: 15px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.groser-custom-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.custom-cat-post-box {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
  transition: all 0.3s ease;
}
.custom-cat-post-box:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}


.post-box-link-group {
  display: block;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}

.custom-cat-post-box .post-thumb {
  margin: 0;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.custom-cat-post-box .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.custom-cat-post-box:hover .post-thumb img {
  transform: scale(1.05);
}


.post-content-wrap {
  padding: 20px;
}
.post-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.post-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #222;
  line-height: 1.4;
  transition: color 0.3s;
}
.custom-cat-post-box:hover .post-title {
  color: #8bb83a;
}


.post-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-text {
  font-size: 13px;
  font-weight: 700;
  color: #8bb83a;
  text-transform: uppercase;
}
.read-more-text i {
  margin-left: 5px;
  transition: 0.3s;
}
.custom-cat-post-box:hover .read-more-text i {
  transform: translateX(5px);
}

@media (max-width: 1199px) {
  .groser-custom-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .groser-custom-cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================== */
/* CATEGORY ARCHIVE - GROSER CHILD            */
/* ========================================== */

.category-header {
  margin-bottom: 50px;
}
.category-title {
  font-size: 36px;
  font-weight: bold;
  color: #222;
  margin-bottom: 15px;
  text-transform: capitalize;
}
.category-description {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}


.groser-custom-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}


.custom-cat-post-box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}
.custom-cat-post-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-box-link-group {
  display: block;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}

.custom-cat-post-box .post-thumb {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.custom-cat-post-box .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.custom-cat-post-box:hover .post-thumb img {
  transform: scale(1.05);
}

.post-content-wrap {
  padding: 25px;
}
.post-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}
.post-date i {
  margin-right: 5px;
  color: #8bb83a;
}

.post-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #111;
  line-height: 1.4;
  transition: color 0.3s;
}
.custom-cat-post-box:hover .post-title {
  color: #8bb83a;
}

.post-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-text {
  font-size: 14px;
  font-weight: 600;
  color: #8bb83a;
  display: inline-flex;
  align-items: center;
}
.read-more-text i {
  margin-left: 5px;
  font-size: 12px;
  transition: transform 0.3s;
}
.custom-cat-post-box:hover .read-more-text i {
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .groser-custom-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .groser-custom-cat-grid {
    grid-template-columns: 1fr;
  }
}

#gr-footer,
#gr-footer p,
#gr-footer span,
#gr-footer .textwidget,
#gr-footer .company-info-widget {
  color: #e2e8f0 !important;
}


#gr-footer .gr-widget-title,
#gr-footer h1,
#gr-footer h2,
#gr-footer h3,
#gr-footer h4 {
  color: #ffffff !important;
}

#gr-footer a {
  color: #cccccc !important;
  transition: all 0.3s ease;
}

#gr-footer a:hover {
  color: #8bb83a !important;
  text-decoration: none;
  padding-left: 5px; 
}

#gr-footer .footer-social ul li a i {
  color: #ffffff !important;
}
#gr-footer .footer-social ul li a:hover i {
  color: #8bb83a !important;
}

.gr-footer-copyright {
  border-top: 1px solid #333333 !important; 
  background-color: transparent !important;
}
.gr-footer-copyright .copyright-text,
.gr-footer-copyright .copyright-payment b {
  color: #cccccc !important;
}

.gr-footer-sponsor {
  border-top: 1px solid #333333 !important;
  border-bottom: 1px solid #333333 !important;
}

/* CF7 subscribe — xem assets/css/cf7-subscribe.css */
.custom-subscribe-form {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.woocommerce-account #customer_login .u-column2 {
  display: none;
}

.woocommerce-account #customer_login {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.woocommerce-account #customer_login .u-column1 {
  width: 100%;
  max-width: 500px;
  flex: 0 0 100%;
  margin: 0 auto;
  float: none;
}

.eco-custom-register-page {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.eco-custom-register {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.eco-radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.eco-radio-label {
  font-weight: 600;
  margin: 0;
}

.eco-radio-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.eco-form-row-2-cols {
  display: flex;
  gap: 20px;
}

.eco-form-row-2-cols .form-row {
  flex: 1 1 calc(50% - 10px);
  margin-bottom: 15px;
}

.eco-form-row-2-cols input,
.eco-form-row-2-cols select,
.eco-form-row-2-cols textarea {
  width: 100%;
  box-sizing: border-box;
}

.eco-btn-full {
  width: 100%;
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.woocommerce form .form-row {
  padding: 0;
}

@media (max-width: 768px) {
  .eco-radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .eco-form-row-2-cols {
    flex-direction: column;
    gap: 0;
  }

  .eco-form-row-2-cols .form-row {
    flex: 1 1 100%;
  }
}

.eco-login-to-register {
  margin-top: 35px !important;
  padding-top: 30px !important;
  border-top: 1px solid #eaeaea !important;
  text-align: center !important;
  width: 100% !important;
}

.eco-login-to-register p {
  font-size: 15px !important;
  color: #666666 !important;
  margin-bottom: 20px !important;
  font-weight: 500 !important;
}

.eco-login-to-register .eco-btn-outline {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  background-color: #ffffff !important;
  color: #328c2a !important;
  border: 2px solid #328c2a !important;
  padding: 14px 30px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  height: auto !important;
}

.eco-login-to-register .eco-btn-outline:hover {
  background-color: #328c2a !important;
  color: #ffffff !important;
  border-color: #328c2a !important;
  box-shadow: 0 5px 15px rgba(50, 140, 42, 0.2) !important;
}


.eco-shop-banner {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px 0 30px 0 !important;
  margin-bottom: 20px;
}

.eco-shop-banner-bottom {
  margin-top: 50px;
  padding-top: 30px !important;
  border-top: 1px solid #eaeaea !important;
}

.eco-shop-banner,
.eco-shop-banner * {
  font-family: var(--font-primary, "Open Sans", sans-serif) !important;
}

.eco-shop-banner h1,
.eco-shop-banner h2,
.eco-shop-banner h3 {
  color: #27a844 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-bottom: 15px !important;
  margin-top: 0 !important;
  letter-spacing: -0.5px;
}

.eco-shop-banner p {
  color: #444444 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 15px !important;
}

.eco-shop-banner p strong,
.eco-shop-banner p b {
  color: #111111 !important;
  font-weight: 700 !important;
}

.eco-shop-banner ul {
  list-style-type: disc !important;
  padding-left: 20px !important;
  margin-bottom: 15px !important;
}

.eco-shop-banner ol {
  list-style-type: decimal !important;
  padding-left: 20px !important;
  margin-bottom: 15px !important;
}

.eco-shop-banner ul li,
.eco-shop-banner ol li {
  color: #444444 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 8px !important;
}

.eco-shop-banner ul li strong,
.eco-shop-banner ul li b,
.eco-shop-banner ol li strong,
.eco-shop-banner ol li b {
  color: #111111 !important;
  font-weight: 700 !important;
}

.eco-footer-logo {
  margin-bottom: 25px;
  display: block;
}
.eco-footer-logo img {
  max-width: 220px;
  height: auto;
}
.ecolife-main-footer {
  background-color: var(--base-color);
  color: #ffffff !important;
  padding-top: 70px;
  font-family: var(--font-body, "League Spartan"), sans-serif;
  position: relative;
}

.eco-footer-top-grid {
  display: grid;
  grid-template-columns: 3.5fr 6fr 2.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.eco-logo-text {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
}
.eco-company-details p,
.eco-company-details span {
  color: #ffffff !important;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.eco-company-details strong,
.eco-company-details b {
  color: #ffffff !important;
  font-weight: 700;
}
.eco-social-links {
  display: flex;
  gap: 15px;
}
.eco-social-links a {
  color: #ffffff;
  font-size: 25px;
  transition: 0.3s;
}
.eco-social-links a:hover {
  opacity: 0.7;
}

.eco-col-menus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.eco-col-menus h1,
.eco-col-menus h2,
.eco-col-menus h3,
.eco-col-menus h4,
.eco-col-menus h5,
.eco-col-menus h6,
.eco-col-menus .widget-title,
.eco-col-menus .widget_title {
  color: #ffffff !important;
  display: none !important;
}
.eco-col-menus .widget {
  margin: 0 !important;
  padding: 0 !important;
}
.eco-col-menus ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.eco-col-menus ul li {
  margin-bottom: 18px;
}
.eco-col-menus ul li a {
  color: #ffffff !important;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}
.eco-col-menus ul li a:hover {
  opacity: 0.7;
}

.eco-col-map iframe {
  width: 100% !important;
  height: 250px !important;
  border-radius: 8px;
  border: none;
}

.ecolife-footer-bottom {
  background-color: #1a6f30;
  padding: 15px 0;
  font-size: 15px;
}
.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.eco-payment img {
  height: 32px;
  object-fit: contain;
}
.eco-back-to-top {
  position: absolute;
  right: 0;
  top: -50px;
  color: #ffffff !important;
  font-size: 22px;
  transition: 0.3s;
}
.eco-back-to-top:hover {
  transform: translateY(-5px);
  color: #fff !important;
}
.eco-company-details p {
  margin-bottom: 10px !important;
  line-height: 1.8 !important;
}
.eco-company-details,
.eco-company-details * {
  color: #ffffff !important;
}
@media (max-width: 1024px) {
  .eco-footer-top-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .eco-col-menus {
    grid-template-columns: repeat(3, 1fr);
  }
  .eco-col-map iframe {
    max-width: 400px;
  }
}
@media (max-width: 768px) {
  .eco-col-menus {
    grid-template-columns: 1fr;
  }
  .bottom-flex {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .eco-back-to-top {
    display: none;
  }
}

.eco-blog-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  font-family: var(--font-body, "League Spartan"), sans-serif;
}

.eco-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.eco-blog-thumb {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.eco-blog-thumb a {
  display: block;
  height: 100%;
}

.eco-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-blog-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #2da14d;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.eco-blog-date .date-day {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.eco-blog-date .date-month {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.eco-blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.eco-blog-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #666666;
  margin-bottom: 12px;
}

.eco-blog-meta .meta-item i {
  color: #2da14d;
  margin-right: 5px;
}

.eco-blog-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.eco-blog-title a {
  color: #222222;
  text-decoration: none;
  transition: color 0.3s;
}

.eco-blog-title a:hover {
  color: #2da14d;
}

.eco-blog-excerpt {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.eco-blog-readmore a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #2da14d;
  text-decoration: none;
  transition: opacity 0.3s;
}

.eco-blog-readmore a:hover {
  opacity: 0.7;
}
p,
li,

form.eco-custom-register .eco-form-row-2-cols {
   
    margin-bottom: 20px;
}

form.eco-custom-register .eco-form-row-2-cols .woocommerce-form-row {
    flex: 1 1 calc(50% - 10px); 
    margin-bottom: 0 !important;
    width: 100%;
    float: none !important;
}

form.eco-custom-register .woocommerce-form-row input.input-text {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    form.eco-custom-register .eco-form-row-2-cols {
        flex-direction: column;
        gap: 15px;
    }
    form.eco-custom-register .eco-form-row-2-cols .woocommerce-form-row {
        flex: 1 1 100%;
    }
}
/* Đảm bảo thẻ cha bao ngoài có thuộc tính relative để định vị nhãn */
.eco-product-card {
    position: relative;
}

.card.eco-product-card .nut-img__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    font-size: 72px;
    background: #fafaf8;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .card.eco-product-card .nut-img,
    .card.eco-product-card .nut-img__placeholder {
        height: 240px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .card.eco-product-card .nut-img,
    .card.eco-product-card .nut-img__placeholder {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .card.eco-product-card .nut-img,
    .card.eco-product-card .nut-img__placeholder {
        height: 260px;
    }
}

/* Kiểu dáng cho Badge giảm giá */
.custom-discount-badge {
    position: absolute;
    top: 15px;      /* Căn cách lề trên */
    left: -6px;     /* Kéo lùi nhãn ra ngoài thẻ để tạo hiệu ứng 3D */
    background-color: #d70018; /* Màu đỏ của CellphoneS/TGDD */
    color: #ffffff;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px 4px 4px 0; /* Bo tròn các góc, trừ góc dưới bên trái */
    z-index: 5;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}

/* Tạo nếp gấp tam giác (Hiệu ứng 3D ribbon) */
.custom-discount-badge::after {
    content: "";
    position: absolute;
    bottom: -6px; /* Bằng với kích thước độ rộng của tam giác */
    left: 0;
    border-width: 6px 6px 0 0;
    border-style: solid;
    border-color: #90000a transparent transparent transparent; /* Màu đỏ sẫm hơn để làm bóng đổ */
}

/* Chỉnh giá của WooCommerce để giá khuyến mãi to, giá gốc gạch ngang */
.eco-product-card .card__price del {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}
.eco-product-card .card__price ins {
    color: #d70018;
    font-weight: 700;
    text-decoration: none;
}

/* Ẩn mũi tên mặc định trên Chrome/Safari/Edge */
.custom-qty-wrap input.product-count::-webkit-outer-spin-button,
.custom-qty-wrap input.product-count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Đoạn code này thường dùng để ẩn tăng giảm mặc định */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.shop-single-section .product-details .price {
  font-size: 28px;
}

/* --- STYLE CHO HUY HIỆU GIẢM GIÁ (BADGE) --- */
.cps-badge {
    display: inline-block;
    background-color: #d70018; /* Màu đỏ chuẩn CellphoneS */
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
}

/* --- STYLE CHO KHỐI GIÁ TIỀN --- */
.cps-price-wrap .price {
    display: flex !important;
    align-items: baseline !important; /* Canh chân chữ cho đều */
    flex-wrap: wrap;
    gap: 12px; /* Khoảng cách giữa 2 mức giá */
    margin: 5px 0 15px 0;
}

/* Giá đang bán (Màu đỏ, to, đậm) */
.cps-price-wrap .price ins,
.cps-price-wrap .price > .amount,
.cps-price-wrap .price > span {
    color: #d70018 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Xóa gạch chân mặc định của WooCommerce ở thẻ ins */
.cps-price-wrap .price ins {
    text-decoration: none !important;
}

/* Giá gốc (Màu xám, nhỏ hơn, gạch ngang) */
.cps-price-wrap .price del,
.cps-price-wrap .price del .amount {
    color: #999 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

/* Định dạng chữ (VAT INCLUDED) cho bớt rối mắt */
.cps-price-wrap .woocommerce-price-suffix {
    font-size: 13px;
    color: #666;
    margin-left: 5px;
    font-weight: 400;
}

@media (min-width: 1200px) {
    .col-xl-9 {
        flex: 0 0 auto;
       width: 100%;
    }
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
  position: relative;
}

.vg-review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 8px;
  flex-direction: column;
}