:root {
    --navy-abyss: #04101e;
    --navy-dark: #07192f;
    --navy-primary: #0d2b4e;
    --ocean-blue: #15538f;
    --teal-wave: #0e7490;
    --gold-brass: #d49b35;
    --gold-light: #f3c873;
    --gold-hover: #b88224;
    --bg-canvas: #eef3f8;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-subtle: #dbe4ee;
    --success-green: #059669;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.6;
}

.top-nav {
    background: var(--navy-abyss);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 2px solid var(--gold-brass);
    box-shadow: 0 4px 18px rgba(4, 16, 30, 0.35);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--navy-primary));
    border: 1px solid var(--gold-brass);
    color: var(--gold-brass);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-text strong { display: block; font-size: 17px; letter-spacing: 0.8px; font-weight: 800; }
.brand-logo-text span { display: block; font-size: 11px; color: var(--gold-light); text-transform: uppercase; letter-spacing: 1px; }

.nav-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.step-link {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.step-link:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
.step-link.active {
    background: rgba(212, 155, 53, 0.2);
    border-color: var(--gold-brass);
    color: var(--gold-light);
}

.basket-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--navy-primary), var(--ocean-blue));
    border: 1.5px solid var(--gold-brass);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.basket-trigger:hover { background: var(--ocean-blue); transform: translateY(-1px); }

.basket-icon-wrap { position: relative; display: flex; align-items: center; color: var(--gold-brass); }

.basket-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold-brass);
    color: var(--navy-abyss);
    font-size: 11px;
    font-weight: 900;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--navy-abyss);
}

.basket-total-pill {
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--gold-light);
    font-weight: 800;
}

.hero-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 60%, #114375 100%);
    color: #ffffff;
    padding: 36px 24px 44px;
    border-bottom: 3px solid var(--gold-brass);
}

.hero-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.series-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 155, 53, 0.2);
    border: 1px solid var(--gold-brass);
    color: var(--gold-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-banner h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.hero-banner p { color: #cbd5e1; font-size: 15px; max-width: 720px; }

.active-boat-pill {
    background: rgba(4, 16, 30, 0.65);
    border: 1.5px solid var(--gold-brass);
    padding: 14px 20px;
    border-radius: 14px;
    min-width: 280px;
}

.main-container {
    max-width: 1280px;
    margin: 28px auto 70px;
    padding: 0 24px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
    background: #ffffff;
    padding: 16px 22px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 12px rgba(7, 25, 47, 0.04);
}

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.cat-tab {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--navy-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cat-tab:hover { background: #e2e8f0; }
.cat-tab.active {
    background: var(--navy-primary);
    color: #ffffff;
    border-color: var(--navy-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
}

.item-card {
    background: var(--card-bg);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.22s ease;
    box-shadow: 0 4px 12px rgba(7, 25, 47, 0.03);
    position: relative;
}

.item-card:hover {
    border-color: #7dd3fc;
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(13, 43, 78, 0.1);
}

.item-card.selected {
    border-color: var(--ocean-blue);
    background: linear-gradient(180deg, #f0f8ff 0%, #ffffff 100%);
    box-shadow: 0 10px 24px rgba(21, 83, 143, 0.15);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    height: 195px;
    background: #0d2b4e;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.boat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.item-card:hover .boat-card-img {
    transform: scale(1.04);
}

.card-floating-icon {
    position: absolute;
    bottom: 12px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(4, 16, 30, 0.88);
    border: 1.5px solid var(--gold-brass);
    color: var(--gold-brass);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.selected-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success-green);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ocean-blue);
    background: #e0f2fe;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.item-card h3 { font-size: 16.5px; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; }
.item-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 16px; }

.specs-mini {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.specs-mini span {
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-primary);
    padding: 3px 9px;
    border-radius: 6px;
}

.card-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.price-tag { font-size: 19px; font-weight: 800; color: var(--navy-primary); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-secondary { background: #f1f5f9; color: var(--navy-primary); border: 1px solid #cbd5e1; }
.btn-secondary:hover { background: #e2e8f0; }

.btn-primary { background: var(--navy-primary); color: #ffffff; }
.btn-primary:hover { background: var(--ocean-blue); }
.btn-primary.added { background: var(--success-green); color: #ffffff; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-brass), #e6af49);
    color: var(--navy-abyss);
    font-size: 14px;
    font-weight: 800;
    padding: 12px 18px;
    box-shadow: 0 4px 14px rgba(212, 155, 53, 0.35);
}

.btn-gold:hover { background: linear-gradient(135deg, var(--gold-hover), var(--gold-brass)); transform: translateY(-1px); }

/* Slide-Over Drawers */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 16, 30, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
}

.drawer-backdrop.open { opacity: 1; visibility: visible; }

.slide-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 460px;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    box-shadow: -10px 0 35px rgba(4, 16, 30, 0.3);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-drawer.open { right: 0; }

.drawer-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-primary));
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--gold-brass);
}

.drawer-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-footer { padding: 20px 24px; background: #f8fafc; border-top: 1px solid var(--border-subtle); }

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--ocean-blue);
    border-radius: 10px;
    margin-bottom: 10px;
}

.basket-remove-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
}

/* Quote Page Table */
.page-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    max-width: 920px;
    margin: 34px auto 60px;
    box-shadow: 0 10px 30px rgba(7, 25, 47, 0.08);
    border: 1px solid var(--border-subtle);
}

.quote-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.quote-table th { background: var(--navy-primary); color: #ffffff; padding: 12px 16px; text-align: left; font-size: 13px; text-transform: uppercase; }
.quote-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); font-size: 14.5px; }
.quote-table tfoot td { background: #f1f5f9; font-size: 18px; font-weight: 800; color: var(--navy-dark); border-top: 2px solid var(--navy-primary); }

@media print {
    .no-print, .top-nav { display: none !important; }
    body { background: #ffffff; }
    .page-card { box-shadow: none; margin: 0; padding: 0; border: none; }
}


/* =========================================================
   LIGHTBOX IMAGE ZOOM MODAL (NAVY & BRASS GOLD THEME)
   ========================================================= */
.boat-card-img,
.acc-card-img {
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.boat-card-img:hover,
.acc-card-img:hover {
    transform: scale(1.03);
}

.marine-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.marine-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.marine-lightbox-content {
    position: relative;
    max-width: 920px;
    width: 100%;
    background: #0f213a;
    border: 2px solid #c59b27;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.marine-lightbox.active .marine-lightbox-content {
    transform: scale(1);
}

.marine-lightbox-img {
    max-width: 100%;
    max-height: 76vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    display: block;
    margin: 0 auto;
}

.marine-lightbox-caption {
    margin-top: 12px;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.marine-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #c59b27;
    color: #0a1628;
    border: 2px solid #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease, transform 0.2s ease;
}

.marine-lightbox-close:hover {
    background: #e0b43b;
    transform: rotate(90deg);
}



/* Bigger Accessory / Category Product Images */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.item-card .card-img-wrap {
    position: relative;
    width: 100%;
    height: 290px; /* Increased from standard ~190px */
    background-color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-card .boat-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps full outboard shafts & tall gear visible without cropping */
    padding: 12px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.item-card:hover .boat-card-img {
    transform: scale(1.06);
}

/* Also enlarge the Quick-Details Drawer preview image */
#detail-img {
    width: 100% !important;
    height: 280px !important;
    object-fit: contain !important;
    background: #ffffff;
    padding: 10px;
}

/* Mobile adjustment */
@media (max-width: 600px) {
    .item-card .card-img-wrap {
        height: 240px;
    }
}