
/* Product Media Section */
.product-media-section { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 8px auto 16px auto;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    max-width: 280px;
}

/* Product Image Styling */
.product-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* Rating row */
.rating-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.stars { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; line-height: 1; }
.star { font-size: 14px; }
.star-full { color: #f59e0b; }
.star-half { color: #f59e0b; position: relative; }
.star-empty { color: #d1d5db; }
.reviews-count { font-size: 12px; color: #6b7280; }

/* Page header and title */
div.disclosure-text-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0 2rem;
    text-align: center;
    margin-bottom: 0;
}

div.disclosure-text-top p {
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

div.disclosure-text-top a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
}

div.disclosure-text-top a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.disclosure-divider {
    display: none; /* Hidden on desktop */
}

div.affiliate-disclosure {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    text-align: center;
}

div.affiliate-disclosure p {
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.page-header { 
    margin-bottom: 0.75rem;
    position: relative;
    overflow: visible;
}

/* Desktop: Show category label above pros/cons, hide mobile version */
@media (min-width: 1201px) {
    .product-category-label-desktop {
        display: block !important;
    }
    .product-category-label-mobile {
        display: none !important;
    }
    .product-category-label-ipad {
        display: none !important;
    }
    /* Hide mobile stars section and split section, show desktop rating/buy section */
    .product-mobile-stars-section {
        display: none !important;
    }
    .product-mobile-split-section {
        display: none !important;
    }
    .product-rating-buy-desktop {
        display: block !important;
    }
    /* Expert Score: Hide mobile, show desktop */
    .expert-score-mobile {
        display: none !important;
    }
    .expert-score-desktop {
        display: block !important;
    }
    .page-header {
        margin-bottom: 0.25rem !important;
    }
    
    .page-title {
        margin-bottom: 0.25rem !important;
    }
    
    /* Bring disclosure text closer to header */
    div.disclosure-text-top {
        padding: 0.25rem 2rem 0 2rem !important;
        margin-top: 0.25rem !important;
        margin-bottom: 0 !important;
    }
    
    div.disclosure-text-top p {
        margin-bottom: 0.25rem !important;
    }
    
    /* Show HR line on desktop */
    .disclosure-divider {
        display: block !important;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        margin: 0.25rem 2rem 0.25rem 2rem;
        padding: 0;
    }
    
    /* Reduce breadcrumb spacing */
    .modern-breadcrumb {
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    /* Reduce subtitle container spacing */
    .category-subtitle-container {
        margin: 0.25rem 0 0.25rem 0 !important;
    }
    
    /* Reduce product tabs spacing */
    .product-tabs {
        margin: 0.25rem 0 0.25rem 0 !important;
    }
    
    /* Reduce gap before first product */
    .modern-product-list {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reduce spacing inside curator badge box */
    .curator-content {
        padding: 4px 20px !important;
        gap: 12px;
    }
    
    /* Ensure image aligns with minimal top/bottom spacing */
    .curator-photo,
    .curator-photo-placeholder {
        flex-shrink: 0;
    }
}
.page-title { 
    font-size: 2.5rem !important; 
    font-weight: 800 !important; 
    margin: 0 0 1rem 0 !important; 
    color: #ffffff !important; 
    line-height: 1.2 !important; 
    letter-spacing: -0.02em !important; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: nowrap !important;
    overflow: visible !important;
    max-width: 100% !important;
}

/* Responsive font sizing for page title based on viewport width */
/* Desktop - make room for curator badge */
@media (min-width: 1025px) {
    .page-title {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        flex: 1;
        margin-right: 1.5rem;
        padding-right: 0 !important;
        max-width: none !important;
    }
    
    .page-header {
        min-height: 80px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 1.5rem;
    }
}

/* Tablet - keep header and badge on same row */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-header {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 1.5rem;
    }
    
    .page-title {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        flex: 1;
        margin-right: 0;
        padding-right: 0 !important;
        max-width: none !important;
    }
    
    .curator-badge {
        flex-shrink: 0;
        position: relative;
        margin-top: 0;
        margin-left: 0;
    }
}

@media (max-width: 1600px) {
    .page-title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 1400px) {
    .page-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 1200px) {
    .page-title {
        font-size: 1.75rem !important;
    }
}

/* Tablet - curator badge drops below title */
@media (max-width: 1024px) {
    .page-title {
        font-size: 1.6rem !important;
        padding-right: 0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 0.5rem !important;
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 850px) {
    .page-title {
        font-size: 1.35rem !important;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 1.05rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.25 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        position: relative;
        z-index: 1;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.0rem !important;
    }
}

@media (max-width: 380px) {
    .page-title {
        font-size: 0.95rem !important;
    }
}

/* Mobile breadcrumb */
.mobile-breadcrumb { display: none; }
/* iPad: Show iPad category label above pros/cons, hide mobile and desktop versions */
@media (min-width: 769px) and (max-width: 1200px) {
    .product-category-label-ipad {
        display: block !important;
    }
    .product-category-label-desktop {
        display: none !important;
    }
    .product-category-label-mobile {
        display: none !important;
    }
    /* Hide mobile stars section and split section, show desktop rating/buy section */
    .product-mobile-stars-section {
        display: none !important;
    }
    .product-mobile-split-section {
        display: none !important;
    }
    .product-rating-buy-desktop {
        display: block !important;
    }
    /* Expert Score: Hide mobile, show desktop */
    .expert-score-mobile {
        display: none !important;
    }
    .expert-score-desktop {
        display: block !important;
    }
}
/* Mobile: Show mobile category label, hide iPad and desktop versions */
@media (max-width: 768px) {
    .product-category-label-mobile {
        display: block !important;
    }
    .product-category-label-desktop {
        display: none !important;
    }
    .product-category-label-ipad {
        display: none !important;
    }
    /* Show mobile stars section and split section, hide desktop rating/buy section */
    .product-mobile-stars-section {
        display: block !important;
    }
    .product-mobile-split-section {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .product-rating-buy-desktop {
        display: none !important;
    }
    /* Expert Score: Show mobile, hide desktop */
    .expert-score-mobile {
        display: block !important;
    }
    .expert-score-desktop {
        display: none !important;
    }
    .mobile-breadcrumb { display: block; }
    #breadcrumb-list { display: none; }
    
    .mobile-category-hero {
        display: none !important;
    }
    
        .mobile-header-category-image {
        display: block !important;
        width: 80px;
        height: 80px;
        border-radius: 8px;
        object-fit: cover;
        float: left;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-subtitle-influencer-image {
        display: block !important;
    }
    
    .page-header {
        margin-bottom: 0.25rem !important;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        overflow: hidden;
    }
    
    .page-title {
        font-size: 1.3rem !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        position: relative;
        z-index: 1;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        flex: 1;
    }
    
    .curator-badge.desktop-only {
        display: none !important;
    }
    
    .mobile-subtitle-influencer-image {
        float: right;
        margin: 0 0 0.5rem 1rem;
        width: 64px;
        height: 64px;
    }
    
    /* Expandable breadcrumb styles */
    .mobile-breadcrumb .breadcrumb-collapsed {
        cursor: pointer;
        user-select: none;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .mobile-breadcrumb .breadcrumb-expanded {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-breadcrumb .breadcrumb-expanded.show {
        display: flex !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .mobile-breadcrumb .breadcrumb-expanded .breadcrumb-link {
        white-space: normal !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }
    
    .mobile-breadcrumb .breadcrumb-expanded .breadcrumb-separator {
        white-space: normal !important;
    }
}

/* Subheader styling - appears below page-header */
.subheader {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #1f2937 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 0.625rem 1rem !important;
    border-radius: 0.5rem !important;
    margin: 0 auto 1rem auto !important; /* Center horizontally */
    display: block !important; /* Changed to block for proper centering */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    max-width: 100% !important;
    width: fit-content !important;
    text-align: center; /* Center text inside subheader */
}

/* Desktop: Ensure subheader is centered */
@media (min-width: 769px) {
    .subheader {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}

.subheader a {
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.subheader a:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

/* Mobile: Full width subheader */
@media (max-width: 768px) {
    .subheader {
        width: 100% !important;
        margin-bottom: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .mobile-influencer-thumbnail {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease;
    }
    
    .mobile-influencer-thumbnail:hover {
        transform: scale(1.05);
    }
    
    .mobile-influencer-placeholder {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(59, 130, 246, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.6rem;
        font-weight: 700;
    }
    
    .category-subtitle p {
        text-align: justify;
    }
    
    /* Style links within subtitle to be white */
    .category-subtitle p a,
    .category-subtitle a {
        color: #ffffff !important;
        text-decoration: underline;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .category-subtitle p a:hover,
    .category-subtitle a:hover {
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: underline;
    }
    
    .mobile-header-category-image {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Influencer Modal Styles */
.influencer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.influencer-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    position: relative;
    padding: 0;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.influencer-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.influencer-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.influencer-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.influencer-modal-content::before {
    display: none;
}

.influencer-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.influencer-modal-body {
    padding: 2rem 2rem 2rem 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0 0 24px 24px;
    overflow: visible;
    min-height: 200px;
}

.influencer-modal-image-container {
    margin: 0 auto 1rem auto;
    position: relative;
    z-index: 2;
}

.influencer-modal-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.influencer-modal-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: 5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.influencer-modal-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.influencer-modal-description {
    font-size: 1rem;
    color: #4b5563;
    margin: 0 0 1rem 0;
    line-height: 1.6;
    font-weight: 500;
}

.influencer-modal-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.influencer-modal-bio-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    border: none;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.influencer-modal-bio-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    text-decoration: none !important;
    color: white !important;
}

.influencer-modal-bio-link:active {
    transform: translateY(0);
}

.influencer-modal-bio-link:visited {
    color: white !important;
}

@media (max-width: 768px) {
    .influencer-modal-content {
        padding: 0;
        margin: 1rem;
        border-radius: 20px;
        max-width: calc(100% - 2rem);
    }
    
    .influencer-modal-header {
        padding: 1.25rem 1.5rem;
        border-radius: 20px 20px 0 0;
    }
    
    .influencer-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .influencer-modal-body {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
        border-radius: 0 0 20px 20px;
        min-height: 180px;
    }
    
    .influencer-modal-image-container {
        margin: 0 auto 1rem auto;
    }
    
    .influencer-modal-name {
        font-size: 1.5rem;
    }
    
    .influencer-modal-description {
        font-size: 0.95rem;
    }
    
    .influencer-modal-image,
    .influencer-modal-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .influencer-modal-placeholder {
        font-size: 2.5rem;
    }
}

/* Desktop breadcrumb no-wrap and ellipsis */
.modern-breadcrumb { 
    overflow: hidden; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}
.breadcrumb-list { display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-wrap: nowrap; }
.breadcrumb-item { flex: 0 0 auto; min-width: 0; }
.breadcrumb-link { display: inline-flex; align-items: center; max-width: 100%; color: #e5e7eb; white-space: nowrap; }
.breadcrumb-separator { margin: 0 6px; flex: 0 0 auto; }

/* Prevent wrapping of long names; allow truncation */
.breadcrumb-item .breadcrumb-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ensure breadcrumb doesn't wrap on tablets (iPad) */
@media (min-width: 768px) and (max-width: 1200px) {
    .modern-breadcrumb {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        box-sizing: border-box;
        overflow: hidden;
    }
    .breadcrumb-list {
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }
    .breadcrumb-item {
        flex-shrink: 0;
    }
}

/* Mobile breadcrumb container */
@media (max-width: 767px) {
    .modern-breadcrumb {
        max-width: 100%;
        margin: 0;
        padding: 0 1rem;
        box-sizing: border-box;
    }
}

/* Mobile Category Hero - Watercolor Image + Curator Row */
.mobile-category-hero {
    display: none; /* Hidden on desktop */
}

.mobile-header-category-image {
    display: none; /* Hidden on desktop */
}

.mobile-subtitle-influencer-image {
    display: none; /* Hidden on desktop */
}

.mobile-watercolor-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-curator-badge {
    margin-top: 0;
}

.desktop-only {
    display: block;
}

/* Curator Badge Styles */
.curator-badge {
    margin-top: 0.75rem;
    position: relative;
    z-index: 0;
}

.curator-link {
    display: inline-block;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.curator-link:hover {
    text-decoration: none !important;
}

.curator-link:hover .curator-name,
.curator-link:hover .curator-label,
.curator-link:hover .curator-date {
    text-decoration: none !important;
}

.curator-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.curator-link:hover .curator-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 64, 175, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.curator-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.curator-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.curator-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.curator-name-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    flex-wrap: nowrap;
}

.curator-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    display: inline;
    margin-right: 0.25rem;
}

.curator-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: inline;
}

.curator-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* Desktop: Position in upper right */
@media (min-width: 1025px) {
    .curator-badge {
        position: relative;
        flex-shrink: 0;
        margin-top: 0;
        margin-left: 0;
    }
}

/* Tablet and Mobile: Show below title */
@media (max-width: 1024px) {
    .curator-badge {
        position: relative;
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
        clear: both;
    }
    
    .curator-content {
        padding: 10px 16px;
        gap: 10px;
    }
    
    .curator-photo,
    .curator-photo-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .curator-photo-placeholder span {
        font-size: 16px;
    }
    
    .curator-label {
        font-size: 0.7rem;
    }
    
    .curator-name {
        font-size: 0.95rem;
    }
    
    .curator-date {
        font-size: 0.75rem;
    }
}

/* Mobile: Show mobile category hero layout */
@media (max-width: 768px) {
    /* Hide desktop curator badge and desktop inline image */
    .curator-badge {
        display: none !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .category-image-wrapper {
        display: none !important;
    }
    
    /* Show mobile category hero */
    .mobile-category-hero {
        display: flex;
        gap: 0.75rem;
        align-items: stretch; /* Make children equal height */
        margin-bottom: 1rem;
    }
    
    .mobile-watercolor-image {
        flex-shrink: 0;
        width: 75px;
        height: 75px; /* Smaller height */
        object-fit: cover; /* Cover to maintain aspect */
        align-self: flex-start;
    }
    
    .mobile-curator-badge {
        flex: 1;
        margin-top: 0;
        display: flex; /* Make it flex to fill height */
        align-items: stretch;
    }
    
    .mobile-curator-badge .curator-link {
        width: 100%;
        display: flex;
    }
    
    .mobile-curator-badge .curator-content {
        padding: 8px 12px;
        gap: 10px;
        width: 100%;
        display: flex;
        align-items: center; /* Vertically center content */
        min-height: 75px; /* Match image height */
        justify-content: space-between; /* Spread content across width */
    }
    
    .mobile-curator-badge .curator-photo,
    .mobile-curator-badge .curator-photo-placeholder {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    
    .mobile-curator-badge .curator-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
        padding-left: 4px;
    }
    
    .mobile-curator-badge .curator-name-row {
        display: block;
        margin-bottom: 2px;
        line-height: 1.3;
    }
    
    .mobile-curator-badge .curator-label {
        font-size: 0.75rem;
        display: inline;
        margin-right: 4px;
    }
    
    .mobile-curator-badge .curator-name {
        font-size: 0.85rem;
        display: inline;
        font-weight: 600;
    }
    
    .mobile-curator-badge .curator-date {
        font-size: 0.75rem;
        display: block;
    }
}

/* Product Price Styling */
.product-price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Clickable price link styling */
.product-price-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    text-decoration: none;
    color: white;
}

.product-price-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-price-link:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Merchant Buttons Styling */
.merchant-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.merchant-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.merchant-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    text-decoration: none;
    color: white;
}

.merchant-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.merchant-button:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.merchant-button-has-price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.merchant-button-no-price {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.merchant-name {
    font-size: 13px;
    font-weight: 600;
}

.merchant-price {
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .merchant-buttons-container {
        gap: 6px;
    }
    
    .merchant-button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .merchant-name {
        font-size: 12px;
    }
    
    .merchant-price {
        font-size: 13px;
    }
    
    /* Reduce badge margins on mobile */
    .product-badges-section {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
    
    /* Reduce spacing in product rows on mobile */
    .product-image-container {
        margin-bottom: 6px !important;
    }
    
    .rating-row {
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }
    
    .merchant-options-container {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        gap: 4px !important;
    }
    
    .product-badges-section-mobile {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
    
    .product-media-section {
        gap: 6px !important;
    }
    
    /* Reduce product-main gap on mobile */
    .product-main {
        gap: 2px !important;
    }
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Price History Icon */
button.price-history-icon,
.price-history-icon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: linear-gradient(135deg, ##3b82f6 0%, ##2563eb 100%) !important;
    background-color: ##3b82f6 !important;
    border: none !important;
    border-radius: 8px !important;
    color: ##ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-left: 8px !important;
    box-shadow: 0 3px 6px rgba(59, 130, 246, 0.3) !important;
    text-decoration: none !important;
}

button.price-history-icon:hover,
.price-history-icon:hover {
    background: linear-gradient(135deg, ##2563eb 0%, ##1d4ed8 100%) !important;
    background-color: ##2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4) !important;
    color: ##ffffff !important;
}

.price-history-icon svg {
    width: 16px !important;
    height: 16px !important;
    fill: ##000000 !important;
}

.price-history-text {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-media-section {
        margin: 0 0 8px 0;
        padding: 12px;
        gap: 6px;
        width: 100%;
    }
    
    .product-header {
        margin-bottom: 0;
    }
    
    .product-image {
        max-width: 150px;
        max-height: 150px;
    }
    
    .product-price-container {
        padding: 10px 14px;
    }
    
    .price-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .product-image {
        max-width: 120px;
        max-height: 120px;
    }
    
    .product-price-container {
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
    }
    
    .price-label {
        font-size: 0.8rem;
    }
    
    .price-value {
        font-size: 1rem;
    }
}

/* Category Subtitle Styling */
.category-subtitle-container {
    width: 100%;
    margin: 0.5rem 0;
}

.category-subtitle {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: auto; /* Ensure floated content is contained */
    clear: both;
}

.category-image-wrapper {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 158px;
    width: 52.5%;
}

.category-inline-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0;
}

.subtitle-methodology-btn.desktop-only {
    display: block;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.6875rem; /* Smaller font on desktop to fit without truncation */
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.category-subtitle p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.subtitle-show-more-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
    display: inline-block;
    vertical-align: baseline;
}

.subtitle-show-more-btn:hover {
    background: #4b5563;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle-show-more-btn.desktop-only {
    display: inline-block;
}

/* iPad subtitle display */
.subtitle-short-ipad {
    display: none;
}

.subtitle-show-more-btn.ipad-only {
    display: none;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .subtitle-short-desktop {
        display: none;
    }
    .subtitle-short-ipad {
        display: inline;
    }
    .subtitle-show-more-btn.ipad-only {
        display: inline-block;
    }
}

/* Mobile Responsive for Subtitle */
@media (max-width: 768px) {
    .subtitle-show-more-btn.desktop-only {
        display: none !important;
    }
    .subtitle-short-ipad {
        display: none !important;
    }
    
    div.disclosure-text-top {
        padding: 0.25rem 0 0 0;
        max-width: 100%;
        margin: 0;
        margin-top: 0.25rem;
    }
    
    div.disclosure-text-top p {
        font-size: 0.8rem;
        line-height: 1.6;
        padding: 0 1rem;
        margin-bottom: 0.25rem;
    }
    
    .disclosure-divider {
        display: block !important;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        margin: 0.25rem 1rem 0.25rem 1rem;
        padding: 0;
    }
    
    .modern-breadcrumb {
        margin-top: 0.25rem !important;
        padding-top: 0.25rem !important;
    }
    
    div.disclosure-text-top a {
        display: inline;
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
        text-decoration: underline !important;
        font-weight: 700;
        font-size: 0.8rem;
        color: #ffffff !important;
        transition: opacity 0.2s ease;
    }
    
    div.disclosure-text-top a::after {
        content: "";
        display: none;
    }
    
    div.disclosure-text-top a:hover,
    div.disclosure-text-top a:active {
        opacity: 0.8;
        background: none;
        border: none;
        transform: none;
    }
    
    .category-subtitle-container {
        margin: 0.25rem 0 1rem 0;
    }
    
    .category-subtitle {
        padding: 1rem;
        border-radius: 6px;
    }
    
    .category-subtitle p {
        font-size: 1rem;
        line-height: 1.6;
        /* Always clamp to 2 lines on mobile by default */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    /* Expanded state removes clamp */
    .category-subtitle p.expanded {
        display: block;
        -webkit-line-clamp: initial;
        overflow: visible;
        text-overflow: initial;
        margin-bottom: 0.5rem;
    }
    
    .subtitle-read-more {
        display: flex !important; /* override inline style="display:none"; JS may hide if short */
        justify-content: flex-start;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
        clear: both;
        flex-wrap: wrap;
    }
    
    /* Center the links when there's only one (no methodology link) */
    .subtitle-read-more.single-link {
        justify-content: center;
    }
    
    /* When both links are present, space them apart */
    .subtitle-read-more.has-methodology {
        justify-content: space-between;
    }
    
    .subtitle-methodology-link-mobile {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(30, 64, 175, 0.8) 100%);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        display: inline-block;
        flex: 0 0 auto;
    }
    
    .subtitle-methodology-link-mobile:hover {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 58, 138, 0.9) 100%);
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
    }
    
    .read-more-link {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        display: inline-block;
        flex: 0 0 auto;
        /* Only push to right when methodology link is present */
    }
    
    /* When methodology link exists, push read-more to the right */
    .subtitle-read-more.has-methodology .read-more-link {
        margin-left: auto;
    }
    
    .read-more-link:hover {
        background: rgba(255, 255, 255, 0.3);
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
    }
}

/* Subtitle Methodology Button */
.subtitle-methodology-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wrapper for button when no image exists - centers it on desktop */
.subtitle-methodology-btn-no-image-wrapper {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.subtitle-methodology-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Methodology Modal Styling */
.methodology-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.methodology-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.methodology-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.methodology-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.methodology-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.methodology-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.methodology-modal-body {
    padding: 2rem;
}

.methodology-text {
    margin-bottom: 1.5rem;
}

.methodology-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.methodology-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

.verification-badges {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.verification-badges h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.verification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verification-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.verification-list li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.methodology-updated {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.methodology-updated small {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .methodology-modal {
        padding: 1rem;
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
        align-items: flex-start;
    }
    
    .methodology-modal-content {
        max-width: 95%;
        max-height: 90vh;
        border-radius: 12px;
        margin-top: calc(1rem + env(safe-area-inset-top, 0px));
    }
    
    .methodology-modal-header {
        padding: 1.25rem 1.5rem;
        position: relative;
        top: auto;
    }
    
    .methodology-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .methodology-modal-body {
        padding: 1.5rem;
    }
    
    .methodology-text h3,
    .verification-badges h3 {
        font-size: 1rem;
    }
    
    .methodology-text p,
    .verification-list li {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .category-subtitle-container {
        margin: 0.75rem 0;
    }
    
    .category-subtitle {
        padding: 0.875rem;
    }
    
    .category-subtitle p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Desktop Enhancement */
@media (min-width: 1024px) {
    .product-media-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 16px 0;
    }
    
    .product-image-container {
        width: 100%;
        margin-bottom: 6px !important;
    }
    
    .product-price-container {
        width: 100%;
        min-width: 200px;
    }
    
    .category-subtitle-container {
        margin: 2rem 0;
    }
    
    .category-subtitle {
        padding: 1.5rem;
    }
    
    .category-subtitle p {
        font-size: 1.15rem;
        line-height: 1.8;
    }
    
    /* Ensure product images align vertically regardless of badge or title height */
    .product-card {
        align-items: flex-start;
    }
    
    .product-content {
        align-items: flex-start;
        /* Ensure consistent grid row alignment */
        grid-auto-rows: min-content;
    }
    
    /* Ensure product images align consistently across all product cards */
    .product-main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Ensure consistent vertical alignment */
        align-self: flex-start;
    }
    
    .product-header {
        order: 1;
        width: 100%;
        flex-shrink: 0;
    }
    
    .product-media-section {
        order: 2;
        align-self: flex-start;
        margin-top: 0;
        padding-top: 0;
        /* Ensure consistent positioning - images will align horizontally across cards */
        flex-shrink: 0;
    }
    
    .product-image-container {
        align-self: flex-start;
        position: relative;
        flex-shrink: 0;
    }
    
    /* Ensure consistent image alignment by standardizing the product-main height start point */
    .product-main > *:first-child {
        min-height: 0;
    }
}

/* Product Tabs */
.product-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px; /* Position under the header */
    z-index: 40; /* Lower than search dropdown (1000) and header (100) */
    backdrop-filter: blur(10px);
    background: rgba(248, 249, 250, 0.95);
    transition: all 0.3s ease;
}

/* Sort controls */
.sort-control-desktop { margin-left: auto; }
.sort-wrapper { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.18); padding: 6px 10px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.24); }
.sort-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ffffff; opacity: .9; }
.sort-select { padding: 8px 12px; border: 1px solid #c7d2fe; border-radius: 9999px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #111827; font-weight: 600; box-shadow: 0 8px 20px rgba(59,130,246,0.15); }
.sort-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
.sort-trigger-mobile { 
  display: none; 
  margin-left: auto; 
  background: linear-gradient(135deg, #eef2ff, #e0e7ff); 
  color: #111827; 
  border: 1px solid #d1d5db; 
  border-radius: 9999px; 
  padding: 8px 12px; 
  font-weight: 700; 
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.sort-trigger-mobile:active { transform: translateY(1px); }

/* Sort modal */
.sort-modal { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  display: none; 
  z-index: 999999; 
  -webkit-overflow-scrolling: touch; 
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}
.sort-modal[aria-hidden="false"] { 
  display: block !important; 
  visibility: visible !important;
  opacity: 1 !important;
}
.sort-modal-backdrop { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0,0,0,0.45); 
  z-index: 1; 
  pointer-events: auto; 
}
.sort-modal-panel { 
  position: absolute; 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%); 
  width: 90%; 
  max-width: 400px; 
  background: #ffffff; 
  border-radius: 16px; 
  box-shadow: 0 25px 60px rgba(0,0,0,0.25); 
  overflow: hidden; 
  z-index: 2; 
  pointer-events: auto; 
  -webkit-transform: translate(-50%, -50%); 
  -webkit-backface-visibility: hidden; 
  backface-visibility: hidden;
  box-sizing: border-box;
}
.sort-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: #ffffff; }
.sort-modal-body { padding: 12px; display: grid; gap: 10px; }
.sort-option { 
  width: 100%; 
  padding: 12px 14px; 
  border: 1px solid #e5e7eb; 
  border-radius: 12px; 
  background: #f9fafb; 
  color: #111827; 
  font-weight: 600; 
  text-align: left; 
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: background-color 0.2s ease;
}
.sort-option:hover { background: #f3f4f6; }
.sort-option:active { background: #e5e7eb; }
.sort-modal-close { background: transparent; border: none; color: #ffffff; font-size: 18px; line-height: 1; cursor: pointer; }

/* Prevent horizontal scrolling when modal is open */
body.modal-open {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

@media (max-width: 768px) {
  .sort-control-desktop { display: none; }
  .sort-trigger-mobile { display: inline-block; }
}

/* Enhanced sticky effect */
.product-tabs.sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Ensure search dropdown appears above sticky tabs */
.search-results {
    z-index: 10000 !important;
}

.search-results.show {
    z-index: 10000 !important;
}

/* Ensure search input and container have proper z-index */
.search-container {
    z-index: 10001 !important;
    position: relative;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-button:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.tab-button.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button svg {
    flex-shrink: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .product-tabs {
        margin: 1.5rem 0;
        position: sticky;
        top: 70px; /* Slightly lower for mobile header */
        z-index: 40; /* Lower than search dropdown (1000) and header (100) */
        backdrop-filter: blur(10px);
        background: rgba(248, 249, 250, 0.95);
        border-radius: 6px;
        padding: 3px;
    }
    
    .tab-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .tab-button svg {
        width: 14px;
        height: 14px;
    }
}

/* Tab text responsive */
.tab-text-mobile {
    display: none;
}

.tab-text-desktop {
    display: inline;
}

/* Similar Categories Styles */
.similar-categories-tab-desktop {
    display: inline-flex; /* Show on desktop by default */
}

/* When tabs are sticky, still show it */
.product-tabs.sticky .similar-categories-tab-desktop {
    display: inline-flex;
}

.similar-categories-desktop-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.similar-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .similar-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 2.5rem;
    }
    
    .similar-category-item {
        min-height: 320px;
        padding: 1.5rem;
    }
    
    .similar-category-img {
        width: 200px;
        height: 200px;
    }
}

.similar-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 280px;
}

.similar-category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.similar-category-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.similar-category-name {
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

/* Mobile Similar Categories Button - Floating Sticky */
.similar-categories-mobile-trigger {
    display: none !important; /* Hidden by default, shown when tabs are sticky via JS */
    position: fixed !important; /* Force fixed positioning */
    bottom: 16px !important; /* Bottom left positioning */
    left: 16px !important;
    top: auto !important; /* Ensure top is not set elsewhere */
    right: auto !important;
    z-index: 1000 !important; /* Increase z-index to ensure visibility */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity, visibility; /* Optimize for animations */
    -webkit-transform: translateZ(0); /* Force hardware acceleration on iOS */
    transform: translateZ(0);
    width: auto; /* Allow content to determine width */
    min-width: 0; /* Reset min-width */
    margin: 0 !important; /* Remove any margins */
    padding: 0 !important; /* Remove any padding */
}

.similar-categories-mobile-trigger.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure button is visible on all mobile widths */
@media (max-width: 768px) {
    .similar-categories-mobile-trigger.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: fixed !important;
        bottom: 16px !important;
        left: 16px !important;
        z-index: 1000 !important;
    }
}

.similar-categories-mobile-trigger.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

.similar-categories-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6 kondado, #1e40af 100%);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), 0 4px 12px rgba(30, 64, 175, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto; /* Changed from 100% to auto to size based on content */
    min-width: fit-content; /* Ensure minimum width fits content */
    position: relative;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .similar-categories-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        min-height: 48px;
        background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6), 0 4px 12px rgba(30, 64, 175, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.3);
        border: 2px solid #ffffff;
    }
    
    .similar-categories-btn-content svg {
        width: 20px;
        height: 20px;
        stroke: #ffffff;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }
}

.similar-categories-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.6), 0 6px 16px rgba(30, 64, 175, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.similar-categories-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), 0 3px 10px rgba(30, 64, 175, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.similar-categories-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    gap: 0.5rem;
}

.similar-categories-btn-content svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.similar-categories-close {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border: 2px solid white;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: absolute;
    right: -6px;
    top: -6px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.6), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.similar-categories-close:hover,
.similar-categories-close:focus {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
    outline: none;
}

.similar-categories-close:active {
    transform: scale(1.05) rotate(90deg);
}

/* Mobile Similar Categories Modal */
.similar-categories-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    overflow: hidden;
}

.similar-categories-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.similar-categories-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #0066cc;
    color: white;
    flex-shrink: 0;
}

.similar-categories-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.similar-categories-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
}

/* Category Image Modal */
.category-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.category-image-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.category-image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #0066cc;
    color: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.category-image-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.category-image-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-modal-close:hover {
    opacity: 0.8;
}

.category-image-modal-body {
    padding: 1.5rem;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(90vh - 80px);
}

.category-image-modal-body img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
}

@media (max-width: 768px) {
    .category-image-modal {
        padding: 1rem;
    }
    
    .category-image-modal-content {
        max-width: 100%;
        max-height: 100%;
    }
    
    .category-image-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .category-image-modal-header h3 {
        font-size: 1rem;
    }
    
    .category-image-modal-body {
        padding: 1rem;
        max-height: calc(100vh - 60px);
    }
    
    .category-image-modal-body img {
        max-height: calc(100vh - 60px);
    }
}

.similar-categories-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    display: block; /* Default - will be overridden by mobile media query */
}

.similar-category-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    min-height: 220px;
}

.similar-category-modal-item:active {
    background: #f7fafc;
    transform: scale(0.98);
}

.similar-category-modal-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.similar-category-modal-name {
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 768px) {
    .tab-text-desktop {
        display: none;
    }
    
    .tab-text-mobile {
        display: inline;
    }
    
    .similar-categories-tab-desktop {
        display: none !important; /* Never show on mobile, even when sticky */
    }
    
    .similar-categories-desktop-content {
        display: none;
    }
    
    /* Mobile responsive similar categories in modal */
    .similar-categories-modal-body {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .similar-category-modal-item {
        min-height: auto; /* Allow height to grow with content */
        padding: 1rem;
        margin-bottom: 0 !important; /* Remove margin since grid handles spacing */
        width: 100%; /* Take full width of grid cell */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .similar-category-modal-img {
        width: 100%; /* Take full width of the card */
        height: auto;
        aspect-ratio: 1; /* Maintain square aspect ratio */
        max-width: 100%;
        flex-shrink: 0; /* Don't shrink the image */
    }
    
    .similar-category-modal-name {
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-top: 0.75rem;
        flex-grow: 1; /* Allow text area to grow */
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .similar-categories-modal-body {
        grid-template-columns: repeat(2, 1fr) !important; /* Keep 2 columns even on small screens */
        gap: 0.75rem !important;
        padding: 0.75rem !important;
    }
    
    .similar-category-modal-item {
        min-height: auto; /* Allow height to grow with content */
        padding: 0.875rem;
        margin-bottom: 0 !important;
        width: 100%; /* Take full width of grid cell */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .similar-category-modal-img {
        width: 100%; /* Take full width of the card */
        height: auto;
        aspect-ratio: 1; /* Maintain square aspect ratio */
        max-width: 100%;
        flex-shrink: 0; /* Don't shrink the image */
    }
    
    .similar-category-modal-name {
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-top: 0.75rem;
        flex-grow: 1; /* Allow text area to grow */
        min-height: auto;
    }
}

/* FAQ Section Styling */
.faq-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.faq-section h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.faq-item p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mobile FAQ Styling */
@media (max-width: 768px) {
    .faq-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-item {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .faq-item p {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.9) !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .faq-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .faq-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .faq-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .faq-item h3 {
        font-size: 1rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9) !important;
        margin: 0 !important;
    }
}

/* Vote Buttons Styling */
.product-rank-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 12px 8px;
}

.product-rank {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 50px;
}

.rank-number {
    font-size: 1.2rem;
    font-weight: 700;
}

.vote-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

/* Desktop: Show vote label */
@media (min-width: 1201px) {
    .vote-label-desktop {
        display: block !important;
    }
    
    .vote-buttons > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
}

.vote-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.vote-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 32px;
    width: 32px;
    text-align: left;
}

.upvote-count {
    color: #16a34a;
}

.downvote-count {
    color: #dc2626;
}

.vote-btn {
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.upvote-btn {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.upvote-btn svg {
    width: 18px;
    height: 18px;
    stroke: #16a34a;
    transition: all 0.2s ease;
}

.upvote-btn:hover {
    background: #bbf7d0;
    border-color: #4ade80;
    transform: scale(1.1);
}

.upvote-btn:hover svg {
    stroke: #15803d;
}

.downvote-btn {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.downvote-btn svg {
    width: 18px;
    height: 18px;
    stroke: #dc2626;
    transition: all 0.2s ease;
}

.downvote-btn:hover {
    background: #fecaca;
    border-color: #f87171;
    transform: scale(1.1);
}

.downvote-btn:hover svg {
    stroke: #b91c1c;
}

.vote-btn:active {
    transform: scale(0.95);
}

.upvote-btn.voted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.upvote-btn.voted svg {
    stroke: #ffffff;
}

.downvote-btn.voted {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
}

.downvote-btn.voted svg {
    stroke: #ffffff;
}

.vote-btn:disabled:not(.voted) {
    opacity: 0.5;
    cursor: not-allowed;
}

.vote-btn.voted:disabled {
    cursor: default;
    opacity: 1;
}

@media (max-width: 768px) {
    .vote-btn {
        width: 30px;
        height: 30px;
        padding: 5px;
    }
    
    .vote-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .vote-count {
        font-size: 0.7rem;
        min-width: 28px;
        width: 28px;
    }
    
    .vote-item {
        gap: 4px;
    }
}

/* Product Award Badges */
.award-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 14px;
}

.award-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.award-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.award-badge svg {
    width: 10px;
    height: 10px;
    margin-right: 3px;
    flex-shrink: 0;
}

/* Ensure product-badge-large applies to award-badge too */
.product-badge-large.award-badge {
    padding: 6px 12px !important;
    font-size: 0.65rem !important;
    width: auto !important;
    height: auto !important;
    min-height: 20px !important; /* 30% less than 28px */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
}

.product-badge-large.award-badge svg {
    width: 18px !important;
    height: 18px !important;
    margin-right: 0 !important;
}

/* Best Overall - Gold/Yellow */
.award-best-overall {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1f2937;
    border: 1px solid #DAA520;
}

/* Best Value - Blue/Teal */
.award-best-value {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #ffffff;
    border: 1px solid #2563eb;
}

/* Highest Rated - Green/Emerald */
.award-highest-rated {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid #047857;
}

/* Product Badges Section - container for badges in product-rank-container */
.product-badges-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 0;
    align-items: center; /* Center each badge */
}

/* Mobile Badges Section - hidden on desktop, shown on mobile */
.product-badges-section-mobile {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
}

/* Hide desktop badges on mobile, show mobile badges */
@media (max-width: 768px) {
    .product-badges-section {
        display: none !important;
    }
    
    .product-badges-section-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .product-badges-section-mobile .award-badge {
        width: auto !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        margin-top: 0 !important;
    }
    
    .product-why-we-love-section .product-badges-section-mobile {
        display: flex !important;
    }
}

/* Reason Badges - Base Style - icon left, text right */
.award-reason-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    margin-top: 0;
    width: auto;
    height: auto;
    min-height: 14px;
    text-align: left;
    flex-shrink: 0;
}

/* Larger badge size when using product-badge-large class - stacked vertically, icon left, text right */
.product-badge-large {
    padding: 6px 12px !important;
    font-size: 0.65rem !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 20px !important; /* 30% less than 28px */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
    flex-shrink: 0 !important;
}

.product-badge-large svg {
    width: 18px !important;
    height: 18px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
}

.badge-text {
    text-transform: uppercase !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
}

.award-reason-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.award-reason-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    margin-right: 0;
}

/* Best Features - Purple/Violet */
.award-best-features {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: #6d28d9;
}

/* Best Value Badge - Cyan/Teal */
.award-best-value-badge {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff;
    border-color: #0f766e;
}

/* Best Reliability - Blue */
.award-best-reliability {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #1d4ed8;
}

/* Most Popular - Orange/Amber */
.award-most-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: #b45309;
}

/* Expert Trusted - Indigo */
.award-expert-trusted {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: #4338ca;
}

/* Best Availability - Emerald */
.award-best-availability {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #047857;
}

/* Highly Recommended - Rose/Pink */
.award-highly-recommended {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border-color: #be123c;
}

/* General - Slate/Gray */
.award-general {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #ffffff;
    border-color: #334155;
}

/* Dynamic Badges - Base Style - icon left, text right */
.award-dynamic-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    margin-top: 0;
    width: auto;
    height: auto;
    min-height: 14px;
    text-align: left;
    flex-shrink: 0;
}

.award-dynamic-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.award-dynamic-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    margin-right: 0;
}

/* Dynamic Badge Colors */
.award-dynamic-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: #6d28d9;
}

.award-dynamic-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-color: #b91c1c;
}

.award-dynamic-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #1d4ed8;
}

.award-dynamic-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff;
    border-color: #0f766e;
}

.award-dynamic-yellow {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #1f2937;
    border-color: #a16207;
}

.award-dynamic-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #047857;
}

.award-dynamic-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: #b45309;
}

.award-dynamic-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
    border-color: #be185d;
}

/* Desktop: Show badge next to rank */
@media (min-width: 769px) {
    .product-rank-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 80px;
        padding: 12px 8px;
    }
    
    .award-badge {
        margin-top: 8px;
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}

/* Mobile: Show badge below vote buttons */
@media (max-width: 768px) {
    .award-badge {
        margin-top: 0;
        font-size: 0.55rem;
        padding: 3px 6px;
        width: auto;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .award-badge svg {
        width: 10px;
        height: 10px;
        margin-right: 3px;
    }
}

/* Award Modal */
.award-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.award-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.award-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Expert Score Modal Styles */
.expert-score-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.expert-score-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.expert-score-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.expert-score-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-score-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: rotate(90deg);
}

/* Mobile: Make close button white */
@media (max-width: 768px) {
    .expert-score-modal-close {
        color: #ffffff !important;
    }
    
    .expert-score-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff !important;
    }
}

.expert-score-modal-header {
    padding: 20px 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.expert-score-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.expert-score-modal-header h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    padding-left: 140px;
    padding-right: 50px;
}

.expert-score-modal-main-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-left: 140px;
    padding-right: 50px;
    position: relative;
    z-index: 1;
}

.expert-score-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.expert-score-max {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.expert-score-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Expert Score Modal Curator/Influencer Styles */
.expert-score-modal-curator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.expert-score-modal-curator-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 48px;
    max-height: 48px;
    flex-shrink: 0;
}

.expert-score-modal-curator-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.expert-score-modal-curator-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.expert-score-modal-curator-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.expert-score-modal-curator-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mobile-specific fixes for curator image on iPhone */
@media (max-width: 768px) {
    .expert-score-modal-curator {
        left: 12px;
        gap: 10px;
    }
    
    .expert-score-modal-curator-image {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .expert-score-modal-curator-placeholder {
        width: 40px !important;
        height: 40px !important;
    }
    
    .expert-score-modal-curator-name {
        font-size: 0.8rem;
    }
    
    .expert-score-modal-curator-label {
        font-size: 0.65rem;
    }
    
    /* Adjust padding for mobile so h3 and score are grouped together */
    .expert-score-modal-header h3 {
        padding-left: 100px;
        padding-right: 50px;
    }
    
    .expert-score-modal-main-score {
        padding-left: 100px;
        padding-right: 50px;
    }
}

@media (max-width: 480px) {
    .expert-score-modal-curator-image {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    
    .expert-score-modal-curator-placeholder {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Further adjust padding for small phones */
    .expert-score-modal-header h3 {
        padding-left: 90px;
        padding-right: 40px;
    }
    
    .expert-score-modal-main-score {
        padding-left: 90px;
        padding-right: 40px;
    }
}

.expert-score-breakdown {
    padding: 24px;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* Force all text in breakdown to be dark - override any inherited white */
#expertScoreBreakdown {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

#expertScoreBreakdown * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Explicitly override any white text that might be inherited */
#expertScoreBreakdown .expert-score-methodology-note,
#expertScoreBreakdown .expert-score-methodology-note * {
    color: ##1e293b !important;
    -webkit-text-fill-color: ##1e293b !important;
}

#expertScoreBreakdown .expert-score-methodology-note h4 {
    color: ##1e293b !important;
    -webkit-text-fill-color: ##1e293b !important;
}

#expertScoreBreakdown .expert-score-methodology-note p {
    color: ##475569 !important;
    -webkit-text-fill-color: ##475569 !important;
}

/* Methodology Note */
.expert-score-methodology-note {
    margin-bottom: 24px;
    padding: 20px !important;
    background: linear-gradient(135deg, ##f8fafc 0%, ##f1f5f9 100%) !important;
    background-color: ##f8fafc !important;
    border-radius: 12px;
    border-left: 4px solid ##3b82f6 !important;
    border-left-width: 4px !important;
    border-left-style: solid !important;
    border-left-color: ##3b82f6 !important;
    color: ##1e293b !important;
    -webkit-text-fill-color: ##1e293b !important;
    position: relative;
}

/* Ensure border is visible */
.expert-score-methodology-note::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: ##3b82f6 !important;
    border-radius: 12px 0 0 12px;
    z-index: 1;
}

#expertScoreBreakdown .expert-score-methodology-note,
.expert-score-breakdown .expert-score-methodology-note {
    background: linear-gradient(135deg, ##f8fafc 0%, ##f1f5f9 100%) !important;
    border-left: 4px solid ##3b82f6 !important;
    color: ##1e293b !important;
    -webkit-text-fill-color: ##1e293b !important;
}

#expertScoreBreakdown .expert-score-methodology-note h3,
#expertScoreBreakdown .expert-score-methodology-note h4,
.expert-score-breakdown .expert-score-methodology-note h3,
.expert-score-breakdown .expert-score-methodology-note h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: ##1e293b !important;
    -webkit-text-fill-color: ##1e293b !important;
    margin: 0 0 12px;
}

#expertScoreBreakdown .expert-score-methodology-note p,
.expert-score-breakdown .expert-score-methodology-note p {
    font-size: 0.9rem;
    color: ##475569 !important;
    -webkit-text-fill-color: ##475569 !important;
    line-height: 1.7;
    margin: 0;
}

/* Mobile-specific fixes for methodology note - iPhone Safari specific */
@media (max-width: 768px) {
    #expertScoreBreakdown .expert-score-methodology-note,
    .expert-score-breakdown .expert-score-methodology-note,
    .expert-score-methodology-note {
        border-left: 4px solid ##3b82f6 !important;
        background: linear-gradient(135deg, ##f8fafc 0%, ##f1f5f9 100%) !important;
        background-color: ##f8fafc !important;
        color: ##1e293b !important;
        -webkit-text-fill-color: ##1e293b !important;
    }
    
    #expertScoreBreakdown .expert-score-methodology-note h3,
    #expertScoreBreakdown .expert-score-methodology-note h4,
    .expert-score-breakdown .expert-score-methodology-note h3,
    .expert-score-breakdown .expert-score-methodology-note h4,
    .expert-score-methodology-note h3,
    .expert-score-methodology-note h4 {
        color: ##1e293b !important;
        -webkit-text-fill-color: ##1e293b !important;
    }
    
    #expertScoreBreakdown .expert-score-methodology-note p,
    .expert-score-breakdown .expert-score-methodology-note p,
    .expert-score-methodology-note p {
        color: ##475569 !important;
        -webkit-text-fill-color: ##475569 !important;
    }
}

/* Additional iPhone Safari specific fix */
@supports (-webkit-touch-callout: none) {
    #expertScoreBreakdown .expert-score-methodology-note,
    .expert-score-breakdown .expert-score-methodology-note {
        border-left: 4px solid ##3b82f6 !important;
        background: linear-gradient(135deg, ##f8fafc 0%, ##f1f5f9 100%) !important;
        background-color: ##f8fafc !important;
        color: ##1e293b !important;
        -webkit-text-fill-color: ##1e293b !important;
    }
    
    #expertScoreBreakdown .expert-score-methodology-note h4,
    .expert-score-breakdown .expert-score-methodology-note h4 {
        color: ##1e293b !important;
        -webkit-text-fill-color: ##1e293b !important;
    }
    
    #expertScoreBreakdown .expert-score-methodology-note p,
    .expert-score-breakdown .expert-score-methodology-note p {
        color: ##475569 !important;
        -webkit-text-fill-color: ##475569 !important;
    }
}

/* Score Categories Grid */
.expert-score-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.expert-score-category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: ##ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.expert-score-category-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expert-score-category-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.expert-score-category-box:hover .expert-score-category-circle {
    transform: scale(1.1);
}

.expert-score-category-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
}

.expert-score-category-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: ##1e293b;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.expert-score-category-bar {
    display: none;
}

.expert-score-category-bar-fill {
    display: none;
}

@media (max-width: 768px) {
    .expert-score-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .expert-score-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Expert Score Badges */
.expert-score-key-highlights {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid ##e2e8f0;
}

.expert-score-key-highlights h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: ##1e293b;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expert-score-key-highlights h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, ##3b82f6 0%, ##1d4ed8 100%);
    border-radius: 2px;
}

.expert-score-badges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.expert-score-badge {
    padding: 14px 16px;
    background: linear-gradient(135deg, ##ffffff 0%, ##f8fafc 100%);
    border-radius: 12px;
    border-left: 3px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.expert-score-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expert-score-badge:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, ##ffffff 0%, ##f1f5f9 100%);
}

.expert-score-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.expert-score-badge:hover .expert-score-badge-icon {
    transform: scale(1.1);
}

.expert-score-badge-content {
    flex: 1;
    min-width: 0;
}

.expert-score-badge-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: ##1e293b;
    margin-bottom: 4px;
    line-height: 1.4;
}

.expert-score-badge-description {
    font-size: 0.85rem;
    color: ##64748b;
    line-height: 1.5;
}

/* Expert Score Container Hover Effects */
.expert-score-container {
    transition: all 0.3s ease;
}

.expert-score-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.expert-score-desktop:hover {
    border-color: currentColor;
}

.expert-score-mobile:hover {
    transform: scale(1.05);
}

.award-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1f2937;
    transition: all 0.2s ease;
    z-index: 10;
}

.award-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.award-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 24px 80px 24px;
    border-radius: 24px 24px 0 0;
    text-align: center;
    position: relative;
}

.award-modal-icon {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.award-modal-icon svg {
    width: 60px;
    height: 60px;
    fill: #1f2937; /* Default dark color for visibility on white background */
}

.award-modal-icon.best-overall {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.award-modal-icon.best-overall svg {
    fill: #1f2937;
}

.award-modal-icon.best-value {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.award-modal-icon.best-value svg {
    fill: #ffffff;
}

.award-modal-icon.highest-rated {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.award-modal-icon.highest-rated svg {
    fill: #ffffff;
}

.award-modal-icon.best-features {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.award-modal-icon.best-features svg {
    fill: #ffffff;
}

.award-modal-icon.best-value-badge {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.award-modal-icon.best-value-badge svg {
    fill: #ffffff;
}

.award-modal-icon.best-reliability {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.award-modal-icon.best-reliability svg {
    fill: #ffffff;
}

.award-modal-icon.most-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.award-modal-icon.most-popular svg {
    fill: #ffffff;
}

.award-modal-icon.expert-trusted {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.award-modal-icon.expert-trusted svg {
    fill: #ffffff;
}

.award-modal-icon.best-availability {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.award-modal-icon.best-availability svg {
    fill: #ffffff;
}

.award-modal-icon.highly-recommended {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.award-modal-icon.highly-recommended svg {
    fill: #ffffff;
}

.award-modal-icon.general {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.award-modal-icon.general svg {
    fill: #ffffff;
}

.award-modal-icon.dynamic-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.award-modal-icon.dynamic-purple svg {
    fill: #ffffff;
}

.award-modal-icon.dynamic-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.award-modal-icon.dynamic-red svg {
    fill: #ffffff;
}

.award-modal-icon.dynamic-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.award-modal-icon.dynamic-blue svg {
    fill: #ffffff;
}

.award-modal-icon.dynamic-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.award-modal-icon.dynamic-teal svg {
    fill: #ffffff;
}

.award-modal-icon.dynamic-yellow {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.award-modal-icon.dynamic-yellow svg {
    fill: #1f2937;
}

.award-modal-icon.dynamic-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.award-modal-icon.dynamic-green svg {
    fill: #ffffff;
}

.award-modal-icon.dynamic-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.award-modal-icon.dynamic-orange svg {
    fill: #ffffff;
}

.award-modal-icon.dynamic-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.award-modal-icon.dynamic-pink svg {
    fill: #ffffff;
}

/* Dynamic Lavender */
.award-modal-icon.dynamic-lavender {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.award-modal-icon.dynamic-lavender svg {
    fill: #ffffff;
}

/* Dynamic Slate */
.award-modal-icon.dynamic-slate {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.award-modal-icon.dynamic-slate svg {
    fill: #ffffff;
}

/* Fallback for any dynamic color not explicitly defined - use purple gradient (must come after specific classes) */
.award-modal-icon[class*="dynamic-"]:not(.dynamic-purple):not(.dynamic-red):not(.dynamic-blue):not(.dynamic-teal):not(.dynamic-yellow):not(.dynamic-green):not(.dynamic-orange):not(.dynamic-pink):not(.dynamic-lavender):not(.dynamic-slate) {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.award-modal-icon[class*="dynamic-"]:not(.dynamic-purple):not(.dynamic-red):not(.dynamic-blue):not(.dynamic-teal):not(.dynamic-yellow):not(.dynamic-green):not(.dynamic-orange):not(.dynamic-pink):not(.dynamic-lavender):not(.dynamic-slate) svg {
    fill: #ffffff;
}

.award-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.award-modal-body {
    padding: 0 24px 32px 24px;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

.award-curator-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.award-curator-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.award-curator-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
}

.award-curator-photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    border: 3px solid #3b82f6;
}

.award-curator-info {
    flex: 1;
}

.award-curator-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
}

.award-curator-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.award-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.award-date svg {
    width: 16px;
    height: 16px;
    fill: #6b7280;
}

.award-description {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #3b82f6;
}

.award-description h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.award-description p {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .award-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 20px;
    }
    
    .award-modal-header {
        padding: 32px 20px 70px 20px;
    }
    
    .award-modal-icon {
        width: 100px;
        height: 100px;
    }
    
    .award-modal-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .award-modal-title {
        font-size: 1.5rem;
    }
    
    .award-modal-body {
        padding: 0 20px 24px 20px;
        margin-top: -50px;
    }
    
    .award-curator-photo,
    .award-curator-photo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .award-curator-name {
        font-size: 1.1rem;
    }
}

/* Mobile-only Product Detail Tabs */
.product-detail-tabs-mobile {
    display: none; /* Hidden by default, shown only on mobile */
}

.product-detail-tabs-mobile .tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
    background: transparent;
}

.product-detail-tabs-mobile .tab-button {
    flex: 1;
    padding: 14px 16px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    margin-bottom: -1px;
}

.product-detail-tabs-mobile .tab-button:hover {
    background: #f9fafb;
    color: #4b5563;
}

.product-detail-tabs-mobile .tab-button.active {
    background: #ffffff;
    color: #6b7280;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.product-detail-tabs-mobile .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px 2px 0 0;
}

.product-detail-tabs-mobile .tab-content-panel {
    display: none;
}

.product-detail-tabs-mobile .tab-content-panel.active {
    display: block;
}

/* Hide tabs on iPad and Desktop */
@media (min-width: 769px) {
    .product-detail-tabs-mobile {
        display: none !important;
    }
    
    /* Hide mobile-only rank+name header on iPad/Desktop */
    .product-header-mobile-rank-name {
        display: none !important;
    }
}

/* Show tabs only on mobile and hide original sections */
@media (max-width: 768px) {
    .product-detail-tabs-mobile {
        display: block;
    }
    
    /* Hide original sections that are siblings of the mobile tab container (for iPad/Desktop) */
    .product-detail-tabs-mobile ~ .product-pros-cons-stacked.product-pros-cons-original,
    .product-detail-tabs-mobile ~ .product-why-we-love-section.product-why-we-love-original,
    .product-detail-tabs-mobile ~ .product-description-section {
        display: none !important;
    }
    
    /* Ensure sections inside tab panels are visible when active */
    .product-detail-tabs-mobile .tab-content-panel.active > * {
        display: block !important;
    }
    
    /* Ensure sections inside tab panels maintain their flex/block display */
    .product-detail-tabs-mobile .tab-content-panel.active .product-pros-cons-stacked {
        display: flex !important;
    }
    
    .product-detail-tabs-mobile .tab-content-panel.active .product-why-we-love-section {
        display: flex !important;
    }
    
    /* Mobile Product Layout Redesign */
    /* Hide vote buttons on mobile */
    .product-rank-container .vote-buttons {
        display: none !important;
    }
    
    /* Hide the entire product-rank-container column on mobile */
    .product-rank-container {
        display: none !important;
    }
    
    /* Make product card full width and centered on mobile */
    .product-card {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Make product-content full width and centered */
    .product-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Make product-main full width and centered */
    .product-main {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        order: 1 !important;
    }
    
    /* Ensure mobile tab container appears after product-main (buy button) */
    .product-detail-tabs-mobile {
        order: 2 !important;
        width: 100% !important;
        margin-top: 16px !important;
    }
    
    /* Mobile-only rank and name row */
    .product-header-mobile-rank-name {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        flex-wrap: wrap !important;
        order: 0 !important;
    }
    
    .product-rank-mobile {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
        color: white !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
    }
    
    .product-title-mobile {
        flex: 1 !important;
        min-width: 0 !important;
        text-align: center !important;
    }
    
    .product-title-mobile .product-title-link {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Hide desktop product-header on mobile */
    .product-header {
        display: none !important;
    }
    
    /* Center product media section */
    .product-media-section {
        width: 100% !important;
        max-width: 100% !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
    
    /* Center rating row */
    .rating-row {
        justify-content: center !important;
        width: 100% !important;
    }
    
    /* Center merchant options */
    .merchant-options-container {
        width: 100% !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .merchant-buttons-container {
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Center badges in mobile tab container */
    .product-detail-tabs-mobile .product-badges-section-mobile {
        justify-content: center !important;
        width: 100% !important;
    }
    
    /* Ensure product-image-container is centered */
    .product-image-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* Ensure product-image is centered */
    .product-image {
        margin: 0 auto !important;
    }
    
    /* Make product-media-section relative for absolute positioning */
    .product-media-section {
        position: relative !important;
    }
    
    /* Price History Icon - Mobile: Floating box on right near stars */
    .product-media-section .price-history-icon {
        position: absolute !important;
        right: 16px !important;
        margin: 0 !important;
        padding: 8px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        gap: 0 !important;
        z-index: 10 !important;
    }
    
    .product-media-section .price-history-icon svg {
        width: 20px !important;
        height: 20px !important;
        fill: #3b82f6 !important;
    }
    
    /* Hide price history text on mobile */
    .price-history-text {
        display: none !important;
    }
}



/* Floating video widget */
.wab-video-widget{position:fixed;right:16px;bottom:16px;width:360px;max-width:90vw;background:#ffffff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,0.15);z-index:1000;overflow:hidden}
.wab-video-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#111827;color:#fff}
.wab-video-title{margin:0;font-size:0.9rem;font-weight:600}
.wab-video-close{background:transparent;border:0;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.wab-video-body{position:relative;padding-top:56.25%}
.wab-video-body iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
@media (max-width:640px){.wab-video-widget{right:8px;bottom:8px;width:320px}}



/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: ##ffffff;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.image-modal-close:hover,
.image-modal-close:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-modal-caption {
    margin: auto;
    display: block;
    max-width: 80%;
    text-align: center;
    color: ##ffffff;
    padding: 20px;
    font-size: 1.1rem;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
        width: 40px;
        height: 40px;
    }
    
    .image-modal-caption {
        font-size: 0.9rem;
        padding: 15px;
        max-width: 90%;
        bottom: 10px;
    }
}

/* Make product images clickable */
.product-image-container {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.product-image-container:hover {
    transform: scale(1.02);
}

/* Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Right side text animation (slides from right) */
.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Reverse animation (slides from top) for vote buttons */
.scroll-animate-reverse {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Bottom animation (slides from bottom) for mobile badges */
.scroll-animate-bottom {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When product card is animated, trigger all child animations simultaneously */
.product-card-animate.animate .scroll-animate,
.product-card-animate.animate .scroll-animate-right,
.product-card-animate.animate .scroll-animate-reverse,
.product-card-animate.animate .scroll-animate-bottom {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Standalone animated elements (FAQ, similar categories, etc.) */
.faq-section.scroll-animate.animate,
.similar-categories.scroll-animate.animate,
.similar-categories-desktop-content.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delay for child elements within product cards (cards animate at different times, but all elements within a card animate together) */
.product-card-animate:nth-child(1).animate .scroll-animate,
.product-card-animate:nth-child(1).animate .scroll-animate-right,
.product-card-animate:nth-child(1).animate .scroll-animate-reverse,
.product-card-animate:nth-child(1).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(2).animate .scroll-animate,
.product-card-animate:nth-child(2).animate .scroll-animate-right,
.product-card-animate:nth-child(2).animate .scroll-animate-reverse,
.product-card-animate:nth-child(2).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(3).animate .scroll-animate,
.product-card-animate:nth-child(3).animate .scroll-animate-right,
.product-card-animate:nth-child(3).animate .scroll-animate-reverse,
.product-card-animate:nth-child(3).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(4).animate .scroll-animate,
.product-card-animate:nth-child(4).animate .scroll-animate-right,
.product-card-animate:nth-child(4).animate .scroll-animate-reverse,
.product-card-animate:nth-child(4).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(5).animate .scroll-animate,
.product-card-animate:nth-child(5).animate .scroll-animate-right,
.product-card-animate:nth-child(5).animate .scroll-animate-reverse,
.product-card-animate:nth-child(5).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(6).animate .scroll-animate,
.product-card-animate:nth-child(6).animate .scroll-animate-right,
.product-card-animate:nth-child(6).animate .scroll-animate-reverse,
.product-card-animate:nth-child(6).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(7).animate .scroll-animate,
.product-card-animate:nth-child(7).animate .scroll-animate-right,
.product-card-animate:nth-child(7).animate .scroll-animate-reverse,
.product-card-animate:nth-child(7).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(8).animate .scroll-animate,
.product-card-animate:nth-child(8).animate .scroll-animate-right,
.product-card-animate:nth-child(8).animate .scroll-animate-reverse,
.product-card-animate:nth-child(8).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(9).animate .scroll-animate,
.product-card-animate:nth-child(9).animate .scroll-animate-right,
.product-card-animate:nth-child(9).animate .scroll-animate-reverse,
.product-card-animate:nth-child(9).animate .scroll-animate-bottom {
    transition-delay: 0s;
}
.product-card-animate:nth-child(10).animate .scroll-animate,
.product-card-animate:nth-child(10).animate .scroll-animate-right,
.product-card-animate:nth-child(10).animate .scroll-animate-reverse,
.product-card-animate:nth-child(10).animate .scroll-animate-bottom {
    transition-delay: 0s;
}

/* Subtle animation for sections */
.faq-section.scroll-animate,
.similar-categories.scroll-animate,
.similar-categories-desktop-content.scroll-animate {
    transition-delay: 0.2s;
}

/* Price History Modal Styles */
.price-history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.price-history-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.price-history-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    } 
}

.price-history-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: ##ffffff;
    transition: all 0.2s ease;
    z-index: 10;
}

.price-history-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: ##ffffff;
    transform: rotate(90deg);
}

.price-history-modal-header {
    background: linear-gradient(135deg, ##3b82f6 0%, ##60a5fa 100%);
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-history-modal-header svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.price-history-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.price-history-modal-body {
    padding: 24px;
}

.price-history-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: ##6b7280;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid ##f3f4f6;
    border-top: 4px solid ##f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.price-history-chart {
    margin: 20px 0;
}

.price-history-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-history-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: ##f9fafb;
    border-radius: 8px;
    border-left: 4px solid ##f59e0b;
    transition: all 0.2s ease;
}

.price-history-item:hover {
    background: ##f3f4f6;
    transform: translateX(4px);
}

.price-history-date {
    flex: 0 0 140px;
    font-size: 0.875rem;
    color: ##6b7280;
    font-weight: 600;
}

.price-history-price {
    flex: 0 0 100px;
    font-size: 1.25rem;
    font-weight: 700;
    color: ##1f2937;
}

.price-history-change {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.price-history-change.increase {
    color: ##dc2626;
}

.price-history-change.decrease {
    color: ##10b981;
}

.price-history-change.neutral {
    color: ##6b7280;
}

.price-history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid ##e5e7eb;
}

.price-history-stat {
    text-align: center;
    padding: 16px;
    background: ##f9fafb;
    border-radius: 8px;
}

.price-history-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: ##6b7280;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-history-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: ##1f2937;
    margin-bottom: 4px;
}

.price-history-stat-date {
    font-size: 0.75rem;
    color: ##6b7280;
    font-weight: 500;
}

.price-line-graph {
    background: ##ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    height: 400px;
}

.price-line-graph canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Mobile adjustments for price history chart */
@media (max-width: 768px) {
    .price-line-graph {
        height: 250px;
        width: 98%;
        padding: 16px;
    }
}

.price-graph-svg {
    width: 100%;
    height: 300px;
    display: block;
}

.price-graph-svg text {
    font-size: 4px !important;
    font-weight: 700 !important;
}

.today-badge {
    display: inline-block;
    background: linear-gradient(135deg, ##10b981 0%, ##059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.price-graph-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.75rem;
    color: ##6b7280;
    font-weight: 600;
}

.price-graph-label-start,
.price-graph-label-end {
    padding: 4px 8px;
    background: ##f3f4f6;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .price-history-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }
    
    .price-history-modal-header {
        padding: 20px;
    }
    
    .price-history-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .price-history-modal-header svg {
        width: 24px;
        height: 24px;
    }
    
    .price-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .price-history-date,
    .price-history-price {
        flex: none;
    }
    
    .price-history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}




