/*--------------------------------------------------------------
  M-Fishing Theme – Cart Page
  Tokens: cream-bg #FDFCF8 | rich-black #121212 | muted-gold #D4AF37
          soft-gray #F2F0EB | lux-green #1B4D3E | lux-green-light #2A6E5A
  Fonts:  "Cinzel", serif (headings) | "Manrope", sans-serif (body)
--------------------------------------------------------------*/

/* ---- Cart table ---- */
.mf-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Manrope", sans-serif;
}

.mf-cart-table thead th {
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  padding: 12px 16px;
  border-bottom: 2px solid #F2F0EB;
  text-align: left;
}

.mf-cart-table tbody td {
  padding: 20px 16px;
  border-bottom: 1px solid #F2F0EB;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #121212;
}

.mf-cart-table .mf-cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mf-cart-table .mf-cart-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #F2F0EB;
  flex-shrink: 0;
}

.mf-cart-table .mf-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-cart-table .mf-cart-product-name {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #121212;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mf-cart-table .mf-cart-product-name:hover {
  color: #1B4D3E;
}

.mf-cart-table .mf-cart-product-variation {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

.mf-cart-table .mf-cart-price {
  font-weight: 600;
  color: #1B4D3E;
}

.mf-cart-table .mf-cart-subtotal {
  font-weight: 700;
  color: #121212;
}

/* WooCommerce cart table override */
.woocommerce table.shop_table {
  border: none;
  border-collapse: collapse;
  border-radius: 0;
}

.woocommerce table.shop_table th {
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  border-bottom: 2px solid #F2F0EB;
  padding: 12px 16px;
}

.woocommerce table.shop_table td {
  border-bottom: 1px solid #F2F0EB;
  padding: 20px 16px;
  font-family: "Manrope", sans-serif;
}

/* ---- Quantity controls ---- */
.mf-cart-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  overflow: hidden;
}

.mf-cart-quantity button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #121212;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mf-cart-quantity button:hover {
  background: #F2F0EB;
}

.mf-cart-quantity input {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #e0ddd6;
  border-right: 1px solid #e0ddd6;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #121212;
  background: transparent;
  -moz-appearance: textfield;
}

.mf-cart-quantity input::-webkit-outer-spin-button,
.mf-cart-quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* WooCommerce quantity override */
.woocommerce .quantity .qty {
  width: 48px;
  height: 36px;
  text-align: center;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

/* ---- Remove item button ---- */
.mf-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e0ddd6;
  background: #FDFCF8;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mf-cart-remove:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.woocommerce a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e0ddd6;
  color: #888 !important;
  font-size: 1.2rem;
  background: #FDFCF8;
  transition: all 0.2s ease;
}

.woocommerce a.remove:hover {
  background: #c0392b !important;
  border-color: #c0392b;
  color: #fff !important;
}

/* ---- Cart totals box ---- */
.mf-cart-totals {
  background: #FDFCF8;
  border: 1px solid #F2F0EB;
  border-radius: 12px;
  padding: 28px;
  font-family: "Manrope", sans-serif;
}

.mf-cart-totals .mf-totals-title {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #121212;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F2F0EB;
}

.mf-cart-totals .mf-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.9rem;
}

.mf-cart-totals .mf-totals-row:not(:last-child) {
  border-bottom: 1px solid #F2F0EB;
}

.mf-cart-totals .mf-totals-label {
  color: #888;
}

.mf-cart-totals .mf-totals-value {
  font-weight: 600;
  color: #121212;
}

.mf-cart-totals .mf-totals-row.mf-totals-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid #F2F0EB;
}

.mf-cart-totals .mf-totals-row.mf-totals-total .mf-totals-label {
  font-weight: 700;
  color: #121212;
  font-size: 1rem;
}

.mf-cart-totals .mf-totals-row.mf-totals-total .mf-totals-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1B4D3E;
}

.mf-cart-totals .mf-checkout-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  background: #D4AF37;
  color: #121212;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.mf-cart-totals .mf-checkout-btn:hover {
  background: #c9a02e;
  transform: translateY(-1px);
}

/* WooCommerce cart totals override */
.woocommerce .cart_totals {
  background: #FDFCF8;
  border: 1px solid #F2F0EB;
  border-radius: 12px;
  padding: 28px;
}

.woocommerce .cart_totals h2 {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.woocommerce .cart_totals table {
  border: none;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  border: none;
  border-bottom: 1px solid #F2F0EB;
  padding: 14px 0;
  font-family: "Manrope", sans-serif;
}

/* ---- Coupon input ---- */
.mf-coupon {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.mf-coupon input {
  flex: 1;
  border: 1px solid #e0ddd6;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  color: #121212;
  background: #FDFCF8;
  transition: border-color 0.2s ease;
}

.mf-coupon input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.mf-coupon input::placeholder {
  color: #bbb;
}

.mf-coupon button {
  padding: 10px 24px;
  background: #1B4D3E;
  color: #FDFCF8;
  border: none;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.mf-coupon button:hover {
  background: #2A6E5A;
}

/* WooCommerce coupon override */
.woocommerce .coupon .input-text {
  border: 1px solid #e0ddd6 !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-family: "Manrope", sans-serif;
}

/* ---- Responsive cart ---- */
@media (max-width: 768px) {
  .mf-cart-table thead {
    display: none;
  }

  .mf-cart-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px 16px;
    padding: 20px 0;
    border-bottom: 1px solid #F2F0EB;
    align-items: center;
  }

  .mf-cart-table tbody td {
    padding: 0;
    border-bottom: none;
  }

  .mf-cart-table .mf-cart-product {
    grid-column: 1 / -1;
  }

  .mf-cart-table .mf-cart-thumb {
    width: 64px;
    height: 64px;
  }

  .mf-coupon {
    flex-direction: column;
  }

  .woocommerce table.shop_table_responsive tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #F2F0EB;
  }

  .woocommerce table.shop_table_responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    padding: 6px 0;
  }

  .woocommerce table.shop_table_responsive td::before {
    font-family: "Cinzel", serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
  }
}

/* ---- Variation data in cart items ---- */
.mfishing-cart dl.variation,
.mfishing-cart .wc-item-meta {
  margin: 0.25rem 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.mfishing-cart dl.variation dt,
.mfishing-cart .wc-item-meta li strong {
  font-weight: 600;
  color: #6b7280;
  margin: 0;
  padding: 0;
  float: left;
  clear: left;
}

.mfishing-cart dl.variation dd,
.mfishing-cart .wc-item-meta li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mfishing-cart dl.variation dd p,
.mfishing-cart .wc-item-meta li p {
  margin: 0;
  display: inline;
}
