/**
 * Mate Custom Features Plugin Styles
 * Version: 1.0.0
 */

/**
 * Custom Price Wrapper Styles
 */
.custom-price-wrapper {
    margin: 15px 0;
}

.custom-price-wrapper .price-prefix {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 14px;
}

.custom-price-wrapper .price-main {
    font-size: 1.6em;
    font-weight: 700;
    display: block;
    margin: 8px 0;
}

.custom-price-wrapper .price-suffix {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 13px;
}

/**
 * Catalog Button Styles
 */
.catalog-button-wrapper {
    margin: 10px 0;
    text-align: left;
    width: 100%;
    display: block;
}

.catalog-button {
    background: #222;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: none !important;
    margin: 0 !important;
    transition: all 0.2s ease;
}

.catalog-button:hover {
    background: #444;
    transform: translateY(-1px);
}

/**
 * Catalog Modal Styles
 */
.catalog-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
}

.catalog-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.catalog-modal .modal-inner {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 85vh;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    overflow: auto;
    border-radius: 8px;
    padding: 20px;
}

.catalog-modal .modal-close {
    float: right;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.catalog-modal .modal-close:hover {
    color: #000;
}

#catalog-content iframe,
#catalog-content img {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    max-height: 70vh;
    display: block;
    margin: auto;
    border-radius: 4px;
    box-sizing: border-box;
    border: none;
}

/**
 * Responsive Styles
 */
@media (max-width: 600px) {
    .catalog-modal .modal-inner {
        max-width: 100vw;
        max-height: 100vh;
        padding: 10px;
        border-radius: 0;
        top: 0;
    }
    
    #catalog-content iframe,
    #catalog-content img {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 0 !important;
    }
    
    .catalog-button {
        width: 100%;
        justify-content: center;
    }
}
