/**
 * Premium Subscription Product Grid - Beautiful Modern Design
 * Inspired by GamsGo with premium aesthetics
 */

/* ===== CSS RESET & BASE ===== */
.gamsgo-wrapper,
.gamsgo-wrapper * {
    box-sizing: border-box;
}

.gamsgo-wrapper {
    /* Full-width breakout from content container */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    clear: both;
    
    /* DARK PREMIUM Color Palette - Matching Black Home Page */
    --gg-primary: #ff4757;
    --gg-primary-dark: #ff6348;
    --gg-primary-glow: rgba(255, 71, 87, 0.3);
    --gg-bg: #0a0a0a;
    --gg-bg-light: #141414;
    --gg-bg-card: #1a1a1a;
    --gg-bg-elevated: #242424;
    --gg-white: #ffffff;
    --gg-text: #f1f2f6;
    --gg-text-light: #a4b0be;
    --gg-text-muted: #747d8c;
    --gg-border: #2f3542;
    --gg-border-light: #57606f;
    --gg-green: #2ed573;
    --gg-orange: #ffa502;
    --gg-purple: #5352ed;
    --gg-cyan: #00d2d3;
    
    --gg-radius-lg: 20px;
    --gg-radius-md: 14px;
    --gg-radius-sm: 10px;
    
    --gg-shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --gg-shadow: 0 8px 32px rgba(0,0,0,0.5);
    --gg-shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
    --gg-glow-primary: 0 0 20px rgba(255, 71, 87, 0.4);
}

/* Hide XStore elements */
.gamsgo-wrapper .product-image-wrapper,
.gamsgo-wrapper .product-details,
.gamsgo-wrapper .product-image,
.gamsgo-wrapper .swatch,
.gamsgo-wrapper .wc-forward,
.gamsgo-wrapper .added_to_cart {
    display: none !important;
}

/* ===== HERO SECTION - Dark Premium ===== */
.gamsgo-hero {
    background: linear-gradient(180deg, #0d0d0d 0%, #111111 50%, #0a0a0a 100%);
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gamsgo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.gamsgo-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,71,87,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gamsgo-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.gamsgo-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ===== CATEGORY FILTER BAR - Dark Style ===== */
.gamsgo-categories {
    background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    padding: 20px 0 30px;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.category-filter-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    border: none;
    min-width: 70px;
}

.category-item:hover {
    color: #ff6b6b;
    background: rgba(255,71,87,0.08);
}

.category-item.active {
    background: rgba(255,71,87,0.12);
    color: #ff6b6b;
    border-radius: 12px;
}

.category-item.active::after {
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 2px;
    margin-top: 4px;
}

.category-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-item span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== PRODUCTS GRID - Dark Gradient ===== */
.gamsgo-products {
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f12 30%, #0d0d11 70%, #0a0a0a 100%);
    padding: 30px 0 60px;
    position: relative;
}

.gamsgo-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255,107,107,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PRODUCT CARD - Dark Premium ===== */
.product-card {
    background: #151518;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(255,107,107,0.08);
    border-color: rgba(255,107,107,0.15);
}

/* Badge - GamsGo Style */
.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
}

.product-badge.green {
    background: rgba(46,125,50,0.15);
    color: #66bb6a;
    border: none;
}

.product-badge.red {
    background: rgba(229,57,53,0.15);
    color: #ef5350;
    border: none;
}

.product-badge.yellow {
    background: rgba(245,127,23,0.15);
    color: #ffa726;
    border: none;
}

.product-badge.new {
    background: rgba(46,125,50,0.15);
    color: #66bb6a;
    border: none;
}

/* Product Header - GamsGo Centered */
.product-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px 12px;
    position: relative;
    z-index: 2;
}

.product-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1e1e24;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

.product-card:hover .product-logo {
    transform: none;
    box-shadow: none;
}

.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-logo.placeholder {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Price Section - GamsGo Clean */
.product-price-section {
    background: transparent;
    padding: 10px 20px 16px;
    text-align: center;
    color: #ffffff;
    border: none;
    position: relative;
}

.join-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.price-wrapper .price,
.price-wrapper .price .woocommerce-Price-amount {
    color: #ffffff;
    text-shadow: none;
}

.price-wrapper .period {
    color: rgba(255,255,255,0.4);
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-wrapper .price {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.price-wrapper .price .woocommerce-Price-amount {
    font-size: 32px;
    font-weight: 800;
}

.price-wrapper .price .woocommerce-Price-currencySymbol {
    font-size: 22px;
    font-weight: 700;
}

.price-wrapper .period {
    font-size: 14px;
    font-weight: 500;
}

/* Features - GamsGo Clean List */
.product-features {
    flex-grow: 1;
    padding: 12px 20px 8px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    border-bottom: none;
    transition: none;
}

.feature-item:hover {
    color: rgba(255,255,255,0.8);
    padding-left: 0;
}

.feature-item:last-of-type {
    border-bottom: none;
}

.check-icon {
    width: 14px;
    height: 14px;
    color: #66bb6a;
    flex-shrink: 0;
    margin-top: 2px;
    filter: none;
}

.features-more {
    text-align: center;
    padding: 4px 0 0;
    cursor: pointer;
    border-top: none;
    margin-top: 2px;
    position: relative;
    z-index: 2;
    display: none;
}

.features-more svg {
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s;
}

/* Actions - GamsGo Red Button */
.product-actions {
    padding: 4px 20px 10px;
    position: relative;
    z-index: 2;
}

.btn-purchase {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #ff6b6b;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-purchase:hover {
    background: #e85555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
    color: white;
}

.btn-purchase.out-of-stock {
    background: rgba(255,160,122,0.2);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    box-shadow: none;
    border: none;
    opacity: 0.9;
}

.btn-purchase.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

/* View Details - GamsGo Simple */
.view-details {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    text-decoration: underline;
    padding: 6px 20px 16px;
    transition: all 0.2s;
    font-weight: 500;
    letter-spacing: 0;
    position: relative;
    z-index: 2;
}

.view-details:hover {
    color: #ff6b6b;
}

.view-details::after {
    content: '';
}

.view-details:hover::after {
    content: '';
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    color: rgba(255,255,255,0.5);
    background: #151518;
    border-radius: 16px;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: none;
}

/* ===== COMPREHENSIVE RESPONSIVE ===== */

/* Large Desktop - 1400px+ (4 columns) */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
        gap: 24px;
    }
    .gamsgo-title {
        font-size: 40px;
    }
}

/* Desktop - 1200px to 1399px (4 columns, smaller gap) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
}

/* Small Desktop / Large Tablet - 992px to 1199px (3 columns) */
@media (max-width: 1199px) and (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    .gamsgo-title {
        font-size: 32px;
    }
}

/* iPad / Tablet Landscape - 768px to 991px (2 columns) */
@media (max-width: 991px) and (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 24px;
    }
    .gamsgo-hero {
        padding: 40px 0 30px;
    }
    .gamsgo-title {
        font-size: 28px;
    }
    .gamsgo-subtitle {
        font-size: 16px;
    }
    .category-item {
        padding: 14px 20px;
        min-width: 75px;
    }
    .category-icon {
        width: 24px;
        height: 24px;
    }
}

/* iPad Portrait / Large Mobile - 576px to 767px (2 columns, compact) */
@media (max-width: 767px) and (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }
    .gamsgo-hero {
        padding: 40px 0 30px;
    }
    .gamsgo-title {
        font-size: 24px;
        padding: 0 20px;
    }
    .gamsgo-subtitle {
        font-size: 14px;
    }
    .category-filter-wrapper {
        gap: 10px;
    }
    .category-item {
        padding: 12px 16px;
        min-width: 65px;
    }
    .category-icon {
        width: 22px;
        height: 22px;
    }
    .category-item span {
        font-size: 11px;
    }
}

/* Mobile - 480px to 575px (1 column) */
@media (max-width: 575px) and (min-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
        max-width: 400px;
        margin: 0 auto;
    }
    .gamsgo-hero {
        padding: 30px 0 20px;
    }
    .gamsgo-title {
        font-size: 22px;
        padding: 0 16px;
    }
    .gamsgo-subtitle {
        font-size: 13px;
        padding: 0 16px;
    }
    .category-filter-wrapper {
        gap: 8px;
        padding: 0 12px;
    }
    .category-item {
        padding: 10px 14px;
        min-width: 60px;
    }
    .category-icon {
        width: 20px;
        height: 20px;
    }
    .category-item span {
        font-size: 10px;
    }
}

/* Small Mobile - below 480px (1 column, very compact) */
@media (max-width: 479px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
        max-width: 100%;
    }
    .gamsgo-hero {
        padding: 24px 0 16px;
    }
    .gamsgo-title {
        font-size: 18px;
        padding: 0 12px;
        margin-bottom: 8px;
    }
    .gamsgo-subtitle {
        font-size: 12px;
        padding: 0 12px;
    }
    .category-filter-wrapper {
        gap: 6px;
        padding: 0 8px;
    }
    .category-item {
        padding: 8px 12px;
        min-width: 55px;
    }
    .category-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 4px;
    }
    .category-item span {
        font-size: 9px;
    }
    .gamsgo-categories {
        padding: 20px 0 30px;
    }
    
    /* Extra compact cards for small mobile */
    .product-header {
        padding: 14px 16px 10px;
    }
    .product-logo {
        width: 30px;
        height: 30px;
    }
    .product-name {
        font-size: 15px;
    }
    .product-price-section {
        padding: 10px 16px;
    }
    .price-wrapper .price {
        font-size: 26px;
    }
    .price-wrapper .price .woocommerce-Price-amount {
        font-size: 26px;
    }
    .product-features {
        padding: 10px 16px;
    }
    .feature-item {
        padding: 5px 0;
        font-size: 11px;
    }
    .product-actions {
        padding: 0 16px 8px;
    }
    .btn-purchase {
        padding: 10px 16px;
        font-size: 12px;
    }
    .view-details {
        padding: 4px 16px 12px;
        font-size: 10px;
    }
}

/* ===== XSTORE RESET ===== */
.gamsgo-wrapper .product .content-product,
.gamsgo-wrapper .product .product-content,
.gamsgo-wrapper .product .product-information,
.gamsgo-wrapper .product .product-title,
.gamsgo-wrapper .product .price,
.gamsgo-wrapper .product .add-to-cart,
.gamsgo-wrapper .product .product-image,
.gamsgo-wrapper .product .product-thumbnail,
.gamsgo-wrapper .product .product-summary,
.gamsgo-wrapper .product .product-meta,
.gamsgo-wrapper .product .onsale,
.gamsgo-wrapper .product .star-rating,
.gamsgo-wrapper .product .woocommerce-loop-product__title,
.gamsgo-wrapper .product .attachment-woocommerce_thumbnail,
.gamsgo-wrapper .product .wp-post-image {
    display: none !important;
}

.gamsgo-wrapper .products-grid {
    display: grid !important;
}

.gamsgo-wrapper .product-card {
    display: flex !important;
}

.gamsgo-wrapper .products-grid .woocommerce-info,
.gamsgo-wrapper .products-grid .woocommerce-message,
.gamsgo-wrapper .products-grid .woocommerce-error,
.gamsgo-wrapper .products-grid .woocommerce-notices-wrapper {
    display: none !important;
}

/* ============================================
   SINGLE PRODUCT PAGE - SEXY MODERN DESIGN
   ============================================ */

.gamsgo-single-wrapper {
    --single-primary: #ff6b6b;
    --single-primary-dark: #ee5a6f;
    --single-bg: #fef5f5;
    --single-white: #ffffff;
    --single-text: #1f2937;
    --single-text-light: #6b7280;
    --single-border: #f3f4f6;
    --single-green: #10b981;
    --single-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --single-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

/* Hero Section - Beautiful Gradient */
.gamsgo-single-hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ffb4b4 100%);
    padding: 100px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gamsgo-single-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.6;
}

.product-hero-content {
    position: relative;
    z-index: 1;
}

.single-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.25);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.single-badge.green { background: rgba(16,185,129,0.2); color: #d1fae5; }
.single-badge.new { background: rgba(255,255,255,0.3); color: white; }

.single-product-title {
    color: white;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-product-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

/* Main Content Layout */
.gamsgo-single-content {
    background: var(--single-bg);
    padding: 0 0 80px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Left: Product Media */
.single-product-media {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.product-image-card {
    background: var(--single-white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--single-shadow-lg);
}

.product-main-image {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 120px;
    font-weight: 800;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--single-border);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-item svg {
    width: 28px;
    height: 28px;
}

.trust-item span {
    font-size: 11px;
    color: var(--single-text-light);
    font-weight: 500;
    text-align: center;
}

/* Right: Product Details */
.single-product-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Price Detail Card */
.price-detail-card {
    background: var(--single-white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--single-shadow);
}

.price-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--single-border);
    margin-bottom: 24px;
}

.price-label {
    display: block;
    font-size: 14px;
    color: var(--single-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.price-display .woocommerce-Price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--single-primary) !important;
    letter-spacing: -2px;
}

.price-display .woocommerce-Price-currencySymbol {
    font-size: 32px;
    font-weight: 600;
    color: var(--single-primary) !important;
}

/* Fix for price visibility on white background */
.price-detail-card .price-display .woocommerce-Price-amount,
.price-detail-card .price-display .woocommerce-Price-currencySymbol,
.price-detail-card .price .woocommerce-Price-amount,
.price-detail-card .price .woocommerce-Price-currencySymbol {
    color: #ff6b6b !important;
}

/* Ensure variable product price shows correctly */
.price-detail-card .price {
    color: #ff6b6b !important;
}

.price-detail-card .price ins {
    color: #ff6b6b !important;
    text-decoration: none;
}

.price-detail-card .price del {
    color: #999 !important;
    font-size: 0.7em;
}

.price-detail-card .price del .woocommerce-Price-amount {
    color: #999 !important;
    font-size: 0.7em;
}

.price-period {
    font-size: 18px;
    color: var(--single-text-light);
    font-weight: 500;
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.price-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--single-text);
    font-weight: 500;
}

.price-feature-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sexy Buy Button */
.single-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
    position: relative;
    overflow: hidden;
}

.single-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.single-buy-btn:hover::before {
    left: 100%;
}

.single-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.45);
    color: white;
}

.single-buy-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.single-buy-btn:hover svg {
    transform: translateX(4px);
}

.single-buy-btn.out-of-stock {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.single-buy-btn.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

.guarantee-text {
    text-align: center;
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--single-text-light);
}

/* Variation Selectors - Beautiful */
.variation-row {
    margin-bottom: 16px;
}

.variation-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--single-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gamsgo-variation-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--single-border);
    border-radius: 12px;
    background: var(--single-white);
    font-size: 14px;
    color: var(--single-text);
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.gamsgo-variation-select:hover {
    border-color: var(--single-primary);
}

.gamsgo-variation-select:focus {
    outline: none;
    border-color: var(--single-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* WooCommerce Variation Price Display */
.woocommerce-variation-price {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #fef5f5, #fff);
    border-radius: 12px;
    margin: 16px 0;
}

.woocommerce-variation-price .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--single-primary);
}

.woocommerce-variation-availability {
    text-align: center;
    font-size: 13px;
    color: var(--single-text-light);
    margin-top: 8px;
}

.woocommerce-variation-availability.in-stock {
    color: var(--single-green);
}

.woocommerce-variation-availability.out-of-stock {
    color: #ef4444;
}

/* Features Detail Card */
.features-detail-card {
    background: var(--single-white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--single-shadow);
}

.features-detail-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--single-text);
    margin: 0 0 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-check svg {
    width: 100%;
    height: 100%;
}

.feature-text {
    font-size: 15px;
    color: var(--single-text);
    line-height: 1.5;
    font-weight: 500;
}

/* Description Card */
.description-card {
    background: var(--single-white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--single-shadow);
}

.description-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--single-text);
    margin: 0 0 16px;
}

.description-content {
    font-size: 15px;
    color: var(--single-text-light);
    line-height: 1.7;
}

.description-content p {
    margin: 0 0 12px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Related Products Section */
.related-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--single-border);
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--single-text);
    text-align: center;
    margin: 0 0 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--single-white);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--single-shadow);
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--single-shadow-lg);
}

.related-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--single-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.related-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--single-primary);
}

/* Single Product Responsive */
@media (max-width: 1200px) {
    .single-product-layout {
        gap: 30px;
    }
    
    .single-product-title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .single-product-layout {
        grid-template-columns: 1fr;
    }
    
    .single-product-media {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .single-product-title {
        font-size: 36px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gamsgo-single-hero {
        padding: 80px 0 100px;
    }
    
    .single-product-title {
        font-size: 28px;
    }
    
    .single-product-tagline {
        font-size: 16px;
    }
    
    .single-product-layout {
        padding: 0 16px;
    }
    
    .price-detail-card,
    .features-detail-card,
    .description-card,
    .product-image-card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .price-display .woocommerce-Price-amount {
        font-size: 36px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .related-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .gamsgo-single-hero {
        padding: 60px 0 80px;
    }
    
    .single-badge {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .single-product-title {
        font-size: 24px;
        padding: 0 16px;
    }
    
    .single-product-tagline {
        font-size: 14px;
    }
    
    .product-image-card {
        padding: 20px;
    }
    
    .trust-badges {
        gap: 16px;
    }
    
    .trust-item span {
        font-size: 10px;
    }
    
    .single-buy-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GAMSGO PURCHASE MODAL - POPUP STYLES
   ============================================ */

.gamsgo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.gamsgo-modal.active {
    display: flex;
}

.gamsgo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.gamsgo-modal-content {
    position: relative;
    background: var(--gg-bg-card);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--gg-border);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid var(--gg-border);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gamsgo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gg-bg-elevated);
    border-radius: 50%;
    font-size: 24px;
    color: var(--gg-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    border: 1px solid var(--gg-border);
}

.gamsgo-modal-close:hover {
    background: var(--gg-primary);
    color: white;
    border-color: var(--gg-primary);
}

/* Modal Header */
.gamsgo-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--gg-border);
}

.modal-product-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gg-primary), var(--gg-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--gg-glow-primary);
}

.modal-product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-logo-placeholder {
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.modal-product-info {
    flex: 1;
}

.modal-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--gg-primary);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255,71,87,0.3);
}

.modal-price-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-price-per {
    font-size: 14px;
    color: var(--gg-text-light);
    background: var(--gg-bg-light);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.modal-renewal {
    font-size: 12px;
    color: var(--gg-text-muted);
}

/* Modal Body */
.gamsgo-modal-body {
    padding: 24px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gg-text);
    margin: 0 0 12px 0;
}

/* Duration Options */
.duration-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.duration-option {
    position: relative;
    padding: 12px 16px;
    border: 2px solid var(--gg-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    text-align: center;
    background: var(--gg-bg-light);
}

.duration-option:hover {
    border-color: var(--gg-primary);
    background: var(--gg-bg-elevated);
}

.duration-option.active {
    border-color: var(--gg-primary);
    background: rgba(255, 71, 87, 0.1);
}

.duration-option.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gg-primary);
    border-radius: 2px;
}

.duration-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gg-text);
    margin-bottom: 4px;
}

.duration-subscribe {
    display: block;
    font-size: 11px;
    color: var(--gg-primary);
    font-weight: 500;
}

/* Auto-renewal Checkbox */
.autorenew-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.autorenew-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gg-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.autorenew-label input:checked ~ .checkmark {
    background: var(--gg-primary);
}

.autorenew-label input:checked ~ .checkmark::after {
    display: block;
}

.label-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gg-text);
}

.info-icon {
    width: 18px;
    height: 18px;
    border: 1px solid var(--gg-border-light);
    border-radius: 50%;
    font-size: 11px;
    color: var(--gg-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.autorenew-note {
    font-size: 11px;
    color: var(--gg-text-muted);
    margin: 8px 0 0 34px;
}

/* Slot Options */
.slot-options {
    display: flex;
    gap: 12px;
}

.slot-option {
    padding: 12px 20px;
    border: 2px solid var(--gg-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--gg-bg-light);
}

.slot-option:hover {
    border-color: var(--gg-primary);
    background: var(--gg-bg-elevated);
}

.slot-option.active {
    border-color: var(--gg-primary);
    background: rgba(255, 71, 87, 0.1);
}

.slot-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gg-text);
}

/* Promo Code */
.promo-code-link {
    font-size: 13px;
    color: var(--gg-primary);
    text-decoration: underline;
    cursor: pointer;
}

.promo-code-input {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.promo-code-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--gg-border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--gg-bg-light);
    color: var(--gg-text);
}

.promo-code-input input:focus {
    outline: none;
    border-color: var(--gg-primary);
}

.promo-code-input button {
    padding: 10px 20px;
    background: var(--gg-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.promo-code-input button:hover {
    background: var(--gg-primary-dark);
}

/* Modal Footer */
.gamsgo-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--gg-border);
}

.btn-cancel {
    flex: 1;
    padding: 14px 24px;
    background: var(--gg-bg-light);
    border: 2px solid var(--gg-border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gg-text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    border-color: var(--gg-border-light);
    background: var(--gg-bg-elevated);
    color: var(--gg-text);
}

.btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

/* Modal Responsive */
@media (max-width: 480px) {
    .gamsgo-modal-content {
        width: 95%;
        border-radius: 16px;
    }
    
    .gamsgo-modal-header {
        padding: 20px;
    }
    
    .modal-product-logo {
        width: 60px;
        height: 60px;
    }
    
    .modal-price {
        font-size: 28px;
    }
    
    .gamsgo-modal-body {
        padding: 20px;
    }
    
    .duration-options {
        gap: 8px;
    }
    
    .duration-option {
        padding: 10px 12px;
        min-width: 80px;
    }
    
    .gamsgo-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-whatsapp {
        width: 100%;
    }
}

/* ===== HEADER POSITION FIX - Prevent Hero Overlap ===== */
.header-wrapper.pos-absolute {
    position: relative !important;
}

/* Hero margin - Desktop only (mobile pehle se theek hai) */
@media (min-width: 992px) {
    .eta-hero-wrapper {
        margin-top: 42px;
    }
}

/* ============================================
   QUANTITY WRAPPER - WHITE BACKGROUND
   ============================================ */
.quantity .quantity-wrapper input.input-text {
    background-color: white !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.quantity-wrapper {
    background: white !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
}

.quantity-wrapper span,
.quantity-wrapper .button {
    color: #333 !important;
    background: white !important;
}

.quantity-wrapper span:hover,
.quantity-wrapper .button:hover {
    color: #ff6b6b !important;
    background: #f5f5f5 !important;
}

.quantity-wrapper .qty_button,
.quantity-wrapper .minus,
.quantity-wrapper .plus,
.quantity-wrapper [class*="minus"],
.quantity-wrapper [class*="plus"] {
    color: #333 !important;
    background: white !important;
}

.quantity-wrapper .qty_button:hover,
.quantity-wrapper .minus:hover,
.quantity-wrapper .plus:hover {
    color: #ff6b6b !important;
    background: #f5f5f5 !important;
}

/* ============================================
   CART ITEM PRICE - WHITE COLOR
   ============================================ */
.cart-item-details > div > span,
.cart-order-details .product-name-info > div > span,
.cart-item-details .product-price,
.cart-item-details .woocommerce-Price-amount,
.cart-item-details .woocommerce-Price-currencySymbol,
.cart-order-details .woocommerce-Price-amount,
.cart-order-details .woocommerce-Price-currencySymbol {
    color: #e9e9e9 !important;
}

.cart_totals .woocommerce-Price-amount,
.cart_totals .woocommerce-Price-currencySymbol,
.cart_totals .product-quantity {
    color: #ffffff !important;
}

/* ============================================
   SINGLE PRODUCT - ADD TO CART BUTTON
   ============================================ */
.single-buy-btn.btn-secondary {
    background: transparent !important;
    border: 2px solid #ff6b6b !important;
    color: #ff6b6b !important;
}

.single-buy-btn.btn-secondary:hover {
    background: #ff6b6b !important;
    color: white !important;
}

/* ============================================
   VARIATION DROPDOWN STYLING
   ============================================ */
.gamsgo-variation-select {
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    color: #1f2937 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.gamsgo-variation-select:hover,
.gamsgo-variation-select:focus {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
    outline: none !important;
}

.variations_form {
    margin-bottom: 20px !important;
}

.woocommerce-variation-price .price {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ff6b6b !important;
}

.woocommerce-variation-availability {
    margin-top: 10px !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
}

.woocommerce-variation-availability .in-stock {
    color: #2ed573 !important;
    background: rgba(46, 213, 115, 0.1) !important;
}

.woocommerce-variation-availability .out-of-stock {
    color: #ff4757 !important;
    background: rgba(255, 71, 87, 0.1) !important;
}

/* ============================================
   SINGLE PRODUCT ADD TO CART FORM STYLING
   ============================================ */
.single-product-cart-form {
    margin-bottom: 10px;
}

.single-product-cart-form .quantity {
    margin-bottom: 15px !important;
}

.single-product-cart-form .quantity .quantity-wrapper,
.single-product-cart-form .quantity input[type="number"] {
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    height: 50px !important;
}

.single-product-cart-form .quantity input[type="number"] {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
}

.single-product-cart-form .single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35) !important;
}

.single-product-cart-form .single_add_to_cart_button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.45) !important;
}

/* Hide default WooCommerce button styles that might conflict */
.single-product-cart-form .button.alt {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
}

/* Variation form specific styling */
.single-product-cart-form table.variations {
    width: 100% !important;
    margin-bottom: 20px !important;
}

.single-product-cart-form table.variations td {
    padding: 8px 0 !important;
    border: none !important;
}

.single-product-cart-form table.variations td.label {
    width: 30% !important;
    padding-right: 15px !important;
}

.single-product-cart-form table.variations td.label label {
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.single-product-cart-form table.variations select {
    width: 100% !important;
    padding: 12px 16px !important;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
}

.single-product-cart-form table.variations select:focus {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
    outline: none !important;
}

.single-product-cart-form .single_variation_wrap {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f3f4f6 !important;
}

.single-product-cart-form .woocommerce-variation-price {
    margin-bottom: 15px !important;
    text-align: center !important;
}

.single-product-cart-form .woocommerce-variation-availability {
    margin-bottom: 15px !important;
}
