/**
 * GAS Product Widget Styles
 * Uses design tokens from gas-design-tokens.css
 */

/* =============================================
   Base / Shared
   ============================================= */

.gas-shop-widget-container {
    background: var(--gas-bg-surface, #fff);
    border: var(--gas-border-width, 1px) solid var(--gas-border-color, #ddd);
    border-radius: var(--gas-radius-m, 8px);
    overflow: hidden;
    box-shadow: var(--gas-shadow-s);
    font-family: var(--gas-font-family, sans-serif);
}

.gas-shop-widget-centered {
    margin-left: auto;
    margin-right: auto;
}

.gas-shop-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gas-shop-widget-title {
    margin: 0 0 var(--gas-space-s, 8px) 0;
    font-weight: var(--gas-weight-bold, 700);
    line-height: var(--gas-leading-tight, 1.25);
}

.gas-shop-widget-title a {
    color: var(--gas-primary, #004253);
    text-decoration: none;
}

.gas-shop-widget-title a:hover {
    color: var(--gas-primary-dark);
    text-decoration: underline;
}

.gas-shop-widget-description {
    color: var(--gas-neutral-600, #555);
    line-height: var(--gas-leading-normal, 1.5);
    margin-bottom: var(--gas-space-m, 16px);
}

.gas-shop-widget-actions {
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-s, 8px);
}

.gas-shop-widget-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-weight: var(--gas-weight-semi, 600);
    border-radius: var(--gas-radius-s, 4px);
    transition: all var(--gas-transition-normal, 0.15s ease);
    border: none;
    cursor: pointer;
    line-height: var(--gas-leading-normal, 1.5);
}

.gas-shop-widget-btn-primary {
    background: var(--gas-primary, #004253);
    color: var(--gas-text-color-inverse, #fff);
    padding: var(--gas-space-s, 8px) var(--gas-space-m, 16px);
    font-size: var(--gas-text-s);
}

.gas-shop-widget-btn-primary:hover {
    background: var(--gas-primary-dark);
    transform: translateY(-1px);
    color: var(--gas-text-color-inverse, #fff);
}

.gas-shop-widget-btn-secondary {
    background: var(--gas-bg-surface, #fff);
    color: var(--gas-primary, #004253);
    border: 2px solid var(--gas-primary, #004253);
    padding: var(--gas-space-s, 8px) var(--gas-space-m, 16px);
    font-size: var(--gas-text-s);
}

.gas-shop-widget-btn-secondary:hover {
    background: var(--gas-primary-ultra-light);
}

.gas-shop-widget-link {
    color: var(--gas-text-color-link, #004253);
    text-decoration: underline;
    font-size: var(--gas-text-s);
}

.gas-shop-widget-link:hover {
    color: var(--gas-text-color-link-hover);
}

.gas-shop-error {
    color: var(--gas-danger, #c33);
    padding: var(--gas-space-m, 16px);
    background: var(--gas-danger-light, #fde8e8);
    border: 1px solid var(--gas-danger-border, #f5c6c6);
    border-radius: var(--gas-radius-s, 4px);
}

.gas-shop-notice {
    padding: var(--gas-space-m, 16px);
    background: var(--gas-warning-light, #fff8e1);
    border: 1px solid var(--gas-warning, #f0ad4e);
    border-radius: var(--gas-radius-s, 4px);
    color: var(--gas-warning-text, #664d03);
}

/* =============================================
   Variants List (shared across styles)
   ============================================= */

.gas-shop-widget-variants-list {
    margin: var(--gas-space-s, 8px) 0 var(--gas-space-m, 16px) 0;
}

.gas-shop-widget-variants-title {
    font-size: var(--gas-text-s);
    font-weight: var(--gas-weight-semi, 600);
    margin: 0 0 var(--gas-space-s, 8px) 0;
    color: var(--gas-neutral-700);
}

.gas-shop-widget-variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gas-space-xs, 4px) 0;
    border-bottom: 1px solid var(--gas-neutral-200);
}

.gas-shop-widget-variant-item:last-child {
    border-bottom: none;
}

.gas-shop-widget-variant-info {
    display: flex;
    align-items: center;
    gap: var(--gas-space-s, 8px);
}

.gas-shop-widget-variant-icon {
    font-size: var(--gas-text-m);
}

.gas-shop-widget-variant-name {
    font-size: var(--gas-text-s);
    color: var(--gas-text-color);
}

.gas-shop-widget-variant-price {
    text-align: right;
}

.gas-shop-widget-price-display {
    display: flex;
    align-items: baseline;
    gap: var(--gas-space-s, 8px);
    flex-wrap: wrap;
}

.gas-shop-widget-price-current-amount {
    font-size: var(--gas-text-l);
    font-weight: var(--gas-weight-bold, 700);
    color: var(--gas-primary, #004253);
}

.gas-shop-widget-price-free-amount {
    font-size: var(--gas-text-l);
    font-weight: var(--gas-weight-bold, 700);
    color: var(--gas-success, #28a745);
}

.gas-shop-widget-price-original {
    font-size: var(--gas-text-s);
    color: var(--gas-neutral-500);
}

.gas-shop-widget-pricing-badge {
    margin-top: var(--gas-space-xs, 4px);
}

.gas-shop-widget-pricing-badge-item {
    display: inline-block;
    font-size: var(--gas-text-xs);
    font-weight: var(--gas-weight-semi, 600);
    padding: 2px var(--gas-space-s, 8px);
    border-radius: var(--gas-radius-full, 9999px);
}

.gas-shop-widget-pricing-badge-hypnopass {
    background: var(--gas-accent-ultra-light);
    color: var(--gas-accent-dark);
}

.gas-shop-widget-pricing-badge-membre {
    background: var(--gas-primary-ultra-light);
    color: var(--gas-primary-dark);
}

.gas-shop-widget-price-section {
    margin-bottom: var(--gas-space-m, 16px);
}


/* =============================================
   Style: Default
   ============================================= */

.gas-shop-widget--default {
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

.gas-shop-widget--default .gas-shop-widget-image {
    height: 200px;
    overflow: hidden;
}

.gas-shop-widget--default .gas-shop-widget-content {
    padding: var(--gas-space-l, 20px);
}


/* =============================================
   Style: Compact
   ============================================= */

.gas-shop-widget--compact {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: var(--gas-space-l, 20px);
    max-width: 700px;
    min-height: 120px;
}

.gas-shop-widget--compact .gas-shop-widget-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: var(--gas-space-l, 20px);
    border-radius: var(--gas-radius-m, 8px);
    overflow: hidden;
}

.gas-shop-widget--compact .gas-shop-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gas-shop-widget--compact .gas-shop-widget-title {
    font-size: var(--gas-text-l);
    margin-bottom: var(--gas-space-s, 8px);
}

.gas-shop-widget--compact .gas-shop-widget-price-section {
    margin-bottom: var(--gas-space-s, 10px);
}

.gas-shop-widget--compact .gas-shop-widget-description {
    font-size: var(--gas-text-s);
    line-height: 1.4;
    margin-bottom: var(--gas-space-m, 15px);
    flex: 1;
}

.gas-shop-widget--compact .gas-shop-widget-actions {
    margin-top: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--gas-space-s, 12px);
    justify-content: center;
}

.gas-shop-widget--compact .gas-shop-widget-btn,
.gas-shop-widget--compact .gas-shop-widget-btn-add-to-cart {
    padding: var(--gas-space-s, 10px) var(--gas-space-l, 20px);
    font-size: var(--gas-text-s);
    font-weight: var(--gas-weight-semi, 600);
    white-space: nowrap;
    flex-shrink: 0;
}

.gas-shop-widget--compact .gas-shop-widget-link {
    font-size: var(--gas-text-s);
    padding: 0;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gas-shop-widget--compact {
        flex-direction: column;
        text-align: center;
        padding: var(--gas-space-l, 20px);
    }

    .gas-shop-widget--compact .gas-shop-widget-image {
        width: 150px;
        height: 150px;
        margin: 0 auto var(--gas-space-m, 15px) auto;
    }

    .gas-shop-widget--compact .gas-shop-widget-content {
        align-items: center;
        text-align: center;
    }

    .gas-shop-widget--compact .gas-shop-widget-actions {
        flex-direction: column;
        gap: var(--gas-space-s, 10px);
        align-items: stretch;
        justify-content: center;
    }

    .gas-shop-widget--compact .gas-shop-widget-btn,
    .gas-shop-widget--compact .gas-shop-widget-btn-add-to-cart {
        width: 100%;
    }
}


/* =============================================
   Style: Sidebar
   ============================================= */

.gas-shop-widget--sidebar {
    display: flex;
    flex-direction: row;
    min-height: 300px;
    max-width: 800px;
    overflow: hidden;
}

.gas-shop-widget--sidebar .gas-shop-widget-image {
    flex: 0 0 40%;
    min-height: 300px;
    overflow: hidden;
    position: relative;
}

.gas-shop-widget--sidebar .gas-shop-widget-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gas-shop-widget--sidebar .gas-shop-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--gas-space-xl, 30px);
    justify-content: space-between;
}

.gas-shop-widget--sidebar .gas-shop-widget-title {
    font-size: var(--gas-text-l);
    margin-bottom: var(--gas-space-m, 15px);
    line-height: var(--gas-leading-tight, 1.3);
}

.gas-shop-widget--sidebar .gas-shop-widget-price-section {
    margin-bottom: var(--gas-space-l, 20px);
}

.gas-shop-widget--sidebar .gas-shop-widget-description {
    font-size: var(--gas-text-s);
    line-height: 1.6;
    margin-bottom: var(--gas-space-l, 25px);
    color: var(--gas-neutral-600, #555);
}

.gas-shop-widget--sidebar .gas-shop-widget-actions {
    margin-top: auto;
    padding-top: var(--gas-space-l, 20px);
    border-top: 1px solid var(--gas-neutral-200, #e9ecef);
}

.gas-shop-widget--sidebar .gas-shop-widget-btn,
.gas-shop-widget--sidebar .gas-shop-widget-btn-add-to-cart {
    width: 100%;
    padding: var(--gas-space-m, 15px) var(--gas-space-xl, 30px);
    font-size: var(--gas-text-s);
    margin-bottom: var(--gas-space-s, 10px);
}

.gas-shop-widget--sidebar .gas-shop-widget-link {
    text-align: center;
    font-size: var(--gas-text-s);
}

@media (max-width: 768px) {
    .gas-shop-widget--sidebar {
        flex-direction: column;
        min-height: auto;
    }

    .gas-shop-widget--sidebar .gas-shop-widget-image {
        flex: none;
        height: 200px;
        min-height: 200px;
    }

    .gas-shop-widget--sidebar .gas-shop-widget-content {
        padding: var(--gas-space-l, 20px);
    }

    .gas-shop-widget--sidebar .gas-shop-widget-title {
        font-size: var(--gas-text-l);
    }

    .gas-shop-widget--sidebar .gas-shop-widget-price-section {
        margin-bottom: var(--gas-space-m, 15px);
    }

    .gas-shop-widget--sidebar .gas-shop-widget-description {
        margin-bottom: var(--gas-space-l, 20px);
    }
}

@media (max-width: 480px) {
    .gas-shop-widget--sidebar .gas-shop-widget-content {
        padding: var(--gas-space-m, 15px);
    }

    .gas-shop-widget--sidebar .gas-shop-widget-btn,
    .gas-shop-widget--sidebar .gas-shop-widget-btn-add-to-cart {
        padding: var(--gas-space-s, 12px) var(--gas-space-l, 20px);
        font-size: var(--gas-text-s);
    }
}