@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --colour-dm-red: #e60036;
}

html, body, input, select {
    font-family: 'Raleway';
    color: #999;
}

header {
    padding: 20px 20px 10px;
    display: flex;
    width: 100%;
    align-items: center;
    height: 135px;
    position: relative;
}
header ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
header li {
    display: inline-block;
}
header li a {
    display: block;
    color: #999;
}
#header-right {
    text-align: right;
    flex-grow: 1;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #999;
}
#header-right a:hover {
    text-decoration: underline;
}
#header-right > div:first-child li {
    position: relative;
    margin-left: 20px;
}
#header-right > div:first-child li:after {
    content: "\f111";
    font-family: "Font Awesome 7 Free";
    position: absolute;
    right: -15px;
    top: 5px;
    font-weight: 900;
    font-size: 6px;
    color: var(--colour-dm-red);
}
#header-right > div:first-child li:last-child:after {
    content: "";
}
nav > ul > li {
    margin-left: 30px;
}
nav > ul > li:first-child {
    margin-left: 0;
}
nav > ul > li > a {
    padding-bottom: 2px;
    border-bottom: 2px solid #fff;
}
nav > ul > li > a.active, nav > ul > li:hover > a {
    text-decoration: none !important;
    border-bottom: 2px solid var(--colour-dm-red);
}
nav .submenu {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: left;
    top: 115px;
    z-index: 50;
    padding: 20px;
    display: none;
    padding: 10px 20px 20px;
}
nav li:hover .submenu {
    display: block;
}
nav .submenu > div {
    background-color: #eee;
    border-top: 3px solid var(--colour-dm-red);
    border-bottom: 3px solid var(--colour-dm-red);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
}
nav .submenu h3 {
    background-color: var(--colour-dm-red);
    font-size: 12px;
}
nav .submenu h3 a {
    color: #eee;
    display: block;
    text-align: center;
    padding: 3px;
    font-weight: 700;
}
nav .submenu h3 a:hover {
    text-decoration: none !important;
}
nav .submenu li {
    display: block;
}
nav .submenu li a {
    display: block;
    font-size: 12px;
    text-align: center;
    padding: 3px 0;
    text-transform: none;
}

#banner {
    overflow: hidden;
}
#banner video {
    max-width: 100%;
    margin-top: -5%;
    margin-bottom: -7%;
}
#banner .banner-img {
    margin: 0 20px;
}

h1 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--colour-dm-red);
    font-weight: 300;
    padding-bottom: 5px;
}

h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
    font-weight: 300;
    padding-bottom: 5px;
}

.block {
    text-align: center;
    margin: 40px 0;
}

.dm-layout {
    padding: 0 20px;
    margin: 0 auto;
}
.dm-layout p {
    max-width: 800px;
    margin: 20px auto;
}

.dm-path {
    margin-top: 20px;
    margin-bottom: 20px;
}
.dm-path ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.dm-path ul li {
    display: inline-block;
    color: #333;
    text-transform: uppercase;
    font-size: 13px;
    position: relative;
    margin-right: 20px;
    font-weight: 300;
}
.dm-path ul li::after {
    content: "\f054";
    font-family: "Font Awesome 7 Free";
    position: absolute;
    right: -15px;
    top: 3px;
    font-weight: 900;
    font-size: 9px;
    color: #999;
}
.dm-path li:last-child::after {
    content: "";
}
.dm-path a {
    color: #333;
}
.dm-path a:hover {
    text-decoration: underline;
}

.dm-category {
    display: flex;
    gap: 40px;
    flex-direction: row;
}
.dm-category-nav {
    background-color: #eee;
    min-width: 280px;
    padding: 15px;
}
.dm-category-nav h3 {
    color: var(--colour-dm-red);
    font-weight: 300;
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 17px;
}
.dm-category-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.dm-category-nav a {
    color: #555;
    display: block;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #ccc;
}
.dm-category-nav a:hover, .dm-category-nav a.active {
    color: var(--colour-dm-red);
}
.dm-category-nav li:last-child a {
    border-bottom: none;
}
.dm-category-products {
    flex-grow: 1;
}
.dm-category-products p {
    max-width: 100%;
}
.dm-category-sidebar {
    min-width: 250px;
}
.dm-category-products h2 {
    border-bottom: 1px solid var(--colour-dm-red);
}

.dm-listing {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
}
.dm-tile {
    width: 100%;
}
.dm-tile a {
    aspect-ratio: 4 / 3;
    display: block;
    background-size: cover;
    position: relative;
}
.dm-tile a span {
    position: absolute;
    right: 0;
    bottom: 15px;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 15px;
    font-size: 13px;
    color: #444;
    text-align: right;
    max-width: 80%;
}
.dm-tile a:hover span {
    background-color: rgba(255, 255, 255, 0.9);
}

.dm-product-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.dm-product-header > div:first-child {
    max-width: 40%;
}
.dm-product-header > div:last-child {
    flex-grow: 1;
}
.dm-product-header img {
    min-width: 200px;
}
.dm-product-section {
    margin-bottom: 40px;
}
.dm-product-section fieldset {
    border: none;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
}
.dm-product-section fieldset label {
    display: block;
    color: #333;
    margin-bottom: 5px;
    margin-top: 20px;
}
.dm-product-section fieldset label:first-child {
    margin-top: 0;
}
.dm-product-section select {
    color: #333;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
}
.dm-product-section input {
    color: #333;
    padding: 10px;
    width: 100%;
    font-size: 14px;
}
.dm-product-section .select {
    position: relative;
}
.dm-product-section .select::after {
    content: "\f078";
    font-family: "Font Awesome 7 Free";
    position: absolute;
    right: 15px;
    top: 10px;
    font-weight: 900;
    font-size: 15px;
    color: var(--colour-dm-red);
}
.dm-product-section fieldset button {
    margin-top: 30px;
    width: 100%;
}

.dm-data-table {
    width: 100%;
    border-collapse: collapse;
}
.dm-data-table td, .dm-data-table th {
    border-bottom: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}
.dm-data-table th:first-child, .dm-data-table td:first-child {
    padding-left: 0;
    font-weight: bold;
}

.dm-table-basket {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}
.dm-table-basket img {
    width: 100%;
}
.dm-table-basket h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
}
.dm-table-basket > div:first-child {
    flex-grow: 1;
}
.dm-table-basket > div:last-child {
    max-width: 300px;
}
.dm-table-basket input, .dm-table-basket select {
    padding: 7px 10px !important;
}
.dm-table-add {
    display: flex;
    gap: 10px;
    align-items: center;
}
.dm-table-add div:first-child {
    flex-grow: 1;
    max-width: 250px;
}
.dm-table-add input[type=number] {
    width: 70px;
}

.dm-estimate {
    background-image: url(../img/get-estimate.jpg);
    background-repeat: no-repeat;
    background-position: top right;
    background-color: #0a1a29;
    background-size: 150px auto;
}
.dm-side {
    padding: 40px 20px;
}
.dm-side > div {
    max-width: 220px;
    margin: 0 auto;
    text-align: center;
}
.dm-side h3 {
    font-size: 30px;
    color: #fff;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 20px;
    margin-top: 0;
}
.dm-side h3 b {
    font-weight: 600;
}
.dm-side fieldset {
    border: 0;
    padding: 0;
}
.dm-side input {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}
.dm-side h4 {
    text-transform: uppercase;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5em;
}

#dm-basket-added {
    position: fixed;
    top: 20px;
    width: 90%;
    max-width: 500px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: #333;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
}
#dm-basket-added > div {
    display: flex;
    gap: 20px;
    align-items: center;
}
#dm-basket-added i {
    font-size: 25px;
}
#dm-basket-added h2 {
    border-bottom: 0;
    margin-bottom: 10px;
    color: #fff;
}

.dm-basket {
    width: 100%;
    border-collapse: collapse;
    background-color: #fafafa;
}
.dm-basket th {
    background-color: #eee;
    font-weight: 300;
    font-size: 16px;
    padding: 10px 10px;
}
.dm-basket th:first-child {
    text-align: left;
}
.dm-basket td {
    padding: 10px;
    text-align: center;
}
.dm-basket td:first-child {
    text-align: left;
}
.dm-basket tbody td {
    border-bottom: 1px solid #ddd;
}
.dm-basket td a {
    color: var(--colour-dm-red);
}
.dm-basket ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-top: 10px;
}
.dm-basket li {
    font-size: 13px;
}
.dm-basket input {
    padding: 10px;
    text-align: right;
}

.block h1, .block h2 {
    color: #999;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 28px;
}

.block h2 {
    font-size: 22px;
}

.block p {
    color: #999;
}

button.dm-red, a.dm-red {
    border: none;
    background-color: var(--colour-dm-red);
    color: #fff;
    text-transform: uppercase;
    padding: 10px 40px;
    font-size: 12px;
    cursor: pointer;
}
button.dm-red:hover, a.dm-red:hover {
    filter: brightness(1.25);
}


.dm-search {
    margin: 10px 0;
    margin-left: auto;
    position: relative;
    text-align: left;
    display: inline-block;
}
.dm-search input {
    width: 150px;
    border: 1px solid #ccc;
    line-height: 30px;
    padding: 0 30px 0 8px;
    transition: width .2s, border-color .4s;
    font-weight: 600;
}
.dm-search input:focus {
    outline: none;
    border-color: var(--colour-dm-red);
    width: 250px;
}
.dm-search i {
    position: absolute;
    right: 7px;
    top: 9px;
    color: #999;
}

.dm-cat-panels {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    display: grid;
    padding: 20px 0;
}

.dm-cat-panels > a {
    display: block;
    aspect-ratio: 4 / 3;
    min-height: 180px;
    background-size: cover;
    background-position: center center;
    position: relative;
}
.dm-cat-panels > a > div {
    padding: 5px 15px;
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    width: 75%;
    min-width: 150px;
    height: 80px;
}
.dm-cat-panels > a > div > img {
    max-width: 100%;
    height: 100%;
}
.dm-cat-panels > a > div span {
    flex-grow: 1;
    text-align: right;
    display: block;
    color: #888;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 3px solid var(--colour-dm-red);
    text-transform: uppercase;
    padding: 3px 0;
}
.dm-cat-panels > a:hover > div {
    background-color: rgba(255, 255, 255, 0.9);
}

.dm-panels {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    display: grid;
    padding: 20px 0;
}
.dm-panels > a {
    display: block;
    aspect-ratio: 4 / 3;
    position: relative;
}
.dm-panels > a > div {
    padding: 5px 40px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    right: 0;
    top: 20%;
    background-color: rgba(255, 255, 255, 0.8);
    width: 50%;
    min-height: 60%;
    min-width: 150px;
}
.dm-panels div h3 {
    font-weight: 300;
    color: #888;
    text-transform: uppercase;
    font-size: 24px;
    text-align: left;
    border-bottom: 3px solid var(--colour-dm-red);
    width: 100%;
    padding-bottom: 3px;
    margin: 20px 0 0 0;
}
.dm-panels div p {
    margin-top: 0;
    color: #777;
    line-height: 1.3em;
}
.dm-panels > a:hover > div {
    background-color: rgba(255, 255, 255, 0.9);
}

.dm-features {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    display: grid;
    padding: 0;
    margin: 0;
}
.dm-features > div {
    border-right: 1px solid var(--colour-dm-red);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}
.dm-features > div:last-child {
    border-right: none;
}
.dm-features > div h3 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 300;
    margin: 5px 0;
}
.dm-features > div p {
    margin: 10px 0;
}

footer {
    margin-top: 30px;
    background-color: #6c706f;
    padding: 40px;
    color: #ccc;
}
.dm-footer {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    font-size: 14px;
}
.dm-footer h2 {
    font-weight: 300;
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 0;
    color: #eee;
}
.dm-footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.dm-footer li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4em;
}
.dm-footer li a:hover {
    color: #fff;
}

.subfooter {
    text-align: right;
    color: #ccc;
    font-size: 13px;
    margin-top: 20px;
}