/* WP Shopify Bridge — conversion-optimized styles */

.wpsb-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
  max-width: 480px;
}
.wpsb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.wpsb-card-img { width: 100%; height: auto; display: block; }
.wpsb-card-body { padding: 20px; }
.wpsb-card-title { margin: 0 0 8px; font-size: 1.25rem; }
.wpsb-card-price { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wpsb-price-now { font-size: 1.5rem; font-weight: 700; color: #111; }
.wpsb-price-was { color: #9ca3af; text-decoration: line-through; }
.wpsb-badge {
  background: #ef4444; color: #fff; padding: 2px 8px;
  border-radius: 4px; font-size: .75rem; font-weight: 600;
}
.wpsb-card-desc { color: #555; line-height: 1.5; margin: 12px 0; }
.wpsb-variant-select {
  width: 100%; padding: 10px; margin-bottom: 12px;
  border: 1px solid #d1d5db; border-radius: 6px;
}

.wpsb-btn-primary {
  background: linear-gradient(180deg, #16a34a, #15803d);
  color: #fff; border: 0; padding: 14px 24px;
  border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; width: 100%;
  transition: transform .1s, box-shadow .2s;
  box-shadow: 0 2px 6px rgba(22,163,74,.3);
}
.wpsb-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,.4); }
.wpsb-btn-primary:disabled { opacity: .6; cursor: wait; }

.wpsb-buy-now {
  background: linear-gradient(180deg, #f97316, #ea580c);
  color: #fff; border: 0; padding: 14px 28px;
  border-radius: 8px; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; text-transform: uppercase; letter-spacing: .5px;
  box-shadow: 0 4px 10px rgba(249,115,22,.4);
}
.wpsb-buy-now:hover { transform: translateY(-1px); }

/* Cart widget */
#wpsb-cart-widget { position: fixed; top: 20px; right: 20px; z-index: 9999; }
#wpsb-cart-toggle {
  background: #111; color: #fff; border: 0;
  padding: 12px 16px; border-radius: 50px;
  cursor: pointer; font-size: 1rem; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
#wpsb-cart-count {
  background: #ef4444; color: #fff;
  padding: 2px 8px; border-radius: 50px; margin-left: 6px;
  font-size: .85rem;
}

#wpsb-cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 100vw;
  height: 100vh; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15);
  transition: right .3s ease; display: flex; flex-direction: column;
}
#wpsb-cart-drawer.open { right: 0; }
.wpsb-cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid #e5e7eb;
}
.wpsb-cart-header h3 { margin: 0; }
#wpsb-cart-close {
  background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: #6b7280;
}
#wpsb-cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.wpsb-cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.wpsb-cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.wpsb-cart-item-title { font-weight: 600; margin-bottom: 4px; }
.wpsb-cart-item-price { color: #16a34a; font-weight: 600; margin-bottom: 6px; }
.wpsb-qty-controls { display: flex; gap: 6px; align-items: center; font-size: .9rem; }
.wpsb-qty-controls button {
  background: #f3f4f6; border: 0; width: 28px; height: 28px;
  border-radius: 4px; cursor: pointer;
}
.wpsb-qty-controls .wpsb-remove {
  width: auto; padding: 0 8px; color: #dc2626; background: none;
}
.wpsb-empty { color: #9ca3af; text-align: center; padding: 40px 0; }

.wpsb-cart-footer { padding: 20px; border-top: 1px solid #e5e7eb; }
.wpsb-cart-footer input {
  width: 100%; padding: 10px; margin-bottom: 8px;
  border: 1px solid #d1d5db; border-radius: 6px; box-sizing: border-box;
}
.wpsb-cart-total {
  font-size: 1.25rem; font-weight: 700; margin: 12px 0;
  display: flex; justify-content: space-between;
}
.wpsb-trust {
  text-align: center; color: #6b7280; font-size: .85rem; margin: 10px 0 0;
}

.wpsb-product-loading { padding: 40px; text-align: center; color: #9ca3af; }

@media (max-width: 480px) {
  #wpsb-cart-drawer { width: 100vw; right: -100vw; }
}

/* AI-generated landing page layout */
.wpsb-landing { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.wpsb-landing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.wpsb-hero-img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.wpsb-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.wpsb-thumbs img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 6px;
  border: 2px solid transparent; cursor: pointer;
}
.wpsb-thumbs img:hover { border-color: #16a34a; }
.wpsb-landing-copy h1 {
  font-size: 2.25rem; margin: 0 0 10px; line-height: 1.2;
}
.wpsb-sub { font-size: 1.15rem; color: #555; margin-bottom: 20px; }
.wpsb-benefits {
  list-style: none; padding: 0; margin: 20px 0;
}
.wpsb-benefits li {
  padding: 8px 0; font-size: 1.05rem; color: #111;
}
.wpsb-body { color: #444; line-height: 1.7; margin: 20px 0; }
.wpsb-trust-line {
  margin-top: 12px; color: #6b7280; font-size: .9rem; text-align: center;
}
@media (max-width: 768px) {
  .wpsb-landing-grid { grid-template-columns: 1fr; }
  .wpsb-landing-copy h1 { font-size: 1.75rem; }
}
