* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: #0066cc; text-decoration: none; }
img { max-width: 100%; height: auto; }

.header { background: #1a1a2e; color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 24px; font-weight: bold; color: #fff !important; text-transform: uppercase; letter-spacing: 2px; }
.nav { display: flex; gap: 20px; }
.nav a { color: #ccc; font-size: 14px; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-actions a { color: #ccc; font-size: 14px; }
.cart-link { background: #e94560; color: #fff !important; padding: 6px 15px; border-radius: 4px; font-weight: bold; }

.btn { display: inline-block; padding: 10px 20px; background: #f0f0f0; color: #333; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #e0e0e0; }
.btn-primary { background: #0066cc; color: #fff; }
.btn-primary:hover { background: #0052a3; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-block { display: block; width: 100%; }

.hero { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; text-align: center; padding: 80px 20px; }
.hero h1 { font-size: 48px; margin-bottom: 15px; }
.hero p { font-size: 18px; margin-bottom: 30px; color: #aaa; }
.hero .btn { background: #e94560; color: #fff; font-size: 18px; padding: 15px 40px; }

.section { padding: 40px 0; }
.section-title { font-size: 28px; margin-bottom: 30px; text-align: center; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: box-shadow 0.3s; }
.product-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.product-card a { color: #333; }
.product-card h3 { padding: 10px 15px 0; font-size: 16px; }
.product-image { height: 200px; display: flex; align-items: center; justify-content: center; background: #f9f9f9; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.no-image { background: #eee; color: #999; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.price { padding: 8px 15px 10px; }
.current { font-size: 20px; font-weight: bold; color: #e94560; }
.compare { font-size: 14px; color: #999; text-decoration: line-through; margin-left: 8px; }
.product-card .btn { margin: 0 15px 15px; width: calc(100% - 30px); text-align: center; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-images .main-image { width: 100%; max-height: 500px; object-fit: contain; }
.product-info h1 { font-size: 32px; margin-bottom: 10px; }
.product-info .price .current { font-size: 28px; }
.in-stock { color: #28a745; }
.out-of-stock { color: #dc3545; }
.description { margin: 20px 0; line-height: 1.8; color: #555; }
.add-cart-form { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.qty-input { width: 70px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; text-align: center; }

.filters { margin-bottom: 30px; }
.search-form { display: flex; gap: 10px; margin-bottom: 15px; }
.search-form input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; max-width: 400px; }
.category-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.category-filters a { padding: 6px 15px; border: 1px solid #ddd; border-radius: 20px; font-size: 14px; color: #666; }
.category-filters a.active { background: #0066cc; color: #fff; border-color: #0066cc; }

.cart-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cart-table th, .cart-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
.cart-table th { background: #f8f8f8; font-weight: 600; }
.cart-qty { width: 60px; padding: 6px; border: 1px solid #ddd; border-radius: 4px; text-align: center; }
.btn-remove { background: none; border: none; color: #dc3545; cursor: pointer; }
.cart-actions { display: flex; gap: 15px; margin-top: 20px; }
.text-right { text-align: right; }

.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.payment-option { display: block; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 8px; cursor: pointer; }
.payment-option:hover { background: #f8f8f8; }
.payment-option input { margin-right: 10px; }

.order-summary { background: #f8f8f8; padding: 25px; border-radius: 8px; position: sticky; top: 100px; }
.summary-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; padding: 15px 0; font-size: 20px; font-weight: bold; border-top: 2px solid #333; margin-top: 10px; }

.order-confirm { text-align: center; max-width: 600px; margin: 0 auto; }
.success-icon { width: 80px; height: 80px; background: #28a745; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 20px; }

.footer { background: #1a1a2e; color: #666; text-align: center; padding: 30px 0; margin-top: 60px; }
.loading { text-align: center; padding: 40px; color: #999; }
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.toast { position: fixed; bottom: 20px; right: 20px; background: #28a745; color: #fff; padding: 12px 20px; border-radius: 4px; z-index: 9999; }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
