/* ════════ WOOCOMMERCE & WP HOTEL BOOKING OVERRIDES ════════ */

/* WooCommerce Buttons */
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce-page #respond input#submit.alt,
.woocommerce-page a.button.alt,
.woocommerce-page button.button.alt,
.woocommerce-page input.button.alt {
  background: linear-gradient(180deg, var(--gold), var(--gold-d));
  color: #2a2410;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 18px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: .25s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  padding: 14px 28px;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--gold-d);
  color: #2a2410;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .26);
}

/* Form Fields */
.woocommerce-billing-fields input,
.woocommerce-shipping-fields input,
.woocommerce-checkout-payment input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid #9fb1a3;
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--green-d);
  outline: none;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 6px rgba(46, 77, 61, 0.15);
}

/* WP Hotel Booking Search & Widgets */
.hotel-booking-search {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.hotel-booking-search form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.hb-search-field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hb-search-field label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--green);
}

.hb-search-field input,
.hb-search-field select {
  width: 100%;
  border: 1px solid #c9c0b0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #33473b;
  outline: none;
}

.hb-submit {
  flex: 0 0 auto;
}

.hb-submit button {
  background: linear-gradient(180deg, var(--gold), var(--gold-d));
  color: #2a2410;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: 0.25s;
}

.hb-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

/* Room List page and Details */
.hb-room-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
}

.hb-room-item .hb-room-image {
  flex: 0 0 350px;
  overflow: hidden;
}

.hb-room-item .hb-room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-room-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hb-room-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--green);
  margin-bottom: 12px;
}

.hb-room-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-d);
  margin-bottom: 16px;
}

.hb-room-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6f7d70;
}

.hb-room-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* WP Hotel Booking Single Room Form */
.hb-booking-form-box {
  background: #fffdf8;
  border: 1px solid #e9dfce;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.hb-booking-form-box h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--green);
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid #e9dfce;
  padding-bottom: 12px;
}

.hb-room-search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.hb-room-search-fields .hb-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hb-form-field label {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.hb-form-field input {
  border: 1px solid #c9c0b0;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
}

/* WooCommerce Cart & Checkout Styling */
.woocommerce-checkout h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--green);
  margin-bottom: 20px;
}

.woocommerce-checkout table.shop_table {
  border: 1px solid #e9dfce !important;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.woocommerce-checkout table.shop_table th {
  background-color: var(--green);
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  padding: 14px;
}

.woocommerce-checkout table.shop_table td {
  padding: 16px;
  color: var(--green-d);
}

#payment {
  background: #fffdf8 !important;
  border: 1px solid #e9dfce !important;
  border-radius: 12px;
  padding: 20px !important;
}

/* WooCommerce Cart Styling */
.woocommerce-cart table.shop_table.cart {
  border: 1px solid #e9dfce !important;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 30px;
  width: 100%;
}

.woocommerce-cart table.shop_table.cart th {
  background-color: var(--green);
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  padding: 16px;
  border: none;
}

.woocommerce-cart table.shop_table.cart td {
  padding: 20px 16px;
  color: var(--green-d);
  border-bottom: 1px solid #e9dfce;
  vertical-align: middle;
}

.woocommerce-cart table.shop_table.cart tr:last-child td {
  border-bottom: none;
}

/* Cart Product Image & Quantity */
.woocommerce-cart table.shop_table.cart img {
  border-radius: 8px;
  max-width: 80px;
  height: auto;
}

.woocommerce-cart .product-name a {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  transition: color 0.2s;
}

.woocommerce-cart .product-name a:hover {
  color: var(--gold);
}

.woocommerce-cart .product-remove a {
  color: #c94a4a !important;
  font-size: 24px;
  text-decoration: none;
}

.woocommerce-cart .product-remove a:hover {
  color: #a83636 !important;
  background: transparent !important;
}

.woocommerce-cart .quantity input.qty {
  width: 60px;
  padding: 8px;
  border: 1px solid #9fb1a3;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  background: #fffdf8;
  color: var(--green-d);
}

/* Coupon & Update Button */
.woocommerce-cart table.shop_table.cart td.actions {
  padding: 20px 16px;
}

.woocommerce-cart .actions .coupon {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.woocommerce-cart .actions .coupon input#coupon_code {
  min-width: 140px;
  border: 1px solid #9fb1a3;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fffdf8;
  font-size: 14px;
  outline: none;
}

.woocommerce-cart .actions button.button[name="update_cart"] {
  background: #2e4d3d !important;
  color: var(--cream) !important;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: 6px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.woocommerce-cart .actions button.button[name="update_cart"]:hover {
  background: #243f31 !important;
  transform: translateY(-1px);
}

/* Cart Totals */
.woocommerce-cart .cart-collaterals {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
}

.woocommerce-cart .cart_totals {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid #e9dfce;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.woocommerce-cart .cart_totals h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--green);
  margin-bottom: 20px;
  border-bottom: 1px solid #e9dfce;
  padding-bottom: 10px;
}

.woocommerce-cart .cart_totals table.shop_table {
  width: 100%;
  border: none !important;
  margin-bottom: 20px;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #f3ece0;
  background: transparent;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
  border-bottom: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  text-align: center;
  width: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-d));
  color: #2a2410;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.25s;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--gold-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

/* WooCommerce Notices (Info, Message, Error) */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  list-style: none;
  border: 1px solid #d6cdbb;
  border-radius: 12px;
  padding: 18px 24px;
  background: #fbf7f0;
  color: var(--green-d);
  font-size: 15px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.03);
}

.woocommerce-info::before,
.woocommerce-message::before {
  font-size: 20px;
  color: var(--gold);
}

.woocommerce-error {
  border-color: #e5c5c5;
  background: #fff5f5;
  color: #9e3d3d;
}

.woocommerce-error::before {
  color: #c94a4a;
}

/* Empty Cart Page Styling */
.cart-empty {
  text-align: center;
  font-size: 18px;
  color: var(--green);
  margin: 30px 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.return-to-shop {
  text-align: center;
  margin-bottom: 40px;
}

.return-to-shop a.button {
  background: linear-gradient(180deg, var(--gold), var(--gold-d)) !important;
  color: #2a2410 !important;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 30px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.25s;
}

.return-to-shop a.button:hover {
  background: var(--gold-d) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

/* Responsive */
@media (max-width: 900px) {
  .hb-room-item {
    flex-direction: column;
  }
  .hb-room-item .hb-room-image {
    flex: none;
    height: 220px;
  }
  .woocommerce-cart .cart-collaterals {
    justify-content: center;
  }
  .woocommerce-cart .cart_totals {
    max-width: 100%;
  }
  .woocommerce-cart table.shop_table.cart {
    display: block;
    overflow-x: auto;
  }
}
