/* PCE Website — Custom Styles */
/* Theme: Inspiro-inspired dark nav + hero, light content */
/* Fonts: Inter (body), Onest (headings/nav) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #444;
    background: #f9fafd;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    color: #000;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ===== Navbar ===== */
.site-header {
    position: relative;
    z-index: 100;
}

/* On home page, navbar is absolute over the hero */
.home-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.navbar {
    background: #1e4d7a;
    width: 100%;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* On home page, navbar starts fully transparent */
.home-page .navbar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 1%, rgba(0,0,0,0) 100%);
}

/* After scrolling, show solid navy background */
.navbar.scrolled {
    background: rgba(30, 77, 122, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-logo .logo-link {
    display: flex;
    align-items: center;
}

.header-logo .logo-img {
    max-height: 60px;
    width: auto;
}

/* Navigation */
.header-nav {
    display: none;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: center;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 16px;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0bb4aa;
}

.nav-link .caret {
    font-size: 10px;
    margin-left: 3px;
    opacity: 0.7;
}

/* Dropdown */
.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #101010;
    border-top: 3px solid #0bb4aa;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    z-index: 200;
}

.dropdown-link {
    display: block;
    padding: 8px 20px;
    color: #b0b0b0;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-link:hover {
    color: #0bb4aa;
    background: rgba(255,255,255,0.05);
}

/* Header widgets (social, search, hamburger) */
.header-widgets {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons {
    display: none;
    align-items: center;
    gap: 6px;
}

@media (min-width: 1024px) {
    .social-icons {
        display: flex;
    }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
    opacity: 1;
    color: #0bb4aa;
}

/* --- Language Switcher --- */
.lang-switcher {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .lang-switcher {
        display: flex;
    }
}

.lang-link {
    color: rgba(255, 255, 255, 0.6);
    padding: 2px 4px;
    border-radius: 2px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.lang-link:hover {
    color: #fff;
}

.lang-link.active {
    color: #0bb4aa;
    font-weight: 700;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

.mobile-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.search-toggle,
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.search-toggle:hover,
.mobile-toggle:hover {
    opacity: 1;
}

.mobile-toggle {
    display: flex;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

/* Search bar */
.search-bar {
    background: rgba(30, 77, 122, 0.98);
    padding: 12px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.search-bar.hidden {
    display: none;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-input:focus {
    border-color: #0bb4aa;
    background: rgba(255,255,255,0.15);
}

.search-submit {
    padding: 8px 16px;
    background: #0bb4aa;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.search-submit:hover {
    background: #09a299;
}

/* Mobile menu */
.mobile-menu {
    background: #1a2332;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 30px;
}

.mobile-link {
    display: block;
    padding: 12px 0;
    color: #b0b0b0;
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #0bb4aa;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 30px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 20px 0;
}

.hero-title-underline {
    display: block;
    width: 310px;
    height: 1px;
    background: rgba(201, 201, 201, 0.4);
    margin: 20px auto;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-title-underline {
        width: 200px;
    }
}

/* Scroll-down indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 30px;
    height: 30px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: translateX(-50%) rotate(45deg);
    cursor: pointer;
    transition: border-color 0.3s;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    border-color: #0bb4aa;
}

@keyframes scrollBounce {
    0%, 100% { bottom: 30px; }
    50% { bottom: 22px; }
}

/* ===== Page Content ===== */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}

.page-content-narrow {
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* ===== Home Content Section ===== */
.home-intro {
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 30px;
}

.home-intro p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.home-intro a {
    color: #0bb4aa;
    text-decoration: underline;
    text-underline-offset: 0.125em;
}

.home-intro a:hover {
    color: #09a299;
}

.home-separator {
    border: none;
    border-top: 2px solid rgba(0,0,0,0.05);
    margin: 40px 0;
}

/* Testimonials */
.testimonials {
    background: #f9fafd;
    padding: 60px 30px;
}

.testimonials-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonials h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.testimonial-carousel {
    position: relative;
    min-height: 160px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    padding: 30px;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.testimonial-stars {
    color: #FFB900;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.testimonial-source {
    font-size: 0.875rem;
    color: #888;
}

.testimonial-source a {
    color: #0bb4aa;
}

/* ===== Footer ===== */
.site-footer {
    background: #1a2332;
    color: #fff;
    padding: 30px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===== Product Image Gallery ===== */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
    transition: border-color 0.2s ease;
}

.gallery-thumb:hover {
    border-color: #9ca3af;
}

.gallery-thumb.active {
    border-color: #0bb4aa;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
}

.gallery-thumb img.error {
    display: none;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: #0bb4aa;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    padding: 16px 12px;
    border-radius: 4px;
    z-index: 10000;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== Product Cards ===== */
.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.product-card-image {
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.product-card-info {
    padding: 16px;
}

.product-card-name {
    font-family: 'Onest', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.product-card-price {
    font-weight: 700;
    color: #0bb4aa;
}

.product-card-price .old-price {
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    font-size: 0.875rem;
    margin-right: 6px;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #0bb4aa;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.btn-primary:hover {
    background: #09a299;
    color: #fff;
}

.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.btn-outline:hover {
    background: #fff;
    color: #1a2332;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #1e4d7a;
    border: 2px solid #1e4d7a;
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: #1e4d7a;
    color: #fff;
}

/* ===== Breadcrumbs ===== */
.breadcrumb {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #0bb4aa;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

/* ===== Prose (content pages) ===== */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.prose a {
    color: #0bb4aa;
    text-decoration: underline;
    text-underline-offset: 0.125em;
}

.prose a:hover {
    color: #09a299;
}

/* ===== Forms ===== */
.form-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #444;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #0bb4aa;
    box-shadow: 0 0 0 3px rgba(11, 180, 170, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

/* ===== Category sidebar ===== */
.category-sidebar a {
    color: #555;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.category-sidebar a:hover,
.category-sidebar a.active {
    color: #0bb4aa;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #444;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #0bb4aa;
    color: #0bb4aa;
}

.pagination a.active {
    background: #0bb4aa;
    color: #fff;
    border-color: #0bb4aa;
}

/* ===== Alert messages ===== */
.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Stock badge ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge-success {
    background: #ecfdf5;
    color: #065f46;
}

.badge-danger {
    background: #fef2f2;
    color: #991b1b;
}

/* ===== Utility ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}
