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

body {
    display: flex;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #222;
    background-image: url("titleImages/9.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(255, 255, 255, 0.95);
    background-blend-mode: lighten;
}

body.lightbox-open {
    overflow: hidden;
}

.sidebar {
    width: 250px;
    position: fixed;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    background: linear-gradient(180deg, #78ace0 0%, #6a9fd8 100%);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
    color: white;
    position: fixed;
    isolation: isolate;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.sidebar-logo {
    width: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 30px;
}

.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;

}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.hero h1,
.hero h2 {
    position: relative;
    z-index: 2;
}

.hero h2 {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
}

.info {
    margin-top: 30px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.info ul {
    margin-left: 20px;
    padding-left: 15px;
}

.info ul li {
    margin-bottom: 10px;
}

.product-page {
    max-width: 1100px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.99);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-hero {
    width: 100%;
    background-color: #0056b3;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.product-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.ava-title {
    font-weight: 700;
    letter-spacing: 2px;
}

.model-number {
    font-weight: 600;
    color: #aad4ff;
}

.product-image {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: 300px !important;
    object-fit: cover;
    border-top: 3px solid #004080;
    border-bottom: 3px solid #004080;
    margin: 0 auto;
}

.product-description {
    padding: 40px;
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    text-align: justify;
}

.product-description p {
    margin-bottom: 20px;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    display: block;
    margin: auto;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.25s ease;
    cursor: zoom-in;
}

.lightbox-img[data-scale]:not([data-scale="1"]) {
    cursor: zoom-out;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: white;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    padding: 12px;
    cursor: pointer;
    color: white;
    z-index: 2010;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.product-gallery-scroll {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    background: #004aad;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.gallery-track {
    display: flex;
    gap: 20px;
    padding: 0 40px;
}

.gallery-track img {
    height: 200px;
    border-radius: 10px;
    cursor: grab;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-track img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.back-home {
    position: fixed;
    top: 20px;
    left: 30px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1100;
}

.back-home:hover {
    background-color: #00408f;
    transform: translateY(-2px);
}

.language-switcher {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 6px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-switcher button {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: #003366;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
}

.language-switcher button:hover {
    background-color: rgba(0, 51, 102, 0.1);
}

.language-switcher button.active {
    background-color: #003366;
    color: white;
}

.main-menu,
.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu>li {
    margin-bottom: 12px;
}

.main-menu>li>a {
    display: block;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 700;
    color: #0249a7;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.main-menu>li>a:hover {
    background-color: #00408f;
    transform: translateX(3px);
    color: #ffffff;
}

.submenu {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 72, 173, 0.95);
    margin-top: 6px;
    margin-left: 12px;
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.submenu.open {
    display: flex;
}

.submenu li {
    margin: 4px 0;
}

.sidebar .submenu a {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 6px;
    color: #f2f6ff;
    text-decoration: none;
}

.sidebar .submenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar .submenu a.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
}

.submenu-toggle::after {
    content: "▾";
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

.submenu-toggle.active::after {
    transform: rotate(180deg);
}

.sidebar-social {
    margin-top: auto;
    padding-top: 20px;
}

.sidebar-divider {
    height: 8px;
    width: 60%;
    margin: 0 auto 16px auto;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-icons img {
    width: 22px;
    height: 22px;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icons img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gallery-grid img:focus-visible {
    outline: 3px solid #004aad;
    outline-offset: 4px;
}

.product-footer {
    background-color: #004aad;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 160px;
    margin-bottom: 10px;
}

.footer-info {
    font-size: 15px;
    line-height: 1.6;
}

.footer-info a {
    color: #aad4ff;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.product-footer.light {
    background-color: #ffffff;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo-light {
    width: 150px;
    margin-bottom: 15px;
}

.footer-info-light {
    font-size: 15px;
    line-height: 1.6;
    color: #222;
}

.footer-info-light a {
    color: #004aad;
    text-decoration: none;
    font-weight: 500;
}

.footer-info-light a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .menu-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        font-size: 28px;
        background-color: #70a5de;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 8px 14px;
        z-index: 1500;
        cursor: pointer;
    }

    .sidebar {
        left: -250px;
        transition: left 0.3s ease;
        padding-top: 60px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .hero {
        height: 40vh;
        min-height: 300px;
    }

    .gallery-track img {
        height: 140px;
    }

    .product-page {
        margin: 20px auto;
        width: 95%;
    }
}

.dark-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
}

.dark-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.floating-dark {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.floating-dark:hover {
    transform: translateY(-2px);
    background-color: #00408f;
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;

    background:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0.05) 40%,
            rgba(0, 0, 0, 0.05) 60%,
            rgba(0, 0, 0, 0.18));
}

.sidebar>* {
    position: relative;
    z-index: 3;
}