/*
Theme Name: Amazon Influencer Affiliate Theme
Theme URI: https://example.com/amazon-influencer-theme
Author: ChatGPT
Author URI: https://openai.com
Description: A lightweight WordPress theme optimized for Amazon Influencers & Associates, with storefront-style homepage, product boxes, comparison shortcodes, and one-click “Get on Amazon” CTAs.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amazon-influencer
*/

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f7;
    color: #111827;
    line-height: 1.6;
}

a {
    color: #f97316;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: #111827;
    color: #f9fafb;
    padding: 1.5rem 1rem;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title a {
    color: #f9fafb;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: #f97316;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.site-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);
    gap: 2.5rem;
}

@media (max-width: 980px) {
    .site-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

.content-area {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

.widget {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.widget-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.site-footer {
    background: #0b1120;
    color: #9ca3af;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer a {
    color: #e5e7eb;
}

/* Storefront Hero (inspired by Amazon Influencer store) */
.ai-storefront-shell {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.75rem;
}

.ai-storefront-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.ai-storefront-logo {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #fbbf24, #f97316 55%, #7c2d12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fefce8;
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem;
}

.ai-storefront-hero-main {
    flex: 1;
    min-width: 0;
}

.ai-storefront-title {
    margin: 0 0 0.1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.ai-storefront-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    max-width: 640px;
}

.ai-storefront-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.ai-storefront-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ai-storefront-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.ai-pill-btn {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.ai-pill-btn-primary {
    background: #111827;
    border-color: #111827;
    color: #f9fafb;
    font-weight: 600;
}

.ai-pill-btn svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 780px) {
    .ai-storefront-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .ai-storefront-actions {
        margin-left: 0;
    }
}

/* Category carousel row */
.ai-category-row {
    margin-top: 0.5rem;
}

.ai-category-carousel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    scroll-snap-type: x mandatory;
}

.ai-category-card {
    min-width: 120px;
    max-width: 150px;
    background: #ffffff;
    border-radius: 0.9rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 0.45rem;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid #e5e7eb;
}

.ai-category-thumb {
    position: relative;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #fee2e2, #eff6ff);
    overflow: hidden;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-category-count {
    position: absolute;
    bottom: 0.35rem;
    left: 0.35rem;
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.ai-category-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    padding: 0 0.3rem 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabs + search bar */
.ai-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.ai-toolbar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ai-toolbar-tab {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
}

.ai-toolbar-tab.is-active {
    background: #111827;
    color: #f9fafb;
    font-weight: 600;
}

.ai-toolbar-search {
    margin-left: auto;
    flex: 1;
    min-width: 200px;
    max-width: 420px;
}

.ai-search-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.ai-search-form input[type="search"] {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    outline: none;
}

.ai-search-form button {
    border-radius: 999px;
    border: none;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    background: #111827;
    color: #f9fafb;
    font-weight: 500;
}

@media (max-width: 720px) {
    .ai-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ai-toolbar-search {
        margin-left: 0;
        max-width: none;
    }
}

/* Product Card & grids (reusing previous styles) */
.ai-product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.ai-product-card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.25rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.ai-product-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff7ed;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    padding-right: 3rem;
}

.ai-product-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
    flex-wrap: wrap;
}

.ai-product-price {
    font-weight: 700;
    color: #111827;
}

.ai-product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ai-stars {
    color: #facc15;
    font-size: 0.85rem;
}

.ai-product-features {
    margin: 0.25rem 0 0.75rem;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.ai-product-features li {
    margin-bottom: 0.15rem;
}

.ai-product-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
}

.ai-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fefce8;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 18px 35px rgba(248, 113, 113, 0.35);
    transition: transform 0.06s ease, box-shadow 0.06s ease, filter 0.06s ease;
    white-space: nowrap;
}

.ai-btn-primary span {
    margin-left: 0.35rem;
    font-size: 0.9rem;
}

.ai-btn-primary:hover {
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 22px 40px rgba(248, 113, 113, 0.5);
}

.ai-product-disclaimer {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Comparison table */
.ai-comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.ai-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #ffffff;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.ai-comparison-table th,
.ai-comparison-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
}

.ai-comparison-table th:last-child,
.ai-comparison-table td:last-child {
    border-right: none;
}

.ai-comparison-table thead th {
    background: #0f172a;
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Blog cards */
.post-card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.post-card-title {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.post-card-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.post-card-excerpt {
    margin-bottom: 0.75rem;
}

.post-card-readmore {
    font-size: 0.9rem;
    font-weight: 500;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.5rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.page-header {
    margin-bottom: 1.25rem;
}

.page-title {
    margin: 0;
    font-size: 1.5rem;
}

.archive-description {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Storefront sections */
.ai-section {
    margin-top: 1.75rem;
}

.ai-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
}

.ai-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.ai-section-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Collection / idea list cards */
.ai-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.ai-collection-card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 0.9rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-collection-main {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ai-collection-thumb {
    width: 72px;
    height: 72px;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #eff6ff, #fef9c3);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-collection-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-collection-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.ai-collection-count {
    font-size: 0.8rem;
    color: #6b7280;
}

.ai-collection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.ai-collection-footer a {
    font-weight: 600;
    font-size: 0.8rem;
}

    
    /* List-style single page (category / collection) */
    .ai-list-storebar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 0 0.75rem;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 1.25rem;
    }
    .ai-list-storebar-left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .ai-list-logo {
        width: 52px;
        height: 52px;
        border-radius: 999px;
        background: radial-gradient(circle at 30% 20%, #fbbf24, #f97316 55%, #7c2d12 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fefce8;
        font-weight: 800;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        text-align: center;
        padding: 0.25rem;
    }
    .ai-list-store-text strong {
        display: block;
        font-size: 0.9rem;
    }
    .ai-list-store-text span {
        font-size: 0.8rem;
        color: #6b7280;
    }
    .ai-list-follow-btn {
        border-radius: 999px;
        padding: 0.4rem 1.1rem;
        background: #10b981;
        border: none;
        color: #ecfdf5;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
    }
    
    .ai-list-hero {
        text-align: center;
        margin-bottom: 1.25rem;
    }
    .ai-list-hero h1 {
        margin: 0 0 0.35rem;
        font-size: 1.45rem;
    }
    .ai-list-meta {
        font-size: 0.8rem;
        color: #6b7280;
        margin-bottom: 0.5rem;
    }
    .ai-list-description {
        font-size: 0.9rem;
        color: #4b5563;
        max-width: 720px;
        margin: 0 auto;
    }
    
    /* Product cards for list page */
    .ai-grid-product-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    .ai-grid-card {
        background: #ffffff;
        border-radius: 0.9rem;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
        border: 1px solid #e5e7eb;
        padding: 0.85rem 0.85rem 1rem;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    .ai-grid-thumb-wrap {
        border-radius: 0.8rem;
        overflow: hidden;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 170px;
        margin-bottom: 0.65rem;
    }
    .ai-grid-thumb-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .ai-grid-badge {
        position: absolute;
        top: 0.75rem;
        left: 0.85rem;
        background: #f97316;
        color: #fff7ed;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.2rem 0.5rem;
        border-radius: 999px;
    }
    .ai-grid-deal-pill {
        display: inline-block;
        background: #b91c1c;
        color: #fee2e2;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.15rem 0.45rem;
        border-radius: 999px;
        margin-right: 0.35rem;
    }
    .ai-grid-discount-text {
        font-size: 0.7rem;
        font-weight: 600;
        color: #b91c1c;
    }
    .ai-grid-title {
        margin: 0 0 0.3rem;
        font-size: 0.9rem;
        font-weight: 700;
    }
    .ai-grid-price-block {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    .ai-grid-price-main {
        display: flex;
        align-items: baseline;
        gap: 0.35rem;
    }
    .ai-price-current {
        font-weight: 700;
        font-size: 1rem;
    }
    .ai-price-list {
        text-decoration: line-through;
        color: #9ca3af;
        font-size: 0.8rem;
    }
    .ai-grid-shipping {
        font-size: 0.75rem;
        color: #6b7280;
        margin-bottom: 0.6rem;
    }
    .ai-grid-button-wrap {
        margin-top: auto;
        display: flex;
        justify-content: center;
    }
    .ai-grid-button {
        border-radius: 999px;
        padding: 0.55rem 1.4rem;
        border: 1px solid #d1d5db;
        background: #f9fafb;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
    }
    .ai-grid-button:hover {
        background: #e5e7eb;
    }
