diff --git a/index.html b/index.html index c40b57f..c3905c1 100644 --- a/index.html +++ b/index.html @@ -411,6 +411,99 @@ font-size: 0.8rem; } } + + /* Product Detail Popper */ + .product-popper { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background: white; + padding: 2rem; + border-radius: 12px; + box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); + z-index: 1000; + max-width: 600px; + width: 90%; + max-height: 80vh; + overflow-y: auto; + display: none; + } + + .product-popper.visible { + display: block; + animation: fadeIn 0.2s ease-out; + } + + .popper-overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.5); + z-index: 999; + display: none; + backdrop-filter: blur(2px); + } + + .popper-overlay.visible { + display: block; + animation: fadeIn 0.2s ease-out; + } + + .popper-close { + position: absolute; + top: 1rem; + right: 1rem; + background: none; + border: none; + font-size: 1.5rem; + cursor: pointer; + color: #666; + padding: 0.5rem; + line-height: 1; + border-radius: 50%; + transition: background 0.2s; + } + + .popper-close:hover { + background: #f0f0f0; + color: #333; + } + + .popper-content h3 { + margin-bottom: 1rem; + color: #2d3748; + font-size: 1.25rem; + } + + .popper-content { + line-height: 1.6; + color: #4a5568; + } + + @keyframes fadeIn { + from { + opacity: 0; + } + + to { + opacity: 1; + } + } + + .product-name-link { + cursor: pointer; + color: #4a5568; + transition: color 0.2s; + text-decoration: none; + } + + .product-name-link:hover { + color: #667eea; + text-decoration: underline; + } @@ -426,6 +519,14 @@ + +
+