/* General styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #121212; /* Dark background for the body */
    color: #EAEAEA; /* Light text color */
    line-height: 1.6;
}

/* Header */
header {
    background: url('./images/background.png') no-repeat center center/cover; /* Background image for header */
    color: #EAEAEA;
    padding: 4rem 0;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #555;
}
/* Ultra-Modern Intro Container */
.intro-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #121212, #2a2a2a);
    color: #ffffff;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards, fadeOut 2.4s ease-out 2.4s forwards;
    overflow: hidden;
    padding: 20px;
}

.logo {
    font-size: 4rem;
    font-weight: 800;
    color: #f0f0ff;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0px 8px 16px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    animation: slideUp 1s ease-out forwards, pulse 2s infinite ease-in-out, fadeOutLogo 2.4s ease-out 2.4s forwards;
}

.intro-text {
    font-size: 1.8rem;
    margin-top: 16px;
    color: #dcdcff;
    opacity: 0;
    animation: fadeInText 1s ease-in-out 1s forwards, fadeOutText 2.4s ease-out 2.4s forwards;
    text-align: center;
    line-height: 1.4;
}

/* Keyframe Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fadeInText {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Smooth Fade-Out for Container */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Smooth Fade-Out for Logo */
@keyframes fadeOutLogo {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Smooth Fade-Out for Text */
@keyframes fadeOutText {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0px 8px 16px rgba(0, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0px 10px 20px rgba(0, 0, 0, 0.9);
    }
}

/* Header title styling */
header h1 {
    margin: 0;
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #FFF;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
/* Navigation */
nav ul {
    list-style: none;
    margin: 0 auto; /* Center the navigation links horizontally */
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 2rem; /* Space between items */
    font-size: 1.2rem;
}

nav a {
    color: #EAEAEA;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 4rem;
    border-radius: 30px; /* Rounded edges for buttons */
    /*background: linear-gradient(135deg, #444, #555); /* Button gradient background */
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    text-transform: uppercase;
    transition: all 0.4s ease; /* Smooth transitions */
    display: inline-block;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background: linear-gradient(135deg, #FF4081, #FF1E56); /* Vibrant hover gradient */
    color: #FFF;
    transform: scale(1.1); /* Slight scaling effect */
    box-shadow: 0 8px 25px rgba(255, 64, 129, 0.6); /* Bright shadow on hover */
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: rgba(255, 64, 129, 0.6);
    transition: height 0.4s ease;
    z-index: -1; /* Ensure the background stays behind the text */
}

nav a:hover::before {
    height: 100%; /* Fill the button background on hover */
}

@media (max-width: 768px) {
    nav ul {
        gap: 1.5rem; /* Reduce gap for smaller screens */
        font-size: 1rem; /* Slightly smaller font size for mobile */
    }
}

/* Main content */
main {
    padding: 3rem 2rem;
    background-color: #121212; /* Ensuring that background is dark for the main content */
}
 
  #product-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  #product-grid.list-view {
    display: block;
  }
  
/* Product Grid */
#product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    background-color: #121212; /* Slightly lighter background for contrast */
    padding: 3rem 1rem;
    border-radius: 20px; /* Rounded corners for grid container */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Default Grid Layout */
#product-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    background-color: #121212;
    padding: 3rem 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Product Grid for smaller screens */
@media (max-width: 1024px) {
    #product-grid.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #product-grid.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #product-grid.grid-view {
        grid-template-columns: 1fr;
    }
    
}
/* List View Layout */
#product-grid.list-view {
    display: flex;
    flex-wrap: wrap; /* or 'nowrap', depending on your design */

}

#product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem; /* Increased gap size */
    background-color: #1A1A1A;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}


#product-grid.list-view .product-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

#product-grid.list-view .product-card h3 {
    font-size: 1.6rem;
}

#product-grid.list-view .product-card p {
    font-size: 1.2rem;
    color: #BDBDBD;
}

#product-grid.list-view .product-card a {
    margin-top: 0;
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* Responsive Styles for Product Grid */
@media (max-width: 1200px) {
    #product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #product-grid {
        grid-template-columns: 1fr;
    }
}


/* Product Card */
.product-card {
    background-color: #1A1A1A; /* Darker, more refined background */
    border-radius: 20px; /* Increased border radius for smooth corners */
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Ensures no overflow outside the rounded corners */
    cursor: pointer;
}
.button-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column; /* Stack buttons vertically for smaller screens */
    justify-content: center; /* Center buttons vertically */
    align-items: center; /* Center buttons horizontally */
    padding: 1rem;
}

.view-btn {
    background-color: #333;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem 2rem;
    margin: 0.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%; /* Ensure the buttons are full width on smaller screens */
    max-width: 400px; /* Limit the button width on larger screens */
}

/* Button Hover Effect */
.view-btn:hover {
    background-color: #444;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Active Button */
.view-btn.active {
    background-color: #00c6ff;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5);
}

/* Focused Button */
.view-btn:focus {
    outline: none;
    border: 2px solid #00c6ff;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

/* Desktop View: Buttons side by side */
@media (min-width: 768px) {
    .button-container {
        flex-direction: row; /* Align buttons horizontally on large screens */
        justify-content: center; /* Center buttons vertically */
        align-items: center; /* Center buttons horizontally */
    }

    .view-btn {
        width: auto; /* Allow the button to adjust size based on content */
        margin: 0 1rem; /* Space between buttons */
    }

    .view-btn + .view-btn {
        left: calc(40% + 200px); /* Adjust position if necessary */
    }
}

/* Button Hover Effect */
.view-btn:hover {
    background-color: #444; /* Lighter dark on hover */
    transform: scale(1.05); /* Slight zoom-in on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

/* Active Button (when selected) */
.view-btn.active {
    background-color: #00c6ff; /* Bright cyan to indicate active state */
    color: #fff;
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5); /* Cyan glow */
}

/* Focused Button (when tabbed in) */
.view-btn:focus {
    outline: none; /* Remove default focus outline */
    border: 2px solid #00c6ff; /* Cyan border on focus */
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5); /* Subtle cyan glow */
}

/* Image */
.product-card img {
    width: 100%;
    
    height: 250px; /* Adjusted height to ensure consistency */
    object-fit: contain; /* Better control over image cropping */
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.product-card:hover {
    transform: translateY(-15px); /* Slightly stronger lift effect */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5); /* More pronounced shadow */
    background-color: #333333; /* Darker on hover for contrast */
}
.product-card img:hover {
    transform: scale(1.1);
    filter: brightness(90%); /* Slight darkening effect on hover */
}

/* Title */
.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #EAEAEA;
    font-family: 'Roboto', sans-serif; /* Modern sans-serif font */
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Description */
.product-card p {
    color: #BDBDBD;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Button */
.product-card a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background-color: #FF4081;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px; /* Perfectly rounded button */
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-card a:hover {
    background-color: #F50057;
    transform: translateY(-7px); /* Subtle lift on hover */
}

/* Responsive Styles */
@media (max-width: 1200px) {
    #product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #product-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #1F1F1F;
    color: #BDBDBD;
    border-top: 2px solid #444;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #product-grid {
        grid-template-columns: 1fr;
    }
}
/* Search Bar Styling */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.search-bar {
    width: 30%; /* Initial smaller width */
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    border: 1px solid #555;
    background-color: #222;
    color: #EAEAEA;
    outline: none;
    transition: width 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-bar:hover, .search-bar:focus {
    width: 50%; /* Expanded width on hover or focus */
    border-color: #FF4081;
    background-color: #333;
    box-shadow: 0 0 8px rgba(255, 64, 129, 0.7);
}

.search-bar::placeholder {
    color: #BDBDBD;
    font-weight: 400;
}

.search-button {
    padding: 1rem 2rem;
    background-color: #FF4081;
    color: #fff;
    border: none;
    border-radius: 50px;
    margin-left: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #F50057;
}

/* General styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #121212; /* Dark background for the body */
    color: #EAEAEA; /* Light text color */
    line-height: 1.6;
}

/* Sort Container */
.sort-container {
    position: fixed; /* Fixes it to the top-left corner */
    top: 2rem; /* Add some margin from the top */
    left: 2rem; /* Add some margin from the left */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to the left */
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.7); /* Slight transparent background */
    padding: 1rem 2rem;
    border-radius: 12px; /* Modern rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Softer, larger shadow for modern look */
    z-index: 100; /* Ensure it's above other content */
    width: 250px; /* Set a fixed width for a cleaner look */
    transition: width 0.3s ease, top 0.3s ease, left 0.3s ease; /* Smooth transition for resizing */
}

/* Responsive styles for sort-container */
@media (max-width: 1024px) {
    .sort-container {
        width: 220px; /* Slightly smaller width for medium screens */
        top: 1rem; /* Adjust top position for smaller screens */
        left: 1rem; /* Adjust left position for smaller screens */
    }
}

@media (max-width: 768px) {
    .sort-container {
        width: 180px; /* Make it smaller for mobile devices */
        top: 0.5rem; /* Adjust top position further */
        left: 0.5rem; /* Adjust left position further */
    }
}

@media (max-width: 480px) {
    .sort-container {
        width: 100%; /* Full width for very small screens */
        left: 0; /* Align to the left edge */
        top: 0; /* Align to the top edge */
        padding: 1rem; /* Reduce padding */
    }
}

.sort-container label {
    color: #EAEAEA;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.sort-container select {
    padding: 0.8rem 1.2rem;
    border-radius: 8px; /* Rounded corners for select box */
    background-color: #333;
    color: #EAEAEA;
    border: 1px solid #555;
    font-size: 1rem;
    width: 100%; /* Make the select box fill the container */
    appearance: none; /* Remove default dropdown arrow */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sort-container select:hover {
    background-color: #444;
    transform: scale(1.05); /* Subtle scaling effect on hover */
}

.sort-container select:focus {
    outline: none;
    border-color: #FF4081; /* Highlight when focused */
}


/* Quick View Modal */
.quick-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInModal 0.5s ease-out forwards; /* Fade-in effect */
}

.quick-view-content {
    background-color: #1A1A1A;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpModal 0.5s ease-out 0.2s forwards; /* Slide-up effect */
}

.quick-view img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
    transition: transform 0.3s ease; /* Smooth scaling */
}

.quick-view img:hover {
    transform: scale(1.05); /* Subtle zoom effect */
}

/* Keyframe Animations for Quick View */
@keyframes fadeInModal {
    to {
        opacity: 1;
    }
}

@keyframes slideUpModal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick View Content Text */
.quick-view h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInText 0.5s ease-out 0.4s forwards; /* Fade-in for title */
}

.quick-view p {
    color: #BDBDBD;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInText 0.5s ease-out 0.6s forwards; /* Fade-in for description */
}

.quick-view button {
    background-color: #FF4081;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quick-view button:hover {
    background-color: #F50057;
}

/* Keyframe for fade-in effect */
@keyframes fadeInText {
    to {
        opacity: 1;
    }
}
header {
    margin-bottom: 1rem;
  }
  
  .affiliate-signup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(145deg, #1a1a1a, #333333);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5), -4px -4px 6px rgba(50, 50, 50, 0.2);
  }
  
  .affiliate-button {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.5);
    transition: all 0.3s ease-in-out;
  }
  
  .affiliate-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.7);
    background: linear-gradient(90deg, #8f94fb, #4e54c8);
  }
  

  /* Vapes Navigation Style */
nav a.vapes {
    color: #cc00ff; /* Vibrant gold color for vapes */
    border: 2px solid #a200ff; /* Add a glowing border for standout effect */
    background: linear-gradient(45deg, #121212, #333333); /* Gradient background */
    box-shadow: 0 0 10px rgba(183, 0, 255, 0.8), 0 0 20px rgba(140, 0, 255, 0.6); /* Glowing effect */
}

nav a.vapes:hover {
    color: #FFF;
    background: linear-gradient(45deg, #7700ff, #FF8C00); /* Brighter hover gradient */
    box-shadow: 0 0 15px rgb(183, 0, 255), 0 0 25px rgba(140, 0, 255, 0.9); /* Enhanced glow on hover */
    transform: scale(1.1); /* Slight hover scaling */
}





/* Styling for the moving text */
.moving-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 24px; /* Adjust size */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font */
    color: #fff; /* Text color */
    letter-spacing: 1px; /* Slight space between letters */
    padding: 5px 0;
    text-transform: uppercase; /* Uppercase for bold modern feel */
    font-weight: bold;
    background: linear-gradient(90deg, #ff007f, #7a00ff); /* Vibrant gradient */
    background-clip: text;
    -webkit-background-clip: text;
    animation: moveText 10s linear infinite;
  }
  
  /* Styling for the link inside the moving-text */
  .moving-text a {
    color: inherit; /* Inherit color from the parent */
    text-decoration: none; /* Remove underline */
    transition: transform 0.3s ease-in-out; /* Smooth hover transition */
  }
  
  .moving-text a:hover {
    transform: scale(1.1); /* Slight scaling effect on hover */
  }
  
  /* Animation for the text movement */
  @keyframes moveText {
    0% {
      transform: translateX(100vw); /* Start from the right side (off-screen) */
    }
    100% {
      transform: translateX(-45vw); /* End at the left side (off-screen) */
    }
  }
