/*!
 * Theme Name: Hanza Media  
 * Theme URI: http://dev.hanzamedia.hr/wp/hanzamedia
 * Author: Hanza Media Digital
 * Author URI: http://dev.hanzamedia.hr
 * Description: Hanza Media corporate site WordPress theme.
 * Version: 1.1.2
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: hanzamedia
 * Tags: hanza media, media, web, webshop, corporate
 */

/*
 * DEFAULT
 */
:root {
    --hm-primary-color: #ffe810;
}

html {
    min-height: 100%;
}

html,
body {
    display: flex;
    flex-flow: column wrap;
    color: #000;
}

body,
body main {
    flex: 1;
    width: 100%;
}

/*
 * BOOTSTRAP OVERRIDE
 */

a {
    word-break: break-all;
}

.btn,
.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained,
#page-checkout #place_order {
    border-radius: 4px !important;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0px;
    padding: 15px 0px;
}

.woocommerce-message {
    display: none !important;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained,
.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained:hover,
.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained:active,
.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained:focus,
#page-checkout #place_order {
    background: var(--hm-primary-color) !important;
    border-color: var(--hm-primary-color) !important;
    color: #000 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem var(--hm-primary-color);
}

.btn-primary:hover,
.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained:hover,
#page-checkout #place_order:hover {
    opacity: 0.5;
}

.btn-primary.black {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.btn-outline-secondary {
    padding-left: 24px;
    padding-right: 24px;
    border-color: #000;
    color: #000;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:active,
.btn-outline-secondary:focus {
    color: #fff !important;
    border-color: #000 !important;
    background-color: #000 !important;
}

/*
 * SHARED
 */

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
    border-color: var(--bs-border-color);
}

.image-shadow {
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

/*
 * DOSTAVA NAVIGACIJA
 */
#delivery-info-bar {
    background-color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0px;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

#delivery-info-bar > p {
    padding: 16px 0px;
    margin: 0px;
}

/*
 * NAVIGACIJA
 */
.mobile-brand {
    background: #181818;
    display: none;
    justify-content: center;
    padding-top: 10px;
}

.mobile-brand > a > img {
    height: 15px;
}

nav.top-nav {
    width: 100%;
    height: 89px;
    background-color: #181818;
    color: #fff;
}

nav.top-nav > .container-xxl {
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
}

nav.top-nav > .container-xxl > .brand,
nav.top-nav > .container-xxl > .cards {
    width: 185px;
}

nav.top-nav > .container-xxl > .brand > a > img {
    margin-left: 10px;
    height: 16px !important;
    max-width: unset !important;
}

nav.top-nav > .container-xxl > .nav-menu {
    display: flex;
    flex-flow: row nowrap;
    gap: 33px;
}

nav.top-nav > .container-xxl > .nav-menu,
nav.top-nav > .container-xxl > .nav-menu > li {
    text-decoration: none;
    margin: 0;
    padding: 0;
}

nav.top-nav > .container-xxl > .nav-menu > li {
    display: block;
    width: max-content;
}

nav.top-nav > .container-xxl > .nav-menu > li > a {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.5;
}

nav.top-nav > .container-xxl > .nav-menu > li > a.active,
nav.top-nav > .container-xxl > .nav-menu > li > a:hover {
    opacity: 1;
}

nav.top-nav > .container-xxl > .cards {
    display: flex;
    justify-content: end;
}

nav.top-nav > .container-xxl > .cards > a {
    position: relative;
    margin-right: 10px;
}

nav.top-nav > .container-xxl > .cards > a > span {
    display: none;
    background: var(--hm-primary-color) !important;
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0px;
    padding: 2px 6px;
}

nav.top-nav > .container-xxl > .cards > a > span.show {
    display: inline-block;
}

@media screen and (max-width: 739px) {
    nav.top-nav {
        height: 48px !important;
    }

    nav.top-nav > .container-xxl > .brand > a {
        display: block;
        width: 40px;
        overflow: hidden;
    }

    nav.top-nav > .container-xxl > .brand > a > img {
        display: none;
    }

    .mobile-brand {
        display: flex;
    }
}

@media screen and (max-width: 580px) {
    nav.top-nav > .container-xxl > .brand,
    nav.top-nav > .container-xxl > .cards {
        width: 100px;
    }
}

/*
 * HOME PAGE
 */

header.home-header {
    padding: 99px;
    background-color: #efefef;
    box-shadow: 0px 4px 20px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 100px;
}

header.home-header h1 {
    font-family: "Inria Serif", sans-serif;
    font-size: 120px;
    font-weight: 400;
    line-height: 140px;
    color: #000;
}

header.home-header a.btn-primary {
    width: 202px;
    margin-top: 24px;
}

header.home-header .image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

header.home-header .image-grid > .magazine > span {
    text-align: center;
    margin-top: 4px;
    font-weight: bold;
    display: block;
}

header.home-header .image-grid > .magazine > div {
    overflow: hidden;
    aspect-ratio: 0.79 / 1;
}

header.home-header .image-grid > .magazine > div img {
    width: 100%;
    height: 100%;
}

.home-section {
    padding-bottom: 100px;
}

.home-section .content {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    padding-right: 80px;
}

.home-section h2 {
    font-family: "Inria Serif", sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0px;
    margin-bottom: 28px;
}

.home-section p,
.product-description {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0px;
}

.home-section .image {
    width: 100%;
    overflow: hidden;
}

.home-section .image > img {
    width: 100%;
}

@media screen and (max-width: 1199px) {
    header.home-header a.btn-primary {
        margin-top: 37px;
    }
}

@media screen and (max-width: 1199px) {
    header.home-header h1 {
        margin-bottom: 37px;
    }
}

@media screen and (max-width: 767px) {
    .home-section .content {
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }
}

@media screen and (max-width: 707px) {
    header.home-header {
        padding: 99px 50px;
    }
}

@media screen and (max-width: 615px) {
    header.home-header {
        padding: 99px 20px;
    }
}

@media screen and (max-width: 559px) {
    header.home-header h1 {
        font-size: 100px;
        line-height: 120px;
    }
}

@media screen and (max-width: 476px) {
    header.home-header {
        padding: 50px 10px;
    }

    header.home-header h1 {
        font-size: 80px;
        line-height: 100px;
    }
}

@media screen and (max-width: 365px) {
    header.home-header h1 {
        font-size: 50px;
        line-height: 70px;
    }
}

/*
 * STORE PAGE
 */
.store-products-row {
    margin-bottom: 100px;
}

.store-title {
    font-family: "Inter", sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 36px;
    text-align: center;
    margin: 91px 0px;
}

.store-product-col {
    padding: calc(var(--bs-gutter-x) * 0.5);
}

.store-product-card {
    width: 100%;
    box-sizing: border-box;
    background-color: #efefef;
    padding: 38px 93px;
}

.store-product-card > .title {
    text-decoration: none;
}

.store-product-card > .title > h2 {
    display: block;
    margin-bottom: 4px;
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 24px;
    color: #000000;
}

.store-product-card > .details {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.store-product-card > .details > h3,
.store-product-card > .details > p,
.product-date {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 14px;
    color: #000;
    margin-bottom: 0px;
}

.store-product-card > .image {
    display: block;
    aspect-ratio: 0.79 / 1;
    overflow: hidden;
    margin: 6px 0px 24px;
}

.store-product-card > .image > img {
    width: 100%;
    min-height: 100%;
}

.btn-add-to-cards,
.btn-add-to-cards:hover,
.btn-add-to-cards:focus,
.btn-add-to-cards:active {
    width: 52px;
    height: 48px;
    background: none !important;
    box-sizing: border-box;
    border: 2px solid #000;
    border-radius: 4px;
}

.btn-add-to-cards > img {
    margin-top: -4px;
    pointer-events: none;
}

.buttons-row {
    display: flex;
    flex-flow: row nowrap;
    gap: 12px;
}

.store-product-card > .buttons-row > .btn-primary {
    flex-grow: 1;
}

@media screen and (max-width: 446px) {
    .store-product-card {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media screen and (min-width: 578px) and (max-width: 1300px) {
    .store-product-card {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/*
 * SINGLE PRODUCT
 */

#page-product {
    margin: 100px 0px;
}

.product-details {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
}

.product-name {
    font-family: "Inter", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 32px;
    color: #000;
    margin-bottom: 0px;
}

.product-date {
    margin-bottom: 16px;
}

.product-description {
    margin-bottom: 29px;
}

.product-price {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 8px 0px 16px;
    margin-bottom: 24px;
}

.product-price p {
    font-family: "Inter", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 32px;
    color: #000;
    margin: 0px;
}

.product-page.buttons-row > .btn-buy-now {
    flex-basis: 100%;
}

@media screen and (max-width: 575px) {
    #page-product {
        margin: 16px 0px;
    }

    .product-image {
        margin-bottom: 16px;
    }
}

/*
 * CART PAGE
 */

.woocommerce-cart .container-fluid {
    margin-bottom: 85px !important;
}

.woocommerce-cart h1 {
    font-family: "Inter", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 32px;
    color: #000;
    text-align: center;
    padding: 47px 0px;
    border-bottom: 1px solid #000;
    margin-bottom: 47px;
}

.cart-card {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#order-items {
    display: grid;
    grid-template-columns: 96px auto auto auto 120px 22px;
    gap: 16px;
}

#cart-table {
    margin-bottom: 16px;
    overflow: auto;
}

#cart-table > table {
    width: 100%;
    /*
    min-width: 500px;
    */
}

#cart-table > table .cart-product-thumbnail {
    width: 96px;
}

#cart-table > table .cart-product-remove {
    width: 22px;
}

#cart-table > table th {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    padding-bottom: 16px;
}

#cart-table > table th:nth-child(4) {
    width: 120px;
}

#cart-table > table tbody td {
    vertical-align: top;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color: #000;
    padding: 34px 0px;
}

#cart-table > table tbody tr {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

#cart-table > table > tbody > tr:nth-child(1) {
    border-top: 0px;
}

#cart-table .product-thumbnail {
    width: 70px;
}

#cart-table .product-thumbnail > img {
    width: 100%;
}

#cart-table .quantity {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 16px;
}

#cart-table .quantity > img {
    cursor: pointer;
}

.cart-card > .flex-row {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.cart-card > .flex-row p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #000;
}

.cart-card > .flex-row > #price-text {
    font-family: "Raleway", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #000;
}

.cart-card > .flex-row > #price-value {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    color: #000;
}

.cart-card > .flex-row.border-top {
    border-top: 1px solid #000 !important;
}

.order-summary {
    position: sticky;
    top: 18px;
}

.order-summary > .title {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
}

.order-summary .item-quantity {
    margin-left: 18px;
}

.order-summary #price-text {
    font-family: "Raleway", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #000;
    margin-bottom: 0px;
}

.order-summary #price-value {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    color: #000;
    margin-bottom: 0px;
}

.cart-card > .btn-primary {
    width: 100%;
    margin-bottom: -13px;
}

@media screen and (max-width: 991px) {
    .btn-outline-secondary.back-to-store {
        width: 100% !important;
        margin-bottom: 16px !important;
    }
}

@media screen and (max-width: 630px) {
    #cart-table > table th {
        padding-right: 10px;
    }

    #cart-table .quantity {
        gap: 4px;
    }

    #cart-table > table .cart-product-thumbnail,
    #cart-table > table tbody tr td:nth-child(1) {
        width: 0px !important;
        display: none;
    }

    #cart-table > table th:nth-child(4) {
        width: auto;
    }

    .cart-card {
        padding: 12px !important;
    }

    .cart-card > .btn-primary {
        margin-bottom: 0px;
    }
}

/*
 * CHECKOUT PAGE
 */

#page-checkout {
    margin: 3rem auto;
}

#page-checkout #vat_number {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0px !important;
    height: 0px !important;
}

#page-checkout #order_review_heading {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
}

#page-checkout #order_review table {
    width: 100%;
}

#page-checkout #order_review table,
#page-checkout #order_review table strong {
    font-family: "Inter", sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 16px !important;
}

#page-checkout #order_review th,
#page-checkout #order_review td {
    font-size: 1rem !important;
    font-weight: 400 !important;
}

#page-checkout #order_review .cart-subtotal {
    display: none !important;
}

#page-checkout #place_order {
    width: 100%;
}

#page-checkout .woocommerce-additional-fields h3,
#page-checkout
    .woocommerce-additional-fields
    .woocommerce-additional-fields__field-wrapper {
    display: none !important;
}

#page-checkout #billing_country_field {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    opacity: 0px !important;
    margin: 0px !important;
    pointer-events: none !important;
}

#page-checkout #paketomat_field {
    position: relative;
}

#page-checkout #custom-search {
    overflow-y: auto;
    opacity: 0;
}

#page-checkout #custom-search {
    pointer-events: none;
    background: #fff;
    width: 100%;
    max-height: 300px;
    position: absolute;
    margin-top: -3px;
    z-index: 2000;
    border-radius: 0px 0px 4px 4px;
    border: 1px solid #dee2e6;
    border-top: none;
}

#page-checkout #custom-search.show {
    opacity: 1;
    pointer-events: all;
}

#page-checkout #custom-search > div {
    padding: 4px 10px;
}

#page-checkout #custom-search > div.selected {
    color: var(--hm-primary-color);
    background: #000;
}

#page-checkout #custom-search > div:hover {
    background: var(--hm-primary-color);
    color: #000;
}

#page-checkout #paketomat-map {
    margin: 16px 0px;
    width: 100%;
    background: #000;
    aspect-ratio: 3/2;
}

#page-checkout #paketomat_adresa_field {
    display: none;
    opacity: 0;
    width: 0px;
    height: 0px;
    overflow: hidden;
    pointer-events: none;
}

#page-checkout .leaflet-tooltip {
    z-index: 1000 !important;
    pointer-events: auto;
    top: -40px;
}

#page-checkout .leaflet-marker-icon,
#page-checkout .leaflet-marker-shadow {
    z-index: 499 !important;
}

.leaflet-tooltip.custom-transparent {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.leaflet-tooltip-left.custom-transparent:before,
.leaflet-tooltip-right.custom-transparent:before {
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#order-summary {
    position: sticky;
    top: 1rem;
}

#page-checkout #order-summary h4 {
    margin-bottom: 0px;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: Inter;
}

#page-checkout #payment-icons {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    justify-content: center;
}

#page-checkout #payment-icons a {
    display: block;
}

.cards-break {
    display: none;
    width: 100%;
}

@media screen and (max-width: 861px) {
    #page-checkout #payment-icons {
        justify-content: start;
    }
    .cards-break {
        display: block;
    }
}

#page-checkout #payment-icons img,
#page-checkout #payment-icons a img,
#page-checkout .woocommerce img,
#page-checkout .woocommerce-page {
    height: 45px !important;
}

.woocommerce form .form-row {
    margin: 0px !important;
    padding: 0px !important;
}

#page-checkout .accept-agreement-row {
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
}

#page-checkout .accept-agreement-row span {
    color: var(--wc-red);
    font-weight: 700;
    border: 0 !important;
    text-decoration: none;
}

#page-checkout .accept-agreement-row p {
    margin-bottom: 0 !important;
}

.woocommerce-order-received table * {
    font-size: 1rem !important;
}

/*
 * FOOTER
 */
footer {
    background: #181818;
    font-weight: 600;
    padding: 61px 0px;
}

footer a,
footer a:hover,
footer a:focus,
footer p {
    color: #fff;
}

footer a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 18px;
}

footer p {
    margin: 79px 0px 46px;
    line-height: 30px;
    letter-spacing: 10%;
}

/* GLOBAL MEDIA QUERY */
@media screen and (max-width: 500px) {
    #delivery-info-bar {
        font-size: 14px;
    }

    #delivery-info-bar > p {
        padding: 10px 0px;
    }

    nav.top-nav {
        height: 69px;
    }

    footer {
        padding: 20px 0px;
    }

    footer a,
    footer p {
        font-size: 14px;
    }

    footer p {
        margin: 20px 0px 0px;
    }

    header.home-header {
        padding: 20px 0px;
        margin-bottom: 50px;
    }

    header.home-header h1 {
        font-size: 66px;
        line-height: 80px;
        margin-bottom: 20px;
    }

    .home-section {
        padding-bottom: 50px;
    }

    .store-title {
        margin: 40px 0px;
    }

    #page-checkout {
        margin: 1rem auto;
    }
}
