/* ================================= */
/* Unified Button Styles - ALL PAGES */
/* ================================= */
/* Import Unified Color Palette */
@import url('colors.css');

/* ================================= */
/* Base Button Styles - UNIFIED      */
/* ================================= */
.btn,
button,
input[type="submit"],
input[type="button"],
.gradient-btn,
.btn-custom,
.btn-primary,
.btn-buy,
.btn-success,
.btn-secondary,
.btn-danger,
.btn-outline-secondary,
.btn-outline-primary,
.btn-warning,
.btn-info,
.add-to-cart,
.move-to-cart,
.checkout-btn,
.cart-btn,
.wishlist-btn,
.nav-btn,
.menu-close-btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

/* ================================= */
/* Primary Button (Green Gradient)   */
/* ================================= */
.gradient-btn,
.btn-primary,
.btn-custom,
.checkout-btn,
.move-to-cart,
.add-to-cart {
  background: linear-gradient(135deg, var(--greenNormal), var(--greenDark));
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.gradient-btn:hover,
.btn-primary:hover,
.btn-custom:hover,
.checkout-btn:hover,
.move-to-cart:hover,
.add-to-cart:hover {
  filter: brightness(115%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  color: white;
}

.gradient-btn:active,
.btn-primary:active,
.btn-custom:active,
.checkout-btn:active,
.move-to-cart:active,
.add-to-cart:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* ================================= */
/* Success Button                    */
/* ================================= */
.btn-success {
  background: linear-gradient(135deg, var(--greenNormal), var(--greenDark));
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.btn-success:hover {
  filter: brightness(115%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  color: white;
}

.btn-success:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* ================================= */
/* Buy Button                        */
/* ================================= */
.btn-buy {
  background: var(--greenDark);
  color: white;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.btn-buy:hover {
  background: var(--greenDarkHover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.35);
  color: white;
}

.btn-buy:active {
  background: var(--greenDarkActive);
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

/* ================================= */
/* Secondary Button                  */
/* ================================= */
.btn-secondary,
.btn-outline-secondary {
  background: white;
  color: var(--greenDark);
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
  background: var(--greenLight);
  border-color: var(--greenNormal);
  color: var(--greenDark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.btn-secondary:active,
.btn-outline-secondary:active {
  background: var(--greenLightActive);
  transform: translateY(0) scale(0.98);
}

/* ================================= */
/* Outline Primary                   */
/* ================================= */
.btn-outline-primary {
  background: white;
  color: var(--greenNormal);
  border: 2px solid var(--greenNormal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-outline-primary:hover {
  background: var(--greenNormal);
  color: white;
  border-color: var(--greenNormal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.btn-outline-primary:active {
  background: var(--greenDark);
  transform: translateY(0) scale(0.98);
}

/* ================================= */
/* Danger/Delete Button              */
/* ================================= */
.btn-danger,
.delete-btn,
.remove-btn,
.remove-item {
  background: linear-gradient(135deg, var(--redNormal), var(--redDark));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.btn-danger:hover,
.delete-btn:hover,
.remove-btn:hover,
.remove-item:hover {
  filter: brightness(110%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
  color: white;
}

.btn-danger:active,
.delete-btn:active,
.remove-btn:active,
.remove-item:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

/* ================================= */
/* Warning Button                    */
/* ================================= */
.btn-warning {
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover {
  filter: brightness(110%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
  color: white;
}

.btn-warning:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* ================================= */
/* Info Button                       */
/* ================================= */
.btn-info {
  background: linear-gradient(135deg, var(--info), #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-info:hover {
  filter: brightness(110%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
  color: white;
}

.btn-info:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* ================================= */
/* Wishlist Button                   */
/* ================================= */
.btn-wishlist,
.wishlist-btn {
  background: linear-gradient(135deg, var(--redNormal), var(--redDark));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-wishlist::before,
.wishlist-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-wishlist:hover::before,
.wishlist-btn:hover::before {
  left: 100%;
}

.btn-wishlist:hover,
.wishlist-btn:hover {
  filter: brightness(110%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
  color: white;
}

.btn-wishlist:active,
.wishlist-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

/* ================================= */
/* Cart Button                       */
/* ================================= */
.btn-cart,
.cart-btn {
  background: linear-gradient(135deg, var(--greenNormal), var(--greenDark));
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-cart::before,
.cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-cart:hover::before,
.cart-btn:hover::before {
  left: 100%;
}

.btn-cart:hover,
.cart-btn:hover {
  filter: brightness(115%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  color: white;
}

.btn-cart:active,
.cart-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* ================================= */
/* Navigation Button                 */
/* ================================= */
.nav-btn {
  background: white;
  color: var(--greenDark);
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
  background: var(--greenLight);
  border-color: var(--greenNormal);
  color: var(--greenDark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.nav-btn:active {
  background: var(--greenLightActive);
  transform: translateY(0) scale(0.98);
}

/* ================================= */
/* Menu Close Button                 */
/* ================================= */
.menu-close-btn {
  background: white;
  color: var(--textDark);
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close-btn:hover {
  background: var(--greenLight);
  border-color: var(--greenNormal);
  color: var(--greenDark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.menu-close-btn:active {
  background: var(--greenLightActive);
  transform: translateY(0) scale(0.98);
}

/* ================================= */
/* Button Sizes                      */
/* ================================= */
.btn-sm,
button.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-lg,
button.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 12px;
}

.btn-full,
button.btn-full {
  width: 100%;
}

/* ================================= */
/* Button with Icon                  */
/* ================================= */
.btn-icon,
.btn img,
button img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  transition: transform 0.3s ease;
}

.btn:hover img {
  transform: scale(1.1);
}

/* ================================= */
/* Disabled State                    */
/* ================================= */
.btn:disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:hover,
button:disabled:hover {
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ================================= */
/* Product Card Action Buttons       */
/* ================================= */
.actions button,
.actions .add-to-cart,
.actions .btn-custom,
.actions .btn-wishlist {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.actions .add-to-cart,
.actions .btn-custom {
  background: linear-gradient(135deg, var(--greenNormal), var(--greenDark));
  color: white;
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.25);
}

.actions .add-to-cart:hover,
.actions .btn-custom:hover {
  filter: brightness(115%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  color: white;
}

.actions .add-to-cart:active,
.actions .btn-custom:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.25);
}

.actions .btn-wishlist {
  background: linear-gradient(135deg, var(--redNormal), var(--redDark));
  color: white;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.25);
}

.actions .btn-wishlist:hover {
  filter: brightness(110%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
  color: white;
}

.actions .btn-wishlist:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.25);
}

/* ================================= */
/* Pagination Buttons                */
/* ================================= */
.pagination button {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--greenNormal);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 600;
  min-width: 45px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination button:hover:not(:disabled):not(.active) {
  background: var(--greenLight);
  border-color: var(--greenNormal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.pagination button.active {
  background: linear-gradient(135deg, var(--greenNormal), var(--greenDark));
  color: white;
  border-color: var(--greenNormal);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
  cursor: default;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999;
  box-shadow: none;
}
