/*
Theme Name: Noakhali Homeo Hall
Theme URI: http://example.com/noakhali-homeo-hall
Author: Your Name
Author URI: http://example.com
Description: Professional homeopathic pharmacy WooCommerce theme for Noakhali Homeo Hall - Natural healing and homeopathic medicines.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noakhali-homeo-hall
Tags: e-commerce, woocommerce, pharmacy, homeopathy, healthcare, natural-medicine
*/

/* Theme typography */
html,
body,
button,
input,
select,
textarea {
  font-family: "Inter", sans-serif;
}

.pharma-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 99999;
  background: #1f7036;
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
}

/* Admin bar fix */
body.admin-bar nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar nav {
    top: 46px;
  }
}

/* WooCommerce Product Grid - Force Custom Layout */
.woocommerce ul.products {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-auto-flow: row !important;
  gap: 1rem !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: auto !important;
  float: none !important;
  clear: none !important;
  grid-column: auto !important;
}

/* Hide WooCommerce default styling - keep only our custom card */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product > a img,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product > .button {
  display: none !important;
}

/* Show only our product-card */
.woocommerce ul.products li.product .product-card {
  display: block !important;
  width: 100% !important;
}

/* Remove WooCommerce default button styles */
.woocommerce .button {
  background: none !important;
  border: none !important;
}

/* WooCommerce Sale Badge */
.woocommerce span.onsale {
  background-color: #f59e0b;
  min-height: 32px;
  min-width: 32px;
  line-height: 32px;
  font-weight: 700;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fix any WooCommerce clearfix issues */
.woocommerce::after,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

/* Shop page design */
.shop-shell .woocommerce-notices-wrapper {
  margin-bottom: 1rem;
}

.shop-shell .woocommerce-result-count {
  color: #4b5563;
  font-size: 0.95rem;
  margin: 0.3rem 0 1rem;
}

.shop-shell .woocommerce-ordering {
  margin: 0 0 1rem;
}

.shop-shell .woocommerce-ordering select {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  min-width: 210px;
}

.shop-shell .woocommerce-ordering select:focus {
  outline: none;
  border-color: #1f7036;
  box-shadow: 0 0 0 3px rgba(31, 112, 54, 0.12);
}

.shop-shell nav.woocommerce-pagination {
  margin-top: 1.5rem;
}

.shop-shell nav.woocommerce-pagination ul {
  border: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
}

.shop-shell nav.woocommerce-pagination ul li {
  border: 0;
  float: none;
}

.shop-shell nav.woocommerce-pagination ul li .page-numbers {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 0.5rem;
}

.shop-shell nav.woocommerce-pagination ul li .page-numbers.current,
.shop-shell nav.woocommerce-pagination ul li .page-numbers:hover {
  border-color: #1f7036;
  background: #1f7036;
  color: #ffffff;
}

/* Checkout page */
.pharma-checkout-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1rem;
}

@media (min-width: 768px) {
  .pharma-checkout-card {
    padding: 1.25rem;
  }
}

.pharma-checkout-wrap .woocommerce-billing-fields > h3,
.pharma-checkout-wrap .woocommerce-shipping-fields > h3,
.pharma-checkout-wrap .woocommerce-additional-fields > h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.pharma-checkout-wrap .form-row {
  margin-bottom: 0.9rem;
}

.pharma-checkout-wrap label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.pharma-checkout-wrap .input-text,
.pharma-checkout-wrap select,
.pharma-checkout-wrap textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
}

.pharma-checkout-wrap .input-text:focus,
.pharma-checkout-wrap select:focus,
.pharma-checkout-wrap textarea:focus {
  outline: none;
  border-color: #1f7036;
  box-shadow: 0 0 0 3px rgba(31, 112, 54, 0.12);
}

.pharma-checkout-wrap #order_review table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.pharma-checkout-wrap #order_review table.shop_table th,
.pharma-checkout-wrap #order_review table.shop_table td {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.7rem 0;
  vertical-align: top;
}

.pharma-checkout-wrap #order_review .order-total th,
.pharma-checkout-wrap #order_review .order-total td {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f7036;
}

.pharma-checkout-wrap .woocommerce-checkout-payment {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.9rem;
}

.pharma-checkout-wrap .woocommerce-checkout-payment .place-order .button {
  width: 100%;
  background: #1f7036 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0.6rem !important;
  padding: 0.8rem 1rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

.pharma-checkout-wrap .woocommerce-checkout-payment .place-order .button:hover {
  background: #195e2e !important;
}

/* Thank you page */
.pharma-thankyou-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1rem;
}

@media (min-width: 768px) {
  .pharma-thankyou-card {
    padding: 1.25rem;
  }
}

.pharma-thankyou-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(31, 112, 54, 0.12);
  color: #1f7036;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pharma-thankyou-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .pharma-thankyou-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.pharma-thankyou-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.pharma-thankyou-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pharma-thankyou-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.55rem 0;
  color: #374151;
  font-size: 0.95rem;
}

.pharma-thankyou-list li strong {
  color: #111827;
}

.pharma-btn-primary,
.pharma-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pharma-btn-primary {
  background: #1f7036;
  color: #fff;
}

.pharma-btn-primary:hover {
  background: #195e2e;
  color: #fff;
}

.pharma-btn-ghost {
  border: 1px solid #d1d5db;
  color: #374151;
  background: #fff;
}

.pharma-btn-ghost:hover {
  border-color: #1f7036;
  color: #1f7036;
}
