/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

body,
section#wrapper,
#page {
    background-color: #4f271b;
}

#header,
section#wrapper .container,
.breadcrumb-container nav {
    background-color: #fff;
}

#full-menu {
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmlld0JveD0iMCAwIDE0LjgxMTg2NyA0LjA4MDA4IgogICBoZWlnaHQ9IjQuMDgwMDgiCiAgIHdpZHRoPSIxNC44MTE4NjciCiAgIHhtbDpzcGFjZT0icHJlc2VydmUiCiAgIGlkPSJzdmcyIgogICB2ZXJzaW9uPSIxLjEiPjxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTgiPjxyZGY6UkRGPjxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj48ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD48ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+PC9jYzpXb3JrPjwvcmRmOlJERj48L21ldGFkYXRhPjxkZWZzCiAgICAgaWQ9ImRlZnM2Ij48Y2xpcFBhdGgKICAgICAgIGlkPSJjbGlwUGF0aDE4IgogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiPjxwYXRoCiAgICAgICAgIGlkPSJwYXRoMTYiCiAgICAgICAgIGQ9Ik0gMCwzLjA2IEggMTEuMTA5IFYgMCBIIDAgWiIgLz48L2NsaXBQYXRoPjwvZGVmcz48ZwogICAgIHRyYW5zZm9ybT0ibWF0cml4KDEuMzMzMzMzMywwLDAsLTEuMzMzMzMzMywwLDQuMDgwMDgpIgogICAgIGlkPSJnMTAiPjxnCiAgICAgICBpZD0iZzEyIj48ZwogICAgICAgICBjbGlwLXBhdGg9InVybCgjY2xpcFBhdGgxOCkiCiAgICAgICAgIGlkPSJnMTQiPjxnCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMC4wMDEpIgogICAgICAgICAgIGlkPSJnMjAiPjxwYXRoCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6IzRmMjcxYjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGQ9Ik0gMCwwIEMgMC4yMzgsMS43MjkgMS43MjIsMy4wNjIgMy41MTYsMy4wNjIgNS4zMTIsMy4wNjMgNi43OTYsMS43MjkgNy4wMzMsMCBaIiAvPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=');
    background-position: left bottom;
    background-repeat: repeat-x;
    background-color: white;
    background-size: auto;
}

#full-menu .container,
#full-menu .container .row {
    background-color: transparent;
}

.full_header.full_menu #full-menu.white {
    border-bottom: none;
}

#wrapper {
    margin-bottom: 25px;
}

#wrapper>.container {
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmlld0JveD0iMCAwIDE0LjgxMTg2NyA0LjA4MDA4IgogICBoZWlnaHQ9IjQuMDgwMDgiCiAgIHdpZHRoPSIxNC44MTE4NjciCiAgIHhtbDpzcGFjZT0icHJlc2VydmUiCiAgIGlkPSJzdmcyIgogICB2ZXJzaW9uPSIxLjEiPjxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTgiPjxyZGY6UkRGPjxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj48ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD48ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+PC9jYzpXb3JrPjwvcmRmOlJERj48L21ldGFkYXRhPjxkZWZzCiAgICAgaWQ9ImRlZnM2Ij48Y2xpcFBhdGgKICAgICAgIGlkPSJjbGlwUGF0aDE4IgogICAgICAgY2xpcFBhdGhVbml0cz0idXNlclNwYWNlT25Vc2UiPjxwYXRoCiAgICAgICAgIGlkPSJwYXRoMTYiCiAgICAgICAgIGQ9Ik0gMCwzLjA2IEggMTEuMTA5IFYgMCBIIDAgWiIgLz48L2NsaXBQYXRoPjwvZGVmcz48ZwogICAgIHRyYW5zZm9ybT0ibWF0cml4KDEuMzMzMzMzMywwLDAsLTEuMzMzMzMzMywwLDQuMDgwMDgpIgogICAgIGlkPSJnMTAiPjxnCiAgICAgICBpZD0iZzEyIj48ZwogICAgICAgICBjbGlwLXBhdGg9InVybCgjY2xpcFBhdGgxOCkiCiAgICAgICAgIGlkPSJnMTQiPjxnCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMC4wMDEpIgogICAgICAgICAgIGlkPSJnMjAiPjxwYXRoCiAgICAgICAgICAgICBpZD0icGF0aDIyIgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6IzRmMjcxYjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIKICAgICAgICAgICAgIGQ9Ik0gMCwwIEMgMC4yMzgsMS43MjkgMS43MjIsMy4wNjIgMy41MTYsMy4wNjIgNS4zMTIsMy4wNjMgNi43OTYsMS43MjkgNy4wMzMsMCBaIiAvPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=');
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: auto;
}

.btn-primary {
    border-color: #88b027;
    background-color: #88b027;
}

#information-section {
    background-color: transparent;
}

#information-section>.container {
    border-top: solid 1px #c3c3c3;
    border-bottom: solid 1px #c3c3c3;
}

@media (min-width: 1200px) {
    .offset-xl-2 {
        margin-left: 1.666667%;
    }
}

@media (min-width: 1200px) {
    .tabs {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 96.66667%;
        flex: 0 0 96.66667%;
        max-width: 96.66667%;
    }
}

@media (min-width: 768px) {
    #home-slider {
        margin-bottom: 0;
        padding-bottom: 15px;
        padding-top: 15px;
    }

    #main .product-miniature .product-title,
    #blockcart-modal .product-miniature .product-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    body#index #main .product-miniature .right-box,
    body#index #main .product-miniature .left-box,
    #blockcart-modal .product-miniature .right-box,
    #blockcart-modal .product-miniature .left-box {
        float: none;
        width: auto;
        flex: 0;
    }

    body#index #main .product-miniature .right-box,
    #blockcart-modal .product-miniature .right-box {
        flex: 1;
    }

    body#index #main .product-miniature .left-box,
    #blockcart-modal .product-miniature .left-bo {
        flex: 2;
    }

    #main .product-miniature .product-flags .new,
    #blockcart-modal .product-miniature .product-flags .new {
        top: -24px;
        right: -58px;
        width: 150px;
    }
}

@media (max-width: 992px) {
    .logo.img-fluid {
        max-height: 60px;
        width: auto;
    }

    #_mobile_logo {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (min-width: 992px) {

    .layout-full-width #main .product-miniature,
    #blockcart-modal .product-miniature {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 50%;
    }

    .layout-full-width #main .product-miniature .thumbnail-container,
    .layout-full-width #main .product-miniature .product-description,
    #blockcart-modal .product-miniature .thumbnail-container,
    #blockcart-modal .product-miniature .product-description {
        max-width: 50%;
        min-width: 50%;
    }

    .layout-full-width #main .product-miniature .thumbnail-container,
    #blockcart-modal .product-miniature .thumbnail-container {
        float: left;
    }

    .layout-full-width #main .product-miniature .product-description,
    #blockcart-modal .product-miniature .product-description {
        float: left;
        /*float: right;*/
    }
}

#wrapper #content-wrapper {
    margin-top: 15px;
}

.breadcrumb-container nav {
    padding-top: 15px;
}

#main .product-miniature .product-description,
#blockcart-modal .product-miniature .product-description {
    padding: 30px 0;
}

#custom-text p {
    text-align: center;
}

.product-prices {
    position: relative;
}

.twitter i {
    background-color: initial;
}

.facebook i {
    background-color: initial;
}

/* Fix the huge white space on password recovery page */
.ps-alert-success li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.ps-alert-success li i {
    width: 20px;
    margin-bottom: 10px;
    margin-right: 5px;
}

.ps-alert-success li i svg path {
    fill: green;
}

/* Fix cut off rating stars, fix disappearing on mobile and polish the form overall */
#new_comment_form .new_comment_form_content .star_content .star {
    width: 30px;
    height: 30px;
    z-index: 9999999;
}

#new_comment_form .new_comment_form_content .row.required {
    padding-left: 15px;
}

#new_comment_form {
    padding: 35px;
    margin-top: 44px;
}

.fancybox-slide {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

#new_comment_form #criterions_list>li>label {
    margin: 0;
    line-height: 30px;
    min-width: unset;
    margin-right: 10px;
}

#new_comment_form #criterions_list>li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#new_comment_form #criterions_list .star:hover {
    cursor: pointer;
}

#new_comment_form .product .product_desc {
    width: 100%;
    margin-left: 0;
}

#new_comment_form_footer .required sup {
    top: 0.5em;
}

article.product-miniature.js-product-miniature.col-xs-6.col-sm-4.slick-slide.slick-current.slick-active {
    max-width: 50% !important;
}

.js-products-slide .product-miniature.slick-slide {
    max-width: 50% !important;
}

.fancybox-slide {
    opacity: 0;
}

.fancybox-slide--current {
    z-index: 99995;
    opacity: 1;
}

/* Invisible slides in the image folder fix */
@media (min-width: 768px) {
    #home-slider .caption {
        position: relative;
    }

    .border-list #main .product-miniature .product-description,
    #blockcart-modal .product-miniature .product-description {
        padding-left: 1.07143rem;
        padding-right: 1.07143rem;
    }

    .border-list #main .product-miniature .thumbnail-container,
    #blockcart-modal .product-miniature .thumbnail-container {
        padding: 1.07143rem 1.07143rem 0.71429rem;
    }
}

.tag.discount-percentage {
    background-color: #d9534f;
}

.discount-block .discount.discount-amount {
    background-color: #d9534f;
    font-size: 1rem;
}

.product-miniature .meta-description {
    float: inherit;
}

.product-miniature:hover .meta-description {
    opacity: 0;
}

.dapsides-carrier {
    margin-bottom: 0.25rem;
    padding-left: 15px;
}

@media (max-width: 575px) {
    .dapsides-carrier {
        padding-left: 10px;
    }
}

#header img.logo {
    max-width: 230px;
}


.product-accessories .slick-track {
    width: auto !important;

}

#main .product-miniature .product-flags .discount,
#blockcart-modal .product-miniature .product-flags .discount {
    display: none;
}

#main .product-miniature .highlighted-informations,
#blockcart-modal .product-miniature .highlighted-informations {
    display: none;
}

#blockcart-modal .product-accessories {
    margin-top: 50px;
    border-top: 2px solid #f6f6f6;
    padding-top: 30px;
}

#main .product-miniature .left-box,
#blockcart-modal .product-miniature .left-box {
    display: block;
}

#blockcart-modal .products {
    overflow: hidden;
}

.border-list #main .product-miniature,
#blockcart-modal .product-miniature {
    padding: 0;
}

.border-list #main .product-miniature .product-description,
#blockcart-modal .product-miniature .product-description {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}


#productCommentsBlock .comment {
    display: none;
}

#productCommentsBlock .comment:nth-child(-n+5) {
    display: block;
}

/* START fix discount tags */
#main .product-miniature .discount-percentage,
#blockcart-modal .product-miniature .discount-percentage {
    position: absolute;
    left: 0;
    top: 0;
    background-color: #d9534f;
}

.product-prices .discount-block .discount {
    background-color: #d9534f;
}

/* END fix discount tags */
/* START delivery free car */
.product-prices .delivery-free {
    position: absolute;
    right: 0;
    top: 0px;
    max-width: 100px;
}

@media (max-width: 480px) {
    .product-information .product-prices .delivery-free {
        position: relative;
        top: unset;
        right: unset;
        margin-top: 20px;
    }
}

/* END delivery free car*/
/* START fix YT mobile */
@media (max-width: 768px) {
    body#product .product-description iframe {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* END fix YT mobile */

/* ===== Merged from HR upgrade additions via file_checker (IT) ===== */
/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* ===== Brand tokens =====
   Brand colors are defined once here. To recolor the shop, change values here. */
:root {
    --brand-orange:        #f18739;
    --brand-orange-hover:  #d96e23;
    --brand-brown:         #5a3925;   /* primary text accent */
    --brand-brown-deep:    #4f271b;   /* page bg */
    --brand-red:           #ce4632;   /* secondary accent (links, hover) */
    --brand-discount:      #d9534f;   /* discount tag bg */
    --brand-green:         #88b027;   /* legacy btn-primary green */
    --neutral-border:      #e0e0e0;
    --neutral-bg-soft:     #f5f5f5;
    --neutral-bg-hover:    #ebebeb;
    --neutral-text-muted:  #666;
    --input-height:        44px;
    --input-radius:        4px;
    --card-radius:         8px;
    --card-shadow:         0 2px 12px rgba(0,0,0,0.06);
}



.twitter i,
.facebook i {
    background-color: initial;
}



article.product-miniature.js-product-miniature.col-xs-6.col-sm-4.slick-slide.slick-current.slick-active,
.js-products-slide .product-miniature.slick-slide {
    max-width: 50% !important;
}



/* ===== Listing miniature review stars =====
   .thumbnail-container.reviews-only is a stub wrapper in the miniature template so
   productListingComments.js finds .product-list-reviews. It must NOT inherit the
   image-container styling. */
#main .product-miniature .thumbnail-container.reviews-only,
.product-miniature .thumbnail-container.reviews-only {
    width: 100%;
    padding: 0;
    overflow: visible;
    position: relative;
    display: block;
    float: none;
}



.product-miniature .thumbnail-container.reviews-only .product-list-reviews {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 4px 0;
    padding: 0;
    background: transparent;
}



.product-miniature .thumbnail-container.reviews-only .grade-stars {
    min-width: 90px;
    margin-left: -6px; /* jQuery rating plugin adds 2px to each star; pulls flush with title */
}



.product-miniature .thumbnail-container.reviews-only .comments-nb {
    font-size: 13px;
    color: var(--neutral-text-muted);
}



/* ===== ps_searchbar cleanup =====
   ps_searchbar.css sets `#search_widget { overflow: auto }` which surfaces scrollbars
   over the input. Force visible flow + plain icon button. */
#search_widget {
    overflow: visible !important;
}



#search_widget form,
#search_widget input[type="text"],
#search_widget input[name="s"] {
    overflow: visible;
}



#search_widget .input-group,
#search_widget .input-group-btn {
    display: flex;
    align-items: stretch;
}



#search_widget input[type="text"],
#search_widget input[name="s"] {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    border-radius: 5px 0 0 5px;
    padding-left: 12px;
    padding-right: 12px;
    background-image: none;
}



#search_widget .input-group-btn button,
#search_widget .input-group-btn .btn {
    border-radius: 0 5px 5px 0;
    margin: 0;
    background-color: #f1f1f1;
    border: none;
    padding: 0 14px;
}


#search_widget .input-group-btn button .icon-magnifier,
#search_widget .input-group-btn .btn .icon-magnifier {
    color: var(--brand-brown);
    font-size: 18px;
    top: 3px;
    right: 0;
}



@media (max-width: 768px) {

    #search_widget,
    #_mobile_search_widget {
        overflow: visible !important;
    }
}



/* ============================================================================
   ===== AUTH POLISH BLOCK START =====
   Header sign-in dropdown + forgot/reset password + login/register pages.
   To revert: delete from here down to "AUTH POLISH BLOCK END".
   ============================================================================ */

/* --- Header sign-in dropdown ---
   ps_customersignin sets #_desktop_user_info { position: relative }, breaking the
   Bootstrap dropdown pattern. Restore absolute positioning. */
div#_desktop_user_info {
    position: absolute !important;
    right: 0;
    top: 100%;
    z-index: 1000;
    min-width: 240px;
    margin-top: 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--input-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}



.user-info .dropdown { position: relative; }



#_desktop_user_info .title { font-weight: 600; margin: 0 0 8px; }



#_desktop_user_info .btn-primary {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}



#_desktop_user_info .btn-primary:hover {
    background-color: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
}



#_desktop_user_info .link-lost {
    display: inline-block;
    margin-top: 6px;
    color: var(--brand-brown);
    font-size: 12px;
}



#_desktop_user_info .dropdown-divider {
    margin: 14px 0;
    border-top: 1px solid #eee;
}



@media (max-width: 991px) {

    div#_desktop_user_info {
        position: relative !important;
        right: auto;
        top: auto;
        margin-top: 0;
        box-shadow: none;
        border: none;
        padding: 0;
    }
}



/* --- Auth page container ---
   Theme's narrow col-xl-8 offset-xl-2 wrapper is widened on auth pages. Scope to
   #content / #main only — header would break otherwise. */
.page-authentication #content .row > [class*="col-"],
.page-password #content .row > [class*="col-"],
.page-authentication #main .row > [class*="col-"],
.page-password #main .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
}



.page-authentication .card.card-block,
.page-password .card.card-block {
    max-width: 560px;
    margin: 0 auto;
    padding: 36px 32px;
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}



.page-authentication .page-header,
.page-password .page-header {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}



@media (max-width: 575px) {

    .page-authentication .card.card-block,
    .page-password .card.card-block {
        padding: 22px 18px;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}



/* --- Forgot-password (password-email.tpl) --- */
.forgotten-password,
.renew-password {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 0;
}



.forgotten-password header { margin-bottom: 20px; }


.forgotten-password .send-renew-password-link { color: #555; margin: 0; }



.forgotten-password .form-group.center-email-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}



.forgotten-password .form-group.center-email-fields > * {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: none !important;
}



.forgotten-password .form-control-label {
    font-weight: 600;
    text-align: left;
    margin-bottom: 4px;
}



.forgotten-password input[type="email"] {
    height: var(--input-height);
    padding: 10px 12px;
}



.forgotten-password .hidden-xs-down { display: inline-block; }


.forgotten-password .hidden-sm-up { display: none; }


@media (max-width: 575px) {

    .forgotten-password .hidden-xs-down { display: none; }

    .forgotten-password .hidden-sm-up { display: inline-block; }
}



/* --- Reset-password (password-new.tpl) --- */
.renew-password .container-fluid { padding: 0; }



.renew-password .row.form-group {
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}



.renew-password .row.form-group > * {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: none !important;
}



.renew-password .form-control-label { font-weight: 600; }



.renew-password .form-control,
.renew-password input[type="password"] {
    height: var(--input-height);
    padding: 10px 12px;
}



.renew-password .email {
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: var(--input-radius);
    border: 1px solid #eee;
    color: #555;
}



/* --- Back-to-login link (shared) --- */
.page-customer-account .account-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: var(--brand-brown);
    text-decoration: none;
}



.page-customer-account .account-link:hover {
    color: var(--brand-red);
    text-decoration: none;
}



.page-customer-account .account-link:hover span { text-decoration: underline; }


.page-customer-account .account-link i { font-size: 18px; }



/* --- Login form (login-form.tpl) --- */
#login-form .form-group.row {
    margin-bottom: 18px;
    align-items: center;
}



#login-form .form-control-label {
    font-weight: 600;
    text-align: left;
}



#login-form .form-control,
#login-form input[type="email"],
#login-form input[type="password"],
#login-form input[type="text"] {
    height: var(--input-height);
    padding: 10px 12px;
}



#login-form a[href*="password"],
#login-form .forgot-password a {
    display: inline-block;
    margin: 6px 0 18px;
    color: var(--brand-brown);
    font-size: 14px;
}



#login-form a[href*="password"]:hover,
#login-form .forgot-password a:hover {
    color: var(--brand-red);
}



/* --- Auth submit buttons — brand orange, full-width inside card --- */
#login-form button[type="submit"],
#login-form .btn-primary,
#customer-form button[type="submit"],
#customer-form .btn-primary,
.renew-password .btn-primary,
.forgotten-password .btn-primary {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 28px !important;
    border-radius: var(--input-radius) !important;
    width: 100%;
    max-width: none;
    display: block;
    margin: 8px 0 0;
    float: none !important;
}



#login-form button[type="submit"]:hover,
#login-form .btn-primary:hover,
#customer-form button[type="submit"]:hover,
#customer-form .btn-primary:hover,
.renew-password .btn-primary:hover,
.forgotten-password .btn-primary:hover {
    background-color: var(--brand-orange-hover) !important;
    border-color: var(--brand-orange-hover) !important;
    color: #fff !important;
}



#customer-form .form-footer,
#login-form .form-footer {
    display: block;
    width: 100%;
    text-align: center;
}



#customer-form .form-footer::after,
#login-form .form-footer::after {
    content: "";
    display: block;
    clear: both;
}



/* "Show password" toggle button — match input height. */
#login-form .input-group-btn,
#customer-form .input-group-btn { display: flex; }



#login-form .input-group-btn .btn,
#customer-form .input-group-btn .btn,
#login-form .input-group-btn button,
#customer-form .input-group-btn button {
    height: var(--input-height) !important;
    padding: 0 18px !important;
    background-color: var(--neutral-bg-soft) !important;
    border: 1px solid #ddd !important;
    border-left: none !important;
    color: var(--brand-brown) !important;
    border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
    font-size: 14px;
    font-weight: 500;
}



#login-form .input-group-btn .btn:hover,
#customer-form .input-group-btn .btn:hover {
    background-color: var(--neutral-bg-hover) !important;
}



#login-form .input-group input,
#customer-form .input-group input {
    border-right: none;
    border-radius: var(--input-radius) 0 0 var(--input-radius);
}



/* "Or login with" separator — module CSS uses absolute pseudo behind text;
   !important fights ets_sociallogin's own CSS. */
.ets_solo_or {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 28px 0 16px !important;
    color: #999 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    width: 100% !important;
    position: relative !important;
    text-align: center !important;
}



.ets_solo_or > span {
    padding: 0 14px !important;
    white-space: nowrap !important;
    background: transparent !important;
    position: static !important;
}



.ets_solo_or::before,
.ets_solo_or::after {
    content: "" !important;
    flex: 1 1 auto !important;
    height: 1px !important;
    background: var(--neutral-border) !important;
    display: block !important;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: auto !important;
}



.ets_solo_social_wrapper { text-align: center; }



.ets_solo_social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
}



.ets_solo_social_item { list-style: none; }



.ets_solo_social_title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-brown);
    margin: 0 0 10px;
}



/* Hide template's raw <hr> above social-login — .ets_solo_or already separates. */
.page-authentication .login-form > form + hr,
.page-authentication .login-form ~ hr,
.page-authentication form#login-form + hr,
.page-authentication form#login-form ~ hr {
    display: none;
}



.no-account,
.page-authentication .no-account {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
}



.no-account a,
.page-authentication .no-account a {
    color: var(--brand-red);
    font-weight: 600;
}



.no-account a:hover { text-decoration: underline; }



/* --- Register form (customer-form.tpl) --- */
#customer-form .form-group.row {
    margin-bottom: 16px;
    align-items: flex-start;
}



#customer-form .form-control-label {
    font-weight: 600;
    text-align: left;
    padding-top: 10px;
}



#customer-form .form-control,
#customer-form input[type="email"],
#customer-form input[type="password"],
#customer-form input[type="text"] {
    height: var(--input-height);
    padding: 10px 12px;
}



#customer-form .form-control-comment {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}



.register-form > p,
.page-authentication .register-form > p:first-of-type {
    color: #666;
    margin-bottom: 18px;
}



.register-form > p a,
.page-authentication .register-form > p a {
    color: var(--brand-red);
    font-weight: 600;
}



#customer-form .radio-inline {
    margin-right: 16px;
    font-weight: normal;
}



#customer-form input[type="radio"] { margin-right: 6px; }



/* Native checkbox visible (theme's .custom-checkbox styling got mangled post-upgrade). */
#customer-form .custom-checkbox,
#login-form .custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    line-height: 1.45;
}



#customer-form .custom-checkbox input[type="checkbox"],
#login-form .custom-checkbox input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    position: static !important;
    flex-shrink: 0;
    accent-color: var(--brand-orange);
    cursor: pointer;
}



#customer-form .custom-checkbox label,
#customer-form .custom-checkbox span,
#login-form .custom-checkbox label,
#login-form .custom-checkbox span {
    font-size: 14px;
    color: #555;
    margin: 0;
    cursor: pointer;
}



/* Kill duplicate styled-box pseudo + empty span/i from theme's custom-checkbox. */
#customer-form .custom-checkbox::before,
#customer-form .custom-checkbox::after,
#customer-form .custom-checkbox *::before,
#customer-form .custom-checkbox *::after,
#login-form .custom-checkbox::before,
#login-form .custom-checkbox::after,
#login-form .custom-checkbox *::before,
#login-form .custom-checkbox *::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}



#customer-form .custom-checkbox > span:empty,
#customer-form .custom-checkbox > i,
#customer-form .custom-checkbox > input + span:not([class*="text"]):not([for]),
#customer-form .custom-checkbox > input ~ span:not(:has(*)):empty,
#login-form .custom-checkbox > span:empty,
#login-form .custom-checkbox > i,
#login-form .custom-checkbox > input + span:not([class*="text"]):not([for]),
#login-form .custom-checkbox > input ~ span:not(:has(*)):empty,
#customer-form label > input[type="checkbox"] + span,
#login-form label > input[type="checkbox"] + span,
#customer-form .custom-checkbox label > span:first-child,
#login-form .custom-checkbox label > span:first-child {
    display: none !important;
}



@media (max-width: 575px) {

    #login-form .form-group.row,
    #customer-form .form-group.row {
        flex-direction: column;
    }

    #login-form .form-group.row > [class*="col-"],
    #customer-form .form-group.row > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding-left: 0;
        padding-right: 0;
    }

    #login-form .form-control-label,
    #customer-form .form-control-label {
        padding-top: 0;
        margin-bottom: 4px;
    }
}



/* ============================================================================
   ===== AUTH POLISH BLOCK END =====
   ============================================================================ */

/* ===== 404 / no-results page ===== */
.page-not-found .not-found-inner {
    text-align: center;
    padding: 40px 20px 60px;
}



.page-not-found .not-found-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.75;
}



.page-not-found .not-found-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-brown);
    margin: 0 0 8px;
}



.page-not-found .not-found-lead {
    font-size: 16px;
    color: var(--neutral-text-muted);
    margin: 0 0 24px;
}



.page-not-found .not-found-search {
    max-width: 480px;
    margin: 0 auto;
}



.page-not-found .not-found-search #search_widget,
.page-not-found .not-found-search #_desktop_search_widget {
    margin-bottom: 0;
    width: 100%;
}



@media (max-width: 600px) {

    .page-not-found .not-found-inner { padding: 24px 12px 40px; }

    .page-not-found .not-found-icon { font-size: 52px; }

    .page-not-found .not-found-title { font-size: 22px; }
}



/* ===== Post-comment modal layout =====
   productcomments 6.x modal: product info on top, criterion stars on own line. */
#post-product-comment-modal .modal-dialog { max-width: 720px; }


#post-product-comment-modal .product-info-row { margin-bottom: 8px; }



#post-product-comment-modal .criterions-row {
    padding-top: 18px;
    border-top: 1px solid #eee;
    margin-top: 8px;
    margin-bottom: 18px;
}



#post-product-comment-modal #criterions_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}



#post-product-comment-modal #criterions_list li {
    display: flex;
    align-items: center;
    gap: 10px;
}



/* Override productcomments.css default (justify-content: flex-end). */
#post-product-comment-modal .criterion-rating {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}



#post-product-comment-modal .criterion-rating label { margin-bottom: 0; }



#post-product-comment-modal .row .col-sm-4 input[type="text"],
#post-product-comment-modal .row .col-sm-4 input[type="email"] { width: 100%; }



#post-product-comment-modal #comment_content {
    width: 100%;
    min-height: 110px;
}



@media (max-width: 640px) {

    #post-product-comment-modal .product-info-row { display: block; }

    #post-product-comment-modal .product-info-row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: none;
        padding-left: 15px;
        padding-right: 15px;
    }

    #post-product-comment-modal .product-info-row .product-cover {
        max-width: 220px;
        margin: 0 auto 14px;
    }

    #post-product-comment-modal .product-info-row p.h3 { text-align: center; }

    #post-product-comment-modal .modal-body .row > [class^="col-sm"] {
        width: 100%;
        margin-bottom: 10px;
    }

    #post-product-comment-modal #criterions_list {
        flex-direction: column;
        align-items: flex-start;
    }

    #post-product-comment-modal .post-comment-buttons { text-align: right; }

    #post-product-comment-modal .modal-dialog { margin: 10px; }
}



/* ===== Order-page form-footer override =====
   On order pages only (`.page-order`), center the Nastavi/continue button container
   and the button inside. Desktop-only (>=992px) so mobile keeps full width.
   Scoped to .page-order so the auth/register polish doesn't bleed here. */
@media (min-width: 992px) {

    /* !important needed: #customer-form .form-footer (ID-scoped from auth polish) outranks
       .page-order .form-footer on specificity. */
    .page-order .form-footer {
        width: 50% !important;
        margin: 0 auto !important;
    }

    .page-order .form-footer .btn,
    .page-order .form-footer button {
        margin: 0 auto !important;
    }
}



/* ===== Reviews list polish =====
   Tighter spacing between reviews, light separator between items, top-positioned CTA,
   verified-badge styling. */

/* CTA button moved above the reviews list. padding-left aligns it with the section header + review rows
   (which sit inside .col-* with 15px padding); the wrapper itself isn't in a column. */
#product-comments-list-cta-top {
    margin: 12px 0 24px;
    padding-left: 15px;
    text-align: left;
}


#product-comments-list-cta-top .post-product-comment {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


#product-comments-list-cta-top .post-product-comment:hover {
    background-color: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
}


/* Force the edit-pencil icon to be visible — without this it was rendering as zero-width via the stock data-icon CSS path. */
#product-comments-list-cta-top .post-product-comment .material-icons {
    color: #fff;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}



/* Per-review separator + tighter vertical rhythm. */
#product-comments-list .product-comment-list-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--neutral-border);
    margin: 0;
}


#product-comments-list .product-comment-list-item:last-child {
    border-bottom: none;
}



/* Pull left-column meta (stars, date, author, verified badge) closer to right-column content. */
#product-comments-list .product-comment-list-item .comment-infos {
    padding-right: 12px;
}


#product-comments-list .product-comment-list-item .comment-infos .grade-stars {
    margin-bottom: 4px;
}


#product-comments-list .product-comment-list-item .comment-date {
    font-size: 13px;
    color: var(--neutral-text-muted);
    margin-bottom: 2px;
}


#product-comments-list .product-comment-list-item .comment-author {
    font-size: 13px;
    color: var(--brand-brown);
    margin-bottom: 6px;
}



/* "Recensione verificata" badge — bold + prominent per design. Has hover popover (Bootstrap). */
#product-comments-list .comment-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    margin-top: 4px;
}


#product-comments-list .comment-verified[data-toggle="popover"] {
    cursor: help;
    outline: none;
}


#product-comments-list .comment-verified .material-icons {
    font-size: 18px;
    color: #2e7d32;
    line-height: 1;
}



/* Right column — title hugs the top, body text close beneath. */
#product-comments-list .product-comment-list-item .comment-content p.h4 {
    margin: 0 0 6px;
    font-size: 16px;
}


#product-comments-list .product-comment-list-item .comment-content p {
    margin-bottom: 0;
}



/* Pagination styling — clean look. */
#product-comments-list-pagination {
    margin-top: 12px;
    text-align: center;
}
