* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #fff;
    scroll-behavior: smooth;
}

/*age verification*/
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Nearly solid black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Higher than navbar and everything else */
    backdrop-filter: blur(8px);
    /* Modern blur effect */
}

.age-gate-content {
    background: #1f1f1f;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #00d4ff;
    max-width: 400px;
    width: 90%;
}

.age-gate-content h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.age-gate-content p {
    color: #ccc;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-verify {
    background: #00d4ff;
    color: #000;
    padding: 15px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-verify:hover {
    background: #00b8e6;
}

.btn-reject {
    background: transparent;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.btn-reject:hover {
    background: rgba(255, 77, 77, 0.1);
}

.disclaimer {
    font-size: 0.75rem;
    margin-top: 20px;
    color: #666 !important;
}

/* Class to hide the gate */
.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: #1f1f1f;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Hide Hamburger Button on Desktop Mode */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.logo {
    width: 100px;
}

.logo span {
    color: #00d4ff;
}
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00d4ff;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('shop.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #00d4ff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Products Section */

.products {
    padding: 100px 10%;
    text-align: center;
}

.product-grid-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card-index {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.product-card-index:hover {
    transform: translateY(-10px);
    border: 1px solid #00d4ff;
}

.product-card-index img {
    width: 100%;
    border-radius: 5px;
}

.product-card-index h3 {
    margin: 15px 0;
}


/* Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 120px 5% 50px;
}

/* Search Bar in Nav */
.search-container input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #444;
    background: #181818;
    color: white;
    width: 300px;
}

/* Sidebar */
.filter-sidebar {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 90px;
    /* This creates a small gap at the top so it's not touching the edge */
    height: fit-content;
}

.filter-group {
    margin-top: 20px;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: #00d4ff;
}

/*categories*/
.sidebar {
    display: flex;
    flex-direction: column;
    /* Stacks price and then categories */
    gap: 30px;
    /* Space between the two filter groups */
    padding: 20px;
    width: 250px;
    /* Standard sidebar width */
}

.filter-section h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Price Input Styling */
.price-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input-container input {
    width: 80px;
    background: #1f1f1f;
    border: 1px solid #444;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
}

/* Category Button Styling */
.category-buttons {
    display: flex;
    flex-direction: column;
    /* Stacks buttons vertically within the category section */
    gap: 10px;
}

.filter-btn {
    text-align: left;
    background: transparent;
    border: 1px solid #00d4ff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00d4ff;
    color: #000;
}

/* Product Hover Effect */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.img-container img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.2);
    /* Tint color */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
}

.product-card:hover .overlay {
    opacity: 1;
}

.product-card:hover img {
    transform: scale(1.1);
}

.view-btn {
    padding: 10px 20px;
    background: #fff;
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.product-card:hover .view-btn {
    transform: translateY(0);
}

.card-info {
    padding: 15px 0;
    text-align: left;
}

.price {
    color: #00d4ff;
    font-weight: bold;
    font-size: 1.2rem;
}

/*search*/
.search-dropdown {
    position: fixed;
    top: -100px;
    /* Moves it off-screen above the navbar */
    left: 0;
    width: 100%;
    height: 80px;
    background: #181818;
    z-index: 1000;
    /* Ensures it stays above other content */
    transition: all 0.4s ease-in-out;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #00d4ff;
}

/* 2. The Visible (Active) State */
/* IMPORTANT: No space between .search-dropdown and .active */
.search-dropdown.active {
    top: 70px;
    /* Adjust this value to match your navbar height */
    opacity: 1;
}

.search-inner {
    width: 80%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-inner input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: white;
    padding: 10px;
    outline: none;
}

.add-to-cart-btn {
    padding: 10px 20px;
    background-color: #00d4ff;
    color: #000;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/*Contact*/

.contact-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
}

.contact-box {
    display: flex;
    background: #1f1f1f;
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.contact-info {
    flex: 1;
    background: #00d4ff;
    color: #000;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-item {
    margin-top: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.contact-form {
    flex: 1.5;
    padding: 40px;
    background: #181818;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    outline: none;
    transition: 0.3s;
}

.input-group select {
    background: #181818;
    color: #aaa;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #666;
    pointer-events: none;
    transition: 0.3s;
}

/* Floating Label Animation */
.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -15px;
    font-size: 0.8rem;
    color: #00d4ff;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid #00d4ff;
}

.send-btn {
    width: 100%;
    padding: 12px;
    background: #00d4ff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.send-btn:hover {
    background: #00b8e6;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-box {
        flex-direction: column;
    }

    .contact-info {
        padding: 30px;
    }
}

/*footer*/
.footer {
    background: #000;
    color: #8a8a8a;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col-1,
.footer-col-2,
.footer-col-3,
.footer-col-4 {
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-col-1 {
    flex-basis: 30%;
}

.footer-col-2 {
    flex: 1;
    text-align: center;
}

.footer-col-2 img {
    width: 100px;
    margin-bottom: 10px;
}

.footer-col-3,
.footer-col-4 {
    flex-basis: 12%;
    text-align: center;
}

ul {
    list-style-type: none;
}

/* Optional: change the text color of the list items to match the footer theme */
.footer li {
    color: #8a8a8a;
    margin-bottom: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.footer li:hover {
    color: #fff;
    /* Makes links light up when you hover over them */
}

.container {
    max-width: 1300px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: center;
}

/*Login Signup*/
.auth-container {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('R.png');
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-box {
    width: 380px;
    height: 480px;
    position: relative;
    background: #1f1f1f;
    padding: 5px;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #00d4ff;
}

.button-box {
    width: 220px;
    margin: 35px auto;
    position: relative;
    box-shadow: 0 0 20px 9px rgba(0, 212, 255, .1);
    border-radius: 30px;
}

.toggle-btn {
    padding: 10px 30px;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: none;
    position: relative;
    color: #fff;
}

#btn-toggle {
    top: 0;
    left: 0;
    position: absolute;
    width: 110px;
    height: 100%;
    background: #00d4ff;
    border-radius: 30px;
    transition: .5s;
}

.input-group-auth {
    top: 180px;
    position: absolute;
    width: 280px;
    transition: .5s;
    left: 50px;
}

.input-field {
    width: 100%;
    padding: 10px 0;
    margin: 5px 0;
    border-left: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #444;
    outline: none;
    background: transparent;
    color: #fff;
}

.submit-btn {
    width: 85%;
    padding: 10px 30px;
    cursor: pointer;
    display: block;
    margin: auto;
    background: #00d4ff;
    border: 0;
    outline: none;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 30px;
}

/* Initial hidden state for Signup */
#login-form {
    left: 50px;
}

#signup-form {
    left:
        450px;
}

#login-form,
#signup-form {
    position: absolute;
    /* JavaScript cannot move 'static' elements with .left */
    transition: 0.5s;
}

/*checkout*/
.checkout-main {
    padding: 120px 10%;
    color: #fff;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.checkout-footer {
    margin-top: 30px;
    text-align: right;
}

.confirm-btn {
    background: #00d4ff;
    color: #000;
    padding: 15px 40px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}
/*checkout*/
/* Modal Positioning */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #1f1f1f;
    border: 1px solid #00d4ff;
    padding: 30px;
    border-radius: 15px;
    width: 90%; max-width: 400px;
    color: white;
}

.hidden { display: none !important; }

/* Input Styling */
.input-field-group { margin-bottom: 15px; }
.input-field-group label { display: block; color: #00d4ff; font-size: 14px; margin-bottom: 5px; }
.input-field-group input, .input-field-group select, .input-field-group textarea {
    width: 100%; padding: 10px; background: #111; border: 1px solid #333; color: white; border-radius: 5px;
}

.final-order-btn {
    width: 100%; padding: 15px; background: #00d4ff; color: black; border: none; border-radius: 30px; font-weight: bold; cursor: pointer;
}

.final-order-btn:hover { background: #fff; }
/*checkout css*/

.shop-container {
    display: flex;
    gap: 20px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start; /* Keeps sidebar from stretching */
}

/* --- 2. Product Grid --- */
.product-grid {
    flex: 3; /* Takes up 3/4 of the width */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #1f1f1f;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: 0.3s;
}

.product-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.add-btn {
    width: 100%;
    padding: 10px;
    background: #00d4ff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* --- 3. Shopping Cart Sidebar (Sticky) --- */
.cart-sidebar {
    flex: 1; /* Takes up 1/4 of the width */
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 20px;
    border-radius: 10px;
    position: sticky;
    top: 20px; /* Sticks to top when scrolling */
    color: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}
.cart-icon a{
text-decoration: none;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}

.cart-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #00d4ff;
}

.checkout-trigger-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

.checkout-trigger-btn:hover {
    background: #00d4ff;
    color: #000;
}

/* --- 4. Checkout Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #00d4ff;
    width: 400px;
    position: relative;
    color: white;
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* --- 5. Modal Form Inputs --- */
.input-field-group { margin-bottom: 20px; }

.input-field-group label {
    display: block;
    margin-bottom: 8px;
    color: #00d4ff;
    font-size: 13px;
}

.input-field-group input, 
.input-field-group textarea, 
.input-field-group select {
    width: 100%;
    padding: 10px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    outline: none;
}

.input-field-group input:focus { border-color: #00d4ff; }

.final-order-btn {
    width: 100%;
    padding: 15px;
    background: #00d4ff;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* --- Helper Classes --- */
.hidden { display: none !important; }
.instr { font-size: 12px; color: #888; margin-bottom: 5px; }

.remove-item-btn {
    background: none;
    border: none;
    color: #ff4d4d; /* Red color */
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
}

.remove-item-btn:hover {
    color: #ff0000;
    transform: scale(1.2);
}

.cart-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #333;
}
/*responsiveness*/
/*hamburger icon*/
@media screen and (max-width: 768px) {
    /* Show the hamburger bars icon */
    .menu-toggle {
        display: flex;
    }

    /* Transform nav-links into a vertical mobile menu overlay */
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Sits exactly under the navbar */
        left: 0;
        background-color: #111;
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid #222;
        z-index: 999;
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }

    /* Active utility class to slide/show menu options open */
    .nav-links.active {
        display: flex;
    }

    /* Optional: Animate hamburger bars into an 'X' when open */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}