@import url('https://fonts.googleapis.com/css?family=Fira+Sans:700');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');

:root {
  --dark: #4A4D56;
  --light: #916632;
}

body {
    margin:0px;
    padding:0px;
}

* {
    font-family:'Open Sans', sans-serif;
}

a {
    text-decoration:none;
    color:var(--light);
}

img {
    display:inline-block;
}

h1, h2 {
    color:var(--dark);
    text-transform:uppercase;
}

h1 {
    font-size:24px;
}

h2 {
    font-size:20px;
}

#header-sitename {
    position:relative;
    top:0;
    left:0;
    overflow:hidden;
    height:350px;
}

#header-image {
    width:100%;
}

#header-site a {
    font-family: 'Fira Sans', cursive;
    position:absolute;
    bottom:30px;
    left:30px;
    font-size:52px;
    color:#fff;
}

#header-bar {
    display:table;
    width:100%;
    background-color:var(--dark);
    height:64px;
}

#content-wrapper {
    max-width:1000px;
    padding:4px;
    margin:0px auto 0px auto;
}

#menu-container {
    background-color:var(--dark);
}

#contact-section {
    display:table-cell;
    vertical-align:middle;
    width:200px;
    padding-left:10px;
    color:#fff;
}

#contact-section #phone {
    color:#fff;
    padding-left:8px;
    position:relative;
    top:-6px;
}

#contact-section img {
    width:30px;
    position:relative;
    top:3px;
}

#main-menu {
    display:table-cell;
    vertical-align:middle;
    text-align:right;
    padding-right:20px;
}

#main-menu .menu-item {
    display:inline-block;
    position:relative;
    color:#fff;
    margin-left:20px;
    cursor:pointer;
}

.menu-item .popup {
    display:none;
    position:absolute;
    background-color:#8D92A0;
    right:0px;
    z-index:1000000;
}

#main-menu .menu-item .menu-subitem {
    padding:4px 8px;
}

#main-menu .menu-item .popup a {
    color:#ddd;
}

#main-menu .menu-item .popup a:hover {
    color:#fff;
}

#main-menu a {
    color:#fff;
}

#menu-icon {
    display:none;
}

#footer {
    display:table;
    color:#fff;
    background-color:var(--dark);
    font-size:14px;
    width:100%;
    height:80px;
}

#footer-left {
    font-size:10px;
    display:table-cell;
    width:100px;
    padding-left:10px;
    vertical-align:middle;
}

#footer-middle {
    display:table-cell;
    position:relative;
    top:-2px;
    text-align:center;
    vertical-align:middle;
    padding-left:4px;
    padding-right:4px;

    a {
        color:#fff;
        text-decoration:underline;
    }

}

#footer-right {
    display:table-cell;
    width:100px;
    text-align:right;
    padding-right:10px;
    vertical-align:middle;
}

#front-categories {
    display:table;
    table-layout:fixed;
    width:100%;
}

#login-icon,
#logout-icon {
    width:24px;
    position:relative;
    top:2px;
}

.front-category {
    display:table-cell;
    position:relative;
    width:33%;
    box-sizing:border-box;
    text-align:center;
    overflow:hidden;
    border-bottom:1px solid var(--dark);
    padding:8px;
}

.category-name {
    width:100%;
    text-align:center;
    top:10px;
    margin-bottom:10px;
    font-size:24px;
    font-weight:bold;
    color: #000;
}

.front-category img {
    display:inline-box;
    width:100%;
    opacity:0.7;
    transition:opacity 0.5s;
}

.front-category img:hover {
    opacity:1;
}

.front-heading {
    margin-top:20px;
    margin-bottom:20px;
    font-size:24px;
    font-weight:bold;
    text-align:center;
}

.message {
   padding:8px;
   color:#fff;
   margin-top:10px;
   margin-bottom:20px;
   background-color:green;
}

.message.error {
    background-color:red;
}

input, select {
    padding:4px;
    margin-bottom:8px;
}

input#email {
    display:none;
}

.form-label {
    display:inline-block;
    width:140px;
}

.form-button {
    font-size:14px;
    display:inline-block;
    color:#fff;
    text-decoration:none;
    background-color:var(--dark);
    border:none;
    padding:8px;
    cursor:pointer;
}

a#username {
    color:#fff;
    position:relative;
    top:-4px;
    right:8px;
}

#type-selector {
    position:relative;
    top:-2px;
    font-size:18px;
    float:right;
    margin-top:13px;
}

.filter-block,
#filter-reset {
    display:inline-block;
}

/* Always expand the content to at least the screen height */
#page {
    display:flex;
    flex-direction:column;
    min-height:100vh;

    #content {
        flex:1;
        padding:4px;
    }

}

#page.products #content {
    padding:4px;
}

.content-image {
    height:150px;
}

.product-tile {
    position:relative;
    display:inline-block;
    margin:0px 2px 2px 0px;
    width:24%;
    padding:2px;
    border:1px solid #ccc;
    border-radius:6px;
    transition:border-color 0.5s;
}

.product-tile:hover {
    border-color:#333;
}

.product-tile .name {
    font-weight:bold;
    text-align:center;
    font-size:18px;
    margin-bottom:10px;
    color:#000;
}

.product-tile .image {
    text-align:center;
}

.product-tile img {
    width:90%;
}

.price {
    font-size:18px;
    color:#000;
}

.product-tile .price {
    color:#fff;
    height:28px;
    padding:2px 8px;
    background-color:var(--dark);
    border-radius:8px 8px 8px 8px;
}

.product-tile .price .discount_price {
    color:#fff;
    font-weight:normal;
}

.product-tile .price .full_price {
    font-weight:normal;
}

.product-tile .price .old_price {
    color:#aaa;
}

.product-tile .discount {
    font-size:24px;
    position:absolute;
    bottom:34px;
    right:10px;
    padding:4px 12px;
    color:#fff;
    background-color:red;
    border-radius:10px 10px 0px 0px;
}

.product {
    padding-bottom:10px;
    margin-bottom:10px;
}

.product .name {
    font-size:38px;
}

.product .description {
    margin-top:20px;
}

.product .price {
    font-size:28px;
    margin-top:20px;
}

.full_price {
    font-weight:bold;
}

.discount_price {
    font-weight:bold;
    color:red;
}

.old_price {
    color:gray;
    text-decoration:line-through;
}

p#breadcrumb {
    font-weight:bold;
    font-size:18px;
    margin-bottom:30px;
}

.highlighted-text {
    border: 1px solid var(--dark);
    border-radius:10px;
    margin-top:50px;
    padding:8px;

    .header {
        font-size:1.2rem;
        font-weight:bold;
    }

}

/* Collapsible section */

.collapsible-container {
    max-width: 1000px;
    border: 1px solid var(--dark);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    margin-bottom: 15px;
}

.collapsible-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background-color: var(--dark);
    user-select: none;
    transition: background-color 0.2s;
}

.collapsible-header h3 {
    flex:1;
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.arrow {
    width: 8px;
    height: 8px;
    margin-right:20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.collapsible-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

.content-inner {
    overflow: hidden;
    color: #475569;
    line-height: 1.6;
    padding: 0 4px;
    transition: padding 0.4s ease-out;
}

.is-open .arrow {
    transform: rotate(45deg);
}

.is-open .collapsible-body {
    grid-template-rows: 1fr;
}

.is-open .content-inner {
    padding: 4px;
}

#type-container {
    margin:30px 0px;
    text-align:center;

    .type {
        display:inline-block;
        padding:8px;
        font-size:18px;
        margin:0px 10px 10px 0px;
        color:#fff;
        background-color:#9FA5B5;
        border-radius:16px;
        cursor:pointer;
    }

    .type.selected {
        background-color:#4A4D55;
    }

}

#pager {
    margin:30px auto;
    width: fit-content;
    font-size:32px;
    font-weight:bold;

    div {
        display:inline-block;
        width:60px;
    }

    #pager-previous {
        text-align:right;
    }

    #pager-page {
        text-align:center;
        position:relative;
        bottom:8px;
    }

}