.affc-shell{background:#f8fafc;color:#0f172a;padding-bottom:56px}.affc-container{max-width:1180px;margin:0 auto;padding:0 20px}@media (max-width:1200px){.affc-container{max-width:100%;padding:0 16px}}@media (max-width:768px){.affc-container{padding:0 12px}}@media (max-width:480px){.affc-container{padding:0 10px}}.affc-hero{padding:64px 0 28px;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)}.affc-hero h1{font-size:42px;line-height:1.08;margin:8px 0 12px}.affc-hero p{max-width:760px;color:#475569;font-size:17px}.affc-eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#0f766e;font-weight:700}.affc-tax-nav{padding:0 0 24px}.affc-chip-row{display:flex;flex-wrap:wrap;gap:10px}.affc-chip{display:inline-flex;padding:10px 14px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#0f172a;text-decoration:none}.affc-chip.active,.affc-chip:hover{border-color:#0f766e;color:#0f766e}.affc-store-grid{padding-top:10px}.affc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}@media (max-width:1200px){.affc-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}}@media (max-width:768px){.affc-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}}@media (max-width:480px){.affc-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}}@media (max-width:380px){.affc-grid{grid-template-columns:1fr;gap:10px}}.affc-card{display:flex;flex-direction:column;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.05);height:100%}@media (max-width:768px){.affc-card{border-radius:14px}}@media (max-width:480px){.affc-card{border-radius:12px}}.affc-thumb{display:block;background:#e2e8f0;aspect-ratio:4/5;overflow:hidden}.affc-thumb img{width:100%;height:100%;object-fit:cover;display:block}.affc-placeholder{height:100%;display:grid;place-items:center;color:#64748b}.affc-card-body{padding:18px}.affc-topline{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.affc-badge,.affc-merchant{display:inline-flex;font-size:12px;line-height:1;padding:7px 10px;border-radius:999px}.affc-badge{background:#ccfbf1;color:#115e59}.affc-merchant{background:#e2e8f0;color:#334155}.affc-title{font-size:20px;line-height:1.25;margin:0 0 10px}.affc-title a{color:#0f172a;text-decoration:none}.affc-excerpt{font-size:14px;color:#64748b;margin-bottom:12px}.affc-price{font-weight:800;font-size:18px;margin-bottom:14px}.affc-price-large{font-size:28px}.affc-actions{margin-top:auto}.affc-button{display:inline-flex;align-items:center;justify-content:center;background:#0f172a;color:#fff;text-decoration:none;padding:12px 16px;border-radius:12px;font-weight:700}.affc-button:hover{background:#111827;color:#fff}.affc-button-large{padding:14px 18px}.affc-disclosure{font-size:12px;color:#64748b;margin-top:12px;line-height:1.5}.affc-single{display:grid;grid-template-columns:minmax(280px,480px) 1fr;gap:36px;padding-top:40px}.affc-single-media img{width:100%;border-radius:20px}.affc-single-content h1{font-size:40px;line-height:1.08;margin:12px 0 12px}.affc-content-body{color:#334155;margin-bottom:20px}.affc-pagination{margin-top:28px}.affc-pagination .nav-links{display:flex;gap:10px;flex-wrap:wrap}.affc-pagination a,.affc-pagination span{padding:8px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;text-decoration:none}@media (max-width:800px){.affc-hero h1,.affc-single-content h1{font-size:32px}.affc-single{grid-template-columns:1fr}}

.affc-bottom-banner{margin-top:48px;padding:0 16px 32px}.affc-bottom-banner-wrap{max-width:1200px;margin:0 auto}.affc-bottom-banner-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-radius:16px;background:#111827;color:#fff;flex-wrap:wrap}.affc-bottom-banner-inner strong{font-size:18px}.affc-bottom-banner-inner span{opacity:.92;flex:1 1 320px}.affc-bottom-banner-inner a{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;background:#fff;color:#111827;text-decoration:none;font-weight:600}.affc-bottom-banner-inner a:hover{opacity:.92}@media (max-width:768px){.affc-bottom-banner-inner{align-items:flex-start}.affc-bottom-banner-inner a{width:100%}}

.affc-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.affc-price-block{display:flex;flex-direction:column;gap:6px;margin:10px 0 14px}.affc-price-old-wrap{display:flex;align-items:center;gap:8px}.affc-price-old{color:#b91c1c;text-decoration:line-through;text-decoration-color:#b91c1c;text-decoration-thickness:2px;text-decoration-skip-ink:none;font-size:1rem;font-weight:600}.affc-price-current{font-size:2.15rem;font-weight:800;line-height:1;color:#15803d;letter-spacing:-0.02em}.affc-price-large-wrap .affc-price-current{font-size:3rem}.affc-price-large-wrap .affc-price-old{font-size:1.125rem}@media (max-width:767px){.affc-price-current{font-size:1.85rem}.affc-price-large-wrap .affc-price-current{font-size:2.4rem}}

.affc-sale-row{display:flex;align-items:center;gap:8px}.affc-sale-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;background:#dcfce7;color:#166534;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.02em}

.affc-actions-with-seal{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.affc-actions-single{margin-top:18px}.affc-disclosure-seal{position:relative;display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:999px;border:2px solid #111827;background:#fff;color:#111827;font-weight:900;letter-spacing:.08em;cursor:help;flex:0 0 54px}.affc-disclosure-seal-text{font-size:.8rem;line-height:1}.affc-disclosure-tooltip{position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);min-width:260px;max-width:320px;padding:10px 12px;border-radius:12px;background:#111827;color:#fff;font-size:.82rem;line-height:1.45;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;visibility:hidden;pointer-events:none;transition:all .18s ease}.affc-disclosure-seal:hover .affc-disclosure-tooltip,.affc-disclosure-seal:focus .affc-disclosure-tooltip,.affc-disclosure-seal:focus-within .affc-disclosure-tooltip{opacity:1;visibility:visible}.affc-disclosure-tooltip:before{content:'';position:absolute;left:-6px;top:50%;transform:translateY(-50%) rotate(45deg);width:12px;height:12px;background:#111827}.affc-disclosure{margin-top:10px;font-size:.85rem;color:#4b5563}.affc-button-large{padding:16px 24px;font-size:1rem}@media (max-width:767px){.affc-price-current{font-size:2.6rem!important}.affc-price-large-wrap .affc-price-current{font-size:3.2rem!important}.affc-disclosure-tooltip{left:0;top:calc(100% + 10px);transform:none}.affc-disclosure-tooltip:before{left:20px;top:-6px;transform:rotate(45deg)}}

.affc-savings{color:#166534;font-weight:700;font-size:.9rem}.affc-trust-microcopy{margin:10px 0 0;color:#4b5563;font-size:.88rem;line-height:1.45}.affc-merchant-logo{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:#fff;border:1px solid #e5e7eb;overflow:hidden}.affc-merchant-logo img{width:100%;height:100%;object-fit:contain}.affc-merchant-line-wrap{display:flex;align-items:center;gap:10px;margin-bottom:10px}.single-aff_catalog_item .affc-product-layout{align-items:start}.single-aff_catalog_item .affc-single-buy-box{position:sticky;top:24px;border:1px solid #e5e7eb;border-radius:18px;padding:24px;background:#fff;box-shadow:0 18px 40px rgba(17,24,39,.08)}.single-aff_catalog_item .affc-actions-single{margin-top:18px}.single-aff_catalog_item .affc-disclosure{margin-top:10px}.single-aff_catalog_item .affc-price-large-wrap .affc-price-current{font-size:4.8rem!important}.single-aff_catalog_item .affc-price-large-wrap .affc-price-old{font-size:1.2rem}@media (max-width:991px){.single-aff_catalog_item .affc-single-buy-box{position:static;padding:20px}.single-aff_catalog_item .affc-price-large-wrap .affc-price-current{font-size:3.4rem!important}}

.affc-single-layout{display:grid;grid-template-columns:1.2fr 0.8fr;gap:36px;align-items:start;max-width:1200px;margin:0 auto}.affc-single-media{grid-column:1;grid-row:1}.affc-single-buy-box{grid-column:2;grid-row:1;position:sticky;top:24px;border:1px solid #e5e7eb;border-radius:20px;padding:28px;background:#fff;box-shadow:0 18px 40px rgba(17,24,39,.08)}.affc-single-description{grid-column:1;grid-row:2}.affc-single-buy-box h1{font-size:2rem;line-height:1.05;margin:0 0 14px}.affc-single-buy-box .affc-merchant{font-size:.95rem;font-weight:700;color:#374151}.affc-single-buy-box .affc-button-large{width:100%;justify-content:center;display:inline-flex}.affc-single-buy-box .affc-disclosure{margin-top:12px}.affc-single-buy-box .affc-price-large-wrap .affc-price-current{font-size:5.2rem!important}.affc-single-buy-box .affc-price-large-wrap .affc-price-old{font-size:1.25rem}.affc-single-buy-box .affc-sale-row{gap:10px;flex-wrap:wrap}.affc-single-description{font-size:1rem;line-height:1.75}.affc-single-description > * + *{margin-top:1em}@media (max-width:1200px){.affc-single-layout{max-width:100%;padding:0 20px}}@media (max-width:991px){.affc-single-layout{grid-template-columns:1fr;gap:22px}.affc-single-media,.affc-single-buy-box,.affc-single-description{grid-column:auto;grid-row:auto}.affc-single-buy-box{position:static;padding:22px}.affc-single-buy-box .affc-price-large-wrap .affc-price-current{font-size:3.6rem!important}}@media (max-width:768px){.affc-single-layout{gap:18px}.affc-single-buy-box{padding:18px}.affc-single-buy-box h1{font-size:1.5rem}.affc-single-buy-box .affc-price-large-wrap .affc-price-current{font-size:2.8rem!important}.affc-single-buy-box .affc-price-large-wrap .affc-price-old{font-size:1rem}.affc-single-description{font-size:.95rem}}@media (max-width:480px){.affc-single-layout{gap:16px}.affc-single-buy-box{padding:16px}.affc-single-buy-box h1{font-size:1.25rem}.affc-single-buy-box .affc-price-large-wrap .affc-price-current{font-size:2.2rem!important}.affc-single-buy-box .affc-price-large-wrap .affc-price-old{font-size:.9rem}.affc-single-description{font-size:.9rem}}

.affc-card .affc-topline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.affc-card .affc-merchant{font-size:.82rem;color:#6b7280;font-weight:600}.affc-card .affc-price-block{margin:12px 0 14px;padding:0}.affc-price-main-row{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.affc-price-side-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.affc-card .affc-price-current{font-size:2.8rem!important}.affc-card .affc-price-old{font-size:.95rem}.affc-card .affc-sale-row{justify-content:flex-end;flex-wrap:wrap;gap:6px}.affc-card .affc-sale-badge{padding:3px 8px;font-size:.72rem}.affc-card .affc-savings{font-size:.82rem;white-space:nowrap}.affc-card .affc-trust-microcopy{font-size:.8rem;margin-top:8px;max-width:none}.affc-card .affc-disclosure{font-size:.78rem;line-height:1.45;margin-top:10px;color:#6b7280}.affc-card .affc-merchant-logo{width:24px;height:24px}.affc-single-buy-box .affc-price-main-row{align-items:flex-end}.affc-single-buy-box .affc-price-side-meta{align-items:flex-end}.affc-single-buy-box .affc-sale-row{justify-content:flex-end}@media (max-width:767px){.affc-price-main-row{align-items:flex-start;flex-direction:column}.affc-price-side-meta{align-items:flex-start}.affc-card .affc-price-current{font-size:2.35rem!important}.affc-single-buy-box .affc-price-large-wrap .affc-price-current{font-size:3.8rem!important}}

/* Price Drop Alert */
.affc-price-alert{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:14px;padding:18px 20px;margin-top:20px}.affc-price-alert h4{margin:0 0 6px;font-size:15px;color:#14532d}.affc-price-alert-desc{margin:0 0 12px;font-size:13px;color:#166534}.affc-price-alert-form{display:flex;gap:10px;flex-wrap:wrap}.affc-price-alert-form input[type="email"]{flex:1;min-width:200px;padding:8px 12px;border:1px solid #86efac;border-radius:8px;font-size:14px}.affc-price-alert-form button{white-space:nowrap;padding:8px 16px;border-radius:8px;background:#15803d;color:#fff;border:none;cursor:pointer;font-size:14px}.affc-price-alert-form button:hover{background:#166534}.affc-price-alert-msg{margin:10px 0 0;font-size:13px;min-height:18px}.affc-price-alert-msg--success{color:#15803d}.affc-price-alert-msg--error{color:#b42318}

/* Walmart-style Single Page Layout */
.affc-shell-walmart {
    background: #f5f5f5 !important;
    color: #1d1d1f !important;
}

/* Header */
.affc-walmart-header {
    background: #0071dc;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.affc-walmart-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.affc-walmart-logo a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.affc-walmart-search {
    flex: 1;
    max-width: 600px;
    display: flex;
}

.affc-walmart-search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.affc-walmart-search-btn {
    padding: 10px 20px;
    background: #ffb81c;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.affc-walmart-actions {
    display: flex;
    gap: 16px;
}

.affc-walmart-action {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.affc-walmart-action:hover {
    background: rgba(255,255,255,0.1);
}

/* Breadcrumb */
.affc-breadcrumb-walmart {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.affc-breadcrumb-walmart a {
    color: #0071dc;
    text-decoration: none;
}

.affc-breadcrumb-walmart a:hover {
    text-decoration: underline;
}

.affc-breadcrumb-sep {
    color: #999;
}

.affc-breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Single Layout */
.affc-single-layout-walmart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 24px 0;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .affc-single-layout-walmart {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Product Images */
.affc-single-media-walmart {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.affc-gallery-walmart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.affc-gallery-main-walmart {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.affc-gallery-main-walmart img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.affc-gallery-thumbs-walmart {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.affc-gallery-thumb-walmart {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.affc-gallery-thumb-walmart:hover,
.affc-gallery-thumb-walmart.is-active {
    border-color: #0071dc;
}

.affc-gallery-thumb-walmart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.affc-single-info-walmart {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.affc-product-title-walmart {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #1d1d1f;
}

/* Rating */
.affc-rating-walmart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.affc-stars-walmart {
    display: flex;
    gap: 2px;
}

.affc-star-walmart {
    color: #e0e0e0;
    font-size: 18px;
}

.affc-star-walmart.filled {
    color: #ffb81c;
}

.affc-rating-text-walmart {
    font-weight: 600;
    color: #1d1d1f;
}

.affc-rating-count-walmart {
    color: #666;
    font-size: 14px;
}

/* Price */
.affc-price-walmart {
    margin-bottom: 20px;
}

.affc-price-walmart .affc-price-current {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
}

/* Merchant */
.affc-merchant-walmart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.affc-merchant-label {
    color: #666;
}

.affc-merchant-name {
    color: #0071dc;
    font-weight: 500;
}

/* Quantity */
.affc-quantity-walmart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.affc-quantity-walmart label {
    font-weight: 500;
    color: #1d1d1f;
}

.affc-quantity-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    min-width: 80px;
}

/* Actions */
.affc-actions-walmart {
    margin-bottom: 24px;
}

.affc-button-walmart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #0071dc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
    width: 100%;
}

.affc-button-walmart:hover {
    background: #0056b3;
}

/* Delivery Options */
.affc-delivery-walmart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.affc-delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.affc-delivery-icon {
    font-size: 24px;
}

.affc-delivery-info {
    display: flex;
    flex-direction: column;
}

.affc-delivery-info strong {
    font-size: 14px;
    color: #1d1d1f;
}

.affc-delivery-info span {
    font-size: 12px;
    color: #666;
}

/* Description */
.affc-description-walmart {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 32px;
}

.affc-description-walmart h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1d1d1f;
}

.affc-description-content {
    color: #333;
    line-height: 1.6;
}

.affc-description-content ul {
    padding-left: 20px;
}

.affc-description-content li {
    margin-bottom: 8px;
}

/* Related Products */
.affc-related-walmart {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 32px;
}

.affc-related-walmart h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1d1d1f;
}

.affc-related-grid-walmart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.affc-related-card-walmart {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.affc-related-card-walmart:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.affc-related-card-walmart img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 12px;
}

.affc-related-card-walmart h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px;
    color: #1d1d1f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.affc-related-price {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.affc-related-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0071dc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.affc-related-btn:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .affc-walmart-header-inner {
        flex-wrap: wrap;
    }
    
    .affc-walmart-search {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .affc-related-grid-walmart {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .affc-product-title-walmart {
        font-size: 22px;
    }
    
    .affc-related-grid-walmart {
        grid-template-columns: 1fr;
    }
}

/* Auto-Link Keywords */
.affc-auto-link{color:#0f766e;font-weight:600;text-decoration:underline;text-decoration-color:#99f6e4;text-underline-offset:3px}.affc-auto-link:hover{color:#115e59}

/* Product Image Gallery */
.affc-gallery-stage{width:100%;border-radius:14px;overflow:hidden;background:#fff;border:1px solid #e5e7eb;margin-bottom:14px}
.affc-gallery-stage img{width:100%;height:auto;display:block;aspect-ratio:4/3;object-fit:cover;cursor:zoom-in}
.affc-gallery-nav{display:flex;gap:10px;flex-wrap:wrap}
.affc-gallery-dot{padding:0;width:72px;height:72px;border:2px solid #e5e7eb;border-radius:10px;overflow:hidden;background:#fff;cursor:pointer;opacity:.7;transition:all .15s}
.affc-gallery-dot img{width:100%;height:100%;object-fit:cover}
.affc-gallery-dot:hover{opacity:1;border-color:#c3c4c7}
.affc-gallery-dot.is-active{opacity:1;border-color:#111827}
@media(max-width:991px){.affc-gallery-dot{width:64px;height:64px}}@media(max-width:768px){.affc-gallery-dot{width:56px;height:56px}}@media(max-width:480px){.affc-gallery-dot{width:48px;height:48px}.affc-gallery-stage{border-radius:12px}}

/* Lightbox */
.affc-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.92);display:none;align-items:center;justify-content:center;flex-direction:column}
.affc-lightbox.is-open{display:flex}
.affc-lightbox-stage{position:relative;max-width:90vw;max-height:80vh;display:flex;align-items:center;justify-content:center}
.affc-lightbox-stage img{max-width:90vw;max-height:80vh;border-radius:8px;object-fit:contain}
.affc-lightbox-count{position:absolute;bottom:-32px;left:50%;transform:translateX(-50%);color:#fff;font-size:13px;opacity:.7}
.affc-lightbox-close{position:absolute;top:18px;right:24px;width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.15);color:#fff;font-size:28px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s;z-index:10}
.affc-lightbox-close:hover{background:rgba(255,255,255,.3)}
.affc-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:50px;border-radius:50%;border:none;background:rgba(255,255,255,.15);color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s;z-index:10}
.affc-lightbox-nav:hover{background:rgba(255,255,255,.3)}
.affc-lightbox-prev{left:18px}
.affc-lightbox-next{right:18px}
@media(max-width:768px){.affc-lightbox-close{width:36px;height:36px;top:12px;right:12px;font-size:24px}.affc-lightbox-nav{width:40px;height:40px}.affc-lightbox-prev{left:12px}.affc-lightbox-next{right:12px}.affc-lightbox-stage img{max-width:95vw;max-height:85vh}}@media(max-width:480px){.affc-lightbox-close{width:32px;height:32px;top:8px;right:8px;font-size:20px}.affc-lightbox-nav{width:36px;height:36px}.affc-lightbox-prev{left:8px}.affc-lightbox-next{right:8px}.affc-lightbox-count{font-size:11px;bottom:-24px}}

/* Single Product Hero */
.affc-hero-single{padding:48px 0 20px;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)}
.affc-hero-single h1{font-size:36px;line-height:1.1;margin:10px 0 6px;color:#0f172a}
.affc-hero-merchant{font-size:14px;color:#64748b;margin:0}
.affc-breadcrumb-single{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:#64748b;margin:0 0 8px}
.affc-breadcrumb-single a{color:#0f766e;text-decoration:none}
.affc-breadcrumb-single a:hover{text-decoration:underline}
.affc-breadcrumb-single .affc-breadcrumb-sep{color:#94a3b8}
.affc-breadcrumb-single .affc-breadcrumb-current{font-weight:700;color:#0f172a}
@media(max-width:991px){.affc-hero-single{padding:40px 0 18px}.affc-hero-single h1{font-size:32px}}@media(max-width:767px){.affc-hero-single{padding:32px 0 16px}.affc-hero-single h1{font-size:26px}.affc-breadcrumb-single{font-size:12px}}@media(max-width:480px){.affc-hero-single{padding:24px 0 12px}.affc-hero-single h1{font-size:22px}.affc-breadcrumb-single{font-size:11px}}

/* Categories Grid with Images */
.affc-categories-grid{display:grid;grid-template-columns:repeat(var(--columns,4),1fr);gap:20px;margin:24px 0}
.affc-category-card{display:block;text-decoration:none;border-radius:16px;overflow:hidden;background:#fff;border:1px solid #e2e8f0;box-shadow:0 4px 12px rgba(15,23,42,.06);transition:transform .2s,box-shadow .2s}
.affc-category-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(15,23,42,.12);border-color:var(--cat-color,#3b82f6)}
.affc-category-image-wrap{aspect-ratio:16/10;overflow:hidden;position:relative;background:#f1f5f9}
.affc-category-image-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.affc-category-card:hover .affc-category-image-wrap img{transform:scale(1.05)}
.affc-category-overlay{position:absolute;inset:0}
.affc-category-icon-bg{display:flex;align-items:center;justify-content:center;height:100%}
.affc-category-icon-bg img{width:80px;height:80px;object-fit:contain}
.affc-category-placeholder{display:flex;align-items:center;justify-content:center;height:100%}
.affc-category-placeholder span{width:80px;height:80px;border-radius:50%;background:var(--cat-color,#3b82f6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:700}
.affc-category-info{padding:16px;display:flex;align-items:center;gap:12px}
.affc-category-small-icon{width:32px;height:32px;border-radius:6px;object-fit:cover}
.affc-category-name{font-size:16px;font-weight:700;color:#0f172a;margin:0;line-height:1.3}
.affc-category-count{font-size:13px;color:#64748b}
@media(max-width:1200px){.affc-categories-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){.affc-categories-grid{grid-template-columns:repeat(2,1fr);gap:16px}}
@media(max-width:480px){.affc-categories-grid{grid-template-columns:1fr;gap:12px}}

/* Category Badge in Product Cards */
.affc-category-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:#f1f5f9;border-radius:999px;text-decoration:none;color:#475569;font-size:12px;font-weight:600;transition:background .15s}
.affc-category-badge:hover{background:#e2e8f0;color:#0f172a}
.affc-category-badge-icon{width:16px;height:16px;border-radius:3px;object-fit:cover}
.affc-topline{gap:8px;flex-wrap:wrap}

/* Smart Hub Indicators */
.affc-smart-indicator{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;box-shadow:0 4px 12px rgba(0,0,0,.15);z-index:10;animation:affc-pulse 2s ease-in-out infinite}
.affc-smart-hot{background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%);color:#fff}
.affc-smart-deal{background:linear-gradient(135deg,#10b981 0%,#059669 100%);color:#fff}
@keyframes affc-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}

/* ============================================
   MODERN UI ENHANCEMENTS
   Dark Mode, Glassmorphism & Animations
   ============================================ */

/* Dark Mode Support - System Preference */
@media (prefers-color-scheme: dark) {
    .affc-shell {
        background: #0f172a;
        color: #f1f5f9;
    }
    .affc-hero {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    }
    .affc-hero h1 {
        color: #f1f5f9;
    }
    .affc-hero p {
        color: #94a3b8;
    }
    .affc-chip {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }
    .affc-chip.active,
    .affc-chip:hover {
        border-color: #0f766e;
        color: #0f766e;
    }
    .affc-card {
        background: #1e293b;
        border-color: #334155;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    .affc-thumb {
        background: #334155;
    }
    .affc-placeholder {
        color: #64748b;
    }
    .affc-badge {
        background: #0f766e;
        color: #ccfbf1;
    }
    .affc-merchant {
        background: #334155;
        color: #cbd5e1;
    }
    .affc-title a {
        color: #f1f5f9;
    }
    .affc-excerpt {
        color: #94a3b8;
    }
    .affc-button {
        background: #0f766e;
    }
    .affc-button:hover {
        background: #115e59;
    }
    .affc-price-alert {
        background: #14532d;
        border-color: #166534;
    }
    .affc-price-alert h4 {
        color: #bbf7d0;
    }
    .affc-price-alert-desc {
        color: #86efac;
    }
    .affc-gallery-stage {
        background: #1e293b;
        border-color: #334155;
    }
    .affc-gallery-dot {
        background: #1e293b;
        border-color: #334155;
    }
    .affc-gallery-dot.is-active {
        border-color: #f1f5f9;
    }
    .affc-hero-single {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    }
    .affc-hero-single h1 {
        color: #f1f5f9;
    }
    .affc-hero-merchant {
        color: #94a3b8;
    }
    .affc-breadcrumb-single {
        color: #94a3b8;
    }
    .affc-breadcrumb-single a {
        color: #0f766e;
    }
    .affc-breadcrumb-single .affc-breadcrumb-current {
        color: #f1f5f9;
    }
    .affc-category-card {
        background: #1e293b;
        border-color: #334155;
    }
    .affc-category-image-wrap {
        background: #334155;
    }
    .affc-category-name {
        color: #f1f5f9;
    }
    .affc-category-count {
        color: #94a3b8;
    }
    .affc-category-badge {
        background: #334155;
        color: #cbd5e1;
    }
    .affc-category-badge:hover {
        background: #475569;
        color: #f1f5f9;
    }
    .affc-single-buy-box {
        background: #1e293b;
        border-color: #334155;
    }
    .affc-single-buy-box h1 {
        color: #f1f5f9;
    }
    .affc-single-buy-box .affc-merchant {
        color: #cbd5e1;
    }
    .affc-disclosure {
        color: #94a3b8;
    }
    .affc-trust-microcopy {
        color: #94a3b8;
    }
    .affc-merchant-logo {
        background: #1e293b;
        border-color: #334155;
    }
}

/* Manual Dark Mode Toggle */
.affc-shell[data-theme="dark"] {
    background: #0f172a;
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-hero {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}
.affc-shell[data-theme="dark"] .affc-hero h1 {
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-hero p {
    color: #94a3b8;
}
.affc-shell[data-theme="dark"] .affc-chip {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-chip.active,
.affc-shell[data-theme="dark"] .affc-chip:hover {
    border-color: #0f766e;
    color: #0f766e;
}
.affc-shell[data-theme="dark"] .affc-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.affc-shell[data-theme="dark"] .affc-thumb {
    background: #334155;
}
.affc-shell[data-theme="dark"] .affc-placeholder {
    color: #64748b;
}
.affc-shell[data-theme="dark"] .affc-badge {
    background: #0f766e;
    color: #ccfbf1;
}
.affc-shell[data-theme="dark"] .affc-merchant {
    background: #334155;
    color: #cbd5e1;
}
.affc-shell[data-theme="dark"] .affc-title a {
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-excerpt {
    color: #94a3b8;
}
.affc-shell[data-theme="dark"] .affc-button {
    background: #0f766e;
}
.affc-shell[data-theme="dark"] .affc-button:hover {
    background: #115e59;
}
.affc-shell[data-theme="dark"] .affc-price-alert {
    background: #14532d;
    border-color: #166534;
}
.affc-shell[data-theme="dark"] .affc-price-alert h4 {
    color: #bbf7d0;
}
.affc-shell[data-theme="dark"] .affc-price-alert-desc {
    color: #86efac;
}
.affc-shell[data-theme="dark"] .affc-gallery-stage {
    background: #1e293b;
    border-color: #334155;
}
.affc-shell[data-theme="dark"] .affc-gallery-dot {
    background: #1e293b;
    border-color: #334155;
}
.affc-shell[data-theme="dark"] .affc-gallery-dot.is-active {
    border-color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-hero-single {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}
.affc-shell[data-theme="dark"] .affc-hero-single h1 {
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-hero-merchant {
    color: #94a3b8;
}
.affc-shell[data-theme="dark"] .affc-breadcrumb-single {
    color: #94a3b8;
}
.affc-shell[data-theme="dark"] .affc-breadcrumb-single a {
    color: #0f766e;
}
.affc-shell[data-theme="dark"] .affc-breadcrumb-single .affc-breadcrumb-current {
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-category-card {
    background: #1e293b;
    border-color: #334155;
}
.affc-shell[data-theme="dark"] .affc-category-image-wrap {
    background: #334155;
}
.affc-shell[data-theme="dark"] .affc-category-name {
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-category-count {
    color: #94a3b8;
}
.affc-shell[data-theme="dark"] .affc-category-badge {
    background: #334155;
    color: #cbd5e1;
}
.affc-shell[data-theme="dark"] .affc-category-badge:hover {
    background: #475569;
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-single-buy-box {
    background: #1e293b;
    border-color: #334155;
}
.affc-shell[data-theme="dark"] .affc-single-buy-box h1 {
    color: #f1f5f9;
}
.affc-shell[data-theme="dark"] .affc-single-buy-box .affc-merchant {
    color: #cbd5e1;
}
.affc-shell[data-theme="dark"] .affc-disclosure {
    color: #94a3b8;
}
.affc-shell[data-theme="dark"] .affc-trust-microcopy {
    color: #94a3b8;
}
.affc-shell[data-theme="dark"] .affc-merchant-logo {
    background: #1e293b;
    border-color: #334155;
}

/* Glassmorphism Effects */
.affc-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.affc-shell[data-theme="dark"] .affc-glass,
@media (prefers-color-scheme: dark) {
    .affc-glass {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(51, 65, 85, 0.5);
    }
}

/* Modern Animations */
@keyframes affc-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes affc-scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes affc-slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes affc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes affc-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes affc-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(15, 118, 110, 0.3); }
    50% { box-shadow: 0 0 20px rgba(15, 118, 110, 0.6); }
}

.affc-card {
    animation: affc-fadeIn 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.affc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}
.affc-shell[data-theme="dark"] .affc-card:hover,
@media (prefers-color-scheme: dark) {
    .affc-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

.affc-chip {
    transition: all 0.2s ease;
}
.affc-chip:hover {
    transform: scale(1.05);
}

.affc-button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.affc-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}
.affc-button:hover::after {
    width: 200px;
    height: 200px;
}

.affc-category-card {
    animation: affc-scaleIn 0.4s ease-out;
}

/* Dark Mode Toggle Button */
.affc-theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9999;
}
.affc-theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.affc-shell[data-theme="dark"] .affc-theme-toggle,
@media (prefers-color-scheme: dark) {
    .affc-theme-toggle {
        background: #f1f5f9;
        color: #0f172a;
    }
}

/* Skeleton Loading */
.affc-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: affc-shimmer 1.5s infinite;
}
.affc-shell[data-theme="dark"] .affc-skeleton,
@media (prefers-color-scheme: dark) {
    .affc-skeleton {
        background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    }
}

/* Wishlist Heart Button */
.affc-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    z-index: 10;
}
.affc-wishlist-btn:hover {
    transform: scale(1.1);
    background: #fff;
}
.affc-wishlist-btn.is-active {
    color: #ef4444;
    animation: affc-pulse 0.3s ease;
}
.affc-shell[data-theme="dark"] .affc-wishlist-btn,
@media (prefers-color-scheme: dark) {
    .affc-wishlist-btn {
        background: rgba(30, 41, 59, 0.9);
        color: #f1f5f9;
    }
    .affc-wishlist-btn:hover {
        background: #1e293b;
    }
}

/* Quick View Button */
.affc-quick-view-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 10;
}
.affc-quick-view-btn:hover {
    background: #0f766e;
    transform: translateY(-2px);
}
.affc-shell[data-theme="dark"] .affc-quick-view-btn,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-btn {
        background: rgba(15, 118, 110, 0.9);
    }
    .affc-quick-view-btn:hover {
        background: #0f766e;
    }
}

/* Social Proof Badge */
.affc-social-proof {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: affc-glow 2s infinite;
}
.affc-social-proof.hot {
    background: rgba(239, 68, 68, 0.9);
}
.affc-social-proof.trending {
    background: rgba(59, 130, 246, 0.9);
}

/* Responsive Improvements */
@media (max-width: 1200px) {
    .affc-container {
        max-width: 100%;
        padding: 0 16px;
    }
}
@media (max-width: 767px) {
    .affc-theme-toggle {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* Wishlist Grid */
.affc-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), 1fr);
    gap: 24px;
    margin: 24px 0;
}
@media (max-width: 1024px) {
    .affc-wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .affc-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .affc-wishlist-grid {
        grid-template-columns: 1fr;
    }
}

.affc-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    margin: 24px 0;
}
.affc-shell[data-theme="dark"] .affc-wishlist-empty,
@media (prefers-color-scheme: dark) {
    .affc-wishlist-empty {
        background: #1e293b;
    }
}
.affc-wishlist-empty p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 20px;
}
.affc-shell[data-theme="dark"] .affc-wishlist-empty p,
@media (prefers-color-scheme: dark) {
    .affc-wishlist-empty p {
        color: #94a3b8;
    }
}

/* Notification Toast */
.affc-notification {
    position: fixed;
    bottom: 80px;
    right: 20px;
    padding: 12px 20px;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
}
.affc-notification.show {
    opacity: 1;
    transform: translateY(0);
}
.affc-shell[data-theme="dark"] .affc-notification,
@media (prefers-color-scheme: dark) {
    .affc-notification {
        background: #f1f5f9;
        color: #0f172a;
    }
}

/* Quick View Modal */
.affc-quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.affc-quick-view-modal.open {
    display: flex;
}
.affc-quick-view-modal.loading .affc-quick-view-content {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.affc-quick-view-modal.loading .affc-quick-view-content::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #0f766e;
    border-radius: 50%;
    animation: affc-spin 0.8s linear infinite;
}
@keyframes affc-spin {
    to { transform: rotate(360deg); }
}

.affc-quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.affc-quick-view-container {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: affc-scaleIn 0.3s ease-out;
}
.affc-shell[data-theme="dark"] .affc-quick-view-container,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-container {
        background: #1e293b;
    }
}

.affc-quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.affc-quick-view-close:hover {
    background: #fff;
    transform: scale(1.1);
}
.affc-shell[data-theme="dark"] .affc-quick-view-close,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-close {
        background: rgba(30, 41, 59, 0.9);
        color: #f1f5f9;
    }
    .affc-quick-view-close:hover {
        background: #1e293b;
    }
}

.affc-quick-view-content {
    padding: 24px;
    overflow-y: auto;
    max-height: 90vh;
}

.affc-quick-view-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .affc-quick-view-layout {
        grid-template-columns: 1fr;
    }
}

.affc-quick-view-image {
    aspect-ratio: 4/5;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}
.affc-shell[data-theme="dark"] .affc-quick-view-image,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-image {
        background: #334155;
    }
}
.affc-quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.affc-quick-view-details h2 {
    font-size: 24px;
    margin: 0 0 12px;
    color: #0f172a;
}
.affc-shell[data-theme="dark"] .affc-quick-view-details h2,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-details h2 {
        color: #f1f5f9;
    }
}

.affc-quick-view-merchant {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}
.affc-shell[data-theme="dark"] .affc-quick-view-merchant,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-merchant {
        color: #94a3b8;
    }
}

.affc-quick-view-price {
    font-size: 32px;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 16px;
}
.affc-shell[data-theme="dark"] .affc-quick-view-price,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-price {
        color: #22c55e;
    }
}

.affc-quick-view-description {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
}
.affc-shell[data-theme="dark"] .affc-quick-view-description,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-description {
        color: #cbd5e1;
    }
}

.affc-quick-view-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.affc-quick-view-view-btn {
    flex: 1;
    padding: 12px 20px;
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.affc-quick-view-view-btn:hover {
    background: #115e59;
}

.affc-quick-view-wishlist-btn {
    padding: 12px 20px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.affc-quick-view-wishlist-btn:hover {
    background: #e5e7eb;
}
.affc-shell[data-theme="dark"] .affc-quick-view-wishlist-btn,
@media (prefers-color-scheme: dark) {
    .affc-quick-view-wishlist-btn {
        background: #334155;
        color: #f1f5f9;
        border-color: #475569;
    }
    .affc-quick-view-wishlist-btn:hover {
        background: #475569;
    }
}

/* Card Positioning for New Buttons */
.affc-thumb {
    position: relative;
}

/* Advanced Search & Filters */
.affc-advanced-search {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}
.affc-shell[data-theme="dark"] .affc-advanced-search,
@media (prefers-color-scheme: dark) {
    .affc-advanced-search {
        background: #1e293b;
    }
}

.affc-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.affc-search-bar input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #0f172a;
}
.affc-shell[data-theme="dark"] .affc-search-bar input[type="text"],
@media (prefers-color-scheme: dark) {
    .affc-search-bar input[type="text"] {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
}
.affc-search-bar button {
    padding: 12px 24px;
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.affc-search-bar button:hover {
    background: #115e59;
}

.affc-filters-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.affc-filter-group {
    flex: 1;
    min-width: 200px;
}

.affc-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}
.affc-shell[data-theme="dark"] .affc-filter-label,
@media (prefers-color-scheme: dark) {
    .affc-filter-label {
        color: #94a3b8;
    }
}

.affc-filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
}
.affc-shell[data-theme="dark"] .affc-filter-select,
@media (prefers-color-scheme: dark) {
    .affc-filter-select {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
}

.affc-price-range {
    display: flex;
    gap: 12px;
    align-items: center;
}
.affc-price-range input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
}
.affc-shell[data-theme="dark"] .affc-price-range input,
@media (prefers-color-scheme: dark) {
    .affc-price-range input {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
}

.affc-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.affc-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.affc-filter-tag button {
    background: none;
    border: none;
    color: #0369a1;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}
.affc-filter-tag button:hover {
    color: #0c4a6e;
}
.affc-shell[data-theme="dark"] .affc-filter-tag,
@media (prefers-color-scheme: dark) {
    .affc-filter-tag {
        background: #0c4a6e;
        color: #7dd3fc;
    }
    .affc-filter-tag button {
        color: #7dd3fc;
    }
    .affc-filter-tag button:hover {
        color: #38bdf8;
    }
}

.affc-clear-filters {
    margin-top: 16px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.affc-clear-filters:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.affc-shell[data-theme="dark"] .affc-clear-filters,
@media (prefers-color-scheme: dark) {
    .affc-clear-filters {
        border-color: #475569;
        color: #94a3b8;
    }
    .affc-clear-filters:hover {
        background: #334155;
        color: #f1f5f9;
    }
}

/* Social Proof Elements */
.affc-live-viewers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.affc-live-viewers::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: affc-pulse 2s infinite;
}
.affc-shell[data-theme="dark"] .affc-live-viewers,
@media (prefers-color-scheme: dark) {
    .affc-live-viewers {
        background: rgba(16, 185, 129, 0.2);
        color: #34d399;
    }
}

.affc-recent-purchases {
    margin-top: 12px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}
.affc-shell[data-theme="dark"] .affc-recent-purchases,
@media (prefers-color-scheme: dark) {
    .affc-recent-purchases {
        background: #14532d;
        border-color: #166534;
    }
}
.affc-recent-purchases-title {
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 8px;
}
.affc-shell[data-theme="dark"] .affc-recent-purchases-title,
@media (prefers-color-scheme: dark) {
    .affc-recent-purchases-title {
        color: #86efac;
    }
}
.affc-purchase-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #15803d;
    margin-bottom: 4px;
}
.affc-shell[data-theme="dark"] .affc-purchase-item,
@media (prefers-color-scheme: dark) {
    .affc-purchase-item {
        color: #4ade80;
    }
}
.affc-purchase-time {
    color: #64748b;
    margin-left: auto;
}
.affc-shell[data-theme="dark"] .affc-purchase-time,
@media (prefers-color-scheme: dark) {
    .affc-purchase-time {
        color: #94a3b8;
    }
}

/* Gamification Elements */
.affc-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.affc-points-badge svg {
    width: 16px;
    height: 16px;
}

.affc-achievement-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Price Comparison Feature */
.affc-price-comparison {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.affc-shell[data-theme="dark"] .affc-price-comparison,
@media (prefers-color-scheme: dark) {
    .affc-price-comparison {
        background: #1e293b;
        border-color: #334155;
    }
}
.affc-price-comparison-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #0f172a;
}
.affc-shell[data-theme="dark"] .affc-price-comparison-title,
@media (prefers-color-scheme: dark) {
    .affc-price-comparison-title {
        color: #f1f5f9;
    }
}
.affc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
.affc-shell[data-theme="dark"] .affc-price-row,
@media (prefers-color-scheme: dark) {
    .affc-price-row {
        border-bottom-color: #334155;
    }
}
.affc-price-row:last-child {
    border-bottom: none;
}
.affc-price-merchant {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #0f172a;
}
.affc-shell[data-theme="dark"] .affc-price-merchant,
@media (prefers-color-scheme: dark) {
    .affc-price-merchant {
        color: #f1f5f9;
    }
}
.affc-price-value {
    font-weight: 700;
    color: #15803d;
}
.affc-price-value.best {
    color: #059669;
    font-weight: 800;
}
.affc-shell[data-theme="dark"] .affc-price-value.best,
@media (prefers-color-scheme: dark) {
    .affc-price-value.best {
        color: #34d399;
    }
}
.affc-best-deal-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #059669;
    color: #fff;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
}

/* ============================================
   MOBILE BENTO GRID LAYOUT
   ============================================ */

.affc-bento-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.affc-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.affc-shell[data-theme="dark"] .affc-bento-card,
@media (prefers-color-scheme: dark) {
    .affc-bento-card {
        background: #1e293b;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    .affc-bento-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
}

.affc-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 12px;
    padding: 16px;
}

.affc-bento-image {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.affc-shell[data-theme="dark"] .affc-bento-image,
@media (prefers-color-scheme: dark) {
    .affc-bento-image {
        background: #334155;
    }
}

.affc-bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.affc-bento-card:hover .affc-bento-image img {
    transform: scale(1.05);
}

.affc-bento-info {
    grid-column: 1;
    grid-row: 2;
}

.affc-bento-price {
    grid-column: 1;
    grid-row: 3;
}

.affc-bento-tiktok {
    grid-column: 1;
    grid-row: 4;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
}

.affc-shell[data-theme="dark"] .affc-bento-tiktok,
@media (prefers-color-scheme: dark) {
    .affc-bento-tiktok {
        background: #334155;
        border-color: #475569;
    }
}

.affc-bento-action {
    grid-column: 1;
    grid-row: 5;
}

.affc-tiktok-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.affc-tiktok-field:last-child {
    border-bottom: none;
}

.affc-shell[data-theme="dark"] .affc-tiktok-field,
@media (prefers-color-scheme: dark) {
    .affc-tiktok-field {
        border-bottom-color: #475569;
    }
}

.affc-tiktok-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.affc-shell[data-theme="dark"] .affc-tiktok-label,
@media (prefers-color-scheme: dark) {
    .affc-tiktok-label {
        color: #94a3b8;
    }
}

.affc-tiktok-value {
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

.affc-shell[data-theme="dark"] .affc-tiktok-value,
@media (prefers-color-scheme: dark) {
    .affc-tiktok-value {
        color: #f1f5f9;
    }
}

.affc-tiktok-status-ใช้งาน {
    color: #10b981;
}

.affc-tiktok-status-ไม่ใช้งาน {
    color: #ef4444;
}

.affc-tiktok-status-รอตรวจสอบ {
    color: #f59e0b;
}

.affc-merchant-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.affc-merchant-name {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.affc-shell[data-theme="dark"] .affc-merchant-name,
@media (prefers-color-scheme: dark) {
    .affc-merchant-name {
        color: #94a3b8;
    }
}

/* TikTok Button Styles */
.affc-btn-tiktok {
    background: linear-gradient(135deg, #FF0050, #ff4d79);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.affc-btn-tiktok:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

.affc-btn-shopee {
    background: linear-gradient(135deg, #FF5722, #ff8a50);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 8px;
}

.affc-btn-shopee:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

/* Sticky Mobile Bottom Bar */
.affc-sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 16px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.affc-shell[data-theme="dark"] .affc-sticky-mobile-bar,
@media (prefers-color-scheme: dark) {
    .affc-sticky-mobile-bar {
        background: #1e293b;
        border-top-color: #334155;
    }
}

@media (max-width: 768px) {
    .affc-sticky-mobile-bar {
        display: flex;
        gap: 12px;
        align-items: center;
    }
}

.affc-sticky-bar-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.affc-sticky-bar-btn.tiktok {
    background: linear-gradient(135deg, #FF0050, #ff4d79);
}

.affc-sticky-bar-btn.tiktok:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

.affc-sticky-bar-btn.shopee {
    background: linear-gradient(135deg, #FF5722, #ff8a50);
    flex: 0 0 auto;
    padding: 14px 16px;
}

.affc-sticky-bar-btn.shopee:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

/* TikTok Embed Section */
.affc-tiktok-embed-section {
    margin: 32px 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.affc-shell[data-theme="dark"] .affc-tiktok-embed-section,
@media (prefers-color-scheme: dark) {
    .affc-tiktok-embed-section {
        background: #1e293b;
        border-color: #334155;
    }
}

.affc-tiktok-embed-section h2 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #0f172a;
}

.affc-shell[data-theme="dark"] .affc-tiktok-embed-section h2,
@media (prefers-color-scheme: dark) {
    .affc-tiktok-embed-section h2 {
        color: #f1f5f9;
    }
}

.affc-tiktok-embed {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.affc-tiktok-embed iframe {
    border-radius: 12px;
    overflow: hidden;
}

/* Desktop Layout - 2 columns */
@media (min-width: 768px) {
    .affc-bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
    }

    .affc-bento-image {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .affc-bento-info {
        grid-column: 2;
        grid-row: 1;
    }

    .affc-bento-price {
        grid-column: 2;
        grid-row: 2;
    }

    .affc-bento-tiktok {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

    .affc-bento-action {
        grid-column: 1 / span 2;
        grid-row: 4;
    }
}

/* Large Desktop Layout - More complex grid */
@media (min-width: 1024px) {
    .affc-bento-grid {
        grid-template-columns: 1.2fr 0.8fr;
        grid-template-rows: auto auto auto;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .affc-bento-grid {
        gap: 10px;
        padding: 12px;
    }

    .affc-bento-tiktok {
        padding: 10px;
    }

    .affc-tiktok-field {
        padding: 4px 0;
    }

    .affc-tiktok-label {
        font-size: 11px;
    }

    .affc-tiktok-value {
        font-size: 12px;
    }
}
