:root { --color-accent: #7c4dff; --color-background: #ede7f6; --color-primary: #311b92; --color-secondary: #4527a0; --color-text: #2d3436; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--color-background); color: var(--color-text); min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
main { flex: 1; }
.add-btn { background: var(--color-primary); color: #fff; border: none; padding: 8px 18px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; }
.add-btn:hover { background: var(--color-secondary); }
.add-btn-lg { padding: 12px 28px; font-size: 1rem; font-weight: 600; }
.back-link { display: inline-block; margin: 24px 0 8px; color: #666; font-size: 0.95rem; }
.back-link:hover { color: var(--color-primary); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0 48px; align-items: start; }
.detail-image { width: 100%; height: 400px; display: flex; align-items: center; justify-content: center; font-size: 8rem; border-radius: 12px; }
.detail-info { padding: 16px 0; }
.detail-name { font-size: 1.8rem; margin-bottom: 12px; }
.detail-desc { font-size: 1.05rem; color: #666; margin-bottom: 24px; line-height: 1.5; }
.detail-price { font-size: 1.8rem; font-weight: 700; color: var(--color-accent); margin-bottom: 24px; }
.detail-actions { display: flex; gap: 16px; align-items: center; }
.qty-picker { display: flex; align-items: center; gap: 12px; border: 1px solid #ddd; border-radius: 8px; padding: 6px 12px; }
.qty-picker span { min-width: 28px; text-align: center; font-size: 1.1rem; font-weight: 600; }
.qty-btn { width: 32px; height: 32px; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.qty-btn:hover { background: #f0f0f0; }
.not-found { padding: 60px 0; text-align: center; font-size: 1.1rem; color: #666; }
.not-found a { color: var(--color-accent); text-decoration: underline; }
.cart-page-empty { text-align: center; padding: 80px 0; }
.cart-page-empty p { font-size: 1.2rem; color: #999; margin-bottom: 24px; }
.cart-table { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-top: 16px; }
.cart-row { display: flex; align-items: center; padding: 16px 20px; gap: 16px; border-bottom: 1px solid #f0f0f0; }
.cart-row:last-child { border-bottom: none; }
.cart-row-product { display: flex; align-items: center; gap: 14px; flex: 1; }
.cart-row-icon { width: 60px; height: 60px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.cart-row-name { font-weight: 600; }
.cart-row-price { font-size: 0.85rem; color: #888; margin-top: 2px; }
.cart-row-qty { display: flex; align-items: center; gap: 8px; }
.cart-row-qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-row-subtotal { min-width: 100px; text-align: right; font-weight: 600; color: var(--color-accent); }
.cart-row-remove { background: none; border: none; font-size: 1.4rem; color: #ccc; cursor: pointer; padding: 4px 8px; transition: color 0.15s; }
.cart-row-remove:hover { color: var(--color-accent); }
.cart-summary { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 24px; margin-top: 20px; max-width: 400px; margin-left: auto; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 1rem; }
.cart-summary-total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid #eee; padding-top: 12px; margin-top: 4px; margin-bottom: 20px; }
.checkout-btn { width: 100%; background: var(--color-accent); color: #fff; border: none; padding: 14px; border-radius: 8px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.checkout-btn:hover { opacity: 0.9; }
.continue-link { display: block; text-align: center; margin-top: 12px; color: #888; font-size: 0.9rem; }
.continue-link:hover { color: #333; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--color-primary); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 0.95rem; opacity: 0; transition: all 0.3s; z-index: 400; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 700px) { .product-detail { grid-template-columns: 1fr; gap: 20px; } .detail-image { height: 260px; font-size: 5rem; } .cart-row { flex-wrap: wrap; } .cart-row-subtotal { min-width: auto; } .cart-summary { max-width: 100%; } }
/* Header V2 */
header { background: var(--color-primary); color: #fff; padding: 16px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
nav { display: flex; gap: 28px; align-items: center; }
.nav-link { color: rgba(255,255,255,0.7); font-weight: 500; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: #fff; }
.cart-link { color: var(--color-accent); font-weight: 600; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 700px) { .menu-toggle { display: block; } nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-primary); flex-direction: column; padding: 16px 20px; gap: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); } nav.open { display: flex; } }
/* Hero V1 */
.hero { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; padding: 48px 24px; border-radius: 16px; margin-top: 24px; text-align: center; }
.hero-title { font-size: 2.2rem; margin-bottom: 8px; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.85; }
/* Products V2 */
.page-title { font-size: 1.6rem; padding: 32px 0 8px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 24px 0 48px; }
.product-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; display: block; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.product-info { padding: 18px; }
.product-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.product-desc { font-size: 0.85rem; color: #666; margin-bottom: 12px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--color-accent); }
/* CTA V1 */
.cta { text-align: center; padding: 48px 0; }
/* Footer V2 */
footer { background: var(--color-primary); color: rgba(255,255,255,0.6); padding: 32px 0; margin-top: 48px; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-size: 1.2rem; font-weight: 700; color: #fff; display: block; margin-bottom: 4px; }
.footer-copyright { font-size: 0.8rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
@media (max-width: 700px) { .footer-inner { flex-direction: column; gap: 16px; text-align: center; } }
