/* ============================================
   Patsalou Marine Services Ltd - Main Stylesheet
   https://www.patsaloumarine.com
   ============================================ */

:root {
    --primary-orange: #f36f21;
    --dark-navy: #1b263b;
    --card-slate: #5e7282;
    --text-light: #f4f4f4;
    --text-dark: #333;
    --brand-bg: #141b2d;
    --light-bg: #f4f7f6;
    --border-color: #e1e4e8;
    --success-green: #27ae60;
    --simrad-red: #e3001b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* --- Header / Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Index page: logo as big as possible within header */
.header-home .logo-img-home {
    max-height: 96px;
    width: auto;
}
@media (max-width: 768px) {
    .header-home .logo-img-home {
        max-height: 64px;
    }
}

.logo-icon {
    font-size: 24px;
    color: var(--dark-navy);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    display: block;
}

.logo-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    display: block;
}

/* When using logo image, hide text if desired - or keep as fallback */
.logo-container:has(.logo-img) .logo-text,
.logo-container:has(.logo-img) .logo-sub { display: none; }
.logo-container:has(.logo-img) .logo-icon { display: none; }

nav {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Google Translate widget in header */
.header-translate {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.header-translate .goog-te-gadget { font-family: inherit; font-size: 13px; }
.header-translate .goog-te-gadget select { margin: 0 4px; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border-color); background: #fff; color: var(--text-dark); cursor: pointer; }
/* Hide "Translate" label if desired; show only dropdown */
.header-translate .goog-te-gadget .goog-te-combo { margin-left: 0; }

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
    position: relative;
    padding: 10px 12px;
    border-radius: 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

nav a:hover,
nav a.active {
    color: var(--dark-navy);
}

nav a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-orange);
    margin-top: 6px;
    position: absolute;
    bottom: 4px;
    left: 0;
}

.cart-link {
    position: relative;
    margin-left: 8px;
}
.cart-count {
    position: absolute;
    top: 2px;
    right: -8px;
    background: var(--primary-orange);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* --- Mobile menu toggle --- */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-navy);
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
}

/* --- Footer --- */
footer {
    background: var(--dark-navy);
    color: white;
    margin-top: 50px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5% 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--primary-orange);
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-col a:hover {
    color: white;
}

.footer-col .footer-logo {
    max-height: 44px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.95;
}

.footer-bottom {
    text-align: center;
    padding: 20px 5%;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Simple footer (when no footer-inner) */
footer p:only-child {
    padding: 20px;
    text-align: center;
    font-size: 13px;
}

/* --- Buttons --- */
.btn {
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    min-height: 44px;
    line-height: 1.2;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    border: 2px solid var(--primary-orange);
}

.btn-primary:hover {
    background-color: #d85c15;
    border-color: #d85c15;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--dark-navy);
}

/* --- Hero (Home) --- */
.hero {
    position: relative;
    min-height: 400px;
    height: 70vh;
    max-height: 600px;
    background: url('pms_web_yacht.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: clamp(14px, 2vw, 18px);
    margin-bottom: 24px;
    opacity: 0.95;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Brands section --- */
.brands {
    background-color: var(--brand-bg);
    padding: 40px 5%;
    text-align: center;
}

.brands h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-simrad { background: #e3001b; color: white; font-weight: 900; padding: 8px 16px; font-size: 22px; letter-spacing: -1px; }
.logo-bg { color: white; font-weight: 800; font-size: 22px; font-style: italic; }
.logo-lowrance { color: white; font-weight: 800; font-size: 22px; text-transform: uppercase; }

/* --- Services (Home) --- */
.services {
    padding: 60px 5%;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-size: clamp(26px, 4vw, 32px);
    color: var(--dark-navy);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-orange);
    margin: 10px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--card-slate);
    padding: 36px 20px;
    border-radius: 8px;
    color: white;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid var(--primary-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 16px;
    color: white;
    opacity: 0.95;
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 13px;
    color: #d0d0d0;
    line-height: 1.5;
}

/* --- Page banners (shared) --- */
.page-banner,
.service-banner,
.contact-banner,
.page-header {
    min-height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 60px 5%;
}

.page-banner {
    background: linear-gradient(rgba(27, 38, 59, 0.8), rgba(27, 38, 59, 0.6)), url('https://images.unsplash.com/photo-1544158485-9333a948e94a?q=80&w=2070&auto=format&fit=crop') center/cover;
}
.page-banner h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 16px; opacity: 0.9; }

.service-banner {
    background: linear-gradient(rgba(20, 27, 45, 0.9), rgba(20, 27, 45, 0.7)), url('https://images.unsplash.com/photo-1605281317010-fe5ffe79ba02?q=80&w=2070&auto=format&fit=crop') center/cover;
}
.service-banner h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.service-banner p { font-size: 16px; opacity: 0.9; }

.contact-banner {
    background: linear-gradient(rgba(20, 27, 45, 0.85), rgba(20, 27, 45, 0.85)), url('https://images.unsplash.com/photo-1511119253456-655a5369e5f5?q=80&w=2070&auto=format&fit=crop') center/cover;
    padding: 80px 5%;
}
.contact-banner h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.contact-banner p { font-size: 16px; opacity: 0.9; }

.page-header {
    background: linear-gradient(rgba(27, 38, 59, 0.85), rgba(27, 38, 59, 0.85)), url('https://images.unsplash.com/photo-1540946484620-20ef2313308d?q=80&w=2070&auto=format&fit=crop') center/cover;
}
.page-header h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.page-header p { font-size: 16px; opacity: 0.9; }

/* --- About page --- */
.story-section {
    padding: 60px 5%;
    background: white;
}

.story-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.story-text { flex: 1; min-width: 280px; }
.story-image {
    flex: 1;
    min-width: 280px;
    height: 340px;
    background: url('https://images.unsplash.com/photo-1566421881655-79d71c48e894?q=80&w=2070&auto=format&fit=crop') center/cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-text h2 {
    color: var(--dark-navy);
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 16px;
}
.story-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    margin-top: 10px;
}
.story-text p { margin-bottom: 16px; font-size: 15px; color: #555; }

.stats-section {
    background-color: var(--primary-orange);
    color: white;
    padding: 40px 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
}
.stat-box { margin: 10px; }
.stat-number { font-size: clamp(36px, 5vw, 48px); font-weight: 700; display: block; }
.stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.team-section {
    padding: 60px 5%;
    background: var(--light-bg);
    text-align: center;
}
.team-section h2 { margin-bottom: 40px; font-size: clamp(24px, 3vw, 32px); color: var(--dark-navy); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.team-card {
    background: white;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.team-card:hover { transform: translateY(-8px); }
.team-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin: 0 auto 16px;
    object-fit: cover;
}
.team-card h3 { color: var(--dark-navy); margin-bottom: 4px; font-size: 18px; }
.team-card span { color: var(--primary-orange); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.team-card p { margin-top: 10px; font-size: 13px; color: #666; }

/* --- Contact page --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info { flex: 1; min-width: 280px; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.info-icon {
    background: var(--primary-orange);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.info-text h4 { color: var(--dark-navy); margin-bottom: 4px; font-size: 16px; }
.info-text p { font-size: 14px; color: #666; line-height: 1.5; }

.contact-form-card {
    flex: 1.2;
    min-width: 300px;
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.form-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.form-group { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
label { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--dark-navy); }
input, textarea, select {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary-orange); }

.submit-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 16px 24px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 8px;
    min-height: 48px;
    font-size: 14px;
}
.submit-btn:hover { background: #d85c15; }

.map-section {
    width: 100%;
    height: 350px;
    background: #e5e3df;
}
.map-section iframe { width: 100%; height: 100%; border: 0; }

/* --- Services detail page --- */
.service-detail-section {
    padding: 50px 5%;
    background: white;
}

.service-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.service-detail-section .service-row:last-child { border-bottom: none; margin-bottom: 0; }
.service-row.reverse { flex-direction: row-reverse; }
.service-content { flex: 1; min-width: 280px; }
.service-img-container {
    flex: 1;
    min-width: 280px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.service-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-img-container:hover img { transform: scale(1.05); }
.service-content h2 {
    color: var(--dark-navy);
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-content h2 i { color: var(--primary-orange); font-size: 22px; }
.service-content p { color: #555; margin-bottom: 16px; font-size: 15px; }
.service-list { list-style: none; margin-top: 12px; }
.service-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
}
.service-list li i { color: var(--primary-orange); font-size: 12px; }

.cta-section {
    background-color: var(--card-slate);
    color: white;
    padding: 50px 5%;
    text-align: center;
}
.cta-section h2 { margin-bottom: 12px; font-size: 26px; }
.cta-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 28px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s;
    min-height: 48px;
    line-height: 1.2;
}
.cta-btn:hover { background: #d85c15; }

/* --- Navico Center --- */
.navico-banner {
    background: var(--dark-navy);
    color: white;
    padding: 60px 5%;
    text-align: center;
}
.navico-banner h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.navico-banner p { max-width: 700px; margin: 0 auto; opacity: 0.9; font-size: 16px; }

.brand-section { padding: 60px 5%; }
.brand-intro { text-align: center; margin-bottom: 50px; }
.brand-intro h2 { color: var(--dark-navy); margin-bottom: 10px; font-size: 28px; }
.brand-intro p { color: #666; font-size: 16px; }

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.brand-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.brand-card:hover { transform: translateY(-5px); }
.brand-header {
    padding: 32px;
    text-align: center;
    color: white;
    font-size: 26px;
    font-weight: 900;
}
.bg-simrad { background-color: var(--simrad-red); }
.bg-bandg { background-color: #000; }
.bg-lowrance { background-color: #0056b3; }
.brand-body { padding: 24px; flex-grow: 1; }
.brand-body h3 { margin-bottom: 12px; color: var(--dark-navy); font-size: 18px; }
.brand-body p { font-size: 14px; color: #666; margin-bottom: 16px; }
.feature-tag {
    display: inline-block;
    background: #eee;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cert-section {
    background: white;
    padding: 50px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    border-top: 1px solid #eee;
    max-width: 1200px;
    margin: 0 auto;
}
.cert-icon { font-size: 64px; color: var(--primary-orange); }
.cert-text h2 { color: var(--dark-navy); margin-bottom: 8px; font-size: 24px; }
.cert-text p { color: #555; font-size: 15px; line-height: 1.6; }

/* --- Projects --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 30px 5%;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.filter-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-height: 44px;
}
.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.portfolio-grid {
    padding: 40px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-8px); }
.project-img {
    width: 100%;
    height: 220px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-orange);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}
.project-info { padding: 20px; }
.project-info h3 { color: var(--dark-navy); margin-bottom: 8px; font-size: 18px; }
.project-info p { font-size: 14px; color: #666; margin-bottom: 12px; }
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* --- Shop --- */
.shop-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    background: white;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.shop-search-wrap {
    position: relative;
    margin-bottom: 8px;
}
.shop-search-wrap .shop-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 13px;
    pointer-events: none;
}
.shop-search-input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}
.shop-search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.filter-group {
    margin-bottom: 2px;
}
.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 2px 0;
    margin-bottom: 2px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-navy);
    background: none;
    border: none;
    border-bottom: 1px solid var(--primary-orange);
    cursor: pointer;
    text-align: left;
}
.filter-group-header:hover {
    color: var(--primary-orange);
}
.filter-group-title {
    flex: 1;
}
.filter-group-icon {
    font-size: 11px;
    transition: transform 0.2s ease;
    color: var(--dark-navy);
}
.filter-group:not(.filter-group-expanded) .filter-group-icon {
    transform: rotate(-90deg);
}
.filter-group:not(.filter-group-expanded) .filter-list,
.filter-group:not(.filter-group-expanded) .filter-price-bar,
.filter-group:not(.filter-group-expanded) .filter-price-slider-wrap {
    display: none;
}
.filter-price-slider-wrap {
    padding: 10px 0 6px 0;
}
.filter-price-slider-labels {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 8px;
}
.filter-price-slider-track {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filter-price-range-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--dark-navy);
}
.filter-price-range-name {
    font-weight: 600;
    min-width: 28px;
}
.filter-price-range {
    flex: 1;
    height: 8px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.15;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    gap: 2px;
}
.filter-list .filter-list-label { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; cursor: pointer; }
.filter-list li + li { margin-top: 0; }
.filter-list li:hover { color: var(--primary-orange); }
.filter-list input[type="checkbox"] { accent-color: var(--primary-orange); width: 12px; height: 12px; flex-shrink: 0; margin: 0; }

.shop-clear-filters {
    margin-top: 8px;
    color: var(--dark-navy);
    border-color: var(--dark-navy);
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
}

.shop-main h1 { margin-bottom: 12px; color: var(--dark-navy); font-size: 28px; }
.shop-intro { margin-bottom: 16px; color: #666; font-size: 14px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    background: #fff;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.product-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 12px;
}
.product-brand { font-size: 11px; text-transform: uppercase; color: #999; letter-spacing: 1px; font-weight: 700; }
.product-name {
    font-size: 15px;
    font-weight: 600;
    margin: 5px 0 10px;
    color: var(--dark-navy);
    min-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-price { font-size: 20px; color: var(--primary-orange); font-weight: 700; margin-bottom: 12px; }
.add-to-cart {
    background: var(--dark-navy);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
    min-height: 44px;
}
.add-to-cart:hover { background: var(--primary-orange); }

/* --- Product detail --- */
.product-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.product-gallery { position: sticky; top: 90px; }
.main-img {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
}
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.thumb {
    width: 100%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    border-radius: 4px;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Product image copy/save protection */
.pms-product-image,
.product-card-img,
.main-img,
.thumb,
.checkout-item-img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}
.product-img-wrap {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.brand-label { color: #888; text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.product-title { font-size: clamp(22px, 3vw, 32px); color: var(--dark-navy); margin: 10px 0; }
.price-tag { font-size: 26px; color: var(--primary-orange); font-weight: 700; margin-bottom: 16px; }
.price-tag .product-vat { font-size: 14px; color: #666; font-weight: 400; }
.price-tag .product-price-inc { margin-left: 8px; }
.short-desc { margin-bottom: 20px; color: #555; font-size: 15px; line-height: 1.6; }
.action-box {
    background: var(--light-bg);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}
.qty-input {
    padding: 12px;
    width: 70px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-right: 12px;
    font-size: 16px;
}
.add-btn {
    padding: 12px 32px;
    background: var(--dark-navy);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    min-height: 44px;
}
.add-btn:hover { background: var(--primary-orange); }
.install-callout {
    margin-top: 12px;
    font-size: 13px;
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}
.tabs { margin-top: 40px; border-top: 1px solid #eee; padding-top: 24px; }
.tab-headers { display: flex; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-h {
    font-weight: 700;
    cursor: pointer;
    color: #999;
    border-bottom: 2px solid transparent;
    padding-bottom: 6px;
    transition: color 0.2s;
}
.tab-h.active { color: var(--dark-navy); border-color: var(--primary-orange); }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table td { padding: 12px; border-bottom: 1px solid #eee; }
.specs-table td:first-child { font-weight: 700; width: 36%; color: #666; }

/* --- Booking --- */
.booking-hero {
    background: var(--dark-navy);
    color: white;
    padding: 50px 5%;
    text-align: center;
}
.booking-hero h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 8px; }
.booking-hero p { font-size: 16px; opacity: 0.9; }

.booking-container {
    max-width: 900px;
    margin: -30px auto 50px;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #ccc;
}
.step.active { color: var(--primary-orange); }
.step-num {
    width: 36px;
    height: 36px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step.active .step-num {
    border-color: var(--primary-orange);
    background: var(--primary-orange);
    color: white;
}
.form-section h3 {
    margin-bottom: 16px;
    color: var(--dark-navy);
    border-left: 4px solid var(--primary-orange);
    padding-left: 14px;
    font-size: 18px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 13px; font-weight: 700; color: #555; }
.input-group input,
.input-group select,
.input-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    min-height: 44px;
}
.input-group textarea { min-height: 100px; resize: vertical; }
.input-group input:focus { border-color: var(--primary-orange); }

.calendar-mock {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
}
.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.slot {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slot:hover { border-color: var(--primary-orange); color: var(--primary-orange); }
.slot.selected {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}
.book-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
    min-height: 48px;
}
.book-btn:hover { background: #d85c15; }

/* --- Login / Auth --- */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 60vh;
}
.auth-container {
    background: white;
    width: 100%;
    max-width: 900px;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    min-height: 480px;
}
.auth-visual {
    flex: 1;
    background: linear-gradient(rgba(27, 38, 59, 0.85), rgba(27, 38, 59, 0.85)), url('https://images.unsplash.com/photo-1562233237-10d7449944df?q=80&w=1974&auto=format&fit=crop') center/cover;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-visual h2 { font-size: 26px; margin-bottom: 12px; }
.auth-visual p { font-size: 15px; opacity: 0.95; line-height: 1.5; }
.auth-visual ul { margin-top: 24px; list-style: none; }
.auth-visual li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.auth-visual li i { color: var(--primary-orange); }

.auth-form-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tab-group { display: flex; gap: 20px; margin-bottom: 24px; }
.tab {
    padding-bottom: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #999;
    transition: 0.2s;
    position: relative;
}
.tab.active { color: var(--dark-navy); }
.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-orange);
}
.auth-form-side .form-group { margin-bottom: 16px; }
.auth-form-side label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
}
.auth-form-side input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 15px;
    min-height: 44px;
}
.auth-form-side input:focus { border-color: var(--primary-orange); }
.forgot-pass {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--primary-orange);
    text-decoration: none;
    margin-top: -8px;
    margin-bottom: 16px;
}
.forgot-pass:hover { text-decoration: underline; }
.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--dark-navy);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 48px;
    font-size: 15px;
}
.auth-btn:hover { background: var(--primary-orange); }
.social-login { margin-top: 24px; text-align: center; }
.social-login p { font-size: 12px; color: #999; margin-bottom: 12px; position: relative; }
.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #eee;
}
.social-login p::before { left: 0; }
.social-login p::after { right: 0; }
.social-icons { display: flex; justify-content: center; gap: 12px; }
.social-icons a,
.social-icons span {
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    color: var(--dark-navy);
    text-decoration: none;
}
.social-icons a:hover,
.social-icons span:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* --- Support --- */
.support-hero {
    background-color: var(--dark-navy);
    color: white;
    padding: 50px 5%;
    text-align: center;
}
.support-hero h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 12px; }
.support-hero p { font-size: 16px; opacity: 0.9; }
.search-container {
    max-width: 560px;
    margin: 20px auto 0;
}
.search-container input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 16px;
    min-height: 48px;
}

.section-padding { padding: 50px 5%; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: white;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-navy);
    transition: background 0.2s;
    min-height: 56px;
}
.faq-question:hover { background: #f9f9f9; }
.faq-question i { transition: transform 0.2s; color: var(--primary-orange); }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 14px;
    color: #666;
    background: #fff;
    line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.help-card {
    background: white;
    padding: 28px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--primary-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.help-card:hover { transform: translateY(-4px); }
.help-card i { font-size: 28px; color: var(--primary-orange); margin-bottom: 12px; }
.help-card h3 { color: var(--dark-navy); margin-bottom: 8px; font-size: 18px; }
.help-card p { font-size: 14px; color: #666; }

/* --- Checkout --- */
.checkout-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}
.checkout-container > aside {
    position: sticky;
    top: 80px;
    align-self: start;
}
.checkout-section {
    background: white;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.checkout-section .section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-section .form-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.checkout-section .form-group { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.checkout-section label { font-size: 12px; font-weight: 700; color: #666; margin-bottom: 4px; }
.checkout-section input { padding: 12px; border: 1px solid #ddd; border-radius: 6px; outline: none; min-height: 44px; }
.checkout-section input:focus { border-color: var(--primary-orange); }

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.item-img {
    width: 56px;
    height: 56px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 4px;
    object-fit: contain;
}
.item-details { flex: 1; }
.item-name { font-size: 14px; font-weight: 600; }
.item-price { font-size: 14px; color: var(--primary-orange); font-weight: 700; }
.item-price .product-vat { font-size: 11px; color: #888; font-weight: 400; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #eee;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-navy);
}
.place-order-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 16px;
    min-height: 50px;
}
.place-order-btn:hover { background: #d85c15; }
.trust-badges { display: flex; justify-content: center; gap: 16px; margin-top: 16px; opacity: 0.6; font-size: 22px; }

/* --- Success page --- */
.success-card {
    background: white;
    max-width: 560px;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    text-align: center;
    margin: 40px auto;
}
.icon-circle {
    width: 72px;
    height: 72px;
    background: var(--success-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}
.success-card h1 { color: var(--dark-navy); margin-bottom: 10px; font-size: 26px; }
.success-card > p { color: #666; margin-bottom: 24px; font-size: 15px; }
.order-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 24px;
    border: 1px dashed #ddd;
}
.detail-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.detail-row strong { color: var(--dark-navy); }
.next-steps { text-align: left; margin-bottom: 24px; }
.next-steps h4 { font-size: 15px; margin-bottom: 12px; color: var(--dark-navy); }
.step-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    color: var(--dark-navy);
    margin-bottom: 10px;
    transition: 0.2s;
    min-height: 48px;
}
.step-link:hover { border-color: var(--primary-orange); background: rgba(243, 111, 33, 0.06); }
.step-link i { color: var(--primary-orange); }
.btn-home {
    display: inline-block;
    padding: 14px 32px;
    background: var(--dark-navy);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: 0.2s;
    min-height: 48px;
    line-height: 1.2;
}
.btn-home:hover { background: var(--primary-orange); }

/* --- 404 --- */
.error-container {
    padding: 24px;
    max-width: 520px;
    z-index: 2;
    text-align: center;
}
.error-code {
    font-size: clamp(80px, 20vw, 120px);
    font-weight: 900;
    color: var(--primary-orange);
    line-height: 1;
    margin-bottom: 8px;
}
.error-message {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.error-description {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}
.btn-rescue {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 48px;
    line-height: 1.2;
}
.btn-rescue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    background: #d85c15;
}
.ocean {
    height: 8%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #2b3e5a;
}
.wave {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x;
    position: absolute;
    top: -198px;
    width: 6400px;
    height: 198px;
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    transform: translate3d(0, 0, 0);
}
@keyframes wave {
    0% { margin-left: 0; }
    100% { margin-left: -1600px; }
}

/* --- Dashboard (member) --- */
body.dashboard-page { background: var(--light-bg); display: flex; min-height: 100vh; }
.dashboard-sidebar {
    width: 260px;
    background: var(--dark-navy);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
}
.dashboard-sidebar .sidebar-logo {
    padding: 0 24px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
.dashboard-sidebar .sidebar-logo a { color: white; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.dashboard-sidebar .nav-menu { list-style: none; flex: 1; }
.dashboard-sidebar .nav-item a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.2s;
    font-size: 14px;
}
.dashboard-sidebar .nav-item a i { margin-right: 12px; width: 20px; }
.dashboard-sidebar .nav-item.active a,
.dashboard-sidebar .nav-item a:hover {
    color: white;
    background: rgba(255,255,255,0.06);
    border-left: 4px solid var(--primary-orange);
}
.dashboard-main {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
}
.dashboard-main .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    font-size: 22px;
    color: var(--primary-orange);
    background: rgba(243, 111, 33, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-info h3 { font-size: 18px; color: var(--dark-navy); }
.stat-info p { font-size: 11px; color: #888; text-transform: uppercase; }
.dashboard-row { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.content-card {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.content-card h3 { color: var(--dark-navy); margin-bottom: 16px; font-size: 18px; }

/* ========== RESPONSIVE ========== */

@media (max-width: 992px) {
    .mobile-menu-toggle { display: flex !important; }
    
    header {
        flex-wrap: wrap;
        position: relative;
    }
    header nav {
        order: 99;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }
    header nav.nav-open {
        max-height: 85vh;
        overflow-y: auto;
    }
    nav ul {
        flex-direction: column;
        padding: 16px;
        gap: 0;
        width: 100%;
    }
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    nav a {
        display: block;
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
        align-items: center;
    }
    .header-translate { padding: 12px 16px; border-top: 1px solid #eee; }
    nav a.active::after { display: none; }
    nav a.active { background: rgba(243, 111, 33, 0.08); color: var(--primary-orange); border-radius: 6px; }
    
    .shop-container { grid-template-columns: 1fr; }
    .sidebar { position: static; padding: 16px; }
    .product-container { grid-template-columns: 1fr; gap: 24px; padding: 0 4%; margin: 20px auto; }
    .product-gallery { position: static; }
    .product-details { min-width: 0; }
    .checkout-container { grid-template-columns: 1fr; padding: 16px 4%; }
    .checkout-container > aside { position: static; }
    .dashboard-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { flex-direction: row; flex-wrap: wrap; padding: 10px 4%; }
    .hero { min-height: 350px; height: 60vh; padding: 30px 4%; }
    .hero h1 { font-size: 26px; line-height: 1.2; }
    .hero p { font-size: 15px; }
    .btn-group { flex-direction: column; width: 100%; gap: 12px; }
    .btn { width: 100%; text-align: center; min-height: 48px; padding: 14px 20px; font-size: 16px; }
    .brand-logos { gap: 20px; flex-direction: column; }
    .services { padding: 40px 4%; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .story-container { flex-direction: column; gap: 24px; padding: 0 4%; }
    .story-image { width: 100%; height: 260px; }
    .service-row,
    .service-row.reverse { flex-direction: column; text-align: left; }
    .service-img-container { width: 100%; height: 220px; }
    .cert-section { flex-direction: column; text-align: center; }
    .filter-bar { padding: 20px 4%; }
    .portfolio-grid { grid-template-columns: 1fr; padding: 30px 4%; }
    .contact-container { padding: 30px 4%; }
    .contact-form-card { padding: 24px; }
    .form-row { flex-direction: column; gap: 16px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; min-height: 48px; }
    .grid-2 { grid-template-columns: 1fr; }
    .time-slots { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .auth-container { flex-direction: column; }
    .auth-visual { min-height: 200px; padding: 30px; }
    .auth-form-side { padding: 30px; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 32px 5%; }
    .dashboard-main { margin-left: 0; padding: 20px; }
    body.dashboard-page { flex-direction: column; }
    .dashboard-sidebar { position: relative; width: 100%; height: auto; }
    .product-title { font-size: 22px; }
    .price-tag { font-size: 22px; }
    .action-box { padding: 20px 16px; }
    .qty-input { width: 100%; max-width: 80px; min-height: 48px; }
    .add-btn { width: 100%; max-width: 100%; }
    .specs-table { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .specs-table td { padding: 10px 8px; }
    .shop-search-input { font-size: 16px; min-height: 48px; }
    .filter-group-header { min-height: 48px; padding: 12px 0; font-size: 15px; }
    .filter-price-range { min-height: 44px; }
    .product-card { min-width: 0; }
    .clear-filters, .shop-clear-filters { min-height: 48px; width: 100%; }
}

@media (max-width: 480px) {
    .logo-img { max-height: 40px; }
    .header-home .logo-img-home { max-height: 52px; }
    .hero { min-height: 300px; }
    .hero h1 { font-size: 22px; }
    .page-banner, .service-banner, .contact-banner, .page-header { min-height: 160px; padding: 32px 4%; }
    .page-banner h1, .service-banner h1, .contact-banner h1, .page-header h1 { font-size: 22px; }
    .success-card { padding: 24px; margin: 16px; }
    .product-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 4%; }
    .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .main-img { margin-bottom: 10px; }
    .booking-container { margin: -20px 12px 40px; padding: 20px 16px; }
    .checkout-section { padding: 20px 0; }
}

/* Touch-friendly: ensure tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
    nav a { min-height: 48px; }
    .btn, .add-to-cart, .submit-btn, .book-btn, .place-order-btn { min-height: 48px; }
    .filter-btn, .slot { min-height: 48px; }
    .mobile-menu-toggle { min-height: 48px; min-width: 48px; }
}

/* Prevent horizontal scroll on small screens */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Faster tap response and avoid accidental zoom on double-tap (iOS) */
button, a, input, select, textarea { touch-action: manipulation; }
* { -webkit-tap-highlight-color: rgba(243, 111, 33, 0.2); }

/* Safe area for notched / rounded devices */
@supports (padding: env(safe-area-inset-top)) {
    body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
    header { padding-left: max(5%, env(safe-area-inset-left)); padding-right: max(5%, env(safe-area-inset-right)); }
}
