/* ===== Global Styles ===== */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent: #ff4d4d;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Header ===== */
.navbar-brand img {
    transition: var(--transition);
    width: 100px;
}

.nav-link {
    color: var(--text-primary) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* ===== Product Cards ===== */
.product-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.product-image {
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* ===== 3D Effects ===== */
#threejs-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}
.size-option.active {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.quantity-selector button {
    transition: all 0.3s ease;
}

.quantity-selector button:active {
    transform: scale(0.95);
}

#quantity {
    -moz-appearance: textfield;
    width: 60px;
    text-align: center;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-text {
    animation: float 3s ease-in-out infinite;
}

/* Custom navbar-toggler icon color */
.navbar-toggler {
    border-color: rgba(255,255,255,0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    flex-grow: 0;
}

/* Mobile menu styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--secondary-bg);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .navbar-collapse {
        background: var(--secondary-bg);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
}