/**
 * Single Product Block Styles
 */

.apb-single-product-block {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: var(--apb-border-radius, 8px);
    background: #fff;
    position: relative;
}

.apb-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 1;
}

.apb-product-container {
    display: flex;
    gap: 20px;
}

.apb-layout-vertical .apb-product-container {
    flex-direction: column;
}

.apb-product-image {
    flex: 0 0 250px;
}

.apb-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.apb-product-details {
    flex: 1;
}

.apb-product-title {
    margin: 0 0 10px;
    font-size: 1.5em;
    line-height: 1.3;
}

.apb-product-title a {
    color: #0073aa;
    text-decoration: none;
}

.apb-product-title a:hover {
    text-decoration: underline;
}

.apb-product-rating {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apb-stars {
    display: inline-flex;
    gap: 2px;
}

.apb-star {
    font-size: 16px;
}

.apb-star-full {
    color: #f59e0b;
}

.apb-star-half {
    color: #f59e0b;
    opacity: 0.5;
}

.apb-star-empty {
    color: #d1d5db;
}

.apb-rating-number {
    margin-left: 5px;
    font-size: 14px;
    color: #6b7280;
}

.apb-review-count {
    font-size: 14px;
    color: #6b7280;
}

.apb-product-description {
    margin: 15px 0;
    line-height: 1.6;
}

.apb-product-features {
    margin: 15px 0;
}

.apb-product-features h4 {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.apb-product-features ul {
    margin: 0;
    padding-left: 20px;
}

.apb-product-features li {
    margin: 5px 0;
}

.apb-product-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.apb-product-pros h4 {
    color: #10b981;
}

.apb-product-cons h4 {
    color: #ef4444;
}

.apb-product-pros ul,
.apb-product-cons ul {
    margin: 10px 0;
    padding-left: 20px;
}

.apb-product-pricing {
    margin: 15px 0;
    font-size: 1.2em;
}

.apb-original-price {
    text-decoration: line-through;
    color: #9ca3af;
    margin-right: 10px;
}

.apb-current-price {
    color: var(--apb-accent-color, #B12704);
    font-weight: bold;
    font-size: 1.3em;
}

.apb-savings {
    color: #10b981;
    font-size: 0.9em;
    margin-left: 10px;
}

.apb-product-button {
    margin: 20px 0;
}

.apb-buy-button {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.apb-buy-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Button Sizes */
.apb-buy-button.apb-btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.apb-buy-button.apb-btn-medium {
    padding: 12px 24px;
    font-size: 1em;
}

.apb-buy-button.apb-btn-large {
    padding: 16px 32px;
    font-size: 1.1em;
}

/* Button Styles */
.apb-buy-button.apb-btn-solid {
    /* Styles applied inline via PHP */
}

.apb-buy-button.apb-btn-outline {
    /* Styles applied inline via PHP */
    background-color: transparent !important;
}

.apb-buy-button.apb-btn-outline:hover {
    background-color: currentColor !important;
    color: #fff !important;
}

.apb-buy-button.apb-btn-gradient {
    /* Styles applied inline via PHP */
    position: relative;
    overflow: hidden;
}

.apb-buy-button.apb-btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.apb-buy-button.apb-btn-gradient:hover::before {
    left: 100%;
}

.apb-last-updated {
    margin: 10px 0;
    font-size: 0.85em;
    color: #6b7280;
}

.apb-affiliate-disclosure {
    margin-top: 20px;
    padding: 10px;
    background: #f3f4f6;
    border-left: 4px solid #fbbf24;
    font-size: 0.85em;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .apb-product-container {
        flex-direction: column;
    }

    .apb-product-image {
        flex: 0 0 auto;
    }

    .apb-product-pros-cons {
        grid-template-columns: 1fr;
    }
}
