/* ============================================================
   WØB GLOBAL IDENTITY — COLOURS, TYPOGRAPHY, SPACING
   ============================================================ */

:root {
    --wob-grey: #2A2A2A;
    --wob-white: #FFFFFF;
    --wob-blue: #1E4F9A;          /* Master brand accent */
    --wob-aero-red: #C62828;      /* Aerospace sub-brand accent */

    /* 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;
}

/* Headings */
h1, .wob-h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--wob-grey);
    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;
    color: var(--wob-grey);
    margin-bottom: 10px;
}

/* ------------------------------
   PAGE HEADER + AEROSPACE ACCENT
   ------------------------------ */
.wob-header {
    padding: 20px 0;
    border-bottom: 4px solid var(--wob-aero-red);
    margin-bottom: 30px;
}

/* ------------------------------
   SECTION STYLES
   ------------------------------ */
.wob-section {
    padding: var(--section-padding);
    margin-bottom: 30px;
}

.wob-section-grey {
    background-color: #F4F4F4;
    padding: var(--section-padding);
    margin-bottom: 30px;
}

.wob-section-white {
    background-color: var(--wob-white);
}

/* ------------------------------
   UTILITY CLASSES
   ------------------------------ */
.wob-accent-red {
    color: var(--wob-aero-red);
}

.wob-grey {
    color: var(--wob-grey);
}

.wob-blue {
    color: var(--wob-blue);
}

/* ============================================================
   WØB GLOBAL NAVIGATION BAR
   ============================================================ */

.wob-nav {
    background: var(--wob-grey);
    padding: 12px 20px;
    color: var(--wob-white);
    border-bottom: 3px solid transparent;
}

.wob-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wob-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--wob-white);
    margin-right: 20px;
}

.wob-nav-title {
    font-size: 16px;
    color: var(--wob-white);
    opacity: 0.8;
    margin-right: 40px;
}

.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-blue);
}

/* ============================================================
   WØB GLOBAL 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;
    line-height: 1.4;
}

.wob-footer a {
    color: var(--wob-aero-red);
    text-decoration: none;
}

.wob-footer-copy {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================================
   WØB GLOBAL LAYOUT REFINEMENTS
   ============================================================ */

.wob-section,
.wob-section-grey {
    padding: 40px 0;
    max-width: 900px;
    margin: 0 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;
}

.wob-section + .wob-section-grey,
.wob-section-grey + .wob-section {
    margin-top: 20px;
}

/* ============================================================
   WØB RESPONSIVE 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;
    }
}

/* ============================================================
   WØB PRODUCT TILE BASE STYLING
   ============================================================ */

.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);
}

/* ============================================================
   WØB‑AEROSPACE — HERO BLOCK
   ============================================================ */

.aero-hero {
    border-left: 4px solid var(--wob-aero-red);
    padding-left: 20px;
    margin-bottom: 30px;
}

.aero-hero .wob-h1 {
    margin-bottom: 5px;
}

.aero-hero .wob-h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--wob-aero-red);
}

.aero-hero p {
    max-width: 750px;
    line-height: 1.6;
}

/* ============================================================
   WØB‑AEROSPACE — VISUAL ACCENT LAYER
   ============================================================ */

.wob-aerospace .wob-h2 {
    border-bottom: 2px solid var(--wob-aero-red);
    padding-bottom: 6px;
    display: inline-block;
}

.wob-aerospace .aero-tech-block {
    border-left: 3px solid var(--wob-aero-red);
}

.wob-aerospace .aero-qr-block {
    border-left: 3px solid var(--wob-aero-red);
    padding-left: 20px;
    background: #fafafa;
    border-radius: 4px;
}

/* ============================================================
   WØB‑AEROSPACE — NAV OVERRIDES
   ============================================================ */

.wob-aerospace .wob-nav-menu li a:hover {
    color: var(--wob-aero-red);
}

.wob-aerospace .wob-logo {
    border-bottom: 3px solid var(--wob-aero-red);
    padding-bottom: 4px;
}

.wob-aerospace .wob-nav {
    border-bottom: 3px solid var(--wob-aero-red);
}

/* ============================================================
   WØB PRODUCT FAMILY COLOUR OVERRIDES (MUST COME LAST)
   ============================================================ */

.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 {
    background: #fafafa;
    border-left: 3px solid var(--wob-aero-red);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.product-detail.hidden {
    display: none;
}

.pdp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.pdp-table th,
.pdp-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.pdp-table th {
    font-weight: 600;
}

.pdp-notes {
    margin-top: 20px;
}

.checkout-container {
    max-width: 480px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.checkout-container h2 {
    margin-top: 0;
    font-weight: 600;
}

.checkout-container label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
}

.checkout-container input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.checkout-button {
    margin-top: 30px;
    width: 100%;
    padding: 14px;
    background: #005bbb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.checkout-button:hover {
    background: #004999;
}

#checkout-status {
    margin-top: 20px;
    font-size: 15px;
    min-height: 20px;
}

/* ------------------------------------------------------------
   WØB Aerospace — Cart Drawer Styling
------------------------------------------------------------ */

#cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #005bbb;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
}

#cart-icon:hover {
    background: #004999;
}

.cart-icon-svg svg {
    width: 18px;
    height: 18px;
    fill: white;
}

#cart-count {
    background: white;
    color: #005bbb;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

/* Drawer container */
#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);
}

/* Drawer header */
#cart-drawer h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Cart items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.cart-item span {
    flex: 1;
}

.cart-remove {
    background: #cc0000;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.cart-remove:hover {
    background: #990000;
}

/* Drawer buttons */
#cart-clear,
#cart-checkout {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

#cart-clear {
    background: #dddddd;
}

#cart-clear:hover {
    background: #cccccc;
}

#cart-checkout {
    background: #005bbb;
    color: white;
}

#cart-checkout:hover {
    background: #004999;
}

.order-confirm-container {
    max-width: 480px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.order-confirm-container h2 {
    margin-top: 0;
    font-weight: 600;
}

.order-id-line {
    font-size: 18px;
    margin: 20px 0;
}

.order-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    display: block;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background: #005bbb;
    color: white;
}

.btn-primary:hover {
    background: #004999;
}

.btn-secondary {
    background: #dddddd;
    color: #333;
}

.btn-secondary:hover {
    background: #cccccc;
}
