@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Background */
body {
    background-color: #15202b;
    color: white;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

nav {
    flex: 1;
    text-align: right;
}

nav ul {
    display: inline-block;
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

a {
    text-decoration: none;
    color: white;
}

p {
    color: white;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

.col-2 {
    flex-basis: 50%;
    min-width: 300px;
}

.col-2 img {
    max-width: 100%;
    padding: 50px 0;
}

.col-2 h1 {
    font-size: 50px;
    line-height: 60px;
    margin: 25px 0;
}

.btn {
    display: inline-block;
    background: white;
    color: black;
    font-weight: 500;
    padding: 8px 30px;
    margin: 30px 0;
    border-radius: 30px;
    transition: background 0.3s;
}

.btn:hover {
    background: #f8f9fa;
    color: black;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px 0;
}

.title {
    text-align: center;
    margin: 0 auto 80px;
    position: relative;
    line-height: 60px;
    color: white;
}

.title::after {
    content: '';
    background: white;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h4 {
    color: white;
    font-weight: normal;
}

.col-4 p {
    font-size: 14px;
}

.col-4:hover {
    transform: translateY(-5px);
}

/* Product Styling */
.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.product-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    width: 250px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.product-image {
    width: 100%;
    max-width: 150px;
    height: 150px;
    border-radius: 8px;
    margin: 10px 0;
    object-fit: cover;
}

.product-item:hover {
    transform: translateY(-5px);
}

/* Cart Icon */
.cart-icon {
    font-size: 24px;
    color: #ffffff; /* White color for better visibility */
    vertical-align: middle;
    margin-left: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #f03d3d; /* Turns red when hovered */
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    padding: 60px 0 20px;
}

.footer p {
    color: white;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
}

.footer hr {
    border: none;
    background: #b5b5b5;
    height: 1px;
    margin: 20px 0;
}

.copyright {
    text-align: center;
}


/* Featured Products - Ensure same size as Available Products */
.featured-products .col-4 img {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: auto;

}

.featured-products .col-4 {
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

.featured-products .col-4:hover {
    transform: translateY(-5px);
}

html {
    scroll-behavior: smooth;
}

button, .btn {
    transition: background 0.3s, color 0.3s;
}

button:hover, .btn:hover {
    background: #f03d3d;
    color: white;
}

#index-search-bar {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 200px;
}

#index-search-bar:focus {
    outline: none;
    border-color: #f03d3d;
}

button {
    background-color: #f03d3d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #c03030;
}

#featured-products,
#product-list {
    margin-bottom: 20px !important;
}

.anime-scroll-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Keep items in one row */
    width: 100%;
    padding: 10px 0;
    scrollbar-width: thin; /* Firefox scrollbar */
    scrollbar-color: #888 #f1f1f1;
}

/* Custom scrollbar for Chrome, Edge, and Safari */
.anime-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.anime-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.anime-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.anime-container {
    display: flex;
    gap: 15px; /* Space between items */
    padding: 10px 0;
}

.anime-item {
    background: none;
    border: none;
    box-shadow: none;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anime-item:hover {
    transform: translateY(-5px);
}

.anime-item img {
    border-radius: 8px;
    width: 200px; /* Keep the original size */
    height: 280px; /* Adjust as needed */
    display: block;
    transition: transform 0.3s ease-in-out;
}

.anime-item img:hover {
    transform: scale(1.1);
}

/* Anime title centered below the image with text ellipsis */
.anime-item p {
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-align: center;
    max-width: 200px;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides the overflow */
    text-overflow: ellipsis; /* Adds "..." when text is too long */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* Sorting Dropdown */
.dropdown-container {
    text-align: center;
    margin: 10px auto 20px;
}

.dropdown-container label {
    font-size: 16px;
    color: white;
    margin-right: 10px;
}

/* Matching dropdown background with body */
.dropdown-container select {
    background-color: #15202b; /* Adjust this if your body background is different */
    color: white;
    border: 1px solid white;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
}

/* Focus effect */
.dropdown-container select:focus {
    outline: none;
    border-color: #f03d3d;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.dropbtn:hover {
    color: #f03d3d;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(25, 39, 52, 0.95); /* Matches index.html */
    color: white;
    width: 400px; /* Set fixed width */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;

    /* Prevents overlapping */
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
}

/* Show dropdown when active */
.dropdown-content.active {
    display: block;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between icon and text */
    padding: 8px 0;
}

.contact-item span.material-icons {
    font-size: 20px;
    color: #f03d3d;
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Facebook Link */
.contact-item a {
    display: flex;
    align-items: center;
    color: #f03d3d;
    text-decoration: none;
    font-weight: bold;
}

.contact-item a:hover {
    text-decoration: underline;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Enable horizontal scrolling */
.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px; /* Adds space between cards */
    padding: 10px;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory; /* Makes scrolling smoother */
}

/* Make product cards wider and slightly taller */
.product-card {
    width: 260px; /* Increased width */
    height: 320px; /* Slightly taller */
    padding: 15px;
    background-color: #1c2938;
    border-radius: 10px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    flex: 0 0 auto; /* Prevents shrinking */
    scroll-snap-align: start; /* Helps with scroll alignment */
}

/* Adjust product image container */
.product-card .product-image-container {
    width: 100%;
    height: 160px; /* Increased height for images */
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card .product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Text styling */
.product-card .product-name {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.product-card .price-container {
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.product-card p {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 3px 0;
}



.product-card:hover {
    transform: scale(1.05);
}

.product-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.product-image {
    width: 100%;
    border-radius: 8px;
}

.category-type {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.category, .type {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    border-radius: 4px;
}

.category {
    background-color: #e74c3c; /* Red for Category */
}

.type {
    background-color: #f39c12; /* Yellow for Type */
}

/* Limited label */
.limited {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(231, 76, 60, 0.7); /* Transparent Red */
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    text-transform: uppercase;
    backdrop-filter: brightness(1.2); /* Adds a slight shine */
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.price-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
}

.peso {
    color: #2ecc71;
}

.yen {
    color: #f39c12;
}


/* Responsive */

