
:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#555;
  --brand:#0b2a4a;
  --accent:#0066cc;
  --accent-contrast:#fff;
  --card:#f6f7f8;
  --focus:#ffbf47; /* GOV.UK style */
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}
header{background:var(--brand);color:#fff}
.header-inner{max-width:1100px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;gap:12px;justify-content:space-between}
.header-buttons {
  display: flex;
  flex-wrap: wrap;   /* allows buttons to go onto next line */
  gap: 8px;          /* space between buttons (side and top/bottom) */
  margin-left: auto; /* pushes them to the right */
}
nav a{color:#fff;text-decoration:none;margin-right:16px}
nav a[aria-current="page"]{text-decoration:underline}
main{max-width:1100px;margin:0 auto;padding:16px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}

/* Only affect the product list page */
#productsGrid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (max-width: 600px) {
    #productsGrid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}


.card{background:var(--card);border:1px solid #e3e4e6;border-radius:8px;padding:12px;display:flex;flex-direction:column}
.card img{max-width:100%;height:auto;border-radius:6px}
.btn{display:inline-block;background:var(--accent);color:var(--accent-contrast);padding:10px 14px;border:none;border-radius:6px;cursor:pointer;text-decoration:none;font-weight:600}
.btn.secondary{background:#e9ecef;color:#111;border:1px solid #c9ccd1}
.btn:focus,.link-like:focus, input:focus, select:focus, textarea:focus{outline:3px solid var(--focus);outline-offset:2px}
input, select, textarea{padding:10px;border:1px solid #9aa0a6;border-radius:6px;width:100%}
label{display:block;margin-top:10px;font-weight:600}
.small{color:var(--muted);font-size:.95rem}
.price{font-weight:700}
.skip-link{position:absolute;left:-9999px;top:8px;background:var(--focus);color:#000;padding:8px 10px;z-index:1000}
.skip-link:focus{left:8px}
.summary{background:var(--card);padding:12px;border-radius:8px;border:1px solid #e3e4e6}
.error{color:#b00020}
.error input{border-color:#b00020}
.error-message{color:#b00020;margin-top:6px}
.error-summary{border-left:4px solid #b00020;background:#fde7eb;padding:12px;border-radius:6px;margin-bottom:16px}
.visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
footer{max-width:1100px;margin:24px auto;padding:16px;color:#444;border-top:1px solid #e3e4e6}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}


#floatingContactBtn:focus {
    outline: 3px solid #1aff00; /* bright lime green focus ring */
    outline-offset: 4px;
    background-color: #0f8f00;  /* solid green background */
    color: #ffffff;             /* high contrast text */
}

/* === Product Specification Table === */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid #d5d7da;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
  font-size: 1rem;
}

.spec-table th {
  background: var(--brand);
  color: #fff;
  text-align: left;
  padding: 12px;
  font-size: 1.1rem;
}

.spec-table td {
  padding: 12px;
  border-bottom: 1px solid #e3e3e3;
}

.spec-table tr:nth-child(even) td {
  background: #f9f9f9;
}

.spec-table tr:hover td {
  background: #eef6ff;
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--muted);
  width: 35%;
}

.spec-table td:last-child {
  color: var(--text);
}

.spec-table:focus-within,
.spec-table td:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/*Space around filter*/
#productsGrid {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#colourFilterForm {
  margin-top: 2rem; /* space below the filter */
  margin-bottom: 1rem; /* space below the filter */
  padding: 0.4rem 0;   /* gives the focus ring breathing room */
}

/*contact us tabel*/

/* Heading for table */
.table-heading {
  margin-top: 24px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
}


/* === Dark Mode Overrides === */
.dark {
  --bg: #0e0e0f;
  --text: #f1f1f1;
  --muted: #bbbbbb;

  --brand: #1c3c62;
  --accent: #4da3ff;
  --accent-contrast: #000;

  --card: #1a1b1e;
  --focus: #ffd24d; /* accessible yellow focus ring */
}


/* --- Floating Vertical Contact Button --- */
#contactUsVertical {
  position: fixed;
  right: 0;
  top: 20%;
  transform: translateY(-50%) rotate(180deg); /* rotates text so it reads bottom→top */
  writing-mode: vertical-rl;                 /* makes text vertical */
  text-orientation: mixed;
  background: var(--accent, #0066cc);
  color: var(--accent-contrast, #fff);
  padding: 6px 1px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0 10px 10px 0;
  text-decoration: none;
  transition: background 0.2s ease;
  z-index: 9999;

}

#contactUsVertical:hover {
    background: #004d99;
}

#contactUsVertical:focus {
    outline: 3px solid var(--focus, #ffbf47);
    outline-offset: 4px;
}


/* Side-by-side layout for the contact tables */
.contact-flex {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
}

/* Both table containers auto-size */
.table-wrapper,
.new-table-wrapper {
    flex: 0 0 auto;
    width: 370px;
    max-width: 370px;
}

/* Stack tables on small screens */
@media (max-width: 700px) {
    .contact-flex {
        flex-direction: column;   /* stack vertically */
    }

    .table-wrapper,
    .new-table-wrapper {
        max-width: 100%;          /* full width */
        width: 100%;
    }
}

/* === contact tabels Table === */
.C-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid #d5d7da;
  border-radius: 8px;
  overflow: spill;
  margin-top: 16px;
  font-size: 1rem;
  table-layout: fixed;
}

.C-table th {
  background: var(--brand);
  color: #fff;
  text-align: left;
  padding: 12px;
  font-size: 1.1rem;
}

.C-table td {
  padding: 12px;
  border-bottom: 1px solid #e3e3e3;
}


/* Add vertical separator line here */
.C-table td:first-child,
.C-table th:first-child {
  border-right: 1px solid #d5d7da;
}

.C-table tr:nth-child(even) td {
  background: #f9f9f9;
}

.C-table tr:hover td {
  background: #eef6ff;
}

.C-table:focus-within,
.C-table td:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}


/* --- Flags--- */

.Social-image {
    width: 20px;
    height: auto;
    
}

.right-tables .C-table {
  margin-top: 16px;
}

/* ===== Popup Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}



.modal-content {
  background: var(--card);
  width: auto;
  max-width: 90vw;
  height: 85vh;
  margin: 60px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  border: 1px solid #d3d3d3;   /* light grey border */
}


#specFrame {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1; /* ✅ fills remaining space below close button */
}


iframe {
  width: 100%;
  min-height: 80vh;
  height: auto;
}


.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.modal.open {
  display: block;
}

/* Match "View Product" button styling */
.spec-btn {
  margin-top: 8px;        /* space between buttons */
  width: 100%;            /* make same width as View Product */
  text-align: center;     /* center the text */
}

/* Make all buttons inside product cards uniform */

.card .btn {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.card .btn + .btn {
  margin-top: 6px;
}


/* Optional: Add a little extra spacing to the spec button */
.spec-btn {
  margin-top: 4px;
}

/* Selected colour variant uses GOV.UK yellow border */
.colourDot[aria-pressed="true"] {
    outline: 3px solid var(--focus);   /* yellow outline */
    outline-offset: 2px;
    border-color: var(--focus) !important; /* keeps the inner circle consistent */
}

.colourDot:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* === Header Cart Button (matches site theme) === */
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #fff; /* same as nav text */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;

  padding: 6px 10px;
  border-radius: 6px;
}

.cart-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cart-button:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Shopping Cart count badge */
#cart-count {
  position: absolute;
  top: -6px;
  right: -8px;

  background: var(--accent);
  color: var(--accent-contrast);

  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;

  padding: 3px 6px;
  border-radius: 999px;

  min-width: 18px;
  text-align: center;

  display: none; /* shown only when items exist */
}

/* difficulty rating */
.star {
  font-size: 1.4rem;
  line-height: 1;
}

/* Colours */
.star.gold  { color: #d4af37; } /* gold */
.star.grey  { color: #b0b0b0; } /* grey */
.star.black { color: #111; }
.star.blue  { color: #0066cc; }
.star.red   { color: #c62828; }



/* === Site Navigation Ribbon === */
.site-ribbon {
  background-color: #8B0000; /* demo red */
  color: #ffffff;
  font-size: 0.85rem;
}

.ribbon-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 16px;

  display: flex;
  flex-wrap: nowrap;          /* ✅ keep on one line */
  gap: 12px;
  align-items: center;

  overflow-x: auto;           /* ✅ allow horizontal scroll */
  overflow-y: hidden;
  white-space: nowrap;

  -webkit-overflow-scrolling: touch; /* ✅ smooth scroll on iOS */
}

.ribbon-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}
  .ribbon-link[aria-current="page"] {
  text-decoration: underline;
}

/* Push action buttons to the bottom of product cards */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card .btn {
  margin-top: auto;
}



