/**
 * Affiliate Smash Pro - Frontend Styles
 * 
 * Psychologisch optimierte Produktbox-Templates:
 * 1. Recommendation Box (Sidebar) - Authority & Trust
 * 2. Compact Inline Box - Quick Decision
 * 3. Grid Box - Comparison & Choice
 * 4. Deal Box with Timer - Scarcity & Urgency
 * 
 * Psychologische Farbpalette (Defaults):
 * - CTA-Button: #FF9900 (Amazon-Orange)
 * - Sale-Badge: #CC0C39 (Rot - Urgency)
 * - Bestseller-Badge: #FFD700 (Gold - Premium)
 * - Empfehlungs-Badge: #2E7D32 (Grun - Trust)
 * - Sterne: #FFA41C (Gelb-Orange - Social Proof)
 */

/* ==========================================================================
   CSS Custom Properties (Theming)
   ========================================================================== */

:root {
    /* Primary Colors */
    --asp-primary: #FF9900;
    --asp-primary-hover: #E68A00;
    --asp-primary-light: #FFF4E5;
    
    /* Trust Colors */
    --asp-trust-green: #2E7D32;
    --asp-trust-green-light: #E8F5E9;
    
    /* Urgency Colors */
    --asp-urgency-red: #CC0C39;
    --asp-urgency-red-light: #FFEBEE;
    
    /* Premium Colors */
    --asp-premium-gold: #FFD700;
    --asp-premium-gold-dark: #B8860B;
    
    /* Rating Colors */
    --asp-star-filled: #FFA41C;
    --asp-star-empty: #E0E0E0;
    
    /* Neutral Colors */
    --asp-text-dark: #0F1111;
    --asp-text-medium: #565959;
    --asp-text-light: #767676;
    --asp-border: #DDD;
    --asp-border-light: #EDEDED;
    --asp-bg-light: #F7F8F8;
    --asp-bg-white: #FFFFFF;
    
    /* Prime Blue */
    --asp-prime-blue: #1B98F4;
    
    /* Shadows */
    --asp-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --asp-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --asp-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --asp-shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    
    /* Transitions */
    --asp-transition: 0.2s ease;
    --asp-transition-slow: 0.3s ease;
    
    /* Border Radius */
    --asp-radius-sm: 4px;
    --asp-radius-md: 8px;
    --asp-radius-lg: 12px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.asp-box {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--asp-text-dark);
    box-sizing: border-box;
}

.asp-box *,
.asp-box *::before,
.asp-box *::after {
    box-sizing: inherit;
}

.asp-box img {
    max-width: 100%;
    height: auto;
    display: block;
}

.asp-box a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Badge Styles (Psychologische Trigger)
   ========================================================================== */

.asp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--asp-radius-sm);
    white-space: nowrap;
}

/* Bestseller - Gold (Premium/Authority) */
.asp-badge-bestseller {
    background: linear-gradient(135deg, var(--asp-premium-gold) 0%, var(--asp-premium-gold-dark) 100%);
    color: #1A1A1A;
}

/* Amazon's Choice - Orange (Trust) */
.asp-badge-amazon_choice {
    background: linear-gradient(135deg, #232F3E 0%, #37475A 100%);
    color: #FFFFFF;
}

.asp-badge-amazon_choice::before {
    content: "✓";
    margin-right: 4px;
}

/* Angebot/Deal - Rot (Urgency) */
.asp-badge-deal {
    background: linear-gradient(135deg, var(--asp-urgency-red) 0%, #A00A2E 100%);
    color: #FFFFFF;
}

/* Neu - Blau (Novelty) */
.asp-badge-new {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: #FFFFFF;
}

/* Empfohlen - Grun (Trust/Authority) */
.asp-badge-recommended {
    background: linear-gradient(135deg, var(--asp-trust-green) 0%, #1B5E20 100%);
    color: #FFFFFF;
}

.asp-badge-recommended::before {
    content: "♥";
    margin-right: 4px;
}

/* Premium - Dunkelgold (Luxury) */
.asp-badge-premium {
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    color: var(--asp-premium-gold);
    border: 1px solid var(--asp-premium-gold);
}

/* Top bewertet - Orange (Social Proof) */
.asp-badge-top_rated {
    background: linear-gradient(135deg, var(--asp-star-filled) 0%, #E69500 100%);
    color: #FFFFFF;
}

.asp-badge-top_rated::before {
    content: "★";
    margin-right: 4px;
}

/* ==========================================================================
   Star Rating Styles
   ========================================================================== */

.asp-stars {
    display: inline-flex;
    gap: 1px;
    font-size: 14px;
    line-height: 1;
}

.asp-stars .asp-star-full {
    color: var(--asp-star-filled);
}

.asp-stars .asp-star-half {
    color: var(--asp-star-filled);
    position: relative;
}

.asp-stars .asp-star-empty {
    color: var(--asp-star-empty);
}

.asp-review-count {
    font-size: 13px;
    color: var(--asp-text-light);
    margin-left: 6px;
}

.asp-review-count a {
    color: #007185;
}

.asp-review-count a:hover {
    color: var(--asp-urgency-red);
    text-decoration: underline;
}

/* ==========================================================================
   Price Styles (Anchoring & Loss Aversion)
   ========================================================================== */

.asp-price-container {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.asp-price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--asp-text-dark);
}

.asp-price-original {
    font-size: 14px;
    color: var(--asp-text-light);
    text-decoration: line-through;
}

.asp-price-savings {
    font-size: 13px;
    color: var(--asp-urgency-red);
    font-weight: 600;
}

.asp-price-savings-badge {
    display: inline-block;
    background: var(--asp-urgency-red-light);
    color: var(--asp-urgency-red);
    padding: 2px 8px;
    border-radius: var(--asp-radius-sm);
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================================================
   Trust Elements (Social Proof & Authority)
   ========================================================================== */

.asp-trust-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
}

.asp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--asp-text-medium);
}

.asp-trust-prime {
    color: var(--asp-prime-blue);
    font-weight: 600;
}

.asp-trust-prime::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B98F4'%3E%3Cpath d='M12 2L3 7l1.63 6.27L12 22l7.37-8.73L21 7l-9-5zm0 2.18l6.56 3.64-.56 2.18H6l-.56-2.18L12 4.18zM6.85 10h10.3l-5.15 6.1-5.15-6.1z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.asp-trust-shipping {
    color: var(--asp-trust-green);
}

.asp-trust-shipping::before {
    content: "✓";
    font-weight: 700;
}

.asp-trust-stock {
    color: var(--asp-trust-green);
    font-weight: 600;
}

/* ==========================================================================
   CTA Button Styles (Action & Urgency)
   ========================================================================== */

.asp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--asp-radius-md);
    cursor: pointer;
    transition: all var(--asp-transition);
    text-decoration: none;
}

.asp-button-primary {
    background: linear-gradient(180deg, #FFD814 0%, #F7CA00 100%);
    color: var(--asp-text-dark);
    border: 1px solid #FCD200;
}

.asp-button-primary:hover {
    background: linear-gradient(180deg, #F7CA00 0%, #E7B800 100%);
    transform: translateY(-1px);
    box-shadow: var(--asp-shadow-md);
}

.asp-button-amazon {
    background: linear-gradient(180deg, #FF9900 0%, #E68A00 100%);
    color: #FFFFFF !important;
    border: 1px solid #D17E00;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.asp-button-amazon:hover {
    background: linear-gradient(180deg, #E68A00 0%, #CC7A00 100%);
    transform: translateY(-1px);
    box-shadow: var(--asp-shadow-md);
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.asp-button-amazon:visited,
.asp-button-amazon:focus,
.asp-button-amazon:active {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.asp-button-amazon::after {
    content: " \2192";
    margin-left: 6px;
    transition: transform var(--asp-transition);
    display: inline-block;
}

.asp-button-amazon:hover::after {
    transform: translateX(4px);
}

.asp-button-full {
    width: 100%;
}

/* ==========================================================================
   TEMPLATE 1: Recommendation Box (Sidebar)
   Psychologie: Authority, Trust, Personal Recommendation
   ========================================================================== */

.asp-box-recommendation {
    background: var(--asp-bg-white);
    border: 1px solid var(--asp-border);
    border-radius: var(--asp-radius-lg);
    overflow: hidden;
    max-width: 350px;
    box-shadow: var(--asp-shadow-sm);
    transition: box-shadow var(--asp-transition);
}

.asp-box-recommendation:hover {
    box-shadow: var(--asp-shadow-hover);
}

/* Header with Badge */
.asp-recommendation-header {
    background: linear-gradient(135deg, var(--asp-trust-green) 0%, #1B5E20 100%);
    color: #FFFFFF;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.asp-recommendation-header-icon {
    font-size: 18px;
}

.asp-recommendation-header-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image */
.asp-recommendation-image {
    position: relative;
    background: var(--asp-bg-light);
    padding: 20px;
    text-align: center;
}

.asp-recommendation-image img {
    max-height: 180px;
    margin: 0 auto;
    object-fit: contain;
}

.asp-recommendation-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

/* Content */
.asp-recommendation-content {
    padding: 16px;
}

.asp-recommendation-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.asp-recommendation-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--asp-text-dark);
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Personal Comment (Authority) */
.asp-recommendation-comment {
    background: var(--asp-trust-green-light);
    border-left: 3px solid var(--asp-trust-green);
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 13px;
    font-style: italic;
    color: var(--asp-text-medium);
}

.asp-recommendation-comment::before {
    content: """;
    font-size: 24px;
    color: var(--asp-trust-green);
    line-height: 1;
    margin-right: 4px;
}

/* Price */
.asp-recommendation-price {
    margin: 12px 0;
}

/* Trust */
.asp-recommendation-trust {
    border-top: 1px solid var(--asp-border-light);
    padding-top: 12px;
    margin-top: 12px;
}

/* CTA */
.asp-recommendation-cta {
    margin-top: 16px;
}

/* ==========================================================================
   TEMPLATE 2: Compact Inline Box
   Psychologie: Quick Decision, Low Friction
   ========================================================================== */

.asp-box-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--asp-bg-white);
    border: 1px solid var(--asp-border);
    border-radius: var(--asp-radius-md);
    padding: 12px 16px;
    transition: all var(--asp-transition);
}

.asp-box-compact:hover {
    border-color: var(--asp-primary);
    box-shadow: var(--asp-shadow-sm);
}

.asp-compact-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--asp-bg-light);
    border-radius: var(--asp-radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asp-compact-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.asp-compact-content {
    flex: 1;
    min-width: 0;
}

.asp-compact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--asp-text-dark);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asp-compact-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.asp-compact-price {
    flex-shrink: 0;
    text-align: right;
}

.asp-compact-price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--asp-text-dark);
}

.asp-compact-price-original {
    font-size: 12px;
    color: var(--asp-text-light);
    text-decoration: line-through;
}

.asp-compact-cta {
    flex-shrink: 0;
}

.asp-compact-button {
    padding: 8px 16px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    .asp-box-compact {
        flex-wrap: wrap;
    }
    
    .asp-compact-cta {
        width: 100%;
        margin-top: 8px;
    }
    
    .asp-compact-button {
        width: 100%;
    }
}

/* ==========================================================================
   TEMPLATE 3: Product Grid Box
   Psychologie: Comparison, Choice Architecture
   ========================================================================== */

.asp-grid {
    display: grid;
    gap: 20px;
}

.asp-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.asp-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.asp-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .asp-grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .asp-grid-cols-3,
    .asp-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .asp-grid-cols-2,
    .asp-grid-cols-3,
    .asp-grid-cols-4 { grid-template-columns: 1fr; }
}

.asp-box-grid-item {
    background: var(--asp-bg-white);
    border: 1px solid var(--asp-border);
    border-radius: var(--asp-radius-lg);
    overflow: hidden;
    transition: all var(--asp-transition);
    display: flex;
    flex-direction: column;
}

.asp-box-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--asp-shadow-hover);
    border-color: transparent;
}

.asp-grid-image {
    position: relative;
    background: var(--asp-bg-light);
    padding: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asp-grid-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--asp-transition-slow);
}

.asp-box-grid-item:hover .asp-grid-image img {
    transform: scale(1.05);
}

.asp-grid-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.asp-grid-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asp-grid-rating {
    margin-bottom: 6px;
}

.asp-grid-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--asp-text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.asp-grid-title a:hover {
    color: var(--asp-primary);
}

.asp-grid-price {
    margin-bottom: 12px;
}

.asp-grid-price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--asp-text-dark);
}

.asp-grid-price-original {
    font-size: 13px;
    color: var(--asp-text-light);
    text-decoration: line-through;
    margin-left: 6px;
}

.asp-grid-cta {
    margin-top: auto;
}

/* ==========================================================================
   TEMPLATE 4: Deal Box with Timer
   Psychologie: Scarcity, Urgency, FOMO, Loss Aversion
   ========================================================================== */

.asp-box-deal {
    background: var(--asp-bg-white);
    border: 2px solid var(--asp-urgency-red);
    border-radius: var(--asp-radius-lg);
    overflow: hidden;
    box-shadow: var(--asp-shadow-md);
}

/* Deal Header with Countdown */
.asp-deal-header {
    background: linear-gradient(135deg, var(--asp-urgency-red) 0%, #A00A2E 100%);
    color: #FFFFFF;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.asp-deal-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asp-deal-badge::before {
    content: "⚡";
    font-size: 16px;
}

.asp-deal-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.asp-deal-timer::before {
    content: "⏱";
}

.asp-deal-countdown {
    display: flex;
    gap: 4px;
}

.asp-deal-countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: var(--asp-radius-sm);
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
}

/* Deal Body */
.asp-deal-body {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.asp-deal-image {
    flex-shrink: 0;
    width: 150px;
    background: var(--asp-bg-light);
    border-radius: var(--asp-radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asp-deal-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.asp-deal-info {
    flex: 1;
    min-width: 0;
}

.asp-deal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--asp-text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.asp-deal-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

/* Savings Display (Loss Aversion) */
.asp-deal-savings {
    background: var(--asp-urgency-red-light);
    border-radius: var(--asp-radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.asp-deal-savings-badge {
    display: inline-block;
    background: var(--asp-urgency-red);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: var(--asp-radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.asp-deal-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.asp-deal-price-original {
    font-size: 16px;
    color: var(--asp-text-light);
    text-decoration: line-through;
}

.asp-deal-price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--asp-urgency-red);
}

.asp-deal-savings-text {
    font-size: 13px;
    color: var(--asp-urgency-red);
    font-weight: 600;
    margin-top: 4px;
}

/* Deal CTA */
.asp-deal-cta {
    margin-top: 16px;
}

.asp-deal-button {
    background: linear-gradient(180deg, var(--asp-urgency-red) 0%, #A00A2E 100%);
    color: #FFFFFF;
    font-size: 16px;
    padding: 14px 28px;
    animation: asp-pulse 2s infinite;
}

.asp-deal-button:hover {
    background: linear-gradient(180deg, #A00A2E 0%, #800820 100%);
}

@keyframes asp-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(204, 12, 57, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(204, 12, 57, 0);
    }
}

/* Deal Trust */
.asp-deal-trust {
    background: var(--asp-bg-light);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--asp-border-light);
}

/* Responsive */
@media (max-width: 600px) {
    .asp-deal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .asp-deal-image {
        width: 120px;
    }
    
    .asp-deal-rating {
        justify-content: center;
    }
    
    .asp-deal-prices {
        justify-content: center;
    }
    
    .asp-deal-trust {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ==========================================================================
   Countdown Timer (JavaScript-gesteuert)
   ========================================================================== */

.asp-countdown {
    display: flex;
    gap: 8px;
}

.asp-countdown-block {
    text-align: center;
}

.asp-countdown-number {
    display: block;
    background: #FFFFFF;
    color: var(--asp-urgency-red);
    padding: 8px 12px;
    border-radius: var(--asp-radius-sm);
    font-size: 20px;
    font-weight: 700;
    font-family: monospace;
    min-width: 50px;
}

.asp-countdown-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.8;
}

/* Expired State */
.asp-countdown-expired {
    color: var(--asp-text-light);
    font-style: italic;
}

/* ==========================================================================
   Amazon Affiliate Disclaimer
   ========================================================================== */

.asp-disclaimer {
    font-size: 11px;
    color: var(--asp-text-light);
    text-align: center;
    margin-top: 16px;
    padding: 10px;
    background: var(--asp-bg-light);
    border-radius: var(--asp-radius-sm);
}

/* ==========================================================================
   Legacy Styles (Existing Shortcodes Compatibility)
   ========================================================================== */

.affiliate-smash-pro-products {
    display: grid;
    gap: 25px;
}

.affiliate-smash-pro-products[data-columns="1"] {
    grid-template-columns: 1fr;
}

.affiliate-smash-pro-products[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.affiliate-smash-pro-products[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.affiliate-smash-pro-products[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .affiliate-smash-pro-products[data-columns="3"],
    .affiliate-smash-pro-products[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .affiliate-smash-pro-products[data-columns="2"],
    .affiliate-smash-pro-products[data-columns="3"],
    .affiliate-smash-pro-products[data-columns="4"] {
        grid-template-columns: 1fr;
    }
}

/* Card Style */
.affiliate-smash-pro-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-smash-pro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.affiliate-smash-pro-card-image {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.affiliate-smash-pro-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.affiliate-smash-pro-card:hover .affiliate-smash-pro-card-image img {
    transform: scale(1.05);
}

.affiliate-smash-pro-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.affiliate-smash-pro-badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.affiliate-smash-pro-card-content {
    padding: 20px;
}

.affiliate-smash-pro-card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.affiliate-smash-pro-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.affiliate-smash-pro-card-title a:hover {
    color: #667eea;
}

.affiliate-smash-pro-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.affiliate-smash-pro-stars {
    display: flex;
    gap: 2px;
}

.affiliate-smash-pro-stars .star-full {
    color: #ffc107;
}

.affiliate-smash-pro-stars .star-half {
    color: #ffc107;
}

.affiliate-smash-pro-stars .star-empty {
    color: #e5e5e5;
}

.affiliate-smash-pro-review-count {
    font-size: 13px;
    color: #666;
}

.affiliate-smash-pro-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.affiliate-smash-pro-price-current {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.affiliate-smash-pro-price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.affiliate-smash-pro-price-sale {
    font-size: 24px;
    font-weight: 700;
    color: #ee5a5a;
}

.affiliate-smash-pro-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-smash-pro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.affiliate-smash-pro-btn-small {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.affiliate-smash-pro-btn-small:hover {
    transform: translateY(-1px);
}

/* List Style */
.affiliate-smash-pro-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.affiliate-smash-pro-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 15px;
    transition: box-shadow 0.2s ease;
}

.affiliate-smash-pro-list-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.affiliate-smash-pro-list-image {
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.affiliate-smash-pro-list-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.affiliate-smash-pro-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.affiliate-smash-pro-list-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.affiliate-smash-pro-list-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.affiliate-smash-pro-list-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.affiliate-smash-pro-list-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.affiliate-smash-pro-list-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Minimal Style */
.affiliate-smash-pro-item.affiliate-smash-pro-minimal-style {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 16px;
}

.affiliate-smash-pro-minimal-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
}

.affiliate-smash-pro-minimal-link:hover {
    color: #667eea;
}

.affiliate-smash-pro-minimal-price {
    font-weight: 700;
    color: #667eea;
}

/* Featured Style */
.affiliate-smash-pro-card.affiliate-smash-pro-featured-style {
    border: 2px solid #667eea;
    position: relative;
}

.affiliate-smash-pro-featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Slider */
.affiliate-smash-pro-slider {
    position: relative;
}

.affiliate-smash-pro-slider .affiliate-smash-pro-item {
    padding: 0 10px;
}

/* Link */
.affiliate-smash-pro-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.affiliate-smash-pro-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Disclaimer */
.affiliate-smash-pro-disclaimer {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* No products */
.affiliate-smash-pro-no-products {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Card Widget */
.affiliate-smash-pro-card-widget {
    max-width: 400px;
}

/* Grid Widget */
.affiliate-smash-pro-grid {
    display: grid;
    gap: 25px;
}

.affiliate-smash-pro-grid-1 {
    grid-template-columns: 1fr;
}

.affiliate-smash-pro-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.affiliate-smash-pro-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.affiliate-smash-pro-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .affiliate-smash-pro-grid-3,
    .affiliate-smash-pro-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .affiliate-smash-pro-grid-2,
    .affiliate-smash-pro-grid-3,
    .affiliate-smash-pro-grid-4 {
        grid-template-columns: 1fr;
    }
}
