/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Merriweather&display=swap');

/* General Reset */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Merriweather', serif;
    background-color: #111;
    color: #fff;
    background-image: url('../assets/general/background.JPG');/* Carbon fiber background texture */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #ffcc00;
}

header .logo-container {
    text-align: center;
}

header .logo {
    max-height: 80px;
    margin-bottom: 10px;
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffcc00;
    font-size: 2.5em;
}

header .slogan {
    font-style: italic;
    color: #aaa;
    font-size: 1.1em;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: #ff6600;
    transform: scale(1.1);
}

/* Main Section */
main {
    text-align: center;
    padding: 50px 20px;
}

.intro {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ffcc00;
}

.intro h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2em;
    color: #ffcc00;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.2em;
    color: #ddd;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #111;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #ff6600;
    transform: scale(1.1);
}

/* Footer */
/* Footer */
footer {
    background-color: #000000;
    color: #aaa;
    text-align: center;
    padding: 10px;
    border-top: 3px solid #ffcc00;
    font-size: 0.9em;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer .footer-content p {
    margin-bottom: 10px;
}

/* Contact Info Section */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.contact-item img.contact-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.contact-item a, .contact-item span {
    color: #ffcc00;
    text-decoration: none;
    font-size: 1.2em;
}

.contact-item a:hover {
    color: #ff6600;
}

.contact-info p {
    font-size: 1.2em;
    color: #ddd;
    margin-bottom: 20px;
}
/* Product Grid Container */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 columns */
    gap: 5px;  /* 5px gap between items */
    justify-items: center;
    padding: 20px;
    margin-top: -60px;
}

/* Product Item */
.product-item {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    text-align: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 600px;  /* Larger item size */
    max-height: 320px;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect for Product Item */
.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.6);
}

/* Product Image */
.product-thumbnail {
    width: 100%;
    height: 100%;  /* Maintain aspect ratio of the image */
    max-height: 230px;  /* Maximum height to keep it uniform */
    object-fit: cover;  /* Ensure the image covers the box while maintaining aspect ratio */
    border-radius: 10px 10px 0 0;
}

/* Product Name (Text Box) */
.product-name {
    color: #ffcc00;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    margin-top: -5px;
    margin-bottom: 0;
    border-radius: 0 0 5px 5px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

/* Gold Border on Text Box */
.product-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ffcc00;
    border-radius: 0 0 5px 5px;
    transition: background-color 0.3s ease;
}

/* Hover Effect for Text Box */
.product-name:hover {
    color: #ff6600;
    cursor: pointer;
}

/* Hover Effect for Gold Border */
.product-name:hover::after {
    background-color: #ff6600;
}
/* Category Page Specific Styling */
.category-header {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.category-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3em;
    color: #ffcc00;
    margin-bottom: 10px;
}

.category-header .slogan {
    font-style: italic;
    font-size: 1.5em;
    color: #aaa;
    margin-bottom: 20px;
}

.product-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three products per row */
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.product-listing {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    border: 2px solid #ffcc00;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-listing:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.6);
}

.product-listing-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.product-listing-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2em;
    color: #ffcc00;
    padding: 10px;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #ffcc00;
}

/* Category Page Responsiveness */
@media screen and (max-width: 768px) {
    .product-listing-grid {
        grid-template-columns: repeat(2, 1fr); /* Two products per row for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .product-listing-grid {
        grid-template-columns: 1fr; /* One product per row for very small screens */
    }
}
.gallery-container {
    text-align: center;
    margin: 20px 0;
}

.gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    border: 2px solid #ffcc00;
    border-radius: 10px;
}

.gallery img {
    max-height: 300px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.1);
}
/* Product Detail Page Layout */
.product-detail-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 2px solid #ffcc00;
}

/* Product Info Section */
.product-info {
    flex: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    border: 2px solid #ff6600;
    color: #fff;
}

.product-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2em;
    color: #ffcc00;
    margin-bottom: 15px;
}

.product-info p,
.product-info ul {
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-info ul {
    list-style: none;
    padding-left: 0;
}

.product-info ul li {
    margin-bottom: 10px;
}

.product-info strong {
    color: #ffcc00;
}

.product-info .cta-button {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #111;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.product-info .cta-button:hover {
    background-color: #ff6600;
    transform: scale(1.05);
}

/* Gallery Section */
.gallery-container {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    border: 2px solid #ff6600;
}

.gallery-container h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2em;
    color: #ffcc00;
    margin-bottom: 15px;
}

.gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    border-radius: 10px;
}

.gallery img {
    max-height: 300px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.1);
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        align-items: center;
    }

    .product-info,
    .gallery-container {
        width: 100%;
        text-align: center;
    }
}
/* Reviews Section */
.reviews-section {
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    text-align: left;
}

.reviews-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2em;
    color: #ffcc00;
    margin-bottom: 20px;
}

.review {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #ff6600;
    border-radius: 5px;
}

.review p {
    font-size: 1.1em;
    color: #fff;
    margin: 5px 0;
}

.review strong {
    color: #ffcc00;
}

.review-date {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 5px;
}

.reviews-section .cta-button {
    display: block;
    text-align: center;
    margin: 20px auto 0;
    width: fit-content;
}
/* Fix Carousel Buttons Movement */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffcc00;
    font-size: 2em;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-button:hover {
    background-color: #ff6600;
    transform: scale(1.1); /* Smooth scaling */
    transform-origin: center; /* Avoid shifting */
}

/* Ensure Proper Alignment of Gallery and Details */
.product-detail-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ensures both sections take up equal height */
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 2px solid #ffcc00;
}

.product-info {
    flex: 1;
    max-width: 50%; /* Limit width for balance */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    border: 2px solid #ff6600;
    color: #fff;
}

.gallery-container {
    flex: 1;
    max-width: 50%; /* Limit width for balance */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    border: 2px solid #ff6600;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center images within the container */
    align-items: center;
}

/* Ensure Images Don't Stretch */
.carousel img {
    max-width: 100%;
    max-height: 300px; /* Uniform height */
    object-fit: contain;
    border-radius: 10px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        align-items: center;
    }

    .product-info,
    .gallery-container {
        max-width: 100%;
    }
}
