* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Top Bar */
.top-bar {
    background-color: #1a3a5c;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #ff6600;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    max-height: 80px;
    width: auto;
}

.quick-launch {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-button {
    background-color: #1a3a5c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-button:hover {
    background-color: #ff6600;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
    color: #ff6600;
}

.account-link {
    text-align: center;
    line-height: 1.4;
    color: #1a3a5c;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border: 2px solid #1a3a5c;
    border-radius: 4px;
    transition: all 0.3s;
}

.account-link:hover {
    background-color: #1a3a5c;
    color: #fff;
}

/* Navigation */
.nav {
    background-color: #1a3a5c;
    border-top: 2px solid #ff6600;
}

.nav-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-menu > li > a:hover {
    background-color: #ff6600;
}

/* Navigation Dropdown */
.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 0;
}

.nav-menu li:hover .dropdown-menu {
    display: block;
}

.nav-menu .dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu .dropdown-menu li {
    margin: 0;
}

.nav-menu .dropdown-menu a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu .dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav-menu .dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #ff6600;
}

.nav-menu li.has-dropdown > a::after {
    content: ' ▼';
    font-size: 0.8em;
    margin-left: 5px;
}

/* Quick Search in nav */
.nav-quick-search {
    display: flex;
    align-items: center;
    margin-left: 2.5em;
}
.quick-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 0;
}
.quick-search-label {
    color: #fff;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
}
.quick-search-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    min-width: 140px;
    max-width: 180px;
}
.quick-search-input:focus {
    outline: none;
    border-color: #ff6600;
}

/* Shop category flyout – same format as admin test-categories.php (flyout to the right) */
.nav-menu .dropdown-menu.shop-category-flyout {
    padding: 0;
    min-width: 220px;
    border-radius: 2px;
}
.nav-menu .dropdown-menu.shop-category-flyout .public-category-menu,
.nav-menu .dropdown-menu.shop-category-flyout .public-category-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    min-width: 220px;
}
.nav-menu .dropdown-menu.shop-category-flyout .public-category-sub {
    position: absolute;
    left: 100%;
    top: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: none;
    border-radius: 2px;
}
.nav-menu .dropdown-menu.shop-category-flyout .public-category-menu > li,
.nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li {
    position: relative;
    border-bottom: 1px solid #e8e8e8;
    border-left: 3px solid transparent;
}
.nav-menu .dropdown-menu.shop-category-flyout .public-category-menu > li:last-child,
.nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li:last-child {
    border-bottom: none;
}
.nav-menu .dropdown-menu.shop-category-flyout .public-category-menu > li:hover,
.nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li:hover {
    background: #f0f4f8;
    border-left-color: #ff6600;
}
.nav-menu .dropdown-menu.shop-category-flyout .public-category-menu > li:hover > .public-category-sub,
.nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li:hover > .public-category-sub {
    display: block;
}
.nav-menu .dropdown-menu.shop-category-flyout .cat-link {
    display: block;
    padding: 12px 36px 12px 20px;
    color: #1a3a5c;
    text-decoration: none;
    font-size: 0.95em;
}
.nav-menu .dropdown-menu.shop-category-flyout .public-category-menu > li > .cat-link {
    padding-right: 28px;
}
.nav-menu .dropdown-menu.shop-category-flyout .cat-link:hover {
    color: #1a3a5c;
}
.nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li:hover > .cat-link {
    color: #ff6600;
}
.nav-menu .dropdown-menu.shop-category-flyout .cat-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65em;
    color: #333;
    pointer-events: none;
}
.nav-menu .dropdown-menu.shop-category-flyout li:not(.has-submenu) .cat-arrow {
    display: none;
}

.nav-menu .home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
}

.nav-menu .home-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.nav-menu .home-icon:hover svg {
    fill: #ff6600;
}

/* Shopping Cart */
.shopping-cart {
    display: flex;
    align-items: center;
    background-color: #1a3a5c;
    padding: 10px 15px;
    margin-left: auto;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.shopping-cart:hover {
    background-color: #2a5a7c;
}

.cart-icon {
    width: 50px;
    height: 50px;
    background-color: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 4px;
}

.cart-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.cart-info {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.cart-info .cart-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

.cart-info .cart-details {
    font-size: 13px;
    line-height: 1.2;
}

.nav-container {
    display: flex;
    align-items: center;
}

/* Main Content */
.main-container {
    max-width: 90%;
    margin: 30px auto;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a7c 100%);
    color: #fff;
    padding: 41px 40px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3em;
    color: #ff6600;
    font-weight: 500;
}

/* Content Sections */
.content-section {
    padding: 50px 40px 30px 40px;
}

.section-title {
    color: #1a3a5c;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6600;
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}

.intro-text p {
    margin-bottom: 15px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    border-color: #ff6600;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    color: #ff6600;
}

.category-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.category-card h3,
.category-card .category-card-title {
    color: #1a3a5c;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.category-card p {
    color: #666;
    font-size: 0.95em;
}

.category-card-dropdown-wrap {
    margin-top: 12px;
}

.category-card-select {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    font-size: 0.95em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* Company Logos Carousel */
.brands-section {
    background-color: #fff;
    padding: 50px 40px;
    overflow: hidden;
}

.brands-title {
    color: #1a3a5c;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6600;
    text-align: left;
}

.brands-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.brands-carousel-track {
    display: flex;
    animation: scroll-right 30s linear infinite;
    width: fit-content;
}

.brands-carousel-track:hover {
    animation-play-state: paused;
}

.brand-logo {
    flex-shrink: 0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.brand-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo img {
    max-height: 85px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.brand-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Latest Releases Section */
.latest-releases-section {
    background-color: #fff;
    padding: 50px 40px;
    overflow: hidden;
}

.latest-releases-title {
    color: #1a3a5c;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6600;
    text-align: left;
}

.latest-releases-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.latest-releases-carousel-track {
    display: flex;
    animation: scroll-releases 60s linear infinite;
    width: fit-content;
}

.latest-releases-carousel-track:hover {
    animation-play-state: paused;
}

.release-item {
    flex-shrink: 0;
    width: 250px;
    margin-right: 20px;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.release-item:hover {
    border-color: #ff6600;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.release-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.release-item h4 {
    color: #1a3a5c;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.release-item .stock-status {
    color: #28a745;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 10px;
}

.release-item .price {
    color: #ff6600;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.release-item .add-to-basket {
    background-color: #1a3a5c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.release-item .add-to-basket:hover {
    background-color: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

@keyframes scroll-releases {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: #ff6600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card h4 {
    color: #1a3a5c;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.news-card .date {
    color: #ff6600;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-card p,
.news-card .news-card-content {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #1a3a5c;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 90%;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ff6600;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6600;
}

.back-to-top {
    font-weight: 500;
}

html {
    scroll-behavior: smooth;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #ff6600;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background-color: #fff;
    color: #ff6600;
}

.payment-logos {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.payment-logo {
    display: inline-block;
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.trustpilot-widget {
    margin-top: 15px;
}

.trustpilot-link {
    display: block;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.trustpilot-link:hover {
    opacity: 0.8;
}

.trustpilot-rating {
    text-align: left;
}

.trustpilot-stars {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
}

.trustpilot-score {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.trustpilot-score strong {
    color: #00b67a;
    font-size: 1.3em;
}

.trustpilot-reviews {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.trustpilot-text {
    color: #ccc;
    font-size: 0.85em;
}

.payment-logo:hover {
    opacity: 1;
}

.payment-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a5a7c;
    color: #ccc;
    font-size: 0.9em;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #ff6600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .quick-launch {
        width: 100%;
        justify-content: center;
    }

    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: #2a5a7c;
    }

    .nav-menu li:hover .dropdown-menu,
    .nav-menu li.has-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-menu .dropdown-menu li {
        margin: 0;
    }

    .nav-menu .dropdown-menu a {
        color: #fff;
        padding: 12px 30px;
        border-bottom: 1px solid #3a6a8c;
    }

    .nav-menu .dropdown-menu a:hover {
        background-color: #ff6600;
        color: #fff;
    }

    /* Shop flyout on mobile: sub-menus stack below with indent instead of to the right */
    .nav-menu .dropdown-menu.shop-category-flyout .public-category-sub {
        position: static;
        display: none;
        box-shadow: none;
        margin-left: 15px;
        border-left: 2px solid rgba(255,255,255,0.3);
    }
    .nav-menu .dropdown-menu.shop-category-flyout .public-category-menu > li:hover > .public-category-sub,
    .nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li:hover > .public-category-sub {
        display: block;
    }
    .nav-menu .dropdown-menu.shop-category-flyout .public-category-menu > li,
    .nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li {
        border-left: none;
        border-bottom: 1px solid #3a6a8c;
    }
    .nav-menu .dropdown-menu.shop-category-flyout .public-category-menu > li:hover,
    .nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li:hover {
        background-color: #2a5a7c;
        border-left: none;
    }
    .nav-menu .dropdown-menu.shop-category-flyout .cat-link {
        color: #fff;
        padding: 12px 30px 12px 20px;
    }
    .nav-menu .dropdown-menu.shop-category-flyout .public-category-sub > li:hover > .cat-link {
        color: #ff6600;
    }
    .nav-menu .dropdown-menu.shop-category-flyout .cat-arrow {
        color: rgba(255,255,255,0.8);
    }

    .nav-container {
        flex-direction: column;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu a {
        padding: 12px 20px;
    }

    .shopping-cart {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .hero {
        padding: 26px 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .content-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.5em;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-releases-section {
        padding: 30px 20px;
    }

    .release-item {
        width: 200px;
    }

    .brands-section {
        padding: 30px 20px;
    }

    .brand-logo {
        padding: 0 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5em;
    }

    .content-section {
        padding: 20px 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .latest-releases-section {
        padding: 20px 15px;
    }

    .release-item {
        width: 180px;
    }

    .release-item img {
        height: 75px;
    }

    .brands-section {
        padding: 20px 15px;
    }

    .brand-logo {
        padding: 0 15px;
    }

    .brand-logo img {
        max-height: 60px;
    }
}

/* Cookie consent popup: once per session - must overlay the whole page */
.cookie-consent-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;
    padding: 20px;
    margin: 0 !important;
}

.cookie-consent-panel {
    background: #fff;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    padding: 24px;
}

.cookie-consent-title {
    color: #1a3a5c;
    font-size: 1.35rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-consent-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.cookie-consent-content p {
    margin-bottom: 12px;
}

.cookie-consent-content ul {
    margin: 10px 0 12px 20px;
}

.cookie-consent-content li {
    margin-bottom: 6px;
}

.cookie-consent-content a {
    color: #1a3a5c;
    text-decoration: underline;
}

.cookie-consent-content a:hover {
    color: #ff6600;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.cookie-consent-btn {
    padding: 10px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-consent-accept {
    background: #1a3a5c;
    color: #fff;
}

.cookie-consent-accept:hover {
    background: #2a4a6c;
}

.cookie-consent-reject {
    background: #e0e0e0;
    color: #333;
}

.cookie-consent-reject:hover {
    background: #d0d0d0;
}
