/* ============================================================
   HARIWANT NATURALS — SHOP CSS
   WooCommerce-specific styles
   ============================================================ */

/* ── Shop Layout ── */
.hn-shop-wrapper {
  display: flex;
  gap: 28px;
  max-width: 1240px;
  margin-inline: auto;
  padding: 32px 24px 60px;
  align-items: flex-start;
}

/* ── Sidebar ── */
.hn-shop-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--hn-topbar-h) + var(--hn-header-h) + 20px);
}

.widget {
  background: var(--hn-white);
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hn-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hn-gold);
}

/* Price filter */
.price_slider_wrapper .ui-slider {
  background: var(--hn-border);
  height: 4px;
  border-radius: 4px;
  margin: 12px 0;
}
.price_slider_wrapper .ui-slider-handle {
  width: 16px;
  height: 16px;
  background: var(--hn-green);
  border-radius: 50%;
  top: -6px;
  cursor: pointer;
}
.price_slider_wrapper .ui-slider-range {
  background: var(--hn-green);
}
.price_slider_amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 8px;
}
.price_slider_amount button {
  background: var(--hn-green);
  color: var(--hn-white);
  border: none;
  padding: 6px 14px;
  border-radius: var(--hn-radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Category list */
.product-categories li {
  border-bottom: 1px solid var(--hn-border);
  padding: 6px 0;
}
.product-categories li:last-child { border-bottom: none; }
.product-categories a {
  font-size: 0.85rem;
  color: var(--hn-text);
  display: flex;
  justify-content: space-between;
  transition: color var(--hn-transition);
}
.product-categories a:hover { color: var(--hn-green); }
.product-categories .count {
  font-size: 0.75rem;
  color: var(--hn-muted);
  background: var(--hn-cream);
  padding: 1px 6px;
  border-radius: var(--hn-radius-full);
}
.product-categories .current-cat > a { color: var(--hn-green); font-weight: 600; }

/* ── Shop Main ── */
.hn-main { flex: 1; min-width: 0; }

/* Shop header bar */
.woocommerce-products-header { margin-bottom: 20px; }
.woocommerce-products-header__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--hn-dark);
}

.hn-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hn-border);
  flex-wrap: wrap;
}

.woocommerce-result-count {
  font-size: 0.83rem;
  color: var(--hn-muted);
}

.woocommerce-ordering select {
  padding: 8px 14px;
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-full);
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--hn-dark);
  background: var(--hn-white);
  cursor: pointer;
  outline: none;
}
.woocommerce-ordering select:focus { border-color: var(--hn-green); }

/* Product loop grid */
.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.products.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* WC product loop item */
.woocommerce ul.products li.product {
  margin: 0;
  padding: 0;
}

/* Pagination */
.woocommerce-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hn-dark);
  transition: all var(--hn-transition);
}
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
  background: var(--hn-green);
  border-color: var(--hn-green);
  color: var(--hn-white);
}

/* ── Single Product ── */
.single-product .hn-shop-wrapper {
  display: block;
  padding-top: 0;
}

.hn-single-product {
  padding: 32px 0 60px;
}

.hn-product-gallery-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 60px;
}

/* WooCommerce product gallery */
.woocommerce-product-gallery {
  position: sticky;
  top: calc(var(--hn-topbar-h) + var(--hn-header-h) + 20px);
}
.woocommerce-product-gallery__image img {
  border-radius: var(--hn-radius);
  border: 1.5px solid var(--hn-border);
}

/* Product summary */
.hn-product-summary .product_title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--hn-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hn-product-summary .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.star-rating {
  font-size: 0 !important;
  display: flex;
  gap: 2px;
}
.star-rating::before,
.star-rating span::before {
  font-size: 14px !important;
  color: var(--hn-gold);
}

.hn-product-summary .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--hn-green);
  margin-bottom: 16px;
}
.hn-product-summary .price del {
  font-size: 1.1rem;
  color: var(--hn-muted);
  font-weight: 400;
  margin-right: 8px;
}

.hn-product-summary .woocommerce-product-details__short-description {
  font-size: 0.9rem;
  color: var(--hn-text);
  line-height: 1.7;
  margin-bottom: 20px;
  border-left: 3px solid var(--hn-gold);
  padding-left: 14px;
}

/* Variation select */
.variations select {
  padding: 10px 14px;
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--hn-dark);
  background: var(--hn-white);
  outline: none;
  min-width: 180px;
  cursor: pointer;
}
.variations select:focus { border-color: var(--hn-green); }
.variations th label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hn-dark);
}

/* Quantity */
.quantity .qty {
  width: 60px;
  padding: 10px;
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  outline: none;
}
.quantity .qty:focus { border-color: var(--hn-green); }

/* Add to cart button */
.single_add_to_cart_button,
button.single_add_to_cart_button {
  background: var(--hn-green) !important;
  color: var(--hn-white) !important;
  border: 2px solid var(--hn-green) !important;
  padding: 13px 28px !important;
  border-radius: var(--hn-radius-full) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all var(--hn-transition) !important;
}
.single_add_to_cart_button:hover {
  background: var(--hn-green-light) !important;
  border-color: var(--hn-green-light) !important;
  transform: translateY(-2px) !important;
}

/* Product meta */
.product_meta {
  font-size: 0.82rem;
  color: var(--hn-muted);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product_meta a { color: var(--hn-green); }

/* Product tabs */
.woocommerce-tabs .tabs {
  display: flex;
  gap: 0;
  list-style: none;
  border-bottom: 2px solid var(--hn-border);
  margin-bottom: 24px;
}
.woocommerce-tabs .tabs li a {
  display: block;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hn-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--hn-transition);
}
.woocommerce-tabs .tabs li.active a {
  color: var(--hn-green);
  border-bottom-color: var(--hn-green);
}
.woocommerce-tabs .tabs li a:hover { color: var(--hn-green); }

.woocommerce-tabs .panel { font-size: 0.9rem; line-height: 1.8; color: var(--hn-text); }
.woocommerce-tabs .panel h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--hn-dark);
  margin-bottom: 12px;
}

/* Reviews */
.woocommerce-Reviews-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--hn-dark);
  margin-bottom: 16px;
}
.review .comment-text {
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius);
  padding: 16px;
  margin-bottom: 16px;
  background: var(--hn-cream);
}

/* Related products */
.related.products h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--hn-dark);
  margin-bottom: 24px;
}

/* ── Cart Page ── */
.woocommerce-cart table.cart {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-cart table.cart th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hn-muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--hn-border);
  text-align: left;
}
.woocommerce-cart table.cart td {
  padding: 16px;
  border-bottom: 1px solid var(--hn-border);
  vertical-align: middle;
  font-size: 0.9rem;
}
.woocommerce-cart table.cart .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--hn-radius-sm);
  border: 1px solid var(--hn-border);
}
.woocommerce-cart table.cart .product-name a { font-weight: 600; color: var(--hn-dark); }
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal { color: var(--hn-green); font-weight: 600; }

/* Cart totals */
.cart_totals {
  background: var(--hn-cream);
  border-radius: var(--hn-radius);
  padding: 24px;
  border: 1.5px solid var(--hn-border);
}
.cart_totals h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--hn-dark);
  margin-bottom: 16px;
}
.cart_totals table {
  width: 100%;
  font-size: 0.9rem;
}
.cart_totals table th,
.cart_totals table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--hn-border);
}
.cart_totals .order-total th,
.cart_totals .order-total td {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hn-green);
  border-bottom: none;
  padding-top: 14px;
}

/* Coupon */
.coupon input[type="text"] {
  padding: 10px 14px;
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  margin-right: 8px;
}
.coupon input[type="text"]:focus { border-color: var(--hn-green); }

/* ── Checkout Page ── */
.woocommerce-checkout h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--hn-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hn-gold);
}

.woocommerce-checkout .form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hn-dark);
  margin-bottom: 5px;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--hn-dark);
  background: var(--hn-white);
  outline: none;
  transition: border-color var(--hn-transition);
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus { border-color: var(--hn-green); }

/* Order review */
#order_review {
  background: var(--hn-cream);
  border-radius: var(--hn-radius);
  padding: 24px;
  border: 1.5px solid var(--hn-border);
}
#place_order {
  width: 100%;
  background: var(--hn-green) !important;
  color: var(--hn-white) !important;
  border: 2px solid var(--hn-green) !important;
  padding: 15px 24px !important;
  border-radius: var(--hn-radius-full) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all var(--hn-transition) !important;
  margin-top: 16px !important;
}
#place_order:hover {
  background: var(--hn-green-light) !important;
  border-color: var(--hn-green-light) !important;
}

/* Payment methods */
.wc_payment_methods { list-style: none; margin-bottom: 16px; }
.wc_payment_methods li {
  border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--hn-transition);
}
.wc_payment_methods li.payment_method_razorpay { border-color: var(--hn-green); }
.payment_method_razorpay label,
.payment_method_cod label {
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── My Account Page ── */
.woocommerce-MyAccount-navigation {
  background: var(--hn-cream);
  border-radius: var(--hn-radius);
  padding: 16px;
  border: 1.5px solid var(--hn-border);
}
.woocommerce-MyAccount-navigation ul { list-style: none; }
.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hn-text);
  border-radius: var(--hn-radius-sm);
  transition: all var(--hn-transition);
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--hn-green);
  color: var(--hn-white);
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
  background: rgba(53,91,46,.08);
  border-left: 4px solid var(--hn-green);
  padding: 14px 16px;
  border-radius: 0 var(--hn-radius-sm) var(--hn-radius-sm) 0;
  font-size: 0.875rem;
  color: var(--hn-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.woocommerce-error {
  background: rgba(229,57,53,.08);
  border-left: 4px solid #e53935;
  padding: 14px 16px;
  border-radius: 0 var(--hn-radius-sm) var(--hn-radius-sm) 0;
  font-size: 0.875rem;
  color: #c62828;
  margin-bottom: 20px;
  list-style: none;
}

/* Shop responsive */
@media (max-width: 1024px) {
  .hn-shop-sidebar { display: none; }
  .hn-shop-wrapper { padding-inline: 16px; }
  .products.columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .products.columns-4,
  .products.columns-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hn-product-gallery-wrap { grid-template-columns: 1fr; }
  .woocommerce-product-gallery { position: static; }
}

@media (max-width: 480px) {
  .woocommerce-cart table.cart { display: block; overflow-x: auto; }
  .hn-shop-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FIXES — Product Grid, Gallery & Checkout
   ============================================================ */

/* ── FIX 1: Product category listing — full-width cards ── */

/* Remove the sidebar on category/archive pages so products use full width */
.woocommerce.archive .hn-shop-wrapper,
.woocommerce.tax-product_cat .hn-shop-wrapper {
  display: block;
  padding: 32px 24px 60px;
}

/* WooCommerce default product loop — override to fill full width nicely */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  clear: both;
}

.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

/* Product card styling for WC default loop items */
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  border-radius: var(--hn-radius) var(--hn-radius) 0 0 !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.04) !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: block;
  overflow: hidden;
  border-radius: var(--hn-radius) var(--hn-radius) 0 0;
  background: var(--hn-cream);
}

/* Card wrapper */
.woocommerce ul.products li.product {
  border: 1.5px solid var(--hn-border) !important;
  border-radius: var(--hn-radius) !important;
  overflow: hidden !important;
  background: var(--hn-white) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--hn-green-light) !important;
  box-shadow: 0 4px 20px rgba(53,91,46,.12) !important;
  transform: translateY(-4px) !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--hn-dark) !important;
  padding: 14px 14px 4px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Price */
.woocommerce ul.products li.product .price {
  display: block !important;
  padding: 4px 14px 10px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--hn-green) !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--hn-muted) !important;
  font-weight: 400 !important;
  font-size: 0.82rem !important;
  margin-right: 4px !important;
}

/* Add to cart button in loop */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block !important;
  width: calc(100% - 28px) !important;
  margin: 0 14px 14px !important;
  padding: 10px 16px !important;
  background: var(--hn-green) !important;
  color: var(--hn-white) !important;
  border: 2px solid var(--hn-green) !important;
  border-radius: var(--hn-radius-full) !important;
  font-family: var(--font-body) !important;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  letter-spacing: 0.02em !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: var(--hn-green-light) !important;
  border-color: var(--hn-green-light) !important;
  transform: none !important;
}

.woocommerce ul.products li.product .added_to_cart {
  display: block !important;
  text-align: center !important;
  padding: 6px 14px 14px !important;
  font-size: 0.8rem !important;
  color: var(--hn-green) !important;
  font-weight: 600 !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  background: var(--hn-gold) !important;
  color: var(--hn-dark) !important;
  border-radius: var(--hn-radius-full) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  min-height: auto !important;
  line-height: 1.8 !important;
}

/* Star ratings in loop */
.woocommerce ul.products li.product .star-rating {
  margin: 0 14px 6px !important;
  font-size: 0.75rem !important;
}

/* Category page title */
.woocommerce-products-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--hn-border);
}
.woocommerce-products-header__title {
  font-family: var(--font-heading) !important;
  font-size: 2rem !important;
  color: var(--hn-dark) !important;
  font-weight: 700 !important;
}

/* Notices (added to cart etc) */
.woocommerce-notices-wrapper .woocommerce-message {
  background: rgba(53,91,46,.08) !important;
  border-left: 4px solid var(--hn-green) !important;
  border-radius: 0 var(--hn-radius-sm) var(--hn-radius-sm) 0 !important;
  padding: 14px 16px !important;
  font-size: 0.875rem !important;
  color: var(--hn-dark) !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.woocommerce-notices-wrapper .woocommerce-message a.button {
  background: var(--hn-green) !important;
  color: var(--hn-white) !important;
  padding: 8px 18px !important;
  border-radius: var(--hn-radius-full) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  border: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* ── FIX 2: Single Product — fill image blank space ── */

/* Make gallery take proper square space */
.woocommerce-product-gallery {
  position: sticky !important;
  top: calc(var(--hn-topbar-h) + var(--hn-header-h) + 20px) !important;
  width: 100% !important;
}

/* Main image container — force square with cover */
.woocommerce-product-gallery__wrapper {
  border-radius: var(--hn-radius) !important;
  overflow: hidden !important;
  background: var(--hn-cream) !important;
}

.woocommerce-product-gallery__image {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: var(--hn-cream) !important;
  border-radius: var(--hn-radius) !important;
  border: 1.5px solid var(--hn-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 20px !important;
  background: var(--hn-cream) !important;
}

/* Flexslider override */
.woocommerce-product-gallery .flex-viewport {
  border-radius: var(--hn-radius) !important;
  overflow: hidden !important;
  background: var(--hn-cream) !important;
  border: 1.5px solid var(--hn-border) !important;
}

.woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image {
  border: none !important;
  border-radius: 0 !important;
}

/* Thumbnail strip */
.woocommerce-product-gallery .flex-control-nav {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
  list-style: none !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
}

.woocommerce-product-gallery .flex-control-nav li {
  flex: 0 0 70px !important;
  height: 70px !important;
}

.woocommerce-product-gallery .flex-control-nav li img {
  width: 70px !important;
  height: 70px !important;
  object-fit: cover !important;
  border-radius: var(--hn-radius-sm) !important;
  border: 2px solid var(--hn-border) !important;
  cursor: pointer !important;
  transition: border-color 0.25s ease !important;
  padding: 0 !important;
}

.woocommerce-product-gallery .flex-control-nav li img.flex-active {
  border-color: var(--hn-green) !important;
}

/* Zoom icon */
.woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 10 !important;
  width: 32px !important;
  height: 32px !important;
  background: var(--hn-white) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
  opacity: 0.8 !important;
}
.woocommerce-product-gallery__trigger:hover { opacity: 1 !important; }
.woocommerce-product-gallery__trigger img { display: none !important; }
.woocommerce-product-gallery__trigger::after {
  content: '🔍';
  font-size: 14px;
}

/* Summary column alignment */
.hn-product-summary {
  padding-top: 8px;
}

.hn-product-summary .product_title {
  font-family: var(--font-heading) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--hn-dark) !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}

.hn-product-summary .price {
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  color: var(--hn-green) !important;
  margin-bottom: 20px !important;
  display: block !important;
}

/* ── FIX 3: Checkout page — blank content area ── */

/* WooCommerce checkout content wrapper */
.woocommerce-checkout #page,
.woocommerce-checkout .site-main,
.woocommerce-checkout .entry-content,
.woocommerce-page.woocommerce-checkout .hn-main,
.hn-woo-page.woocommerce-checkout .hn-main {
  padding: 0 !important;
}

/* Ensure checkout wrapper has proper padding */
.woocommerce-checkout .woocommerce,
.woocommerce-page .woocommerce {
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding: 40px 24px 80px !important;
}

/* Checkout form layout — 2 columns */
.woocommerce-checkout #customer_details {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 32px !important;
  margin-bottom: 32px !important;
}

/* If only 1 billing column (no shipping) */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100% !important;
  float: none !important;
}

/* Order review + payment section */
.woocommerce-checkout #order_review_heading {
  font-family: var(--font-heading) !important;
  font-size: 1.4rem !important;
  color: var(--hn-dark) !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--hn-gold) !important;
}

.woocommerce-checkout #order_review {
  background: var(--hn-cream) !important;
  border-radius: var(--hn-radius) !important;
  padding: 24px !important;
  border: 1.5px solid var(--hn-border) !important;
  margin-top: 8px !important;
}

/* Checkout table */
.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 16px !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--hn-border) !important;
  font-size: 0.88rem !important;
}

.woocommerce-checkout-review-order-table tfoot .order-total td,
.woocommerce-checkout-review-order-table tfoot .order-total th {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--hn-green) !important;
  border-bottom: none !important;
}

/* Checkout form fields */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout h3#order_review_heading {
  font-family: var(--font-heading) !important;
  font-size: 1.3rem !important;
  color: var(--hn-dark) !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--hn-gold) !important;
}

.woocommerce-checkout .form-row {
  margin-bottom: 14px !important;
}

.woocommerce-checkout .form-row label {
  display: block !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--hn-dark) !important;
  margin-bottom: 5px !important;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid var(--hn-border) !important;
  border-radius: var(--hn-radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--hn-dark) !important;
  background: var(--hn-white) !important;
  outline: none !important;
  transition: border-color 0.25s ease !important;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--hn-green) !important;
  box-shadow: 0 0 0 3px rgba(53,91,46,.1) !important;
}

/* Payment methods */
.wc_payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

.wc_payment_methods li.payment_method {
  border: 1.5px solid var(--hn-border) !important;
  border-radius: var(--hn-radius-sm) !important;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  cursor: pointer !important;
  transition: border-color 0.25s ease !important;
  background: var(--hn-white) !important;
}

.wc_payment_methods li.payment_method:has(input:checked) {
  border-color: var(--hn-green) !important;
  background: rgba(53,91,46,.04) !important;
}

.wc_payment_methods li label {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  color: var(--hn-dark) !important;
}

.wc_payment_methods li .payment_box {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  background: var(--hn-cream) !important;
  border-radius: var(--hn-radius-sm) !important;
  font-size: 0.82rem !important;
  color: var(--hn-muted) !important;
}

/* Place order button */
#place_order {
  width: 100% !important;
  background: var(--hn-green) !important;
  color: var(--hn-white) !important;
  border: 2px solid var(--hn-green) !important;
  padding: 15px 24px !important;
  border-radius: var(--hn-radius-full) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  margin-top: 16px !important;
  letter-spacing: 0.02em !important;
}

#place_order:hover {
  background: var(--hn-green-light) !important;
  border-color: var(--hn-green-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 20px rgba(53,91,46,.25) !important;
}

/* Razorpay specific */
.payment_method_razorpay label img {
  height: 24px !important;
  width: auto !important;
  vertical-align: middle !important;
  margin-left: 8px !important;
}

/* ── Responsive fixes ── */
@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .woocommerce-checkout #customer_details {
    grid-template-columns: 1fr !important;
  }
  .hn-product-gallery-wrap {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .woocommerce-product-gallery {
    position: static !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .woocommerce ul.products li.product a img {
    height: 160px !important;
  }
}
