/* ====== CSS Variables ====== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #e83e8c;
    --accent-glow: #ff6bb5;
    --gold: #d4af37;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* ====== 3D Background ====== */
#three-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    size: 44px;
    height: 36px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 0 6px rgba(232, 62, 140, 0.4));
}

.logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(232, 62, 140, 0.7));
    transform: translateY(-1px);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #e83e8c 20%, #d4af37 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo:hover .logo-text {
    filter: drop-shadow(0 0 8px rgba(232, 62, 140, 0.6));
}

@media (max-width: 480px) {
    .logo-img {
        height: 28px;
    }
    .logo-text {
        font-size: 1.3rem;
    }
}

/* ---- Nav Links ---- */
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
}

.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.2s forwards;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #c23a6b);
    color: white;
    box-shadow: 0 4px 20px rgba(232, 62, 140, 0.4);
    border: none;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.4s forwards;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 62, 140, 0.6);
}

.hero-3d-preview {
    width: 45%;
    height: 500px;
    z-index: 2;
}

#mini-3d-container {
    width: 100%;
    height: 100%;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Section Titles ====== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-padding {
    padding: 5rem 5%;
}

.section-padding-sm {
    padding: 3rem 5%;
}

/* ====== Category Grid ====== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* 4 columns on desktop */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;                    /* perfect square */
    text-decoration: none;
    transition: transform var(--transition);
    background: var(--glass-bg);
    max-width: 100%;
    justify-self: center;
}

.card-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;                    /* image never cut */
    transition: transform var(--transition);
    display: block;
}

.category-card:hover .card-image img {
    transform: scale(1.03);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
}

/* ====== Product Grid (Featured Products) ====== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);   /* 5 columns on desktop */
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    position: relative;          /* for absolute button positioning */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.discount-badge,
.badge-3d {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-3d {
    background: var(--gold);
    top: auto;
    bottom: 10px;
    left: 10px;
}

.product-info {
    padding: 1rem;
    flex: 1;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.price {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.current {
    font-weight: 700;
    color: var(--accent);
}

.original {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- Add to Cart button (hidden until hover) ---- */
.add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.7rem;
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;

    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 5;
}

.product-card:hover .add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart:hover {
    background: var(--accent-glow);
}

/* ====== Trust Badges ====== */
.badge-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ====== Newsletter ====== */
.newsletter {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 20px;
    margin: 0 5% 3rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-bg);
    color: white;
    outline: none;
}

.footer {
    background: var(--bg-secondary);
    padding: 3rem 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}