/* IA Store — foundation styles (products, cart, checkout)
   Uses the same gold/dark palette as ia-shop-theme. Theme CSS variables
   take priority if defined; these are the fallbacks. */

:root {
  --iastore-gold: #c9a84c;
  --iastore-dark: #0a0a0a;
  --iastore-cream: #f7f7f4;
  --iastore-border: #e2e2e2;
}

.iastore-btn {
  display: inline-block;
  background: var(--iastore-dark);
  color: var(--iastore-gold);
  border: none;
  padding: 12px 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 3px;
  transition: opacity 0.2s ease;
}
.iastore-btn:hover { opacity: 0.85; }
.iastore-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.iastore-cart-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.iastore-cart-table th { text-align: left; padding: 10px; border-bottom: 2px solid var(--iastore-dark); }
.iastore-cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--iastore-border); vertical-align: middle; }
.iastore-cart-product { display: flex; align-items: center; gap: 12px; }
.iastore-cart-product img { width: 56px; height: 70px; object-fit: cover; border-radius: 2px; }
.iastore-cart-variant { font-size: 12px; color: #888; }
.iastore-cart-qty { width: 60px; padding: 6px; border: 1px solid var(--iastore-border); }
.iastore-cart-remove { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; }
.iastore-cart-remove:hover { color: #e74c3c; }

.iastore-cart-totals { display: flex; justify-content: flex-end; gap: 20px; font-size: 18px; margin: 20px 0; }

.iastore-checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.iastore-checkout-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.iastore-checkout-form input, .iastore-checkout-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--iastore-border); border-radius: 3px; margin-bottom: 16px;
}
.iastore-checkout-summary { background: var(--iastore-cream); padding: 24px; border-radius: 4px; }
.iastore-summary-items { list-style: none; margin: 0 0 16px; padding: 0; }
.iastore-summary-items li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--iastore-border); font-size: 14px; }
.iastore-summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding-top: 10px; }

.iastore-notice { padding: 14px 18px; border-radius: 3px; margin-bottom: 20px; font-size: 14px; }
.iastore-notice-error { background: #fdecea; color: #c0392b; border-left: 4px solid #e74c3c; }
.iastore-notice-info { background: #fff8e1; color: #7a5000; border-left: 4px solid #f39c12; }

.iastore-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0; }
.iastore-single-image img { width: 100%; border-radius: 4px; }
.iastore-single-price { font-size: 26px; color: var(--iastore-dark); font-weight: 700; margin: 12px 0; }
.iastore-single-author { color: #888; margin-bottom: 8px; }

#iastore-flash {
  display: none;
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 14px 22px; border-radius: 4px; font-weight: 600; color: #fff;
}
.iastore-flash-success { background: #27ae60; }
.iastore-flash-error { background: #e74c3c; }

@media (max-width: 780px) {
  .iastore-checkout-grid, .iastore-single-grid { grid-template-columns: 1fr; }
}
