* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #333; background: #f5f5f5; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: #e91e63; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; color: #555; font-weight: 500; transition: color .2s; }
.nav a:hover { color: #e91e63; }
.cart-link { position: relative; }
.cart-count { background: #e91e63; color: #fff; border-radius: 50%; padding: 2px 7px; font-size: .75rem; position: absolute; top: -8px; right: -12px; }

.hero { background: linear-gradient(135deg, #e91e63 0%, #ff5722 100%); color: #fff; padding: 4rem 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: .9; }

.btn { display: inline-block; padding: .7rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: #e91e63; color: #fff; }
.btn-primary:hover { background: #c2185b; }
.btn-outline { background: transparent; border: 2px solid #e91e63; color: #e91e63; }
.btn-outline:hover { background: #e91e63; color: #fff; }
.btn-cart { background: #fff; border: 2px solid #e91e63; color: #e91e63; width: 100%; margin-top: .5rem; }
.btn-cart:hover { background: #e91e63; color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-disabled { background: #ccc; color: #fff; cursor: not-allowed; }
.btn-remove { background: none; border: none; color: #999; font-size: 1.2rem; cursor: pointer; padding: 0 .5rem; }
.btn-remove:hover { color: #e91e63; }

.features { padding: 3rem 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature { text-align: center; padding: 1.5rem; }
.feature-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: #777; font-size: .9rem; }

.section { padding: 3rem 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 2rem; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.product-card a { text-decoration: none; color: inherit; }
.product-img { height: 220px; overflow: hidden; background: #f9f9f9; display: flex; align-items: center; justify-content: center; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info { padding: 1rem; }
.product-category { color: #e91e63; font-size: .8rem; font-weight: 600; text-transform: uppercase; margin-bottom: .3rem; }
.product-info h3 { font-size: 1rem; margin-bottom: .5rem; line-height: 1.3; }
.product-price { display: flex; align-items: center; gap: .5rem; }
.price { font-size: 1.2rem; font-weight: 700; color: #e91e63; }
.price-lg { font-size: 1.8rem; }
.old-price { font-size: .95rem; color: #999; text-decoration: line-through; }
.product-card .btn-cart { margin: 0 1rem 1rem; width: calc(100% - 2rem); }

.catalog-filters { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-input, .filter-select { padding: .8rem 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; background: #fff; }
.filter-input { flex: 1; min-width: 200px; }
.filter-select { min-width: 180px; }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.page-btn { padding: .5rem 1rem; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; font-size: .9rem; }
.page-btn.active { background: #e91e63; color: #fff; border-color: #e91e63; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.detail-main-img { background: #fff; border-radius: 12px; overflow: hidden; padding: 2rem; text-align: center; }
.detail-main-img img { max-width: 100%; max-height: 400px; object-fit: contain; }
.detail-thumbs { display: flex; gap: .5rem; margin-top: 1rem; }
.thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.thumb:hover { border-color: #e91e63; }
.detail-info h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.detail-price { margin-bottom: 1.5rem; }
.detail-specs { margin-bottom: 1.5rem; }
.detail-specs div { padding: .4rem 0; border-bottom: 1px solid #eee; }
.detail-desc { color: #666; line-height: 1.6; margin-bottom: 1.5rem; }

.cart-items { margin-bottom: 2rem; }
.cart-item { display: flex; align-items: center; gap: 1rem; background: #fff; padding: 1rem; border-radius: 10px; margin-bottom: .5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; margin-bottom: .3rem; }
.cart-item-actions { display: flex; align-items: center; gap: .5rem; }
.cart-item-actions button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 1rem; }
.cart-total { text-align: right; padding: 1.5rem; background: #fff; border-radius: 10px; margin-bottom: 2rem; }
.order-form { background: #fff; padding: 2rem; border-radius: 12px; }
.order-form h2 { margin-bottom: 1rem; }
.order-form input, .order-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; margin-bottom: .8rem; font-family: inherit; }
.order-success { text-align: center; padding: 3rem; }
.order-success h2 { margin-bottom: 1rem; }
.empty-cart { text-align: center; padding: 3rem; }
.empty-cart p { margin-bottom: 1rem; font-size: 1.2rem; }

.notification { position: fixed; bottom: 2rem; right: 2rem; background: #333; color: #fff; padding: 1rem 1.5rem; border-radius: 8px; transform: translateY(100px); opacity: 0; transition: all .3s; z-index: 9999; }
.notification.show { transform: translateY(0); opacity: 1; }

.footer { background: #333; color: #aaa; text-align: center; padding: 2rem 0; margin-top: 3rem; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .cart-item { flex-wrap: wrap; }
}
