// style.css

/*
 Theme Name:   Astra Child
 Theme URI:    https://example.com/astra-child
 Description:  Astra Child Theme
 Author:       Your Name
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

.crackers-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}
.crackers-table th, .crackers-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.crackers-table th {
  background: #ffe6e6;
  color: #b30000;
  font-weight: bold;
}
.qty-input {
  width: 60px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px;
}
.download-btn-wrapper {
  text-align: center;
  margin-bottom: 20px;
}
.download-btn {
  color: #c00;
  font-weight: bold;
  text-decoration: underline;
}
/* ==== Compact Green View Cart Box ==== */
#view-cart-btn {
  background: #fff;
  color: #2e7d32;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

/* Center the entire view cart box */
#view-cart-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2e7d32;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.view-cart-bar span {
  flex: 1;
  text-align: left;
}

.view-cart-btn {
  background: #fff;
  color: #28a745;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-cart-btn:hover {
  background: #218838;
  color: #fff;
}


/* Keep it responsive */
@media (max-width: 768px) {
  #view-cart-container {
    width: 90%;
    text-align: center;
  }
  #view-cart-btn {
    width: 100%;
  }
}

/* ======= Improved WooCommerce Cart Page ======= */
.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.woocommerce-cart table.shop_table th {
  background: #f5f5f5;
  font-weight: 600;
}

.woocommerce-cart table.shop_table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.woocommerce-cart .cart_totals {
  margin-top: 30px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.woocommerce-cart .cart_totals h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.woocommerce-cart .cart_totals table {
  width: 100%;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: #2e7d32 !important;
  border-radius: 6px !important;
  padding: 12px 18px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #1b5e20 !important;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
  .woocommerce-cart table.shop_table th,
  .woocommerce-cart table.shop_table td {
    font-size: 14px;
    padding: 10px;
  }
  .woocommerce-cart .cart_totals {
    padding: 16px;
  }
}

/* ===== Clean & Wide WooCommerce Cart Layout ===== */
.woocommerce-cart .woocommerce {
  max-width: 900px; /* Wider cart container */
  margin: 0 auto;
}

.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-bottom: 30px;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  padding: 14px 18px;
  text-align: center;
  vertical-align: middle;
}

/* Remove the two-column layout */
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  float: none !important;
  clear: both;
  margin-top: 20px;
}

/* Center and style cart totals */
.woocommerce-cart .cart_totals {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.woocommerce-cart .cart_totals h2 {
  text-align: center;
  color: #b30000;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Proceed to checkout button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  background: #c00;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 6px;
  text-align: center;
  padding: 12px 0;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #a00000;
}

/* Make subtotal and total text bold and colored */
.woocommerce-cart .cart_totals .shop_table td,
.woocommerce-cart .cart_totals .shop_table th {
  font-size: 17px;
  padding: 10px;
}

.woocommerce-cart .cart_totals .order-total td {
  color: green;
  font-weight: bold;
}
.woocommerce-cart h1,
.woocommerce-cart h2 {
  text-align: center;
  color: #b30000;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-cart .woocommerce {
    padding: 0 15px;
  }
}

/* === WooCommerce Checkout Layout - Like Reference === */

/* Remove Astra's narrow wrapper */
.woocommerce-checkout .ast-container {
  max-width: 100% !important;
  padding: 0 5% !important;
}

/* Checkout main layout */
.woocommerce-checkout .woocommerce {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 50px !important;
  margin: 40px auto !important;
  max-width: 1300px !important;
}

/* Customer form (Billing details) */
.woocommerce-checkout #customer_details {
  flex: 0 0 68% !important;
  background: #fff !important;
  padding: 30px 40px !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Order summary (Your order) */
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
  flex: 0 0 30% !important;
  background: #fff !important;
  padding: 30px 35px !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Titles */
.woocommerce-checkout h3 {
  text-align: center;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #b30000 !important;
  margin-bottom: 30px !important;
}

/* Input fields */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  width: 100% !important;
  font-size: 15px !important;
}
/* ===== Center and Style Checkout Page Title ===== */
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout h2.woocommerce-column__title,
.woocommerce-checkout h2,
.woocommerce-checkout h3 {
  text-align: center !important;
  color: #b30000 !important; /* same red as cart */
  font-weight: 700 !important;
  font-size: 28px !important;
  margin-bottom: 25px !important;
}

/* Optional: Add a subtle underline for a polished look */
.woocommerce-checkout h1.entry-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #b30000;
  margin: 10px auto 0;
  border-radius: 2px;
}


/* Place order button */
#place_order {
  background-color: #b30000 !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  border-radius: 6px !important;
  padding: 14px 0 !important;
  width: 100% !important;
  text-transform: uppercase !important;
  transition: 0.3s !important;
}
#place_order:hover {
  background-color: #900 !important;
}

/* Adjust order table font size */
.woocommerce-checkout table.shop_table {
  font-size: 15px !important;
}

/* Responsive design (mobile view) */
@media (max-width: 992px) {
  .woocommerce-checkout .woocommerce {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review {
    width: 100% !important;
    padding: 25px !important;
  }
}




