/* ============================================================
   WØB GLOBAL IDENTITY — COLOURS, TYPOGRAPHY, SPACING
   ============================================================ */

:root {
    --wob-grey: #2A2A2A;
    --wob-white: #FFFFFF;
    --wob-blue: #1E4F9A;
    --wob-aero-red: #C62828;

    /* Functional product-family colours */
    --acid-red: #C62828;
    --oxidiser-yellow: #F9A825;
    --cleaner-blue: #1565C0;
    --neutral-green: #2E7D32;

    /* Functional product-family backgrounds */
    --acid-red-bg: #FFE5E5;
    --oxidiser-yellow-bg: #FFF8E1;
    --cleaner-blue-bg: #E3F2FD;
    --neutral-green-bg: #E8F5E9;

    /* Typography */
    --font-main: 'Roboto', sans-serif;
    --font-size-body: 16px;
    --font-size-h1: 32px;
    --font-size-h2: 24px;
    --font-size-h3: 20px;

    /* Spacing */
    --section-padding: 40px;
    --block-padding: 20px;
}

/* ============================================================
   GLOBAL TYPOGRAPHY
   ============================================================ */

body, .wob-body {
    font-family: var(--font-main);
    font-size: var(--font-size-body);
    color: var(--wob-grey);
    line-height: 1.5;
}

h1, .wob-h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: 20px;
}

h2, .wob-h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--wob-aero-red);
    margin-bottom: 15px;
}

h3, .wob-h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.wob-header {
    padding: 20px 0;
    border-bottom: 4px solid var(--wob-aero-red);
    margin-bottom: 30px;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */

.wob-section,
.wob-section-grey {
    padding: var(--section-padding) 0;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.wob-section-grey {
    background: #F4F4F4;
}

.wob-section p,
.wob-section-grey p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.wob-section-grey ul {
    margin-left: 20px;
    line-height: 1.6;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.wob-accent-red { color: var(--wob-aero-red); }
.wob-grey { color: var(--wob-grey); }
.wob-blue { color: var(--wob-blue); }

/* ============================================================
   NAVIGATION BAR
   ============================================================ */

.wob-nav {
    background: var(--wob-grey);
    padding: 12px 20px;
    color: var(--wob-white);
    border-bottom: 3px solid var(--wob-aero-red);
}

.wob-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wob-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--wob-white);
    padding-bottom: 4px;
    border-bottom: 3px solid var(--wob-aero-red);
}

.wob-logo-svg {
    height: 48px;     /* Adjust to taste */
    width: auto;
    display: block;
}

.wob-nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.wob-nav-menu li a {
    color: var(--wob-white);
    text-decoration: none;
    font-weight: 500;
}

.wob-nav-menu li a:hover {
    color: var(--wob-aero-red);
}

.wob-nav-right {
    margin-right: 100px;
    display: flex;
    align-items: center;
}

/* Dropdown container */
.wob-has-dropdown {
    position: relative;
}

/* Dropdown menu (hidden by default) */
.wob-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 10px 0;
    min-width: 220px;
    z-index: 9999;
}

/* Dropdown menu items */
.wob-dropdown-menu li {
    list-style: none;
}

.wob-dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.wob-dropdown-menu li a:hover {
    background: #f2f2f2;
}

/* Active dropdown (JS toggles this class) */
.wob-has-dropdown.active .wob-dropdown-menu {
    display: block;
}

/* Mobile behaviour */
@media (max-width: 900px) {
    .wob-dropdown-menu {
        position: static;
        border: none;
        padding: 0;
    }

    .wob-dropdown-menu li a {
        padding-left: 25px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

.wob-footer {
    background: var(--wob-grey);
    color: var(--wob-white);
    padding: 30px 20px;
    margin-top: 40px;
}

.wob-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.wob-footer p {
    margin: 5px 0;
}

.wob-footer a {
    color: var(--wob-aero-red);
    text-decoration: none;
}

.wob-footer-copy {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================================
   GRID SYSTEM (3 → 2 → 1)
   ============================================================ */

.wob-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .wob-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .wob-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT TILE BASE
   ============================================================ */

.aero-tech-block {
    border-radius: 6px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aero-tech-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================================
   HERO BLOCK
   ============================================================ */

.aero-hero {
    border-left: 4px solid var(--wob-aero-red);
    padding-left: 20px;
    margin-bottom: 30px;
}

.aero-hero p {
    max-width: 750px;
    line-height: 1.6;
}

/* ============================================================
   PRODUCT FAMILY COLOUR OVERRIDES
   ============================================================ */

.aero-acid {
    background: var(--acid-red-bg);
    border-left: 6px solid var(--acid-red);
}

.aero-oxidiser {
    background: var(--oxidiser-yellow-bg);
    border-left: 6px solid var(--oxidiser-yellow);
}

.aero-cleaner {
    background: var(--cleaner-blue-bg);
    border-left: 6px solid var(--cleaner-blue);
}

.aero-neutral {
    background: var(--neutral-green-bg);
    border-left: 6px solid var(--neutral-green);
}

/* ============================================================
   PRODUCT DETAIL PANEL
   ============================================================ */

.product-detail {
    background: #fafafa;
    border-left: 3px solid var(--wob-aero-red);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.product-detail.hidden {
    display: none;
}

/* Table layout */
.pdp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;        /* keeps columns aligned under headings */
}

.pdp-table th,
.pdp-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
}

/* Tighten Qty column without breaking mobile */
.pdp-table th:last-child,
.pdp-table td:last-child {
    width: 70px;
}

/* Qty input */
.pdp-qty {
    width: 60px;
    padding: 6px;
    text-align: center;
}

/* Technical notes block */
.pdp-notes {
    margin-top: 20px;
}

/* Add Items button aligned under Qty */
.pdp-footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;   /* visually aligns under Qty column */
    padding-right: 10px;         /* matches table cell padding */
}

.pdp-order-btn {
    padding: 10px 18px;
    background: var(--wob-aero-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.pdp-order-btn:hover {
    background: #8a0000;
}

.pdp-order-btn:active {
    transform: scale(0.97);
}

.pdp-guidance {
    margin: 15px 0 20px;
    padding: 12px 15px;
    background: #f5f7fa;
    border-left: 4px solid #c00000;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================================
   PRODUCT DETAIL MODAL
   ============================================================ */

/* Overlay */
#pdp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 9000;
}

/* Modal container */
#product-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
    width: min(800px, 95vw);
}


/* ============================================================
   CART ICON
   ============================================================ */

#cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #005bbb;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
}

#cart-icon:hover { background: #004999; }

#cart-count {
    background: white;
    color: #005bbb;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

.cart-icon-svg svg {
    width: 18px;
    height: 18px;
    fill: white;
    display: block;
}


/* ============================================================
   CART DRAWER — FIXED + SCROLLABLE
   ============================================================ */

#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 9998;

    display: flex;
    flex-direction: column;
}

#cart-drawer.visible {
    transform: translateX(0);
}

/* Scrollable item area */
#cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

/* Drawer header */
#cart-drawer h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Drawer buttons pinned at bottom */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.cart-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.cart-clear { background: #dddddd; }
.cart-clear:hover { background: #cccccc; }

.cart-quote { background: #dddddd; }
.cart-quote:hover { background: #cccccc; }

.cart-checkout {
    background: #005bbb;
    color: white;
}
.cart-checkout:hover {
    background: #004999;
}

/* Cart item blocks */
.cart-item-block {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 2px 0;
}

.cart-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.cart-value {
    text-align: right;
    font-size: 0.85rem;
}

.cart-remove {
    padding: 4px 8px;
    font-size: 0.8rem;
    background: #c00;
    color: white;
    border: none;
    cursor: pointer;
}

.cart-remove:hover { background: #990000; }

.cart-totals {
    padding-top: 10px;
    border-top: 2px solid #000;
    margin-top: 10px;
}

/* ============================================================
   BLOG POSTS
   ============================================================ */
.blogpost-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.blogpost-title a {
    color: var(--wob-aero-red);
    text-decoration: none;
    font-weight: 600;
}

.blogpost-date {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
}

.blogpost-summary {
    font-size: 15px;
    color: #444;
}

.post-boxed {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-boxed:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.post-boxed {
    opacity: 0;
    transform: translateY(20px);
    animation: wobFadeUp 0.6s forwards;
}

.post-boxed:nth-child(1) { animation-delay: 0.1s; }
.post-boxed:nth-child(2) { animation-delay: 0.2s; }
.post-boxed:nth-child(3) { animation-delay: 0.3s; }

@keyframes wobFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   WØB BOXED LAYOUT
   ============================================================ */
.wob-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

/* ============================================================
   WØB ARTICLE TYPOGRAPHY
   ============================================================ */
.wob-article h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.wob-article h2 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
}

.wob-article h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.wob-article p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.wob-article ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.wob-article table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.wob-article table th,
.wob-article table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.wob-intro {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #444;
}

.wob-animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: wobFadeUp 0.6s forwards;
}

.section-50 {
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-md-90 {
    padding-top: 90px;
    padding-bottom: 90px;
}

/* ---------------------------------------------------------
   SURFACE TREATMENT GUIDES — TILE + CATEGORY STYLING
   --------------------------------------------------------- */

/* Tile container */
.wob-tile {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    transition: all 0.25s ease;
    padding: 20px;
    min-height: 220px;
}

/* Hover lift */
.wob-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Category badges */
.badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category colours */
.badge[data-category="Titanium"] {
    background-color: #8e44ad; /* purple */
    color: #fff;
}

.badge[data-category="Aluminium"] {
    background-color: #3498db; /* blue */
    color: #fff;
}

.badge[data-category="Nickel"] {
    background-color: #2ecc71; /* green */
    color: #fff;
}

.badge[data-category="NDT"] {
    background-color: #e67e22; /* orange */
    color: #fff;
}

.badge[data-category="General"] {
    background-color: #7f8c8d; /* grey */
    color: #fff;
}

/* Search bar */
#guideSearch {
    max-width: 420px;
    margin: 0 auto 20px auto;
    border-radius: 6px;
    padding: 10px 14px;
}

/* Filter buttons */
.filter-btn {
    margin: 4px;
    border-radius: 4px !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 8px 14px;
}

/* Active filter state */
.filter-btn.active {
    background-color: #007bff;
    color: #fff;
}

/* Responsive tile spacing */
.guide-tile {
    margin-bottom: 30px;
}
