/* ---------------------------------------------------------------
   Bridge styles for the WordPress port of the Seravial design.
   --------------------------------------------------------------- */

body.--body-style {
    margin: 0;
    background: var(--page_background_color, #EFF0F4);
    color: var(--main_color, #4b547a);
    font-family: var(--general_font_family, Poppins), system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* WordPress core alignment helpers that can leak into the theme. */
body.--body-style .alignwide,
body.--body-style .alignfull { max-width: 100%; }
body.--body-style img { height: auto; }

/* Hide the empty filter column from the cloned collection page. */
.collection-filter-box { display: none !important; }
#collection_detail_scrollTop > .df-flex-1 { width: 100%; }

/* Collection grid: the source stylesheet turns .collection_content ul into a grid. */
#collection-product-content { width: 100%; }
#collection-product-content > ul.lyo-collection-grid {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------------------------------------------------------------
   Pagination
   --------------------------------------------------------------- */
.lyo-pagination-wrap { width: 100%; padding: 40px 0 20px; }
.lyo-pagination ul {
    display: flex; gap: 8px; justify-content: center;
    list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.lyo-pagination a,
.lyo-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid #dfe2ea; border-radius: 30px;
    color: var(--title_color, #101B4E); text-decoration: none;
    background: #fff; font-size: 14px;
}
.lyo-pagination .current { background: var(--main_button_bg, #0e1b4d); color: #fff; border-color: var(--main_button_bg, #0e1b4d); }

/* ---------------------------------------------------------------
   Product page additions
   --------------------------------------------------------------- */
.lyo-variation-box { margin: 12px 0; }
.lyo-variation-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lyo-variation-option {
    padding: 8px 16px; border: 1px solid #d7dae4; background: #fff;
    border-radius: 30px; cursor: pointer; font-size: 14px; line-height: 1.2;
    color: var(--title_color, #101B4E); transition: all .18s ease;
}
.lyo-variation-option:hover { border-color: var(--main_button_bg, #0e1b4d); }
.lyo-variation-option.is-active {
    background: var(--main_button_bg, #0e1b4d); color: #fff;
    border-color: var(--main_button_bg, #0e1b4d);
}
.lyo-variation-option[disabled] { opacity: .4; cursor: not-allowed; }
.lyo-sku-value { margin-left: 8px; color: var(--title_color, #101B4E); }

.lyo-thumbs .swiper-small-item { opacity: .55; cursor: pointer; transition: opacity .18s; }
.lyo-thumbs .swiper-small-item.is-active,
.lyo-thumbs .swiper-small-item:hover { opacity: 1; }

.product-cart-group button { border: 0; font: inherit; }
.product-cart-group button:focus-visible { outline: 2px solid #4670db; outline-offset: 2px; }

.lyo-toast {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
    background: #101B4E; color: #fff; padding: 12px 22px; border-radius: 8px;
    font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 999999;
}
.lyo-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------
   Search modal
   --------------------------------------------------------------- */
.lyo-search-modal {
    position: fixed; inset: 0; background: rgba(10, 16, 40, .55);
    display: none; align-items: flex-start; justify-content: center;
    z-index: 999990; padding-top: 18vh;
}
.lyo-search-modal.is-open { display: flex; }
.lyo-search-panel {
    width: min(640px, 92vw); background: #fff; border-radius: 10px;
    padding: 24px; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.lyo-search-form { display: flex; gap: 10px; }
.lyo-search-input {
    flex: 1; height: 48px; border: 1px solid #d7dae4; border-radius: 30px;
    padding: 0 20px; font-size: 16px; outline: none;
}
.lyo-search-input:focus { border-color: #4670db; }
.lyo-search-form .main_btn {
    border: 0; border-radius: 30px; padding: 0 26px; height: 48px;
    background: var(--main_button_bg, #0e1b4d); color: #fff; cursor: pointer;
}
.lyo-search-close {
    position: absolute; top: 6px; right: 10px; border: 0; background: none;
    font-size: 28px; line-height: 1; cursor: pointer; color: #888;
}

/* ---------------------------------------------------------------
   Mobile menu drawer
   --------------------------------------------------------------- */
.lyo-mobile-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 84vw);
    background: #fff; z-index: 999995; transform: translateX(-100%);
    transition: transform .28s ease; overflow-y: auto; padding: 24px 20px;
    box-shadow: 12px 0 40px rgba(0,0,0,.12);
}
.lyo-mobile-nav.is-open { transform: translateX(0); }
.lyo-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.lyo-mobile-nav li { border-bottom: 1px solid #eef0f5; }
.lyo-mobile-nav a { display: block; padding: 14px 0; color: var(--title_color, #101B4E); text-decoration: none; font-size: 15px; }
.lyo-nav-cover { position: fixed; inset: 0; background: rgba(10,16,40,.45); z-index: 999994; display: none; }
.lyo-nav-cover.is-open { display: block; }

/* ---------------------------------------------------------------
   WooCommerce cart / checkout (classic templates)
   --------------------------------------------------------------- */
.woocommerce-cart .main-content,
.woocommerce-checkout .main-content { padding: 60px 0; }
.woocommerce-cart .container_wrapper,
.woocommerce-checkout .container_wrapper { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.woocommerce table.shop_table {
    width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: 14px 16px; border-bottom: 1px solid #eef0f5; text-align: left; }
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--main_button_bg, #0e1b4d); color: #fff; border: 0;
    border-radius: 30px; padding: 10px 22px; cursor: pointer; text-decoration: none;
}
.woocommerce .button.alt { background: var(--secondary_button_bg, #4670db); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%; padding: 11px 14px; border: 1px solid #d7dae4; border-radius: 8px;
}
.woocommerce-info, .woocommerce-message, .woocommerce-error {
    background: #fff; border-top: 3px solid #4670db; padding: 16px 20px;
    border-radius: 6px; list-style: none; margin-bottom: 20px;
}

/* ---------------------------------------------------------------
   Small fixes
   --------------------------------------------------------------- */
#cart_number { min-width: 16px; display: inline-block; }
.lyo-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.admin-bar .header-box.header_fixed { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header-box.header_fixed { top: 46px; } }
