* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a1a1a; background: #fafafa; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-size: 1.4rem; }
nav { display: flex; gap: 24px; align-items: center; }
nav a { font-weight: 600; color: #333; }
#cart-link { background: #111; color: #fff; padding: 8px 16px; border-radius: 20px; }

.hero { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: #fff; padding: 80px 0; text-align: center; }
.hero h2 { font-size: 2.4rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }

.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; border: none; cursor: pointer; font-weight: 700; font-size: 1rem; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #111; color: #fff; }

.section-title { margin: 48px 0 24px; font-size: 1.6rem; text-align: center; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; padding-bottom: 60px; }
.product-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.product-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: #f0f0f5; }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-weight: 700; font-size: 1.05rem; }
.product-price { color: #6c5ce7; font-weight: 700; font-size: 1.1rem; }
.add-to-cart { margin-top: auto; background: #111; color: #fff; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.add-to-cart:hover { background: #333; }

.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; z-index: 20; }
.cart-overlay.active { display: block; }
.cart-drawer { position: fixed; top: 0; right: -400px; width: 360px; max-width: 90vw; height: 100%; background: #fff; z-index: 30; transition: right .25s ease; display: flex; flex-direction: column; }
.cart-drawer.active { right: 0; }
.cart-drawer-inner { display: flex; flex-direction: column; height: 100%; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
.cart-header button { font-size: 1.6rem; background: none; border: none; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-item-name { font-weight: 600; }
.cart-item-qty { color: #888; font-size: .9rem; }
.remove-item { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 1.2rem; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; }
.cart-total { font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.cart-footer .btn { width: 100%; }
.empty-cart { text-align: center; color: #999; padding: 40px 0; }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; border-radius: 14px; padding: 32px; width: 400px; max-width: 90vw; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 1.6rem; background: none; border: none; cursor: pointer; }
.modal-content h3 { margin-bottom: 20px; }
.modal-content.success { text-align: center; }
#checkout-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
#checkout-form input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; margin-top: 6px; font-size: .95rem; }
.form-row { display: flex; gap: 12px; }
.form-row label { flex: 1; }
#checkout-form .btn { width: 100%; margin-top: 10px; }

.site-footer { text-align: center; padding: 30px 0; color: #888; font-size: .85rem; border-top: 1px solid #eee; margin-top: 40px; }
