/* ============================= */
/* ROOT VARIABLES                */
/* ============================= */
:root {
    --navbar-h: 70px;
    --nav-padding-x: 1rem;
    --accent: #e63946;
    --accent-dark: #c72530;
    --input-h: 44px;
}

/* ============================= */
/* RESET / BASE GLOBAL           */
/* ============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: calc(var(--navbar-h) + 10px);
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}
a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================= */
/* TYPOGRAPHY AND TEXT           */
/* ============================= */
h1,h2,h3,h4,h5,h6 {
    font-weight: 600;
    color: #111;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25rem; }
ul, ol { margin: 1rem 0 1.5rem 1.5rem; padding: 0; }
li { margin-bottom: 0.5rem; }

blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
    color: #555;
    font-style: italic;
}

/* ============================= */
/* CODE BLOCKS / SYNTAX          */
/* ============================= */
pre code {
    display: block;
    background: #f4f4f4;
    padding: 1em;
    overflow-x: auto;
    white-space: pre;
    font-family: monospace;
    tab-size: 4;
}

/* ============================= */
/* MULTIMEDIA                    */
/* ============================= */
img, svg, video, canvas, audio, iframe {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ============================= */
/* TABLES                        */
/* ============================= */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
}
th, td {
    border: 1px solid #eee;
    padding: 0.75rem;
    text-align: left;
    font-weight: normal;
}

/* ============================= */
/* FORMS AND BUTTONS             */
/* ============================= */
button, input, select, textarea {
    font: inherit;
    margin: 0;
    border-radius: 4px;
    outline: none;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: #fff;
    transition: background 0.3s ease, border 0.3s ease;
}
button, input[type=submit], input[type=button] {
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border: none;
}
button:hover, input[type=submit]:hover, input[type=button]:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ============================= */
/* WP ELEMENTS (caption, widgets, notices) */
/* ============================= */
.wp-caption { max-width: 100%; text-align: center; font-size: 0.9rem; color: #666; }
.wp-caption img { margin-bottom: 0.5rem; }
.wp-caption-text { font-style: italic; }

.widget { margin-bottom: 2rem; }
.widget-title { margin-bottom: 0.75rem; font-weight: 600; }

.notice, .updated, .error {
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
}
.notice { background: #eef6fb; border-left: 4px solid #2f86c0; }
.updated { background: #f0f9f4; border-left: 4px solid #2e8b57; }
.error { background: #fdf2f2; border-left: 4px solid var(--accent); color: #b91c1c; }

/* ============================= */
/* WP ALIGNMENTS                 */
/* ============================= */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.gallery { display: grid; gap: 1rem; }
.gallery img { border-radius: 4px; }

/* ============================= */
/* HEADER / TITLES / LOGO        */
/* ============================= */
.site-title a { font-size: 2rem; font-weight: 700; color: #111; }
.header-content { margin-top: 1rem; }
.header-image img { max-width: 100%; height: auto; border-radius: 6px; }

/* ============================= */
/* NAVBAR                        */
/* ============================= */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    height: var(--navbar-h);
    padding: 0;
    display: flex;
    align-items: stretch;
}

.navbar > .container {
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0 var(--nav-padding-x);
}
.navbar-brand img { max-height: calc(var(--navbar-h) - 20px); width: auto; }
.navbar-brand span { font-size: 1.25rem; font-weight: 700; color: #111; }

/* Toggler */
.navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--navbar-h);
    margin: 0 .5rem;
    border: none;
    background: transparent;
    padding: 0 .75rem;
    border-radius: 0;
}
.navbar-toggler-icon {
    background-image: none;
    width: 1.5rem;
    height: 2px;
    background-color: #333;
    position: relative;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    width: 1.5rem;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: background 0.25s ease;
}
.navbar-toggler-icon::before { top: -6px; }
.navbar-toggler-icon::after { top: 6px; }
.navbar-toggler:hover,
.navbar-toggler:focus {
    background: var(--accent);
}
.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:hover .navbar-toggler-icon::before,
.navbar-toggler:hover .navbar-toggler-icon::after,
.navbar-toggler:focus .navbar-toggler-icon,
.navbar-toggler:focus .navbar-toggler-icon::before,
.navbar-toggler:focus .navbar-toggler-icon::after {
    background-color: #fff;
}

/* Collapse */
.navbar-collapse {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    flex: 1 1 auto;
    padding: 0;
}

/* Menu */
.navbar-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.navbar-nav > li {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
}
.navbar-nav .nav-link,
.navbar-nav > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    border-radius: 0;
    color: #333 !important;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s;
}
.navbar-nav .nav-link:hover,
.navbar-nav > li > a:hover,
.navbar-nav .current-menu-item .nav-link,
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item .nav-link,
.navbar-nav .current_page_item > a {
    background: var(--accent) !important;
    color: #fff !important;
}

/* Cart button and language selector */
.navbar .open-cart,
.navbar .language-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 1rem;
    border-radius: 0;
    color: #333 !important;
    transition: background 0.18s ease, color 0.18s ease;
}
.navbar .open-cart .bi { font-size: 1.35rem; }
.navbar .open-cart:hover,
.navbar .language-switch:hover {
    background: var(--accent) !important;
    color: #fff !important;
}
.navbar .open-cart .badge {
    top: 5px !important;
    right: 5px !important;
    left: auto !important;
    transform: none !important;
}

/* Search form */
.navbar .searchform {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 .5rem;
    margin: 0;
    width: 220px;
    border-radius: 0;
    background: transparent;
}
.navbar .searchform input[type="text"] {
    width: 100%;
    height: var(--input-h);
    border: 1px solid #ccc;
    padding: 0 .6rem;
    border-radius: 0;
    outline: none;
    box-sizing: border-box;
}
.navbar .searchform:hover { background: transparent !important; }
.navbar .searchform input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: none;
}
.navbar .searchform #searchsubmit { display: none; }

/* ============================= */
/* NAVBAR: SUBMENUS              */
/* ============================= */
.navbar-nav li.menu-item-has-children {
    position: relative;
}
.navbar-nav li.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 2000;
}
.navbar-nav li.menu-item-has-children:hover > .sub-menu {
    display: block;
}
.navbar-nav li.menu-item-has-children > .sub-menu li {
    margin: 0;
}
.navbar-nav li.menu-item-has-children > .sub-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.navbar-nav li.menu-item-has-children > .sub-menu li a:hover {
    background: var(--accent);
    color: #fff !important;
}

/* ============================= */
/* POSTS / CONTENT               */
/* ============================= */
.post { padding-bottom: 2rem; }
.post-title a { font-size: 1.5rem; font-weight: bold; color: #111; }

/* ============================= */
/* MODALS                        */
/* ============================= */
.modal-content {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 1rem;
    color: #222;
}
.modal-body img { display: block; margin: auto; border-radius: 6px; }

/* ============================= */
/* MAIN LAYOUT                   */
/* ============================= */
main,
article,
body.woocommerce-page main.container,
body.woocommerce-page article.container {
    padding: 0 1rem;
}

/* ============================= */
/* WOOCOMMERCE: Prices / Badges / Buttons */
/* ============================= */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
    color: var(--accent);
    font-weight: 600;
}
.woocommerce div.product .price del,
.woocommerce ul.products li.product .price del {
    color: #888;
    font-weight: normal;
}
.woocommerce span.onsale {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: .4rem .7rem;
    border-radius: 4px;
    font-size: .85rem;
}
.woocommerce ul.products li.product a.button {
    display: block;
    text-align: center;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin-top: .5rem;
    transition: background 0.25s ease;
}
.woocommerce ul.products li.product a.button:hover {
    background: var(--accent-dark);
    color: #fff;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button {
    background: var(--accent) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-align: center;
    padding: 0.75rem 1.25rem !important;
    border-radius: 4px !important;
    transition: background 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .checkout-button:hover {
    background: var(--accent-dark) !important;
    color: #fff !important;
}
.woocommerce .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 6px;
}
.woocommerce .coupon input.input-text {
    padding: 0.65rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: .5rem;
}

/* ============================= */
/* WOOCOMMERCE: MINI CART        */
/* ============================= */
.woocommerce-mini-cart.cart_list.product_list_widget {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid #eee;
}
.woocommerce-mini-cart-item .remove.remove_from_cart_button {
    color: #aaa;
    font-size: 1.2rem;
    line-height: 1;
    margin-right: .5rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.woocommerce-mini-cart-item .remove.remove_from_cart_button:hover {
    color: var(--accent);
}
.woocommerce-mini-cart-item img {
    float: right!important;
    width: 32px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}
.woocommerce-mini-cart-item a:not(.remove) {
    flex: 1;
    font-weight: 500;
    color: #222;
    text-decoration: none;
}
.woocommerce-mini-cart-item a:not(.remove):hover {
    color: var(--accent);
}
.woocommerce-mini-cart-item .quantity {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}
.woocommerce-mini-cart__total {
    margin: 1rem 0;
    font-weight: 600;
    text-align: right;
}
.woocommerce-mini-cart__buttons a.button {
    display: inline-block;
    width: 48%;
    text-align: center;
    background: var(--accent);
    color: #fff !important;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    margin: 0 1%;
    transition: background 0.25s ease;
}
.woocommerce-mini-cart__buttons a.button:hover {
    background: var(--accent-dark);
}
.woocommerce .select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.woocommerce .select2-container .select2-selection__rendered {
    color: #333;
    line-height: 1.4;
}
.woocommerce .select2-container .select2-selection__arrow {
    height: 100%;
    right: 8px;
}
.woocommerce .select2-container--default .select2-selection--single:hover,
.woocommerce .select2-container--default .select2-selection--single:focus {
    border-color: var(--accent);
}
.woocommerce .select2-container .select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 2px;
}
.woocommerce .select2-container .select2-results__option {
    padding: 8px 12px;
    font-size: 0.95rem;
    cursor: pointer;
}
.woocommerce .select2-container .select2-results__option--highlighted {
    background: var(--accent);
    color: #fff;
}

/* ============================= */
/* RESPONSIVE NAVBAR             */
/* ============================= */
@media (max-width: 992px) {
    .navbar-collapse {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        padding: .5rem 0;
    }
    .navbar-nav {
        width: 100%;
        flex-direction: column;
    }
    .navbar-nav > li { width: 100%; }
    .navbar-nav .nav-link,
    .navbar-nav > li > a {
        width: 100%;
        padding: .7rem 1rem;
    }
    .navbar .searchform {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin: .5rem 0;
        padding: 0;
    }
    .navbar .searchform input[type="text"] {
        width: 100%;
    }
    .open-cart,
    .language-switch {
        width: auto;
        padding: .7rem .5rem !important;
        justify-content: center !important;
        position: relative;
    }
}