:root {
    --orange: #f47b20;
    --orange-dark: #d85f0b;
    --orange-light: #fff1e6;
    --blue: #073b5c;
    --blue-mid: #176b8f;
    --blue-light: #dcecf3;
    --page-bg: #f4f6f8;
    --surface: #ffffff;
    --surface-alt: #f8fafb;
    --text: #263238;
    --muted: #68757d;
    --border: #d9e0e4;
    --link: #072df6;
    --link-hover: #d85f0b;
    --shadow-sm: 0 2px 8px rgba(20,40,50,0.08);
    --shadow: 0 8px 24px rgba(20,40,50,0.12);
    --shadow-hover: 0 14px 32px rgba(20,40,50,0.18);
    --radius: 12px;
    --radius-small: 7px;
    --max-width: 1400px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: #f4f6f8;
    background: linear-gradient(135deg,#f8fafb 0%,#eef3f6 100%);
}

a,a:visited {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container,
.pagecontainer {
    width: min(100% - 32px,var(--max-width));
    margin: 0 auto;
}

.container {
    padding-top: 0px;
}


/* Main-page header */

.heading {
    position: relative;
    width: 100%;
    min-height: 125px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #073b5c;
    background: linear-gradient(135deg,#073b5c 0%,#0b506f 65%,#d85f0b 100%);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

.headingimg {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.headingimg img {
    display: block;
    width: auto !important;
    height: 110px !important;
    max-width: 360px;
    object-fit: contain;
    margin: 0;
}


/* Main-page header buttons */

.headerbuttons {
    position: absolute;
    top: 25px;
    right: 38px;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    text-align: right;
    z-index: 10;
    width: 260px;
    min-height: 34px;
}

.headerbuttons tr,
.headerbuttons td {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
}

.headerbuttons tr + tr {
    margin-top: 10px;
}

.headerbuttons .gradientbtn {
    width: 260px;
    min-height: 34px;
    white-space: nowrap;
}


/* Buttons */

.gradientbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: var(--radius-small);
    color: #fff;
    background: #f47b20;
    background: linear-gradient(135deg,#f47b20 0%,#d85f0b 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.16);
    font-size: 0.95rem;
    font-weight: 400;
    transition: transform 0.15s ease,box-shadow 0.15s ease,filter 0.15s ease;
}

.gradientbtn:hover {
    color: #fff;
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.gradientbtn:active {
    transform: translateY(0);
}


/* Information box */

.infobox {
    width: min(92%,1050px);
    margin: 24px auto;
    padding: 16px 22px;
    color: var(--text);
    background: #fff8f2;
    background: linear-gradient(135deg,#fff8f2 0%,#fff 100%);
    border: 1px solid #f2c5a4;
    border-left: 5px solid var(--orange);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.infomsg {
    color: var(--text);
    margin-top: 0;
}

em {
    color: var(--orange-dark);
    font-style: italic;
}

.infobox em {
    color: var(--orange-dark);
}


/* ============================================================
   MAIN PRODUCT GRID
   ============================================================ */

.itemgrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 24px auto 32px;
    padding: 0;
    gap: 22px;
}


/* Product cards */

.item {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 1 384px;
    width: 384px;
    min-width: 320px;
    max-width: 384px;
    min-height: 650px;
    padding: 0 18px 18px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.18s ease,box-shadow 0.18s ease,border-color 0.18s ease;
}

.item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #c5d2d9;
}

.itemtitle {
    padding: 17px 8px 8px;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    color: var(--blue);
}

.itemtitle a {
    color: var(--blue);
}

.itemtitle a:hover {
    color: var(--orange-dark);
}

.itemimg {
    height: 285px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -18px;
    background: linear-gradient(145deg,#f8fafb,#edf2f5);
    flex-shrink: 0;
}

.itemimg img {
    display: block;
    width: auto;
    max-width: calc(100% - 30px);
    max-height: 265px;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.itemimg img:hover {
    transform: scale(1.025);
}

.itemsub {
    min-height: 54px;
    padding: 14px 6px 8px;
    color: var(--blue-mid);
    text-align: center;
    font-size: 0.96rem;
    font-weight: 600;
    font-style: italic;
}

.iteminfo {
    min-height: 90px;
    padding: 8px 4px;
    color: var(--text);
    text-align: left;
    font-size: 0.92rem;
}

.itemspecs {
    flex: 1 1 auto;
    min-height: 135px;
    padding: 4px 4px 8px;
    text-align: left;
    font-size: 0.9rem;
}

.itemspecs ul {
    margin-top: 5px;
}

.itemspecs li {
    margin-bottom: 6px;
}

.itemprice {
    align-self: flex-end;
    margin: 2px 4px 12px;
    color: var(--orange-dark);
    font-size: 0.95rem;
    font-weight: 700;
    font-style: italic;
}


/* Product pages */

.pagecontainer {
    padding: 0px 18px 0 10px;
}

.pagecontainer > h1 {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 260px 12px 180px;
    text-align: center;
    color: var(--blue);
}

.mainheader {
    font-size: clamp(2rem,4vw,3.5rem);
    line-height: 1.1;
}

.pageitem {
    width: min(94%,1200px);
    margin: 22px auto;
    padding: 25px 32px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


/* Product-page logo */

.pagecontainer > span:first-child {
    position: absolute;
    margin-left: 30px;
    margin-top: 5px;
}

.pagecontainer > span:first-child img {
    width: auto;
    height: 80px;
}


/* Product-page back buttons */

.backbtnholder {
    float: right;
    margin: 8px 25px 0 0;
    text-align: right;
}

.product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 30px;
	padding: 22px 30px;
	color: #eaf2f5;
	background: linear-gradient(135deg,#073b5c 0%,#0b506f 65%,#d85f0b 100%);
	border-radius: var(--radius) var(--radius) 0 0;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.product-footer .footer-brand {
	display: flex;
	flex-direction: column;
	text-align: left;
	margin: 0;
}

.product-footer .footer-brand strong {
	color: #fff;
	font-size: 1.05rem;
}

.product-footer .footer-brand span {
	color: #b9d0da;
	font-size: 0.85rem;
	font-style: italic;
}

.product-footer .footer-back {
	margin-left: auto;
}

.product-footer .gradientbtn {
	width: 220px;
}


/* Footer */

footer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding: 22px 28px;
    color: #eaf2f5;
    background: #073b5c;
    background: linear-gradient(135deg,#073b5c 0%,#0b506f 65%,#d85f0b 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
}

footer ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

footer li {
    margin: 6px 0;
}

footer a,
footer a:visited {
    color: #ffb36b;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    text-align: right;
}

.footer-brand strong {
    color: #fff;
    font-size: 1.05rem;
}

.footer-brand span {
    color: #b9d0da;
    font-size: 0.85rem;
    font-style: italic;
}


/* General helpers */

.highlight {
    color: var(--orange-dark);
    font-weight: 600;
}

.bluetext {
    color: var(--blue);
}

.emph {
    color: var(--orange-dark);
    font-style: italic;
}

.emphbox {
    display: block;
    width: min(90%,900px);
    margin: 24px auto;
    padding: 14px 22px;
    color: var(--text);
    background: #fff8f2;
    border: 1px solid #f0c19e;
    border-left: 5px solid var(--orange);
    border-radius: var(--radius-small);
}

.emphbox em {
    color: var(--orange-dark);
}

.centre {
    text-align: center;
}

.narrow {
    max-width: 40%;
}

iframe {
    max-width: 100%;
}

.product-header {
	position: relative;
	min-height: 125px;
	background: linear-gradient(135deg, var(--blue) 0%, #0b506f 65%, var(--orange-dark) 100%);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow);
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-logo {
	position: absolute;
	left: 30px;
	top: 15px;
	display: block;
}

.product-logo img {
	height: 90px;
	width: auto;
	max-width: none;
	display: block;
	margin: 0;
}

.product-header h1 {
	margin: 0;
	padding: 0 280px;
	text-align: center;
	color: #fff;
}

.product-header .mainheader {
	font-size: 2.8rem;
	line-height: 1.1;
	color: #fff;
}

.product-back {
	position: absolute;
	right: 30px;
	top: 40px;
}

.product-back .gradientbtn {
	width: 220px;
}

 .image-grid4, .image-grid-mini4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 240px));
    gap: 12px;
    justify-content: center;
    padding: 8px;
  }

 .image-grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 12px;
    justify-content: center;
    padding: 8px;
  }

  .image-grid2 img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    height: auto;
    object-fit: cover;
  }

  /* Tablets: 3 images per row */
  @media (max-width: 1050px) {
    .image-grid4 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* Phones: still 3 images per row, shrinking to fit */
  @media (max-width: 520px) {
    .image-grid4, .image-grid-mini4 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      padding: 4px;
    }
  }

.image-grid-mini4 img {
    display: block;
    width: 240px;
    /* height: 192px; */
    /* aspect-ratio: 5 / 4; */
    object-fit: cover;
    border-radius: 6px;
}

/* Desktop: show the button in the header */
.desktop-back {
  display: inline-block;
}

.mobile-back {
  display: none;
}

.mobile-back a {
  display: none;
}

/* Mobile: move the button below the header */
@media (max-width: 1050px) {
  .desktop-back {
    display: none;
  }

  .mobile-back {
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px;
  }

  .mobile-back a {
    display: inline-block;
    width: fit-content !important;
    min-width: 0;
    font-size: 12px;
    padding: 3px 6px;
    line-height: 1.2;
  }
}

/* Responsive */

@media (max-width: 1050px) {
    .heading {
        min-height: 115px;
    }

    .headingimg img {
        height: 80px !important;
    }

    .headerbuttons {
        right: 20px;
        top: 20px;
    }

    .pagecontainer > h1 {
        padding-left: 150px;
        padding-right: 230px;
    }

    .item {
        flex-basis: 360px;
        width: 360px;
    }
}

@media (max-width: 1050px) {
    body {
        font-size: 15px;
    }

    .container,
    .pagecontainer {
        width: 100%;
    }

    .container {
        padding-top: 0;
    }

    .heading {
        /* min-height: 205px; */
        flex-direction: column;
        justify-content: flex-start;
        padding: 12px;
        border-radius: 0;
    }

    .headingimg {
        margin: 0;
    }

    .headingimg img {
        width: auto !important;
        height: 80px !important;
        max-width: 90vw;
    }

    .headerbuttons {
        display: none;
    }

    .headerbuttons tr,
    .headerbuttons td {
        width: 100%;
    }

    .headerbuttons .gradientbtn {
        width: min(90%,320px);
    }

    .infobox {
        width: calc(100% - 24px);
        padding: 14px 16px;
    }

    .itemgrid {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0 12px;
    }

    .item {
        width: min(100%,384px);
        max-width: 384px;
        min-width: 0;
        flex: 0 1 auto;
    }

    .itemimg {
        height: 260px;
    }

    .itemimg img {
        max-height: 240px;
    }

    .pagecontainer {
        padding-top: 0;
    }

    .pagecontainer > h1 {
        min-height: 110px;
        padding: 95px 20px 10px;
    }

    .pagecontainer > span:first-child {
        position: absolute;
        top: 10px;
        left: 15px;
        margin: 0;
    }

    .pagecontainer > span:first-child img {
        height: 65px;
    }

    .backbtnholder {
        position: absolute;
        top: 20px;
        right: 10px;
        margin: 0;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    .product-footer .footer-brand {
        text-align: center;
    }

    .product-footer .footer-back {
        margin-left: 0;
        text-align: center;
    }

    .product-footer .gradientbtn {
        width: min(100%, 280px);
    }

    .pagecontainer > .backbtnholder:last-child {
        position: static;
        display: block;
        margin: 10px auto;
        text-align: center;
    }

    .pageitem {
        width: calc(100% - 24px);
        padding: 18px;
    }

    .mainheader {
        font-size: 2rem;
    }

    footer {
        border-radius: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-brand {
        margin-left: 0;
        text-align: left;
    }

    .product-header {
        min-height: 175px;
        padding: 10px;
        border-radius: 0;
        flex-direction: column;
    }

    .product-logo {
        position: static;
        margin-bottom: 8px;
    }

    .product-logo img {
        height: 65px;
    }

    .product-header h1 {
        padding: 0 10px;
    }

    .product-header .mainheader {
        font-size: 1.8rem;
    }

    .product-back {
        position: static;
        margin-top: 10px;
    }

    .product-back .gradientbtn {
        width: 220px;
    }
}
