/*
Theme Name: Melyna Seeds Theme
Author: AKS WebTech
Author URI: https://www.aksweb.tech/
Description: A custom WordPress theme for Melynaseeds.
Version: 0.2
*/

*::-webkit-scrollbar {
  display: none;
}

/* Generic archive pagination (posts, taxonomy) */
.pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination > .page-numbers,
.pagination .nav-links .page-numbers,
.pagination-wrap > .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--primary-color, #016e1d);
  border-radius: 8px;
  background: #fff;
  color: var(--bs-body-color, #212529);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
}

.pagination > .page-numbers.current,
.pagination .nav-links .page-numbers.current,
.pagination-wrap > .page-numbers.current {
  background: var(--primary-color, #016e1d);
  border-color: var(--primary-color, #016e1d);
  color: #fff;
}

.pagination > a.page-numbers:hover,
.pagination .nav-links a.page-numbers:hover,
.pagination-wrap > a.page-numbers:hover {
  background: var(--primary-color, #016e1d);
  color: #fff;
}

/* Products Shop pagination — isolated, no bullets / no overlap */
.product-archive .ms-products-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin: 2.5rem 0 0.75rem;
  padding: 0;
  clear: both;
}

.product-archive .ms-products-pagination a.page-numbers,
.product-archive .ms-products-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0;
  padding: 0 0.75rem;
  border: 1.5px solid var(--primary-color, #016e1d);
  border-radius: 8px;
  background: #fff;
  color: var(--primary-color-dark, #013b10);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

.product-archive .ms-products-pagination a.page-numbers:hover {
  background: var(--primary-color, #016e1d);
  border-color: var(--primary-color, #016e1d);
  color: #fff;
}

.product-archive .ms-products-pagination span.page-numbers.current {
  background: var(--primary-color, #016e1d);
  border-color: var(--primary-color, #016e1d);
  color: #fff;
  font-weight: 600;
}

.product-archive .ms-products-pagination span.page-numbers.dots {
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding: 0 0.2rem;
  color: var(--primary-color-dark, #013b10);
}

/* PDP WooCommerce cart UI */
.pdp_details_price {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color, #016e1d);
}

.pdp_details_price del {
  opacity: 0.55;
  font-size: 1rem;
  margin-right: 0.35rem;
}

.pdp_details_cart {
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #dae0dc;
}

.pdp_details_cart .cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.pdp_details_cart .quantity {
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  border: 1.5px solid var(--primary-color, #016e1d);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.pdp_details_cart .quantity .qty {
  width: 56px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color-dark, #013b10);
  background: #fff;
  box-shadow: none !important;
  -moz-appearance: textfield;
}

.pdp_details_cart .quantity .qty::-webkit-outer-spin-button,
.pdp_details_cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp_details_cart .ms-qty-btn {
  width: 44px;
  min-height: 48px;
  border: 0;
  background: #e8f3eb;
  color: var(--primary-color, #016e1d);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pdp_details_cart .ms-qty-btn:hover {
  background: var(--primary-color, #016e1d);
  color: #fff;
}

.pdp_details_cart .single_add_to_cart_button,
.pdp_details_cart button.alt {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 8px;
  background: var(--primary-color, #016e1d) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pdp_details_cart .single_add_to_cart_button:hover,
.pdp_details_cart button.alt:hover {
  background: var(--primary-color-dark, #013b10) !important;
  color: #fff !important;
}

.pdp_details_cart .ms-buy-now-button {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--primary-color, #016e1d) !important;
  border-radius: 8px;
  background: #fff !important;
  color: var(--primary-color, #016e1d) !important;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pdp_details_cart .ms-buy-now-button:hover {
  background: var(--primary-color, #016e1d) !important;
  color: #fff !important;
}

.pdp_details_cart .ms-buy-now-button.loading,
.pdp_details_cart .single_add_to_cart_button.loading {
  opacity: 0.75;
  pointer-events: none;
}

.pdp_details_cart .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.product_filter_btn {
  border: none;
  background: transparent;
  padding: 0 0 0.25rem 0;
  position: relative;
}

.product_filter_btn:not(:last-child) {
  margin-right: 0.75rem;
}

.product_filter_btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  background: var(--primary-color-dark);
  height: 2px;
  transform: translateX(-50%);
  transform-origin: center;
  transition: all 0.3s ease;
  width: 0;
}

.product_filter_btn:hover {
  color: var(--primary-color);
}

.product_filter_btn.active {
  color: var(--primary-color-dark);
}

.product_filter_btn.active::before {
  width: 100%;
  left: 50%;
}

.product_cat_top.has-scroll .product_cat_top_action {
  display: inline-flex;
}

.product_cat_top_action:hover {
  color: var(--bs-white);
  background: var(--primary-color);
}

label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.no_scroll {
  overflow: hidden;
}

/* Header Login / Sign Up / Dashboard — corner */
.header_auth {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 0.5rem;
}

.header_auth_btn {
  padding: 0.45rem 0.9rem !important;
  font-size: 0.875rem !important;
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .header_auth_btn {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  .header_auth_logout {
    display: none;
  }
}

@media (min-width: 768px) {
  .header_auth {
    margin-left: 0;
    margin-right: 0;
  }
}
