* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff0066;
    --secondary-color: #00ff9f;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --accent-yellow: #ffff00;
}

body {
    font-family: 'Bebas Neue', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Permanent Marker', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 0 var(--secondary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-icon {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

.cart-icon:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    transform: scale(1.05);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    background-image: 
        linear-gradient(135deg, rgba(255, 0, 102, 0.1) 0%, rgba(0, 255, 159, 0.1) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 102, 0.2), transparent 50%);
}

/* Disable animations on mobile for performance */
@media (min-width: 769px) {
    .hero::before {
        animation: pulse 4s ease-in-out infinite;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.graffiti-title {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(4rem, 15vw, 10rem);
    color: var(--primary-color);
    text-shadow: 
        5px 5px 0 var(--secondary-color),
        10px 10px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

/* Only animate on desktop */
@media (min-width: 769px) {
    .graffiti-title {
        animation: glitch 3s infinite;
    }
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
}

.tagline {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border: 3px solid var(--secondary-color);
    transition: all 0.3s;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.cta-button:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    transform: scale(1.05);
}

/* Products Section */
.products-section {
    padding: 5rem 5%;
    min-height: 100vh;
}

.section-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-shadow: 3px 3px 0 var(--secondary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--card-bg);
    border: 2px solid rgba(255, 0, 102, 0.3);
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 102, 0.3);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.2), rgba(0, 255, 159, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-price {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

/* About & Contact Sections */
.about-section, .contact-section {
    padding: 5rem 5%;
    text-align: center;
}

.about-content, .contact-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.contact-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--dark-bg);
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.contact-button:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.05);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--card-bg);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--primary-color);
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1500;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.cart-header h2 {
    font-size: 1.8rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 102, 0.3);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--secondary-color);
}

.remove-item {
    background: var(--primary-color);
    border: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    transition: all 0.3s;
}

.remove-item:hover {
    background: #cc0052;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--primary-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.checkout-button {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: var(--dark-bg);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.checkout-button:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.checkout-button:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== PRODUCT DETAIL MODAL STYLES ========== */
.product-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.product-modal {
    background: white;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.3s ease;
}

@keyframes slideInModal {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variant-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.variant-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 3px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.variant-image.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    transform: scale(1.05);
}

.variant-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.modal-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    background: #f5f5f5;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-product-name {
    font-size: 1.8rem;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-product-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.modal-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 5px;
}

.price-label {
    font-weight: bold;
    color: #333;
}

.price-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.variant-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variant-selector label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.variant-selector select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background: white;
}

.variant-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
}

.modal-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-quantity label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.modal-quantity input {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.modal-quantity input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
}

.modal-add-to-cart-btn {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.modal-add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-add-to-cart-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close-btn:hover {
    color: #000;
}

.modal-body {
    display: flex;
    gap: 30px;
    padding: 30px;
    align-items: flex-start;
}

.modal-image {
    flex: 1;
    min-width: 200px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    position: relative;
    padding-top: 30px;
}

.modal-info h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.modal-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b35;
    margin: 0 0 10px 0;
}

.modal-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.variant-selector {
    margin: 20px 0;
}

.variant-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.variants {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-button {
    padding: 10px 15px;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
}

.variant-button:hover {
    border-color: #ff6b35;
    background-color: #fff5f0;
}

.variant-button.active {
    border-color: #ff6b35;
    background-color: #ff6b35;
    color: white;
}

.quantity-selector {
    margin: 20px 0;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.quantity-selector input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.add-to-cart-modal-btn {
    width: 100%;
    padding: 12px 20px;
    margin-top: 20px;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-modal-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -45%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-info {
        padding-top: 0;
    }
    
    .close-btn {
        right: 15px;
        top: 10px;
        font-size: 24px;
    }
}


/* Simple Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: black;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}
.close-btn:hover {
    background: red;
}
.modal-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}
.modal-price {
    font-size: 24px;
    font-weight: bold;
    color: red;
    margin: 10px 0;
}
.variant-select, .quantity-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
.buy-btn {
    width: 100%;
    padding: 15px;
    background: red;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}
.buy-btn:hover {
    background: black;
}
.product-card {
    cursor: pointer;
    transition: transform 0.3s;
}
.product-card:hover {
    transform: scale(1.05);
}

/* Modal thumbnail gallery */
.modal-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 15px 0;
    max-width: 100%;
}

.modal-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, opacity 0.3s;
    opacity: 0.7;
}

.modal-thumbnail:hover {
    opacity: 1;
    border-color: #FF0000;
}

.modal-thumbnail.active {
    border-color: #FF0000;
    opacity: 1;
}

/* Fix product card images */
.product-card img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

/* Compact cart with small thumbnails */
#cartItems {
    max-height: 360px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #f8f8f8;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.cart-item-meta {
    font-size: 12px;
    color: #666;
}

.cart-item-total {
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
}

.cart-item-remove {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #e74c3c;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
}
#shipping-section { border:1px solid #e3e3e3; padding:12px; margin:8px 0; border-radius:8px; }
#shipping-section .grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#shipping-section label { display:flex; flex-direction:column; font-size:14px; gap:4px; }
#shipping-section input, #shipping-section select { padding:6px 8px; }
