/* ===== Variables ===== */
:root {
    --bg-color: #050505;
    --text-color: #fff;
    --primary-color: #ff007a;
    /* CHEQ Pink */
    --accent-color: #00f0ff;
    /* Cyan */
    --surface-color: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    /* Tech feel */
    --font-body: 'Inter', sans-serif;
    --glow: 0 0 20px rgba(255, 0, 122, 0.3);
}

/* ===== Resets & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Interactive Background ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.8;
}

/* ===== Typography ===== */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* ===== Navigation ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.7);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links li a {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
    text-shadow: var(--glow);
}

.cart-btn {
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    background: transparent;
    color: white;
    transition: 0.3s;
}

.cart-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 400px;
}

.cta-main {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
    cursor: pointer;
}

.cta-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--primary-color);
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    mask-image: linear-gradient(to left, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Product Grid ===== */
.section-title {
    font-size: 2rem;
    margin: 100px 5% 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--border-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5% 100px;
}

.product-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.product-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square images */
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .product-img-box img {
    transform: scale(1.1);
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-info p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ===== Cart Sidebar ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: #0a0a0a;
    border-left: 1px solid var(--primary-color);
    z-index: 200;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.checkout-btn {
    width: 100%;
    padding: 20px;
    background: var(--accent-color);
    color: black;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.checkout-btn:hover {
    background: white;
}

/* ===== Modals ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 300;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #111;
    border: 1px solid var(--border-color);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal-box h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #888;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 15px;
    color: white;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ===== Powered Badge ===== */
.powered-badge {
    position: fixed;
    bottom: 30px;
    left: 30px;
    opacity: 0.6;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}