/* Product Prices Modal Styles */

.purchase-section {
    margin-top: 1rem;
}

.purchase-btn {
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--arese-color-00) !important;
    border: "0px none";
    padding: 12px 20px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Modal Styles */
.prices-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.prices-modal-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 450px;
    max-width: 90vw;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.prices-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    max-width: 100%;
}

.prices-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
    flex: 1;
    min-width: auto;
}

.close-prices-modal {
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    line-height: 1;
    padding: 8px;
    background: none;
    border: none;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-prices-modal:hover,
.close-prices-modal:focus {
    color: #000;
}

.prices-modal-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    gap: 1rem;
}

.prices-disclaimer {
    font-size: 0.85rem;
    text-align: center;
}

.prices-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s, transform 0.2s;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.price-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.vendor-info {
    text-align: left;
    margin-bottom: 0px;
    flex: 1;
}

.vendor-logo {
    max-width: 120px;
    min-width: auto;
    max-height: unset;
    min-height: auto;
    object-fit: contain;
    margin-bottom: 0px;
    border-radius: 4px;
}

.vendor-info a {
    min-width: 100%;
    display: inline-block;
}

.vendor-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    padding: 10px 0;
    text-align: center;
}

.vendor-description {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.price-info {
    text-align: center;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--arese-color-00);
    margin-bottom: 0px;
    line-height: 1.2;
}

.currency {
    font-size: 0.7em;
    margin-right: 5px;
    opacity: 0.8;
}

.amount {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.purchase-link,
.visit-website {
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.purchase-link {
    background-color: var(--arese-color-00);
    border-color: var(--arese-color-00);
    color: white;
}

.purchase-link:hover {
    background-color: var(--arese-color-08);
    border-color: var(--arese-color-08);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.visit-website {
    color: var(--arese-color-00);
    border: 1px solid var(--arese-color-00);
    background-color: transparent;
}

.visit-website:hover {
    background-color: var(--arese-color-08);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.purchase-link i,
.visit-website i {
    margin-right: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prices-modal-content {
        width: 100%;
        max-width: 100%;
    }

    .prices-modal-header {
        padding: 20px;
    }

    .prices-modal-header h3 {
        font-size: 1.2rem;
    }

    .close-prices-modal {
        font-size: 40px;
        padding: 12px;
        min-width: 56px;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .prices-modal-body {
        padding: 20px;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .price-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        min-height: 120px;
        cursor: pointer;
    }

    .price-item:active {
        background-color: #f0f0f0;
    }

    .vendor-info {
        text-align: center;
        margin-bottom: 10px;
    }

    .vendor-info a {
        display: block;
        padding: 10px;
        border-radius: 8px;
        transition: background-color 0.2s;
    }

    .vendor-info a:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .vendor-logo {
        max-width: 140px;
        max-height: 60px;
    }

    .price-info a {
        display: block;
        padding: 15px;
        border-radius: 8px;
        transition: background-color 0.2s;
        text-decoration: none;
        color: inherit;
    }

    .price-info a:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .purchase-btn {
        font-size: 1.2rem;
        padding: 16px 24px;
        min-height: 56px;
    }
}

@media (max-width: 576px) {
    .prices-modal-header {
        padding: 16px;
    }

    .prices-modal-header h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .close-prices-modal {
        font-size: 44px;
        padding: 16px;
        min-width: 60px;
        min-height: 60px;
    }

    .prices-modal-body {
        padding: 16px;
    }

    .prices-grid {
        gap: 16px;
    }

    .price-item {
        padding: 24px 20px;
        min-height: 140px;
        border-radius: 12px;
        gap: 18px;
    }

    .vendor-info a {
        padding: 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vendor-logo {
        max-width: 160px;
        max-height: 70px;
    }

    .price-amount {
        font-size: 2rem;
        line-height: 1.1;
    }

    .price-info a {
        padding: 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .purchase-btn {
        font-size: 1.1rem;
        padding: 18px 24px;
        min-height: 60px;
        border-radius: 12px;
    }

    .purchase-link,
    .visit-website {
        font-size: 1rem;
        padding: 16px 20px;
        min-height: 56px;
        border-radius: 12px;
    }
}

/* Touch-friendly enhancements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .price-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    .price-item:hover {
        transform: none;
    }

    .price-item:active {
        transform: scale(0.98);
        background-color: #f5f5f5;
    }

    .close-prices-modal {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    .vendor-info a,
    .price-info a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
    }

    .purchase-btn {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }

    .purchase-btn:active {
        transform: scale(0.98);
    }
}
