/**
 * Faradadeh — Store / Cart / Order form product cards
 * Fixes broken product grid caused by forced flex widths.
 */

/* Restore natural Bootstrap column layout inside order forms */
body.faradadeh-body #order-standard_cart .products,
body.faradadeh-body .products,
body.faradadeh-body #products,
body.faradadeh-body .product-container {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

body.faradadeh-body #order-standard_cart .products .row,
body.faradadeh-body .products .row {
  display: flex !important;
  flex-wrap: wrap;
  margin-left: -10px !important;
  margin-right: -10px !important;
}

body.faradadeh-body #order-standard_cart .products .row > [class*="col-"],
body.faradadeh-body .products .row > [class*="col-"] {
  display: flex;
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-bottom: 16px;
  float: none !important;
  max-width: 100%;
}

/* Card fills its column — never shrink to a thin strip */
body.faradadeh-body #order-standard_cart .products .product,
body.faradadeh-body .products .product,
body.faradadeh-body #products .product,
body.faradadeh-body .product-container .product {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  background: #fff !important;
  border: 1px solid var(--fd-line, #e8eaee) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  box-sizing: border-box;
}

body.faradadeh-body .products .product .product-desc,
body.faradadeh-body .products .product header,
body.faradadeh-body .products .product .product-pricing,
body.faradadeh-body .products .product .product-features,
body.faradadeh-body .products .product ul {
  width: 100%;
}

body.faradadeh-body .products .product header {
  margin-bottom: 10px;
}

body.faradadeh-body .products .product header span.product-name,
body.faradadeh-body .products .product .product-name,
body.faradadeh-body .products .product header span {
  display: block;
  font-size: 16px;
  font-weight: 600 !important;
  font-variation-settings: "wght" 600 !important;
  color: var(--fd-ink, #1f2937);
  line-height: 1.5;
  white-space: normal;
  word-break: normal;
}

body.faradadeh-body .products .product header p,
body.faradadeh-body .products .product .product-desc {
  color: var(--fd-muted, #6b7280);
  font-size: 12.5px;
  font-weight: 400 !important;
  font-variation-settings: "wght" 400 !important;
  line-height: 1.7;
  margin: 6px 0 0;
}

body.faradadeh-body .products .product .product-pricing,
body.faradadeh-body .products .product span.price,
body.faradadeh-body .products .product .price {
  display: block;
  margin: 10px 0 12px;
  font-size: 18px;
  font-weight: 600 !important;
  font-variation-settings: "wght" 600 !important;
  color: var(--fd-ink, #1f2937);
  white-space: normal;
}

body.faradadeh-body .products .product ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
}

body.faradadeh-body .products .product ul li {
  padding: 6px 0;
  border-top: 1px solid #f0f2f5;
  font-size: 12.5px;
  color: var(--fd-muted, #6b7280);
  font-weight: 400 !important;
  font-variation-settings: "wght" 400 !important;
  line-height: 1.6;
}

body.faradadeh-body .products .product .btn,
body.faradadeh-body .products .product a.btn,
body.faradadeh-body .products .product .btn-success {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
  white-space: nowrap;
}

/* Order form side panels (categories / actions) */
body.faradadeh-body #order-standard_cart .cart-sidebar,
body.faradadeh-body #order-standard_cart .secondary-cart-sidebar,
body.faradadeh-body .secondary-cart-sidebar {
  margin-bottom: 16px;
}

body.faradadeh-body #order-standard_cart .panel,
body.faradadeh-body #order-standard_cart .card,
body.faradadeh-body .secondary-cart-sidebar .panel,
body.faradadeh-body .secondary-cart-sidebar .card {
  border: 1px solid var(--fd-line, #e8eaee) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  overflow: hidden;
  background: #fff;
}

body.faradadeh-body #order-standard_cart .panel-heading,
body.faradadeh-body #order-standard_cart .card-header,
body.faradadeh-body .secondary-cart-sidebar .panel-heading,
body.faradadeh-body .secondary-cart-sidebar .card-header {
  background: #fafafa !important;
  border-bottom: 1px solid var(--fd-line, #e8eaee) !important;
  font-size: 13px;
  font-weight: 600 !important;
  font-variation-settings: "wght" 600 !important;
  padding: 12px 14px !important;
}

body.faradadeh-body #order-standard_cart .list-group-item,
body.faradadeh-body .secondary-cart-sidebar .list-group-item {
  border-color: #f0f2f5 !important;
  font-size: 13px;
  font-weight: 400 !important;
  padding: 11px 14px !important;
}

body.faradadeh-body #order-standard_cart .list-group-item.active,
body.faradadeh-body .secondary-cart-sidebar .list-group-item.active {
  background: var(--fd-primary-soft, #f3e8ff) !important;
  color: var(--fd-primary-strong, #6d28d9) !important;
  border-color: #ddd6fe !important;
}

/* Cart page title area */
body.faradadeh-body #order-standard_cart .header-lined,
body.faradadeh-body #order-standard_cart h1 {
  font-size: 20px;
  font-weight: 600 !important;
  font-variation-settings: "wght" 600 !important;
  margin-bottom: 14px;
}

/* View cart / checkout tables */
body.faradadeh-body #order-standard_cart .table,
body.faradadeh-body .cart-body .table {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

body.faradadeh-body #order-standard_cart .sub-heading,
body.faradadeh-body #order-standard_cart .sub-heading span {
  font-weight: 600 !important;
  font-variation-settings: "wght" 600 !important;
}

@media (max-width: 991px) {
  body.faradadeh-body #order-standard_cart .products .row > [class*="col-"],
  body.faradadeh-body .products .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 640px) {
  body.faradadeh-body #order-standard_cart .products .row > [class*="col-"],
  body.faradadeh-body .products .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
