/* WooCommerce tweaks for FleetSignal theme */

/* Container spacing */
.woocommerce .woocommerce-notices-wrapper {
  margin-bottom: 1rem;
}

/* Buttons align with Tailwind-like look */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-block-components-button,
.woocommerce .woocommerce-cart .coupon .button {
  background-color: #0ea5e9;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: #0284c7;
  color: #fff;
}

/* Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout .select2-container .select2-selection--single {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
}

/* Tables */
.woocommerce table.shop_table {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 0.75rem;
}

/* Product grid spacing */
.woocommerce ul.products li.product {
  text-align: left;
}
.woocommerce ul.products li.product .button {
  margin-top: 0.5rem;
}

/* Single product gallery spacing */
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  margin-bottom: 1.5rem;
}

/* Single product: typography */
.single-product .product .product_title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 800;
}
.single-product .product .price {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 800;
  color: #0f172a; /* slate-900 */
}
.single-product .product .woocommerce-product-rating .star-rating span::before {
  color: #f59e0b; /* amber-500 */
}

/* Single product: add to cart area */
.single-product .product form.cart .quantity .qty {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  min-width: 80px;
}
.single-product .product form.cart .button {
  background-color: #0ea5e9;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
}
.single-product .product form.cart .button:hover {
  background-color: #0284c7;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid #e2e8f0;
  padding-left: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none;
  background: transparent;
  margin: 0 1rem 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  border-color: #0ea5e9;
  color: #0ea5e9;
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding-top: 1rem;
}

/* Meta */
.single-product .product .product_meta {
  color: #64748b; /* slate-500 */
  font-size: 0.875rem;
}

/* Cart/Checkout polish */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.button.checkout-button {
  background-color: #0ea5e9;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce a.button.checkout-button:hover {
  background-color: #0284c7;
}
.woocommerce-cart .cart_totals {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
}
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* Checkout layout tweaks */
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
  padding: 0 0.5rem;
}

/* Breadcrumb spacing */
.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 1rem;
}

/* Product archive grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Product title and price spacing */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  line-height: 1.5rem;
}
.woocommerce ul.products li.product .price {
  font-weight: 600;
}

/* Pagination spacing */
.woocommerce nav.woocommerce-pagination {
  margin-top: 1.5rem;
}
