/* Amazon Image Gallery - Modern 2026 Design */

/* =============================================
   MAIN CONTAINER
   ============================================= */
.amz-gallery-box {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =============================================
   HEADER
   ============================================= */
.amz-gallery-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.amz-gallery-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Image Count Badge */
.amz-gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.amz-gallery-badge svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

/* =============================================
   GALLERY CONTENT
   ============================================= */
.amz-gallery-content {
    padding: 1.25rem;
    background: #f9fafb;
}

.amz-gallery-box .Sirv {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.amz-img-gallery {
    display: block;
    width: 70% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* =============================================
   CAPTION & PRICE SECTION
   ============================================= */
.amz-gallery-footer {
    padding: 1.25rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.amz-gallery-caption {
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 1rem 0;
    font-style: normal;
}

.amz-gallery-caption a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.amz-gallery-caption a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* =============================================
   CTA SECTION
   ============================================= */
.amz-gallery-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 10px;
    border: 1px solid #fde68a;
}

/* Price Display */
.amz-gallery-price-display {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.amz-gallery-price-label {
    color: #78350f;
    font-weight: 500;
}

.amz-gallery-price-value {
    color: #92400e;
    font-size: 1.125rem;
    font-weight: 700;
}

/* CTA Button */
.amz-gallery-cta-button,
.amz-gallery-cta-button:link,
.amz-gallery-cta-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 0.875rem;
    text-decoration: none !important;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow:
        0 2px 4px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-bottom: none !important;
}

.amz-gallery-cta-button:hover,
.amz-gallery-cta-button:active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow:
        0 4px 8px rgba(245, 158, 11, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-bottom: none !important;
}

.amz-gallery-cta-button svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.amz-gallery-cta-button:hover svg {
    transform: translateX(2px);
}

/* Trust Line */
.amz-gallery-trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: #059669;
    font-weight: 500;
}

.amz-gallery-trust-line svg {
    flex-shrink: 0;
    color: #10b981;
    width: 11px;
    height: 11px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .amz-gallery-box {
        margin: 1.5rem 0;
        border-radius: 12px;
    }

    .amz-gallery-header {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .amz-gallery-title {
        font-size: 0.9375rem;
    }

    .amz-gallery-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .amz-gallery-content {
        padding: 1rem;
    }

    .amz-img-gallery {
        width: 100% !important;
        max-width: 100%;
    }

    .amz-gallery-footer {
        padding: 1rem;
    }

    .amz-gallery-caption {
        font-size: 0.8125rem;
    }

    .amz-gallery-cta-wrapper {
        padding: 0.875rem;
    }

    .amz-gallery-price-value {
        font-size: 1rem;
    }

    .amz-gallery-cta-button {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .amz-gallery-header {
        padding: 0.75rem 1rem;
    }

    .amz-gallery-content {
        padding: 0.75rem;
    }

    .amz-gallery-box .Sirv {
        border-radius: 8px;
    }

    .amz-gallery-footer {
        padding: 0.875rem;
    }

    .amz-gallery-cta-wrapper {
        padding: 0.75rem;
        gap: 0.375rem;
    }
}
