/* AMZ Affiliate Studio - High Converting Product Box & Comparison Styling */

.amz-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px;
    margin: 32px 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.25s ease;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.amz-product-card *,
.amz-product-card *::before,
.amz-product-card *::after {
    box-sizing: border-box;
}

.amz-product-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.amz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    flex-wrap: wrap;
    gap: 10px;
}

.amz-badge-prime {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 14px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
    display: inline-block;
    line-height: 1.4;
}

.amz-rating-stars {
    font-size: 14px;
    font-weight: 700;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.amz-rating-stars small {
    color: #64748b;
    font-weight: 500;
    font-size: 12px;
    margin-left: 4px;
}

.amz-card-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.amz-card-image {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    box-sizing: border-box;
}

.amz-card-image a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.amz-card-image img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.amz-card-image img:hover {
    transform: scale(1.04);
}

.amz-card-details {
    min-width: 0;
    width: 100%;
}

.amz-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 12px 0;
    color: #0f172a;
    text-transform: none;
    letter-spacing: -0.01em;
    word-break: break-word;
    overflow-wrap: break-word;
}

.amz-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.amz-card-title a:hover {
    color: #2563eb;
}

.amz-price-box {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 8px;
    width: fit-content;
    max-width: 100%;
}

.amz-price-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.amz-price-amount {
    font-size: 22px;
    font-weight: 800;
    color: #15803d;
}

.amz-price-note {
    font-size: 11px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

.amz-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.amz-feature-list li {
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.amz-check-icon {
    background: #dcfce7;
    color: #16a34a;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.amz-feature-text {
    color: #334155;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.amz-card-cta {
    margin-top: 4px;
}

.amz-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #ff9900 0%, #e68a00 100%);
    color: #111827 !important;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.35);
    transition: all 0.2s ease;
    border: 1px solid #d97706;
}

.amz-btn-primary:hover {
    background: linear-gradient(180deg, #ffad33 0%, #ff9900 100%);
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.45);
    transform: translateY(-1px);
}

/* Mobile Responsive Optimization for AMZ Product Card */
@media screen and (max-width: 768px) {
    .amz-product-card {
        padding: 16px 14px !important;
        margin: 20px 0 !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    }

    .amz-card-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 14px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .amz-badge-prime {
        font-size: 10px !important;
        padding: 4px 10px !important;
        letter-spacing: 0.4px !important;
    }

    .amz-rating-stars {
        font-size: 13px !important;
    }

    .amz-rating-stars small {
        font-size: 11px !important;
    }

    .amz-card-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .amz-card-image {
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 auto 2px auto !important;
        min-height: 140px !important;
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .amz-card-image img {
        max-height: 170px !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .amz-card-details {
        width: 100% !important;
        min-width: 0 !important;
    }

    .amz-card-title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin: 0 0 10px 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .amz-price-box {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 14px !important;
        padding: 6px 12px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .amz-price-label {
        font-size: 12px !important;
    }

    .amz-price-amount {
        font-size: 20px !important;
    }

    .amz-price-note {
        font-size: 10.5px !important;
        padding: 2px 7px !important;
    }

    .amz-feature-list {
        margin: 0 0 16px 0 !important;
        padding: 0 !important;
    }

    .amz-feature-list li {
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin-bottom: 8px !important;
        gap: 8px !important;
    }

    .amz-check-icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        font-size: 11px !important;
        margin-top: 2px !important;
    }

    .amz-feature-text {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .amz-card-cta {
        width: 100% !important;
        margin-top: 6px !important;
    }

    .amz-card-cta .amz-btn-primary {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 13px 20px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
}

.amz-btn-sm {
    display: inline-block;
    background: #ff9900;
    color: #111827 !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.amz-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    color: #fbbf24 !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    margin: 4px 0;
    transition: background 0.2s ease;
}

.amz-badge-btn:hover {
    background: #0f172a;
}

/* Comparison Table */
.amz-comparison-wrapper {
    overflow-x: auto;
    margin: 24px 0;
}

.amz-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.amz-comparison-table th {
    background: #0f172a;
    color: #ffffff;
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
}

.amz-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.amz-comp-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FAQ Accordion Styling */
.amz-faq-accordion {
    margin: 28px 0;
}

.amz-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.amz-faq-item[open] {
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.amz-faq-item summary {
    padding: 16px 20px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    font-size: 15px;
    outline: none;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amz-faq-item summary::-webkit-details-marker,
.amz-faq-item summary::marker {
    display: none;
    content: "";
}

.amz-faq-item summary::after {
    content: "▼";
    font-size: 11px;
    color: #64748b;
    transition: transform 0.2s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.amz-faq-item[open] summary::after {
    transform: rotate(180deg);
    color: #0284c7;
}

.amz-faq-answer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    color: #334155;
    line-height: 1.65;
    font-size: 14px;
}

.amz-faq-item summary p,
.amz-faq-answer p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

/* Trust Badge Bar & Hero Verdict Card */
.amz-trust-badge-bar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.2px;
}

.amz-hero-verdict-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amz-hero-verdict-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15,23,42,0.22);
}

/* Pros & Cons Side-by-Side Responsive Grid */
.amz-pro-con-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.amz-pro-box, .amz-con-box {
    transition: all 0.2s ease;
}

.amz-pro-box:hover {
    border-color: #86efac;
    box-shadow: 0 4px 16px rgba(22,163,74,0.1);
}

.amz-con-box:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 16px rgba(220,38,38,0.1);
}

/* Full Review Headings & Styling */
.amz-full-review-box h2 {
    font-size: 1.45em;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.amz-full-review-box h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

.amz-full-review-box p {
    font-size: 1.02em;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.2em;
}

/* Sticky Bottom Floating Bar */
.amz-sticky-bar {
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .amz-sticky-bar {
        padding: 10px 14px;
        bottom: 8px;
    }
}

/* Product Specifications & Competitor Comparison Table Styles */
.amz-specs-wrapper, .amz-comparison-wrapper {
    width: 100%;
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.amz-specs-table, .amz-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.amz-specs-table th, .amz-comparison-table th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    font-weight: 800;
    padding: 12px 16px;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.amz-specs-table td, .amz-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.amz-specs-table tr:hover, .amz-comparison-table tr:hover {
    background-color: #f8fafc;
}

.amz-comparison-table th.amz-highlight-col {
    background: #0284c7;
    color: #ffffff;
}

@media (max-width: 768px) {
    .amz-specs-table th, .amz-specs-table td,
    .amz-comparison-table th, .amz-comparison-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
