/* Modern Shop Banner & Product Layout */

.shop{
    background: transparent;
    position: relative;
    z-index: 1;
    padding: 0;
    overflow: visible !important;
}

.shop::before {
    display: none;
}

.shop_header{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 20px 0;
}

.shop_info{
    max-width: 100%;
    width: 100%;
    text-align: center;
}

.shop_badge{
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    margin-bottom: 24px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.shop__title{
    position: relative;
    font-family: var(--font-primary, 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif);
    font-weight: 600;
    color: var(--text-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    z-index: 2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.shop__title::before{
    display: none;
}

.shop_description{
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.shop_section{
    position: relative;
    z-index: 2;
    padding: 0 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible !important;
}

.shop_section::before,
.shop_section::after {
    z-index: -1 !important;
}

.product_section {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.shop_toggle{
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    border-bottom: none;
    overflow: visible !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1000 !important;
    isolation: isolate;
}

.shop_toggle::-webkit-scrollbar {
    display: none;
}

.shop_toggle ul{
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    min-width: min-content;
}

.shop_toggle ul li{
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.shop_toggle ul li img{
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.shop_toggle ul li::after{
    display: none;
}

.shop_toggle ul li.active{
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    z-index: 1001 !important;
    position: relative;
    transform: translateZ(0);
    will-change: transform;
}

.shop_toggle ul li.active img{
    filter: brightness(0) invert(1);
    opacity: 1;
}

.shop_toggle ul li:hover{
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    z-index: 50;
}

.shop_toggle ul li:hover img{
    opacity: 1;
    transform: scale(1.1);
}

/* Minimal Product Card Design */
.product_card{
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 0;
    text-align: left;
    position: relative;
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: none;
}

.product_card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

/* Minimal Loading Enhancements */
.product_card {
    opacity: 1;
    animation: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Minimal Product Banner Area */
.product_banner {
    background: transparent;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.product_banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
    filter: none;
}

.product_card:hover .product_banner img {
    opacity: 0.9;
}

/* Hide all banner text elements for clean minimal design */
.product_banner_title,
.product_banner_subtitle,
.stock_indicator,
.product_banner_text {
    display: none;
}

@keyframes pulse-green {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Minimal Product Content Area */
.product_content{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
    justify-content: space-between;
    background: transparent;
    position: relative;
}

.product_card_title{
    font-family: var(--font-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-weight: 600;
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 6px 0;
    line-height: 1.3;
    text-align: left;
    transition: color 0.3s ease;
}

.product_card_title .duration {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.product_card:hover .product_card_title {
    color: rgba(255, 255, 255, 0.9);
}

.product_card_description{
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.4;
    margin: 20px 0;
    text-align: left;
    font-weight: 400;
}

.product_card_description > * {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.product_card_description > *::before {
    content: '';
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.product_card:hover .product_card_description > * {
    color: rgba(255, 255, 255, 0.8);
}

.product_card:hover .product_card_description > *::before {
    background: rgba(139, 92, 246, 0.9);
}

.product_card_price{
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product_card_price span{
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-top: 4px;
    text-shadow: none;
    background: none;
    position: relative;
    font-family: var(--font-body, "Inter", -apple-system, BlinkMacSystemFont, sans-serif);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.product_card:hover .product_card_price span {
    color: var(--primary-light);
}

/* Minimal Purchase Button */
.product_href{
    display: block;
    width: 100%;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: none;
    font-family: var(--font-body, "Inter", -apple-system, BlinkMacSystemFont, sans-serif);
}

.product_href:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product_href:active {
    transform: scale(0.98);
}

.product_href img{
    display: none;
}

/* SellHub Button Specific Styling */
button[data-sellhub-variant] {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: none;
    font-family: var(--font-body, "Inter", -apple-system, BlinkMacSystemFont, sans-serif);
}

button[data-sellhub-variant]:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

button[data-sellhub-variant]:active {
    transform: scale(0.98);
}

button[data-sellhub-variant]:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Loading state for SellHub buttons */
button[data-sellhub-variant].loading {
    opacity: 0.7;
    pointer-events: none;
}

button[data-sellhub-variant].loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Minimal Effect for Special Cards */
.product_card.glass-effect {
    background: rgba(15, 15, 35, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.product_card.glass-effect:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

/* High Refresh Rate Display Optimizations for Shop */
@media (min-resolution: 120dpi) and (min-device-pixel-ratio: 1.5) {
    .shop_toggle ul li {
        transition: all 0.2s ease;
    }
    
    .shop_toggle ul li img {
        transition: all 0.2s ease;
    }
    
    .product_card {
        transition: border-color 0.2s ease;
    }
    
    .product_banner img {
        transition: opacity 0.2s ease;
    }
    
    .product_card_title {
        transition: color 0.2s ease;
    }
    
    .product_price_value {
        transition: color 0.2s ease;
    }
    
    .product_tag {
        transition: background-color 0.2s ease;
    }
}

/* Ultra-high refresh rate optimization - Conservative */
@media (update: fast) {
    .shop_toggle ul li {
        transition: all 0.15s ease;
    }
    
    .shop_toggle ul li img {
        transition: all 0.15s ease;
    }
    
    .product_card {
        transition: border-color 0.15s ease;
    }
}

/* MacBook Pro 120Hz specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 1200px) {
    .shop_toggle ul li {
        transition: all 0.2s ease-out;
        /* Enhanced GPU acceleration */
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }
    
    .shop_toggle ul li:hover {
        transform: translate3d(0, -1px, 0);
    }
    
    .shop_toggle ul li img {
        transition: all 0.2s ease-out;
    }
    
    .shop_toggle ul li:hover img {
        transform: scale(1.05);
    }
    
    .product_card {
        transition: border-color 0.2s ease-out;
        /* Enhanced GPU acceleration */
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }
    
    .product_banner img {
        transition: opacity 0.2s ease-out;
    }
    
    .product_card_title {
        transition: color 0.2s ease-out;
    }
    
    .product_price_value {
        transition: color 0.2s ease-out;
    }
    
    .product_tag {
        transition: background-color 0.2s ease-out;
    }
}

/* Responsive Design */
@media only screen and (max-width: 1300px) {
    .shop{
        padding-left: 1%;
        padding-right: 1%;
    }

    .shop_toggle{
        overflow: auto;
        justify-content: flex-start;
    }
    
    .shop_toggle ul{
        justify-content: flex-start;
    }
    
    .shop_toggle ul li{
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .shop_hero_banner {
        margin: 0 15px 40px;
        padding: 40px 24px;
        border-radius: 12px;
    }
    
    .shop__title {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 16px;
    }
    
    .shop_description {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .shop_cta_button {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .shop_header {
        padding: 60px 15px 0;
    }
    
    .shop_section {
        padding: 0 15px 60px;
    }
    
    .shop_toggle {
        margin: 30px 0;
        padding: 0 10px;
        overflow: visible;
    }
    
    .shop_toggle ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .shop_toggle ul li {
        font-size: 11px;
        padding: 8px 12px;
        gap: 4px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
        min-height: 40px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    
    .shop_toggle ul li img {
        width: 16px;
        height: 16px;
        margin-bottom: 2px;
    }

    .product_card{
        max-width: 100%;
        min-height: 340px;
        border-radius: 10px;
        margin-bottom: 24px;
    }
    
    .product_banner {
        height: 140px;
        border-radius: 10px 10px 0 0;
    }
    
    .product_banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product_banner_text {
        font-size: 10px;
        bottom: 12px;
        left: 16px;
        right: 16px;
    }
    
    .product_card_title {
        font-size: 18px;
    }
    
    .product_card_price span {
        font-size: 24px;
    }
    
    .product_href {
        padding: 14px 0;
        border-radius: 6px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .shop_hero_banner {
        margin: 0 10px 30px;
        padding: 30px 20px;
        border-radius: 10px;
    }
    
    .shop__title {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }
    
    .shop_description {
        font-size: 14px;
    }
    
    .shop_cta_button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .shop_toggle {
        margin: 20px 0;
        padding: 0 10px;
        overflow: visible;
    }
    
    .shop_toggle ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .shop_toggle ul li {
        font-size: 10px;
        padding: 6px 10px;
        gap: 3px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
        min-height: 36px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    
    .shop_toggle ul li img {
        width: 14px;
        height: 14px;
        margin-bottom: 2px;
    }
    
    .product_card {
        min-height: 320px;
        border-radius: 8px;
    }
    
    .product_banner {
        height: 120px;
        border-radius: 8px 8px 0 0;
    }
    
    .product_banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product_banner_text {
        font-size: 9px;
        bottom: 8px;
        left: 12px;
        right: 12px;
    }
    
    .product_content {
        padding: 20px;
    }
    
    .product_card_title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .product_card_description {
        margin: 16px 0;
        gap: 10px;
    }
    
    .product_card_description > * {
        font-size: 12px;
    }
    
    .product_card_price {
        margin-bottom: 16px;
        font-size: 11px;
    }
    
    .product_card_price span {
        font-size: 20px;
        margin-top: 3px;
    }
    
    .product_href {
        padding: 10px 0;
        border-radius: 6px;
        font-size: 12px;
        letter-spacing: 0.8px;
    }
}

/* Grid Layout */
.shop__cards {
    margin-bottom: 32px;
}

.shop__cards .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.shop__cards .col-xl-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .shop__cards .col-xl-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .shop__cards .col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.product_card {
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

/* Minimal Focus States for Accessibility */
.product_href:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.shop_toggle ul li:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Simplified Loading States */
.product_card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product_card.loading .product_href {
    background: transparent;
    color: rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
    cursor: not-allowed;
}

/* Enhanced Accessibility - Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .product_card,
    .product_banner img,
    .product_href,
    .product_card_title,
    .product_card_price span {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark Mode Support Enhancement */
@media (prefers-color-scheme: dark) {
    .product_card {
        background: rgba(15, 15, 35, 0.98);
    }
}

/* Print Styles */
@media print {
    .product_card {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    .product_href {
        background: transparent !important;
        color: #8b5cf6 !important;
        border: 1px solid #8b5cf6 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .product_card {
        border: 2px solid;
        background: rgba(0, 0, 0, 0.95);
    }
    
    .product_card_title {
        color: white;
    }
    
    .product_href {
        border: 2px solid white;
    }
}
