/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: #333; background-color: #fff; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Pulsante Back per Agente */
.agent-back-btn {
    position: fixed; top: 20px; left: 20px; background: rgba(0,0,0,0.8); color: white;
    padding: 8px 15px; border-radius: 50px; font-size: 12px; z-index: 9999; font-weight: bold;
}
.agent-back-btn:hover { background: #000; }

/* Header */
.shop-header { background: #fff; border-bottom: 1px solid #eee; padding: 20px 0; position: sticky; top: 0; z-index: 100; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.logo span { color: #e67e22; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: #e67e22; }
.header-actions { display: flex; gap: 20px; align-items: center; }
.cart-icon { position: relative; font-size: 1.2rem; }
.cart-count { position: absolute; top: -8px; right: -8px; background: #e67e22; color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* Hero Banner */
.hero-banner { background: #f4f4f4; padding: 80px 0; text-align: center; }
.hero-content h4 { color: #e67e22; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { color: #666; margin-bottom: 30px; font-size: 1.1rem; }
.btn-primary { background: #333; color: white; padding: 15px 35px; border-radius: 4px; font-weight: 600; display: inline-block; }
.btn-primary:hover { background: #e67e22; }

/* Sections */
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f9f9f9; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: #e67e22; margin: 15px auto 0; }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.cat-card { height: 250px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; border-radius: 8px; position: relative; overflow: hidden; cursor: pointer; }
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); transition: 0.3s; }
.cat-card:hover::before { background: rgba(0,0,0,0.5); }
.cat-card h3 { position: relative; color: white; font-size: 1.5rem; z-index: 2; border: 2px solid white; padding: 10px 20px; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 8px; overflow: hidden; transition: 0.3s; border: 1px solid #eee; }
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.product-img { position: relative; height: 300px; overflow: hidden; background: #f4f4f4; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.badge-new, .badge-sale { position: absolute; top: 15px; left: 15px; padding: 5px 10px; font-size: 0.8rem; font-weight: bold; color: white; border-radius: 4px; z-index: 2; }
.badge-new { background: #2ecc71; }
.badge-sale { background: #e74c3c; }
.product-actions { position: absolute; bottom: -50px; left: 0; width: 100%; display: flex; transition: 0.3s; }
.product-card:hover .product-actions { bottom: 0; }
.btn-view, .btn-add { flex: 1; border: none; padding: 15px; font-weight: bold; cursor: pointer; text-align: center; font-size: 0.9rem; }
.btn-view { background: rgba(255,255,255,0.9); color: #333; }
.btn-add { background: #333; color: white; }
.btn-add:hover { background: #e67e22; }
.product-info { padding: 20px; text-align: center; }
.product-info .category { color: #999; font-size: 0.8rem; text-transform: uppercase; }
.product-info h3 { font-size: 1.1rem; margin: 5px 0 10px; }
.product-info .price { font-weight: bold; color: #333; font-size: 1.1rem; }
.product-info .price del { color: #999; font-size: 0.9rem; margin-right: 5px; font-weight: normal; }

/* Shop Page */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; margin-top: 40px; }
.sidebar h3 { font-size: 1.1rem; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.filter-list li { margin-bottom: 10px; color: #666; cursor: pointer; }
.filter-list li:hover { color: #e67e22; }

/* Product Single */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; }
.single-img img { width: 100%; border-radius: 8px; }
.single-info h1 { font-size: 2.5rem; margin-bottom: 10px; }
.single-price { font-size: 1.5rem; color: #e67e22; font-weight: bold; margin-bottom: 20px; }
.single-desc { color: #666; margin-bottom: 30px; }
.add-to-cart-form { display: flex; gap: 10px; margin-bottom: 30px; }
.qty-input { width: 60px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; text-align: center; }
.meta-info { border-top: 1px solid #eee; padding-top: 20px; color: #999; font-size: 0.9rem; }

/* Cart & Checkout */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th { text-align: left; padding: 15px; border-bottom: 2px solid #eee; color: #999; font-weight: 600; }
.cart-table td { padding: 20px 15px; border-bottom: 1px solid #eee; }
.cart-totals, .checkout-summary { background: #f9f9f9; padding: 30px; border-radius: 8px; }
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }

/* Footer */
.shop-footer { background: #333; color: #999; padding: 40px 0; text-align: center; margin-top: 80px; font-size: 0.9rem; }
.btn-outline { border: 2px solid #333; color: #333; padding: 12px 30px; border-radius: 4px; font-weight: 600; display: inline-block; }
.btn-outline:hover { background: #333; color: white; }

/* About & Contact Pages */
.about-layout, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.team-member img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }
.contact-form-box { background: #f9f9f9; padding: 30px; border-radius: 8px; }

/* Mobile */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
    .main-nav ul { gap: 15px; font-size: 0.9rem; }
    .shop-layout, .product-single, .checkout-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
}