/* shared-ecommerce.css */
:root {
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --glass: rgba(255, 255, 255, 0.03);
    --frame: rgba(255, 255, 255, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, #071028 100%);
    color: var(--text);
    padding: 2rem;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container { width: 100%; max-width: 1200px; }

/* HEADER STYLES */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }

.logo {
    width: 3.5rem; height: 3.5rem; border-radius: 0.625rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--frame);
    box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.6);
    font-weight: 800; font-size: 1.25rem;
}

/* BUTTON STYLES */
.btn {
    padding: 0.625rem 0.875rem; border-radius: 0.625rem;
    border: none; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent, #00d26a); color: #02110a;
}

.btn-primary:hover {
    background: var(--accent-hover, #00b859);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 106, 0.3);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted); font-weight: 600;
}

/* PRODUCT GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.125rem;
    margin-top: 0.875rem;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
    border-radius: 0.75rem; padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden; position: relative;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-0.375rem);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.55);
}

.pic-frame {
    height: 13.75rem; border-radius: 0.625rem; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--frame); position: relative;
}

.pic-frame img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.55s ease;
}

.card:hover .pic-frame img { transform: scale(1.06) rotate(-1deg); }

.product-info {
    display: flex; align-items: center;
    justify-content: space-between; padding-top: 0.625rem;
}

.name { font-weight: 700; font-size: 1rem; }

.price {
    background: rgba(0, 0, 0, 0.35); padding: 0.375rem 0.625rem;
    border-radius: 0.5rem; font-weight: 800;
    color: var(--accent, #00d26a); font-size: 0.9rem;
}

/* MODAL (Popup) */
.modal {
    position: fixed; inset: 0;
    background: linear-gradient(180deg, rgba(1,2,3,0.6), rgba(0,0,0,0.6));
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; backdrop-filter: blur(6px);
    visibility: hidden; opacity: 0; transition: opacity 0.3s ease;
}

.modal.open { visibility: visible; opacity: 1; }

.modal-card {
    width: 92%; max-width: 900px;
    background: linear-gradient(180deg, #081217, #071018);
    border-radius: 0.875rem; padding: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: grid; grid-template-columns: 1fr 20rem; gap: 1.125rem;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    body { padding: 1rem; }
    .modal-card { grid-template-columns: 1fr; }
}

/* FLOATING ANIMATIONS */
.float-slow { animation: floatY 6s ease-in-out infinite; }
.float-medium { animation: floatY 5s ease-in-out infinite; }
.float-fast { animation: floatY 4s ease-in-out infinite; }

@keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-0.5rem); }
    100% { transform: translateY(0); }
}