/* ============================================================
   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);
}

/* ============================================================
   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);
}


/* ============================================================
   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;
}
