* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; color: #333; line-height: 1.5; }
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 80px; }
.logo { flex: 1; font-size: 24px; font-weight: 700; color: #2c3e50; text-decoration: none; letter-spacing: 1px; }
.logo span { color: #3498db; }
.nav-wrapper { flex: 2; display: flex; justify-content: center; align-items: center; }
.nav-menu { list-style: none; display: flex; gap: 40px; }
.nav-link { text-decoration: none; color: #333; font-weight: 500; font-size: 16px; transition: color 0.3s; }
.nav-link:hover { color: #3498db; }
.address-side { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.address-btn { display: flex; align-items: center; gap: 6px; background: #f8f9fa; color: #333; padding: 8px 14px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 500; transition: all 0.3s ease; cursor: pointer; border: none; font-family: Arial, sans-serif; }
.address-btn:hover { background: #e9ecef; color: #3498db; transform: translateY(-1px); }
.location-icon { width: 14px; height: 14px; fill: #3498db; }
.banner-wrapper { width: 100%; }
.banner-image { display: block; width: 100%; height: auto; }
.main-title-section { padding: 60px 20px; text-align: center; }
.main-title { font-size: 36px; font-weight: 700; color: #2c3e50; line-height: 1.2; }
.subtitle-text { margin-top: 15px; font-size: 16px; color: #555; }
.cards-grid { max-width: 900px; margin: 0 auto; padding: 20px 40px 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.card-link { display: block; width: 100%; aspect-ratio: 4 / 3; background: #eee; border-radius: 8px; overflow: hidden; position: relative; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.card-link:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
.card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); padding: 20px; color: white; text-align: center; }
.card-title { font-size: 17px; font-weight: 600; }
.footer { background: #f5f5f5; padding: 20px 0; text-align: center; font-size: 14px; color: #555; }
.back-to-top { position: fixed; bottom: 30px; right: 30px; background: #3498db; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 12px rgba(52,152,219,0.4); opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; z-index: 999; cursor: pointer; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 24px; height: 24px; fill: white; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 2000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-window { position: relative; width: 90%; max-width: 1200px; max-height: 90vh; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); overflow-y: auto; padding: 40px 30px 30px; display: flex; flex-direction: column; }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #666; font-size: 28px; cursor: pointer; z-index: 10; padding: 5px; transition: color 0.2s; }
.modal-close:hover { color: #d9534f; }
.modal-content h2 { margin-bottom: 10px; color: #2c3e50; font-size: 28px; }
.modal-content > p { margin-bottom: 25px; line-height: 1.6; color: #555; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: #f9f9f9; border-radius: 10px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.product-card img { width: 100%; height: 180px; object-fit: cover; display: block; cursor: zoom-in; transition: opacity 0.2s; }
.product-card img:hover { opacity: 0.85; }
.product-card-body { padding: 14px; }
.product-card-body h4 { font-size: 15px; color: #2c3e50; margin-bottom: 6px; }
.product-card-body p { font-size: 13px; color: #777; line-height: 1.4; margin-bottom: 10px; }
.product-price { font-size: 18px; font-weight: 700; color: #e67e22; margin-bottom: 10px; }
.qty-wrapper { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qty-btn { width: 32px; height: 32px; background: #f0f0f0; color: #333; border: 1px solid #ddd; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; user-select: none; }
.qty-input { width: 48px; text-align: center; padding: 4px; border: 1px solid #ccc; border-radius: 6px; }
.btn-3d { margin-top: 10px; width: 100%; padding: 8px 0; background: #3498db; color: white; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; transition: background 0.2s; }
.btn-3d:hover { background: #2980b9; }
.add-to-cart-btn { margin-top: 8px; width: 100%; padding: 10px 0; background: #27ae60; color: white; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; transition: background 0.2s; }
.add-to-cart-btn:hover { background: #229954; }
.cart-badge { display: inline-block; margin-left: 4px; padding: 2px 8px; background: #e74c3c; color: white; border-radius: 12px; font-size: 13px; min-width: 20px; text-align: center; }
.cart-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #eee; gap: 12px; }
.cart-item-name { flex: 2; font-size: 14px; font-weight: 600; color: #2c3e50; }
.cart-item-price { flex: 1; font-size: 14px; color: #e67e22; font-weight: 700; }
.cart-qty-controls { display: flex; align-items: center; gap: 6px; }
.cart-qty-btn { width: 28px; height: 28px; background: #f0f0f0; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.cart-qty-value { min-width: 32px; text-align: center; font-size: 14px; }
.cart-remove-btn { background: none; border: none; color: #e74c3c; font-size: 20px; cursor: pointer; padding: 4px 8px; transition: color 0.2s; }
.cart-remove-btn:hover { color: #c0392b; }
.cart-empty { text-align: center; padding: 40px 0; color: #999; font-size: 16px; }
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 5000; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: #fff; font-size: 42px; cursor: pointer; z-index: 10; line-height: 1; transition: color 0.2s; padding: 5px 10px; }
.lightbox-close:hover { color: #e74c3c; }
.notice-window { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); padding: 30px 35px; text-align: center; max-width: 380px; width: 90%; }
.notice-text { font-size: 15px; color: #2c3e50; line-height: 1.5; margin-bottom: 20px; }
.notice-ok-btn { background: #3498db; color: white; border: none; border-radius: 6px; padding: 10px 36px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: Arial, sans-serif; transition: background 0.2s; }
.notice-ok-btn:hover { background: #2980b9; }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); } .product-card img { height: 140px; } .cart-item { flex-direction: column; align-items: flex-start; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } 

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-window {
  background: white;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.modal-close {
  position: absolute;
  right: 16px; top: 12px;
  background: none; border: none; font-size: 24px; cursor: pointer;
}
}