:root {
    --bg-color: #0f1016;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #a855f7;
    --accent-hover: #9333ea;
    --danger: #ef4444;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    background-image: radial-gradient(circle at 50% -20%, #2e1065, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 16, 22, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

.cart-icon {
    position: relative;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}
.page-header h1 {
    font-size: 3rem;
    margin: 0 0 10px 0;
    background: -webkit-linear-gradient(#fff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: rgba(168, 85, 247, 0.3);
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #000;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    margin-top: auto;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
    color: var(--text-muted);
}

/* Product Detail */
.product-detail {
    display: flex;
    gap: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.product-detail-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}
.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    flex: 1;
}

.attribute-group {
    margin: 20px 0;
}
.attribute-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.attribute-select {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit';
}
.attribute-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.cart-table th, .cart-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.cart-table th {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.cart-total-row {
    font-size: 24px;
    font-weight: 800;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    vertical-align: middle;
    margin-right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    .nav-links {
        display: none; /* simple mobile fallback */
    }
}
