/* Shopee Product Display — style ala Shopee */
.spd-wrap { max-width: 1100px; margin: 0 auto; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #222; }
.spd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .spd-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Galeri */
.spd-gallery { position: sticky; top: 20px; align-self: start; }
.spd-main-img { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.spd-main-img img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.spd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.spd-thumb { border: 1px solid #eee; border-radius: 6px; padding: 0; background: #fff; cursor: pointer; width: 56px; height: 56px; overflow: hidden; }
.spd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spd-thumb.active { border-color: #ee4d2d; }

/* Detail */
.spd-badge { display: inline-block; background: #ee4d2d; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.spd-title { font-size: 20px; font-weight: 500; line-height: 1.4; margin: 0 0 10px; }
.spd-rating { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #757575; margin-bottom: 12px; }
.spd-stars { color: #ffb400; letter-spacing: 1px; font-size: 15px; }
.spd-rating-num { color: #ee4d2d; font-weight: 600; }
.spd-price-box { background: #fafafa; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.spd-price { color: #ee4d2d; font-size: 28px; font-weight: 700; }
.spd-price del { color: #9e9e9e; font-size: 16px; font-weight: 400; margin-left: 8px; }
.spd-short-desc { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 14px; }
.spd-long-desc { margin-top: 18px; border-top: 1px solid #eee; padding-top: 16px; }
.spd-long-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.spd-long-body { font-size: 14px; color: #444; line-height: 1.6; }

/* Variasi */
.spd-variants { margin-bottom: 16px; }
.spd-variant-row { margin-bottom: 12px; }
.spd-label { display: inline-block; min-width: 70px; font-size: 13px; color: #757575; }
.spd-pills { display: inline-flex; gap: 8px; flex-wrap: wrap; vertical-align: middle; }
.spd-pill { border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; padding: 6px 14px; font-size: 13px; cursor: pointer; transition: .15s; }
.spd-pill:hover { border-color: #ee4d2d; color: #ee4d2d; }
.spd-pill.active { border-color: #ee4d2d; color: #ee4d2d; background: #fff0ed; }

/* Qty */
.spd-qty { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.spd-qty-box { display: inline-flex; border: 1px solid #d9d9d9; border-radius: 4px; overflow: hidden; }
.spd-qty-btn { width: 32px; height: 32px; border: none; background: #fff; font-size: 18px; cursor: pointer; color: #555; }
.spd-qty-btn:hover { background: #f5f5f5; }
.spd-qty-input { width: 50px; height: 32px; border: none; border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; text-align: center; font-size: 14px; }

/* Tombol */
.spd-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.spd-btn { flex: 1; min-width: 140px; height: 48px; border: none; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer; transition: .15s; }
.spd-btn-cart { background: #ffd8c9; color: #ee4d2d; border: 1px solid #ee4d2d; }
.spd-btn-cart:hover { background: #ffc7b3; }
.spd-btn-buy { background: #ee4d2d; color: #fff; }
.spd-btn-buy:hover { background: #d73211; }
.spd-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Info toko */
.spd-shop { display: flex; align-items: center; gap: 12px; border: 1px solid #eee; border-radius: 8px; padding: 12px 16px; background: #fff; }
.spd-shop-avatar { width: 44px; height: 44px; border-radius: 50%; background: #ee4d2d; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.spd-shop-info { flex: 1; }
.spd-shop-name { font-weight: 600; font-size: 14px; }
.spd-shop-sub { font-size: 12px; color: #999; }
.spd-shop-follow { border: 1px solid #ee4d2d; color: #ee4d2d; background: #fff; border-radius: 4px; padding: 6px 16px; font-size: 13px; cursor: pointer; }
.spd-shop-follow:hover { background: #fff0ed; }

/* �─ List Produk ─ */
.spd-products { display: grid; grid-template-columns: repeat(var(--spd-cols, 4), 1fr); gap: 16px; }
@media (max-width: 900px) { .spd-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .spd-products { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.spd-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: block; transition: .15s; }
.spd-card:hover { box-shadow: 0 2px 12px rgba(238,77,45,.15); }
.spd-card-img { position: relative; aspect-ratio: 1/1; background: #f5f5f5; }
.spd-card-img img { width: 100%; height: 100%; object-fit: cover; }
.spd-card-badge { position: absolute; top: 8px; left: 8px; background: #ee4d2d; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.spd-card-body { padding: 10px; }
.spd-card-name { font-size: 13px; line-height: 1.3; margin-bottom: 6px; min-height: 34px; }
.spd-card-price { color: #ee4d2d; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.spd-card-cart { width: 100%; border: 1px solid #ee4d2d; background: #fff0ed; color: #ee4d2d; border-radius: 4px; padding: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.spd-card-cart:hover { background: #ee4d2d; color: #fff; }

/* ─ Kategori ─ */
.spd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.spd-cat { text-align: center; text-decoration: none; color: #333; }
.spd-cat img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; border: 1px solid #eee; }
.spd-cat span { display: block; font-size: 13px; margin-top: 6px; font-weight: 500; }

/* ─ Keranjang ─ */
.spd-cart { max-width: 640px; margin: 0 auto; }
.spd-cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.spd-cart-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.spd-cart-info { flex: 1; }
.spd-cart-name { font-size: 14px; font-weight: 500; }
.spd-cart-price { color: #ee4d2d; font-weight: 600; font-size: 14px; margin: 4px 0; }
.spd-cart-qty { display: flex; align-items: center; gap: 6px; }
.spd-cart-qty-input { width: 44px; height: 30px; text-align: center; border: 1px solid #d9d9d9; border-radius: 4px; }
.spd-cart-del { margin-left: auto; border: none; background: none; color: #999; font-size: 12px; cursor: pointer; text-decoration: underline; }
.spd-cart-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: 8px; }
.spd-cart-total { font-size: 15px; }

/* ─ Profil ─ */
.spd-profile { max-width: 520px; margin: 0 auto; border: 1px solid #eee; border-radius: 12px; padding: 20px; background: #fff; }
.spd-profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.spd-profile-avatar { width: 52px; height: 52px; border-radius: 50%; background: #ee4d2d; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; }
.spd-profile-name { font-weight: 700; font-size: 16px; }
.spd-profile-sub { font-size: 13px; color: #999; }
.spd-profile-stats { display: flex; gap: 12px; margin-bottom: 18px; }
.spd-profile-stats > div { flex: 1; background: #fafafa; border-radius: 8px; padding: 12px; text-align: center; }
.spd-profile-stats strong { display: block; font-size: 20px; color: #ee4d2d; }
.spd-profile-stats span { font-size: 12px; color: #777; }
.spd-profile-orders h3 { font-size: 14px; margin-bottom: 8px; }
.spd-order-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.spd-profile-guest { text-align: center; padding: 30px; }
.spd-empty { color: #999; text-align: center; padding: 20px; }

