
.cart-block--summary__count {
  color: #ffffff;
}

#block-protean-commerce-cart .cart-block--contents {
  width: 370px;
}


/* =====================================================
   CART PAGE
===================================================== */

.cart-page .cart-form {
  max-width: 1000px;
  margin: 0 auto;
}

/* Table */

.cart-page .cart-form table.views-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

/* Header */

.cart-page .cart-form thead th {
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #98999B;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid #e6e6e6;
  padding: 10px;
}

/* Rows */

.cart-page .cart-form tbody tr {
  border-bottom: 1px solid #e6e6e6;
}

.cart-page .cart-form td {
  padding: 16px 10px;
  vertical-align: middle;
}

/* Product image */

.cart-page .views-field-field-cart-image img {
  border-radius: 6px;
  width: 90px;
  height: auto;
}

/* Product name */

.cart-page .views-field-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1A1717;
}

/* Prices */

.cart-page .views-field-unit-price__number,
.cart-page .views-field-total-price__number {
  font-weight: 600;
  color: #1A1717;
}

/* Quantity */

.cart-page .quantity-edit-input {
  width: 70px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 1rem;
}

.cart-page .quantity-edit-input:focus {
  outline: none;
  border-color: #CF1F2E;
  box-shadow: 0 0 0 2px rgba(207,31,46,0.15);
}

/* Buttons */

.cart-page .cart-form .button {
  border-radius: 5px;
  padding: 10px 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}

/* Update cart */

.cart-page #edit-submit {
  background: #98999B;
  color: white;
}

.cart-page #edit-submit:hover {
  background: #7f8082;
}

/* Checkout */

.cart-page #edit-checkout {
  background: #CF1F2E;
  color: white;
  margin-left: 10px;
}

.cart-page #edit-checkout:hover {
  background: #a61823;
}

/* Remove */

.cart-page .delete-order-item {
  background: none;
  border: none;
  color: #CF1F2E;
  font-weight: 600;
  padding: 0;
}

.cart-page .delete-order-item:hover {
  text-decoration: underline;
}

/* Totals */

.cart-page [data-drupal-selector="order-total-summary"] {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 20px;
  max-width: 350px;
  margin-left: auto;
  margin-top: 20px;
}

.cart-page .order-total-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.cart-page .order-total-line-label {
  color: #98999B;
}

.cart-page .order-total-line-value {
  font-weight: 600;
  color: #1A1717;
}

.cart-page .order-total-line__total {
  font-size: 1.2rem;
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 10px;
}

/* Action bar */

.cart-page #edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

  body.path-cart .cart-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
  }

  body.path-cart .cart-card__top {
    display: contents; /* flattens structure into grid */
  }

  body.path-cart .cart-card__bottom {
    display: contents;
  }

  body.path-cart .cart-card__image {
    grid-column: 1;
  }

  body.path-cart .cart-card__title {
    grid-column: 1;
  }

  body.path-cart .cart-card__price {
    grid-column: 2;
  }

  body.path-cart .cart-card__qty {
    grid-column: 3;
  }

  body.path-cart .cart-card__total {
    grid-column: 4;
  }

  body.path-cart .cart-card__remove {
    grid-column: 5;
  }




/* ========================================
   CART MOBILE
======================================== */

@media (max-width: 992px){

  /* Hide entire table visually */
  .cart-page table.views-table{
    display: block;
  }

  .cart-page table.views-table thead{
    display: none;
  }

  /* Hide ALL table cells */
  .cart-page table.views-table td{
    display: none;
  }

  /* Show ONLY your custom field */
  .cart-page table.views-table td.views-field-nothing{
    display: block;
    width: 100%;
  }

  /* Make rows behave like containers */
  .cart-page table.views-table tr{
    display: block;
    margin-bottom: 16px;
  }

  .cart-page .views-field-nothing{
    display: block;
  }

  /* CARD */
  body.path-cart .cart-card{
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  /* ===== TOP SECTION ===== */
  body.path-cart .cart-card__top{
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  body.path-cart .cart-card__image img{
    width: 70px;
    border-radius: 6px;
  }

  body.path-cart .cart-card__info{
    flex: 1;
  }

  body.path-cart .cart-card__title{
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
  }

  body.path-cart .cart-card__scent{
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
  }

  body.path-cart .cart-card__scent:empty{
    display: none;
  }

  body.path-cart .cart-card__price{
    font-size: 14px;
    font-weight: 600;
  }

  /* ===== DIVIDER ===== */
  body.path-cart .cart-card__bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 10px;
  }

  /* ===== QTY ===== */
  body.path-cart .cart-card__qty{
    font-size: 13px;
  }

  body.path-cart .cart-card__qty input{
    width: 55px;
    margin-left: 6px;
  }

  /* ===== TOTAL ===== */
  body.path-cart .cart-card__total{
    text-align: right;
    font-size: 14px;
    font-weight: 600;
  }

  /* ===== LABELS ===== */
  body.path-cart .cart-card__qty .label,
  body.path-cart .cart-card__total .label{
    display: block;
    font-size: 11px;
    color: #98999B;
  }

  /* ===== REMOVE ===== */
  body.path-cart .cart-card__remove{
    margin-top: 8px;
  }

  body.path-cart .cart-card__remove .button,
  body.path-cart .cart-card__remove input{
    background: none;
    border: none;
    color: #CF1F2E;
    font-size: 13px;
    padding: 0;
  }

  /* Totals section */
  .cart-page [data-drupal-selector="order-total-summary"]{
    max-width: 100%;
    margin-top: 20px;
  }

  /* Action buttons */
  .cart-page #edit-actions{
    flex-direction: column;
    gap: 10px;
  }

  .cart-page #edit-actions .button{
    width: 100%;
  }
  
}