/*
    Theme Name: Galerie Sklenář
    Template: hello-elementor
    Text Domain: galeriesklenar
*/

/* Override body width for search results pages */
body.search,
body.search.search-results {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

:root {
    --success: #5c9d0d;
    --info: #1e85be;
    --error: #b70811;
}

.hidden {
    display: none;
}

.header-search-holder {
    position: relative;
}

.search-toggle {
    cursor: pointer;
}

.header-search-holder .search-wrapper {
    position: absolute;
    right: -10px;
    top: calc(100% + 10px);
    width: 400px;
    display: none;
}

.header-search-holder .search-wrapper.active {
    display: block;
}

.header-search-holder .search-form {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    background-color: #FFF;
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.header-search-holder .search-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dedede;
    border-radius: 4px 0 0 4px;
}

.header-search-holder .search-form button {
    padding: 10px;
    color: #FFF;
    border: 1px solid #000;
    border-radius: 0 4px 4px 0;
    background-color: #000;
}

.header-search-holder .search-results {
    max-height: 400px;
    background-color: #fff;
    overflow-y: auto;
}

.header-search-holder .search-results .empty {
    padding: 20px;
}

.header-search-holder .search-results .search-item {
    display: flex;
    padding: 10px 20px;
    align-items: center;
}

.header-search-holder .search-results .search-item__image {
    width: 90px;
    flex-shrink: 0;
}

.header-search-holder .search-results .search-item__image img {
    width: 80px;
    height: 100%;
    max-height: 100px;
}

.header-search-holder .search-results .search-item__content h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.alert {
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 !important;
    border: none !important;
}

.woocommerce-error a.button,
.woocommerce-info a.button,
.woocommerce-message a.button {
    display: none;
}

.woocommerce-info,
.alert.alert-info {
    color: var(--info);
    background-color: #e4f2f9;
}

.woocommerce-message,
.alert.alert-success {
    color: var(--success);
    background-color: #eff5dc;
}

.woocommerce-error,
.alert.alert-danger {
    color: var(--error);
    background-color: #ffeff0;
}

.minicart-link {
    font-size: 18px;
}

.minicart-link .count {
    font-size: 14px;
}

.products-ordering {
    margin-bottom: 20px;
}

.products-ordering a {
    margin-left: 10px;
    color: #A5A5A5;
    font-size: 18px;
    font-weight: 600;
}

#billing_address_2_field,
#shipping_address_2_field{
    display: none !important;
}

.order-success-icon,
.order-failed-icon {
    font-size: 90px;
    line-height: 130px;
}

.order-success-icon {
    color: var(--success);
}

.order-failed-icon {
    color: var(--error);
}

#shipping-payment-methods li {
    display: flex;
    margin-bottom: 10px !important;
    align-items: flex-start;
    flex-wrap: wrap;
}

#shipping-payment-methods li input {
    margin: 0 10px 0 0 !important;
}


#shipping-payment-methods li label {
    max-width: calc(100% - 30px);
}

#shipping-payment-methods #shipping_method li label {
    display: flex;
    flex-grow: 1;
    max-width: calc(100% - 30px);
}

#shipping-payment-methods #shipping_method li .packetery-widget-button-wrapper {
    width: 100%;
    flex-grow: 1;
}

#shipping-payment-methods #shipping_method li label .shipping-method-name {
    max-width: 60%;
}

#shipping-payment-methods #shipping_method li label .amount {
    margin-left: auto;
}

.checkout-wrapper button {
    color: #000 !important;
    border: 1px solid #dedede !important;
}

.checkout-wrapper button:hover {
    color: #fff !important;
    border-color: #000 !important;
    background-color: #000 !important;
}

.checkout-wrapper .wc_payment_methods.payment_methods.methods {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #fff !important;
}

.checkout-wrapper h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.checkout-wrapper .form-row {
    float: none !important;
    width: 100% !important;
    display: flex;
    align-items: center;
}

.checkout-wrapper .form-row > * {
    width: 50%;
}

.checkout-wrapper .form-row .select2-selection--single{
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #ddd !important;
}

.checkout-wrapper .form-row input,
.checkout-wrapper .form-row select {
    padding: 5px 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #ddd;
}

.checkout-wrapper .woocommerce-additional-fields {
    display: none;
}

.checkout-wrapper #shipping-payment-methods {
    margin-top: 20px;
}

.cart-breadcrumbs {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.cart-breadcrumbs span,
.cart-breadcrumbs a {
    color: #A5A5A5;
    font-size: 14px;
    text-decoration: none;
}

.cart-breadcrumbs i {
    margin: 0 10px;
    color: #000;
    font-size: 10px;
}

.cart-breadcrumbs a,
.cart-breadcrumbs span.current {
    color: #000;
}

.cart-breadcrumbs a:hover {
    text-decoration: underline;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
}

.cart-table td {
    padding: 20px 0 !important;
    border: none;
    border-bottom: 1px solid #ddd;
    background-color: #FFF !important;
}

.cart-table td img {
    width: 100px !important;
}

.cart-table .product-name-link {
    display: block;
    font-size: 18px;
}

.cart-table .product-subtotal {
    text-align: right;
}

.cart_totals {
    float: none !important;
    width: 100% !important;
    margin-top: 20px;
}

.totals-flex {
    display: flex;
    padding: 10px 0;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
}

.back-to-shop {
    color: #A5A5A5;
    font-size: 14px;
}

/* Exhibition Filter Styles - Enhanced UX for removable filters */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-tag--removable {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #dedede;
    border-radius: 20px;
    color: #333;
}

.filter-tag--removable:hover {
    background-color: #e8e8e8;
    border-color: #b0b0b0;
    color: #000;
}

.filter-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    background-color: #d0d0d0;
    border-radius: 50%;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease;
}

.filter-tag--removable:hover .filter-tag__remove {
    background-color: #b70811;
    color: #fff;
}

/* Active filter list items */
.filter-group__items li.active {
    margin-bottom: 8px;
}

.filter-group__items li.active a {
    display: inline-flex;
}
/* Product Search Styles */
.products-ordering {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.products-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.product-search-input:focus {
    outline: none;
    border-color: #666;
}

.products-sorting {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.products-sorting a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.products-sorting a:hover {
    color: #000;
}

@media (max-width: 768px) {
    .products-ordering {
        flex-direction: column;
    }
    
    .products-search {
        flex-direction: column;
    }
    
    .product-search-input {
        width: 100%;
    }
    
    .products-sorting {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Product Search Button Hover Effect */
#product-search-btn {
    transition: all 0.3s ease;
}

#product-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

#product-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Categorized Search Results */
.search-category {
    margin-bottom: 30px;
}

.search-category__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.search-item__type {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-top: 5px;
}

.search-item__content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}
