/**
 * LCB Commerce Styles
 *
 * @package LCB_Commerce
 */

/* ─── PRODUCT FILTERS ─── */
.lcb-product-filters {
  display: flex;
  gap: 10px;
  margin: 40px 0 32px;
  flex-wrap: wrap;
}
.lcb-filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--lcb-pale-blue, #e8f4fb);
  background: var(--lcb-white, #fff);
  font-family: var(--lcb-font-heading, 'Outfit', sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--lcb-text-light, #6b7d99);
  cursor: pointer;
  transition: all 0.3s;
}
.lcb-filter-btn.active,
.lcb-filter-btn:hover {
  background: var(--lcb-brand-blue, #2563a8);
  color: #fff;
  border-color: var(--lcb-brand-blue, #2563a8);
}

/* ─── PRODUCT GRID ─── */
.lcb-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.lcb-product-card {
  background: var(--lcb-white, #fff);
  border-radius: var(--lcb-radius, 16px);
  overflow: hidden;
  box-shadow: var(--lcb-shadow, 0 4px 24px rgba(26,58,107,0.10));
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
}
.lcb-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--lcb-shadow-xl, 0 20px 60px rgba(26,58,107,0.20));
}
.lcb-product-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--lcb-accent-teal, #00b8a9);
  color: #fff;
  font-family: var(--lcb-font-heading, sans-serif);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  z-index: 2;
}
.lcb-product-img {
  height: 220px;
  background: linear-gradient(135deg, var(--lcb-pale-blue, #e8f4fb), #e0eef8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.lcb-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lcb-product-placeholder {
  font-size: 64px;
  opacity: 0.4;
}
.lcb-product-info { padding: 24px; }
.lcb-product-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--lcb-light-blue, #0099d6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.lcb-product-name {
  font-family: var(--lcb-font-heading, sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--lcb-deep-blue, #1a3a6b);
  margin-bottom: 8px;
}
.lcb-product-desc {
  font-size: 13px;
  color: var(--lcb-text-light, #6b7d99);
  line-height: 1.5;
  margin-bottom: 16px;
}
.lcb-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lcb-product-price {
  font-family: var(--lcb-font-heading, sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--lcb-deep-blue, #1a3a6b);
}
.lcb-product-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--lcb-text-light, #6b7d99);
}
.lcb-price-old {
  text-decoration: line-through;
  color: var(--lcb-text-light, #6b7d99);
  font-size: 16px;
  font-weight: 400;
  margin-right: 8px;
}
.lcb-btn-add-cart {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--lcb-brand-blue, #2563a8), var(--lcb-light-blue, #0099d6));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,168,0.3);
}
.lcb-btn-add-cart:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 20px rgba(37,99,168,0.4);
}
.lcb-btn-add-cart.added {
  background: linear-gradient(135deg, var(--lcb-success, #34d399), var(--lcb-accent-teal, #00b8a9));
}

/* ─── CART SIDEBAR ─── */
.lcb-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,30,61,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.lcb-cart-overlay.open { opacity: 1; visibility: visible; }
.lcb-cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--lcb-white, #fff);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  display: flex;
  flex-direction: column;
}
.lcb-cart-panel.open { transform: translateX(0); }
.lcb-cart-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--lcb-pale-blue, #e8f4fb);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lcb-cart-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--lcb-deep-blue, #1a3a6b);
}
.lcb-cart-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--lcb-pale-blue, #e8f4fb);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lcb-cart-close:hover { background: var(--lcb-accent-coral, #ff6b6b); color: #fff; }
.lcb-cart-items { flex: 1; overflow-y: auto; padding: 20px 28px; }
.lcb-cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--lcb-pale-blue, #e8f4fb);
  align-items: center;
}
.lcb-cart-item-img {
  width: 60px; height: 60px;
  background: var(--lcb-pale-blue, #e8f4fb);
  border-radius: var(--lcb-radius-sm, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}
.lcb-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.lcb-cart-item-info { flex: 1; }
.lcb-cart-item-name { font-weight: 700; font-size: 14px; color: var(--lcb-deep-blue, #1a3a6b); }
.lcb-cart-item-price { font-size: 13px; color: var(--lcb-text-light, #6b7d99); margin-top: 2px; }
.lcb-cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.lcb-qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--lcb-pale-blue, #e8f4fb);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lcb-qty-btn:hover { background: var(--lcb-pale-blue, #e8f4fb); }
.lcb-qty-val { font-weight: 700; font-size: 14px; min-width: 20px; text-align: center; }
.lcb-cart-item-remove {
  background: none;
  border: none;
  color: var(--lcb-accent-coral, #ff6b6b);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: transform 0.2s;
}
.lcb-cart-item-remove:hover { transform: scale(1.2); }
.lcb-cart-empty { text-align: center; padding: 60px 20px; color: var(--lcb-text-light, #6b7d99); }
.lcb-cart-empty-icon { font-size: 60px; margin-bottom: 16px; opacity: 0.3; }
.lcb-cart-footer {
  padding: 24px 28px;
  border-top: 1px solid var(--lcb-pale-blue, #e8f4fb);
  background: var(--lcb-ice, #f0f7fc);
}
.lcb-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.lcb-cart-total-label { font-weight: 600; color: var(--lcb-text-light, #6b7d99); }
.lcb-cart-total-value {
  font-family: var(--lcb-font-heading, sans-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--lcb-deep-blue, #1a3a6b);
}
.lcb-btn-checkout {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--lcb-brand-blue, #2563a8), var(--lcb-light-blue, #0099d6));
  color: #fff;
  font-family: var(--lcb-font-heading, sans-serif);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.lcb-btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,168,0.3); }

/* ─── CHECKOUT PAGE ─── */
.lcb-checkout-page {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding-top: 40px;
}
.lcb-checkout-form-section h2,
.lcb-checkout-order-section h2,
.lcb-checkout-order-section h3 {
  font-family: var(--lcb-font-heading, sans-serif);
  color: var(--lcb-deep-blue, #1a3a6b);
  margin-bottom: 24px;
}
.lcb-form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lcb-form-field { margin-bottom: 16px; }
.lcb-form-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--lcb-text, #2c3e5a);
  margin-bottom: 6px;
}
.lcb-form-field input,
.lcb-form-field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--lcb-pale-blue, #e8f4fb);
  border-radius: var(--lcb-radius-sm, 10px);
  font-family: var(--lcb-font-body, sans-serif);
  font-size: 15px;
  color: var(--lcb-text, #2c3e5a);
  transition: border-color 0.3s;
  outline: none;
}
.lcb-form-field input:focus,
.lcb-form-field textarea:focus { border-color: var(--lcb-light-blue, #0099d6); }

/* Order summary table */
.lcb-order-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.lcb-order-table th, .lcb-order-table td {
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--lcb-pale-blue, #e8f4fb);
  font-size: 14px;
}
.lcb-order-table th { font-weight: 600; color: var(--lcb-text-light, #6b7d99); }
.lcb-order-table td:last-child, .lcb-order-table th:last-child { text-align: right; }
.lcb-order-total td { font-size: 18px; }

/* Payment methods */
.lcb-payment-methods { margin-bottom: 24px; }
.lcb-payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--lcb-pale-blue, #e8f4fb);
  border-radius: var(--lcb-radius-sm, 10px);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.lcb-payment-option:has(input:checked) {
  border-color: var(--lcb-brand-blue, #2563a8);
  background: var(--lcb-ice, #f0f7fc);
}
.lcb-payment-option input[type="radio"] { accent-color: var(--lcb-brand-blue, #2563a8); }
.lcb-payment-icon { height: 32px; width: auto; }
.lcb-payment-option strong { display: block; font-size: 15px; color: var(--lcb-deep-blue, #1a3a6b); }
.lcb-payment-option span { font-size: 13px; color: var(--lcb-text-light, #6b7d99); }

.lcb-btn-place-order {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--lcb-brand-blue, #2563a8), var(--lcb-light-blue, #0099d6));
  color: #fff;
  font-family: var(--lcb-font-heading, sans-serif);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}
.lcb-btn-place-order:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,168,0.3); }
.lcb-btn-place-order:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── RESPONSIVE ─── */
@media(max-width:768px) {
  .lcb-checkout-page { grid-template-columns: 1fr; gap: 32px; }
  .lcb-form-row-half { grid-template-columns: 1fr; }
  .lcb-products-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:500px) {
  .lcb-products-grid { grid-template-columns: 1fr; }
}

/* Default product image */
.lcb-product-default-img {
  opacity: 0.7;
  object-fit: contain;
  padding: 20px;
  background: linear-gradient(135deg, var(--lcb-pale-blue, #e8f4fb), var(--lcb-ice, #f0f7fc));
}
