/**
 * General frontend styles for Celejor Product Enhancements
 */

/* Discount Badge */
.celejor-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #b35b4a;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Single Product Badge Positioning */
.single-product .summary .celejor-discount-badge {
    position: static;
    float: right;
    margin-left: 15px;
    margin-bottom: 10px;
    margin-top: 5px;
}

/* Price HTML Override */
.price del {
    color: #777;
    margin-right: 5px;
    font-size: 0.8em;
}

.price ins {
    text-decoration: none;
    font-weight: bold;
    color: #b35b4a;
}

/* Fix currency symbol margin in You Save */
dl.variation dd.variation-YouSave .woocommerce-Price-currencySymbol {
    margin-left: 0 !important;
}

/* Product loop specific fixes */
.product .celejor-discount-badge {
    pointer-events: none;
}

/* Offers Page Toolbar */
.celejor-offers-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px;
    padding: 10px 0;
    gap: 20px;
}

.celejor-offers-toolbar .woocommerce-result-count {
    margin: 0 !important;
    flex-shrink: 0;
    white-space: nowrap;
}

.celejor-toolbar-right {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px;
}

.celejor-offers-toolbar .woocommerce-ordering {
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}

.celejor-offers-toolbar .woocommerce-ordering select {
    width: auto !important;
    min-width: 160px;
    max-width: 200px;
}

.celejor-view-toggle {
    display: flex !important;
    gap: 5px;
    flex-shrink: 0;
}

.celejor-view-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #fff;
    text-decoration: none;
    color: #777;
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.celejor-view-toggle a:hover,
.celejor-view-toggle a.active {
    color: #333;
    border-color: #333;
    background: #f5f5f5;
}