/* ==========================================================================
   Base & Global Styles
   ========================================================================== */
:root {
    --primary-blue: #21669b;
    --background-dark: #000000;
    --background-section-dark: #111111;
    --background-section-darker: #000000;
    --text-light: #b5b5b5;
    --text-mid: #8b8b8b;
    --text-dark: #5a5a5a;
    --background-light: #000000;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.navbar .logo img {
    max-height: 70px;
}

.navbar .nav-links-desktop a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar .nav-links-desktop a:hover,
.navbar .nav-links-desktop a.active-link,
.mobile-nav a.active-link {
    color: var(--primary-blue);
}

.nav-right-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* This is the updated rule for the cart button */
.nav-cart a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    background-color: var(--primary-blue);
    padding: 10px 15px; /* Adjusted padding for the icon */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cart a:hover {
    background-color: #2c8bc2;
    color: var(--text-light);
}

.search-icon {
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.search-icon:hover {
    color: var(--primary-blue);
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero-banner {
    width: 100%;
    height: 350px; 
    background-image: url('images/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; 
}

.hero-banner h1 {
    font-size: 1.2rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    white-space: nowrap;
    margin: 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   Shop & Product Styles
   ========================================================================== */
.page-header {
    background-color: var(--background-section-dark);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin: 0;
}

.category-nav {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.category-nav a {
    color: var(--text-mid);
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px;
    padding: 10px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.category-nav a:hover {
    color: var(--text-light);
}

.category-nav a.active {
    color: var(--text-light);
    border-bottom-color: var(--primary-blue);
}

.products-section {
    padding: 60px 0;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid > .product-card,
.products-grid > a.product-card-link {
    width: 350px; 
    display: flex; /* This allows the link to stretch */
    flex-direction: column;
}

a.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex; /* Changed to flex to help with alignment */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.product-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%; /* The card should fill the link wrapper */
    background-color: var(--background-section-dark);
    border-radius: 8px;
    overflow: hidden;
}

.product-image-container {
    background-color: #f4f4f4;
    padding: 20px;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.product-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.product-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.product-card h2 a {
    text-decoration: none;
    color: inherit;
}

.product-card .product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 15px 0;
    flex-grow: 1; 
}

.product-card .price {
    font-size: 1.25rem;
    color: var(--text-mid);
    font-weight: bold;
    margin-top: auto; 
}

.details-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.details-btn:hover {
    background-color: #2c8bc2;
    color: var(--text-light) !important;
}

a.product-link {
    text-decoration: none;
    color: inherit;
}
/* Specific style for the 2-column homepage grid */
.homepage-grid > a.product-card-link {
    width: 560px; /* Set a fixed width */
}

/* Sets a 16:9 aspect ratio for homepage product card images */
a.product-card-link .product-image-container {
    aspect-ratio: 16 / 9;   /* Automatically maintains a 16:9 ratio */
    height: auto;           /* Unset the fixed height to allow aspect-ratio to work */
}
/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-section {
    padding: 60px 20px;
}

.content-section.bg-dark {
    background-color: var(--background-section-dark);
}

.content-section.bg-darker {
    background-color: var(--background-section-darker);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-light);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-mid);
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.dark-footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 40px 0;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.dark-footer .footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Mobile Menu & Responsive
   ========================================================================== */
.hamburger-menu, .mobile-nav { 
    display: none; 
}

@media (max-width: 768px) {
    .nav-links-desktop { 
        display: none; 
    }
    .nav-cart .cart-text { 
        display: none; 
    }
    .nav-right-icons { 
        gap: 15px; 
    }
    .hamburger-menu {
        display: block;
        cursor: pointer;
        width: 35px;
        position: relative;
        z-index: 99;
    }
    .hamburger-menu .bar {
        display: block;
        width: 100%;
        height: 4px;
        background-color: var(--text-light);
        margin: 6px 0;
        transition: 0.4s;
    }
    .hamburger-menu.is-active .bar:nth-child(1) { transform: rotate(-45deg) translate(-8px, 7px); }
    .hamburger-menu.is-active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active .bar:nth-child(3) { transform: rotate(45deg) translate(-8px, -7px); }
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%; 
        width: 100%;
        height: 100vh;
        background-color: #111;
        z-index: 98;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
    }
    .mobile-nav.is-active { 
        left: 0; 
    }
    .mobile-nav a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 2rem;
        margin: 20px 0;
    }
    .hero-banner {
        height: 250px;
    }
    .hero-banner h1 {
        font-size: 1.2rem;
        text-align: center;
        white-space: normal;
        padding: 0 20px; 
    }
    .content-section h2 { 
        font-size: 2rem; 
    }
    .blog-card {
        grid-template-columns: 1fr; 
    }
    .blog-card-image {
        height: 200px; 
    }
    .blog-card-content {
        text-align: center;
    }
    .blog-card .details-btn {
        align-self: center;
    }
}

/* ==========================================================================
   Blog Pages
   ========================================================================== */
.blog-list {
    display: grid;
    gap: 50px;
    max-width: 1200px; 
    margin: 0 auto;
}

.blog-card {
    display: grid;
    grid-template-columns: 300px 1fr; 
    gap: 30px;
    background-color: var(--background-section-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333; /* Add this line */
}

.blog-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #333; 
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: left; 
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-mid);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.blog-card-content h2 {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.blog-card-content h2 a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.blog-card-content h2 a:hover {
    color: var(--primary-blue);
}

.blog-card-excerpt {
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    max-width: none;
}

.blog-card .details-btn {
    align-self: flex-start;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-mid);
    line-height: 1.8;
}

.blog-post-content h1, 
.blog-post-content h2, 
.blog-post-content h3 {
    color: var(--text-light);
}

.blog-post-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.blog-post-content h3 {
    border-left: 3px solid var(--primary-blue);
    padding-left: 15px;
    font-size: 1.6rem;
    margin-top: 40px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 30px;
    text-align: center;
}

.featured-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ==========================================================================
   Product Detail Pages
   ========================================================================== */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-mid);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text-light);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--text-dark);
}

.product-page-layout {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-placeholder {
    width: 100%;
    height: 450px;
    background-color: #ffffff;
    border-radius: 8px;
}

.main-image-placeholder img {
    width:100%; 
    height:100%; 
    object-fit: contain;
    border-radius: 8px;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.thumbnail-placeholder {
    width: 100%;
    height: 120px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #222;
}

.product-details h1 {
    font-size: 2.8rem;
    margin-top: 0;
}

.product-details .product-page-price {
    font-size: 2.2rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin: 20px 0;
}

.product-details .details-section h2 {
    font-size: 1.4rem;
    color: var(--text-light);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-top: 30px;
}

.product-details .details-section p a {
    color: var(--primary-blue);
}

main.product-page-main h1,
main.product-page-main h2,
main.product-page-main p,
main.product-page-main li {
    color: #ffffff;
}

.product-extra-details {
    margin-top: 40px;
}

.product-extra-details h2 {
    font-size: 1.4rem;
    color: var(--text-light);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-top: 30px;
}

.kit-contents-list li:before {
    content: '✓';
    color: var(--primary-blue);
    margin-right: 15px;
    font-weight: bold;
}

.product-options {
    margin: 25px 0;
}

.product-options label {
    font-weight: bold;
    color: var(--text-light);
    margin-right: 15px;
}

.product-options select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #222;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: bold;
}

/* ==========================================================================
   Misc Pages & Footer
   ========================================================================== */
.page-navigation {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.nav-arrow:hover {
    background-color: #2c8bc2;
    transform: scale(1.1);
}

.footer-payment-logos {
    margin: 30px 0;
}

.footer-payment-logos i {
    font-size: 2.5rem;
    margin: 0 12px;
    color: #ffffff;
}

.footer-contact-details {
    margin: 20px 0;
    color: var(--text-light);
}

.footer-contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-details a:hover {
    color: #ffffff;
}

.contact-details.bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.contact-details p#contact-phone a,
.contact-details p#contact-email a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details p#contact-phone a:hover,
.contact-details p#contact-email a:hover {
    color: #ffffff;
}

.product-comparison-table {
    width: 100%;
    margin: 60px 0;
    border-collapse: collapse;
    text-align: center;
}

.product-comparison-table th,
.product-comparison-table td {
    border: 1px solid #333;
    padding: 15px;
    vertical-align: middle;
}

.product-comparison-table th {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: 1.2rem;
}

.product-comparison-table td:first-child {
    text-align: left;
    font-weight: bold;
    color: var(--text-light);
}

.product-comparison-table .fa-check {
    color: #28a745;
}

.product-comparison-table .fa-times {
    color: #dc3545;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.feature-card {
    padding: 20px;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--background-section-dark);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.testimonial-card p {
    font-style: italic;
    margin: 0 0 15px 0;
    max-width: 100%;
}

.testimonial-card .author {
    font-style: normal;
    font-weight: bold;
    color: var(--text-light);
    text-align: right;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.category-column h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.category-column ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.category-column ul li {
    margin-bottom: 12px;
    color: var(--text-mid);
}

.guide-list {
    display: grid;
    gap: 20px;
}

.guide-card {
    display: block;
    background-color: var(--background-section-dark);
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-mid);
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
}

.guide-card:hover {
    border-left-color: var(--primary-blue);
    background-color: #222;
    transform: translateX(5px);
}

.guide-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: var(--text-light);
}

.guide-card p {
    margin: 0;
    line-height: 1.6;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #222;
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}
.thumbnail-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
/* Styling for the new contact details table */
.contact-info-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
    text-align: left;
}

.contact-info-table td {
    padding: 20px;
    border-top: 1px solid #333; /* Use top borders for a cleaner look */
    vertical-align: top;
}

.contact-info-table tr:first-child td {
    border-top: none; /* No border on the very first row */
}

/* Style for the labels (Address, Phone, Email) */
.contact-info-table td:first-child {
    font-weight: bold;
    width: 120px;
    color: var(--text-light);
}

.contact-info-table i {
    color: var(--primary-blue);
    margin-right: 15px;
    width: 20px; /* Ensures icons align neatly */
    text-align: center;
}

.contact-info-table a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-table a:hover {
    color: #2c8bc2;
}

.contact-info-table .address-note {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-mid);
    font-style: italic;
    font-weight: normal;
}
/* Styling for the new "How It Works" section */
.how-it-works-section {
    margin: 60px 0;
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.process-step i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Enhancements for the existing category columns */
.category-column {
    background-color: var(--background-section-darker);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.category-column h3 {
    margin-top: 0;
}
.compatibility-note {
    margin-top: 40px;
    color: var(--text-mid);
    font-style: italic;
}
/* Cookie Consent Banner Styling */
#cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: var(--text-mid);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    transform: translateY(100%); /* Start off-screen */
    transition: transform 0.5s ease-in-out;
}

#cookie-notice.show {
    transform: translateY(0); /* Animate to slide in */
}

#cookie-notice p {
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
}

#cookie-notice a {
    color: var(--primary-blue);
    text-decoration: underline;
}

#cookie-notice-buttons {
    display: flex;
    gap: 15px;
    margin-left: 30px;
    flex-shrink: 0;
}

/* General style for both buttons */
#accept-cookies-btn, #decline-cookies-btn {
    border: 2px solid var(--primary-blue);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Primary "Accept" button style */
#accept-cookies-btn {
    background-color: var(--primary-blue);
    color: white;
}
#accept-cookies-btn:hover {
    background-color: #2c8bc2;
    border-color: #2c8bc2;
}

/* Secondary "Decline" button style */
#decline-cookies-btn {
    background-color: transparent;
    color: var(--primary-blue);
}
#decline-cookies-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}


/* Responsive style for smaller screens */
@media (max-width: 768px) {
    #cookie-notice {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    #cookie-notice-buttons {
        width: 100%;
        margin-left: 0;
    }
    #accept-cookies-btn, #decline-cookies-btn {
        flex-grow: 1;
    }
}