/* ==========================================================================
   BUTTONS CSS - Button Styles và Interactions
   ========================================================================== */

/* Primary Button */
.button-primary {
  display: flex;
  padding: var(--space-spacer-1-rem, 16px) var(--Space-5, 20px);
  justify-content: center;
  align-items: center;
  gap: var(--spacers-1-5, 6px);
  flex: 1 0 0;
  border: none;
}

/* Action Buttons (Cart & Buy Now) */
.action-buttons {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--Space-2-5, 10px);
  align-self: stretch;
}

.action-buttons .to-cart,
.action-buttons .buy-now {
  display: flex;
  padding: var(--space-spacer-1-rem, 16px) var(--Space-5, 20px);
  justify-content: center;
  align-items: center;
  gap: var(--spacers-1-5, 6px);
  flex: 1 0 0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-buttons .to-cart:hover {
  background: var(--Background-Global-Secondary, #e8ddd0) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(82, 15, 9, 0.15);
}

.action-buttons .buy-now:hover {
  background: var(--Background-Brand-Primary-Hover, #63160f) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(82, 15, 9, 0.3);
}

/* Product Meta Buttons */
.highlight-products-wrapper
  .grid-container
  .grid-item
  .product
  .present
  .meta
  .button {
  display: flex;
  padding: var(--Space-1-5, 6px);
  justify-content: center;
  align-items: center;
  gap: var(--Space-0-5, 2px);
  align-self: stretch;
  border-radius: var(--Radius-sm, 4px);
  background: var(--Background-Brand-Secondary-Hover, #c1a559);
  color: var(--On-background-Brand-Secondary, #523e00);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: "Plus Jakarta Sans";
  font-size: var(--Body-Size-Small, 14px);
  font-style: normal;
  font-weight: var(--Body-Font-Weight-Strong, 600);
  line-height: 140%;
}

/* Quantity Buttons */
.form-buy .quantity-button {
  font-size: 25px;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  border: none;
  background: none;
}

/* Product Meta Other Buttons */
.products-section .grid-item .product .meta button {
  background: #fff;
  color: #000;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Highlight Collection Button */
.highlight-collection .meta a {
  display: flex;
  padding: var(--spacers-3, 12px) var(--space-spacer-1-rem, 16px);
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  gap: 6px;
  color: var(--On-background-Brand-Default, #231f20);
  text-align: center;
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Body-Size-Medium, 16px);
  font-style: normal;
  font-weight: var(--Body-Font-Weight-Strong, 600);
  line-height: 140%;
  letter-spacing: -0.64px;
  text-transform: uppercase;
  background: var(--Background-Global-Secondary, #faf5f0);
  text-decoration: none;
}

.highlight-collection .meta a i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
}

.highlight-collection .meta a:hover {
  background: var(
    --Background-Global-Secondary-Alpha,
    rgba(250, 245, 240, 0.5)
  );
}

/* Tablet Responsive Button Styles */
@media (min-width: 576px) and (max-width: 991px) {
  .action-buttons {
    gap: var(--Space-3, 12px);
    flex-direction: column-reverse;
  }

  .action-buttons .to-cart,
  .action-buttons .buy-now {
    flex: 1 0 auto;
    width: 100%;
  }
}

/* Mobile Responsive Button Styles */
@media (max-width: 575px) {
  .action-buttons {
    gap: var(--Space-3, 12px);
    flex-direction: column-reverse;
  }

  .action-buttons .to-cart,
  .action-buttons .buy-now {
    flex: 1 0 auto;
    width: 100%;
  }

  .highlight-collection .meta a {
    background: #520f09;
    color: var(--On-background-Brand-Primary, #fefdf9);
  }

  .highlight-collection .meta a:hover {
    background: var(--Background-Brand-Primary-Hover, #63160f);
  }
}

/* Desktop Responsive Button Styles */
@media (min-width: 992px) {
  .highlight-products-wrapper
    .grid-container
    .grid-item
    .product
    .present
    .meta
    .button {
    font-size: var(--Body-Size-Small, 16px);
    line-height: 140%;
  }
}
