/**
 * WooCommerce Custom Styles for Gevents Theme
 *
 * @package Gevents
 */

/* Hide post navigation on single product pages */
.single-product .post-navigation,
.single-product .nav-links {
    display: none !important;
}

/* WooCommerce Product Grid */
.products-grid-wrapper .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

/* Ensure no conflict with default woo columns */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.woocommerce ul.products li {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none; /* Remove float clears if any */
}

/* Hide FooEvents duplicated details if they appear */
.kg-fooevents-shop-details {
    display: none !important;
}

/* Event Card Container */
.woocommerce ul.products li.event-card {
    float: none;
    width: 100%;
    margin: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Event Card Image */
.event-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

/* Event Category Badge */
.event-card-category {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Event Card Content */
.event-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.event-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event Meta Items */
.event-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #666;
}

.event-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Icon Colors */
.event-icon-location {
    color: #dc2626; /* red */
}

.event-icon-date {
    color: #dc2626; /* red */
}

.event-icon-time {
    color: #16a34a; /* green */
}

/* Event Card Footer */
.event-card-footer {
    padding: 1rem;
    padding-top: 0;
}

.event-card-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #dc2626;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.event-card-button:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .products-grid-wrapper .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .products-grid-wrapper .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.875rem;
    }
    
    .woocommerce ul.products li {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .event-card-image {
        height: 140px;
        width: 100%;
    }
    
    /* Ensure cards don't overflow on mobile */
    .event-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .event-card-content {
        padding: 0.625rem;
        gap: 0.375rem;
    }
    
    .event-card-title {
        font-size: 0.8125rem;
        line-height: 1.25;
        margin: 0 0 0.25rem 0;
        -webkit-line-clamp: 2;
    }
    
    .event-card-meta {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .event-icon {
        width: 14px;
        height: 14px;
    }
    
    .event-card-footer {
        padding: 0.625rem;
        padding-top: 0;
    }
    
    .event-card-button {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        width: 100%;
    }
    
    .event-card-category {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .products-grid-wrapper .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.625rem;
    }
    
    .woocommerce ul.products li {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .event-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .event-card-image {
        height: 120px;
        width: 100%;
    }
    
    .event-card-content {
        padding: 0.5rem;
        gap: 0.3rem;
    }
    
    .event-card-title {
        font-size: 0.75rem;
        line-height: 1.2;
        margin: 0 0 0.2rem 0;
    }
    
    .event-card-meta {
        font-size: 0.6875rem;
        gap: 0.3rem;
    }
    
    .event-icon {
        width: 12px;
        height: 12px;
    }
    
    .event-card-footer {
        padding: 0.5rem;
        padding-top: 0;
    }
    
    .event-card-button {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Only 1 column on very small screens */
@media (max-width: 380px) {
    .products-grid-wrapper .products,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .event-card-image {
        height: 200px;
    }
}

/* WooCommerce Buttons */
.woocommerce .button,
.woocommerce .btn {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--border-radius) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.woocommerce .button:hover,
.woocommerce .btn:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-1px);
}

/* Button loading state */
.woocommerce .button.loading,
.woocommerce .btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}
.woocommerce .button.loading::after,
.woocommerce .btn.loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* WooCommerce Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.woocommerce-notices-wrapper {
    margin: 1rem 0;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 12px 14px;
    background: #fff;
}

.woocommerce-message {
    border-left: 4px solid var(--success-color);
}

.woocommerce-error {
    border-left: 4px solid var(--error-color);
}

.woocommerce-info {
    border-left: 4px solid var(--primary-color);
}

/* ============================
   SINGLE PRODUCT PAGE STYLES
   ============================ */

/* Breadcrumb */
.single-product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.single-product-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-product-breadcrumb a:hover {
    color: #764ba2;
}

.single-product-breadcrumb .separator {
    color: #999;
}

/* Hero Section - Layout with Image and Content Side by Side */
.single-product-gevents .single-product-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.single-product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.single-product-hero > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Product Image */
.single-product-image {
    display: block;
}

.single-product-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Header Content */
.single-product-header {
    color: white;
}

.single-product-category {
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title */
.single-product-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Info Cards - Smaller and Horizontal */
.single-product-header .hero-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.single-product-header .info-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-product-header .info-card-icon-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.single-product-header .info-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.single-product-header .info-card-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.single-product-header .info-card-desc {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA Button and Share Buttons Container */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Share Buttons */
.hero-share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hero-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-share-button svg {
    width: 20px;
    height: 20px;
}

.hero-share-button.whatsapp { color: #25D366; }
.hero-share-button.whatsapp:hover { background: #25D366; color: white; }

.hero-share-button.facebook { color: #1877F2; }
.hero-share-button.facebook:hover { background: #1877F2; color: white; }

.hero-share-button.instagram { color: #E4405F; }
.hero-share-button.instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); color: white; }

.hero-share-button.email { color: #666; }
.hero-share-button.email:hover { background: #666; color: white; }

/* Hide old elements */
.single-product-meta-row {
    display: none !important;
}

.mobile-ticket-button {
    display: none !important;
}

.single-product-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.single-product-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: block;
    box-sizing: border-box;
}

.single-product-header {
    color: white;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.single-product-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-event-date {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.mobile-ticket-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-ticket-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Hero Info Cards APÓS hero - 4 colunas, apenas desktop acima de 1024px */
.hero-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

/* 4 cards de benefícios APÓS o hero - apenas desktop */
.hero-benefits-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
}

.hero-benefits-cards .info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-benefits-cards .info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cards DENTRO do hero (data, horário, local) - comportamento diferente */
.single-product-header .hero-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
    flex-shrink: 0;
    color: #667eea;
}

.info-card-icon-emoji {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.info-card-content {
    flex: 1;
    min-width: 0;
}

.info-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.125rem;
}

.info-card-desc {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}

.single-product-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.meta-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.meta-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: white;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.meta-value {
    font-size: 0.9375rem;
    font-weight: 600;
}

.single-product-location {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: white;
}

.location-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.location-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.location-value {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Content Wrapper */
.single-product-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 100%;
    overflow: hidden;
}

/* Main Content */
.single-product-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.single-product-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.product-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.product-tab:hover {
    color: #667eea;
}

.product-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.product-tab svg {
    width: 20px;
    height: 20px;
}

.product-tab-content {
    display: none;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.product-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    word-wrap: break-word;
}

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

/* Event Details Tab */
.event-details-content {
    color: #374151;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.event-detail-item:hover {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.event-detail-item .detail-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #667eea;
}

.event-detail-item .detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.event-detail-item .detail-content strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.event-detail-item .detail-content span {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
}

.event-detail-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.event-detail-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.event-description {
    line-height: 1.7;
    color: #4b5563;
}

.event-description p {
    margin-bottom: 1rem;
}

.event-contact-info p {
    margin: 0.5rem 0;
    color: #4b5563;
}

.event-contact-info strong {
    color: #111827;
    margin-right: 0.5rem;
}

.event-contact-info a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-contact-info a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .event-detail-item {
        padding: 1rem;
    }
}

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

.product-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.product-warning svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #f59e0b;
}

.warning-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.warning-content p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* FAQ Cards Grid */
.faq-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.faq-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.faq-card svg {
    width: 32px;
    height: 32px;
    color: #667eea;
}

.faq-card h4 {
    margin: 0;
    font-size: 1.125rem;
    color: #333;
}

.faq-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.faq-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.faq-card-link:hover {
    color: #764ba2;
}

.faq-card-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.faq-card-highlight svg {
    color: #f59e0b;
}

.faq-card-highlight h4 {
    color: #92400e;
}

/* Sidebar */
.single-product-sidebar {
    position: sticky;
    top: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.ticket-selection-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
}

.ticket-box-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    color: #333;
}

.ticket-box-title svg {
    width: 24px;
    height: 24px;
    color: #667eea;
}

/* Hide duplicated product title and meta in ticket selection */
.ticket-selection-content .product_title,
.ticket-selection-content .woocommerce-product-rating,
.ticket-selection-content .price,
.ticket-selection-content .woocommerce-product-details__short-description {
    display: none !important;
}

/* Producer Section */
.product-producer-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.producer-section-title {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: #333;
    text-align: center;
}

/* Producer Section - New Centered Layout */
.product-producer-section {
    margin: 4rem 0;
    padding: 2rem 0;
    background: transparent;
}

.producer-section-title {
    font-size: 1.75rem;
    margin: 0 0 2rem 0;
    color: #1a1a1a;
    text-align: center;
    font-weight: 700;
}

.producer-card-single {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: none;
}

/* Logo - Centralizada e maior */
.producer-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.producer-logo-center img,
.producer-logo-center .avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid #f0f3ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    aspect-ratio: 1/1;
}

.producer-avatar-image {
    border-color: #667eea;
}

/* Info Center */
.producer-info-center {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.producer-name {
    font-size: 1.75rem;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
}

.producer-description {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.producer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.producer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Contacts Center */
.producer-contacts-center {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.producer-contacts-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.producer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.producer-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.producer-contact-item:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.producer-contact-item svg {
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .producer-card-single {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .producer-info-center {
        align-items: center;
    }
    
    .producer-link {
        align-self: center;
    }
    
    .producer-contacts-center {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .producer-section-title {
        font-size: 1.5rem;
    }
    
    .producer-card-single {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .producer-logo-center img,
    .producer-logo-center .avatar {
        width: 140px;
        height: 140px;
    }
    
    .producer-name {
        font-size: 1.5rem;
    }
    
    .producer-description {
        font-size: 0.9375rem;
    }
    
    .producer-link {
        font-size: 0.9375rem;
        padding: 0.625rem 1.25rem;
    }
    
    /* Botões de contato lado a lado no mobile */
    .producer-contacts-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .producer-contact-item {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .producer-contact-item svg {
        width: 18px;
        height: 18px;
    }
}

/* Related Products */
.single-product-gevents .related.products,
.single-product-gevents .upsells.products {
    margin: 0 0 3rem 0;
}

.single-product-gevents .related.products > h2,
.single-product-gevents .upsells.products > h2 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: #333;
}

.single-product-gevents .related.products ul.products,
.single-product-gevents .upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Desktop Layout - 768px+ */
@media (min-width: 768px) {
    .single-product-hero > .container {
        grid-template-columns: 350px 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .single-product-meta-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .single-product-gevents .single-product-hero {
        padding: 4rem 0;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .hero-content-wrapper .hero-info-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Responsive - Single Product */
@media (max-width: 1024px) {
    .single-product-content-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .single-product-main {
        padding: 1.5rem;
    }
    
    .single-product-tabs {
        gap: 0.25rem;
        flex-wrap: nowrap;
    }
    
    .product-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .product-tab svg {
        width: 16px;
        height: 16px;
    }
    
    .single-product-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .ticket-selection-box {
        padding: 1rem;
    }
    
    .mobile-ticket-button {
        display: flex;
    }
    
    .faq-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .single-product-gevents .related.products ul.products,
    .single-product-gevents .upsells.products ul.products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .single-product-gevents {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }
    
    .single-product-gevents .single-product-hero {
        padding: 1.5rem 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        border-radius: 0;
    }

    .single-product-hero > .container {
        padding: 0 1rem;
        gap: 1rem;
        max-width: 100%;
    }
    
    .single-product-image img {
        max-height: 280px;
        object-fit: contain;
        border-radius: 8px;
    }

    .single-product-content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        box-sizing: border-box;
    }
    
    .single-product-main {
        padding: 1rem;
        border-radius: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .single-product-title {
        font-size: 1.375rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-event-date {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
    }
    
    .meta-item {
        padding: 0.875rem;
    }
    
    .info-card {
        padding: 0.875rem;
    }
    
    .hero-event-date {
        font-size: 1rem;
    }
    
    .single-product-breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8125rem;
        padding: 0 15px;
    }
    
    .single-product-gevents .related.products ul.products,
    .single-product-gevents .upsells.products ul.products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .single-product-title,
    .hero-title.single-product-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .single-product-hero {
        padding: 3rem 0;
    }

    .hero-content-wrapper .hero-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .hero-content-wrapper .info-card {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }
    
    .info-card-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .info-card-icon-emoji {
        font-size: 1.25rem;
    }
    
    .info-card-title {
        font-size: 0.75rem;
    }
    
    .info-card-desc {
        font-size: 0.8125rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .single-product-sidebar .ticket-card {
        padding: 20px 15px;
    }

    .single-product form.cart {
        padding: 0;
    }

    .single-product-meta-box,
    .producer-card-single,
    .faq-card {
        padding: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.single-product form.cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1.25rem 0 1.25rem;
}

.single-product .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.single-product .quantity .qty {
    width: 80px;
    padding: 0.75rem 0.5rem;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.single-product .quantity .qty::-webkit-outer-spin-button,
.single-product .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product .quantity .qty:focus {
    outline: none;
    border-color: var(--primary-color);
}

.single-product .quantity .qty-btn {
    width: 40px;
    height: 48px;
    padding: 0;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product .quantity .qty-minus {
    border-radius: 8px 0 0 8px;
}

.single-product .quantity .qty-plus {
    border-radius: 0 8px 8px 0;
}

.single-product .quantity .qty-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.single-product .quantity .qty-btn:active {
    transform: scale(0.95);
}

.single-product .quantity .qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Total price display under add to cart */
.single-product .total-price-display {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

.single-product .variations select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
}

.single-product .single_add_to_cart_button {
    width: 100%;
    justify-content: center;
    background-color: #dc2626 !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #b91c1c !important;
}

.single-product .product_meta {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.single-product .woocommerce-tabs {
    margin-bottom: 2.5rem;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0 0 1rem;
    border: 0;
    list-style: none;
    flex-wrap: wrap;
}

.single-product .woocommerce-tabs ul.tabs li {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

.single-product .woocommerce-tabs ul.tabs li a {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-color);
    font-weight: 600;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.single-product .woocommerce-tabs .panel {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Pagination Styles */
.woocommerce-pagination,
.gevents-pagination {
    margin: 3rem 0 2rem;
    text-align: center;
}

.woocommerce-pagination ul,
.gevents-pagination .pagination-wrapper,
.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li,
.gevents-pagination .page-numbers li {
    margin: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span,
.gevents-pagination a.page-numbers,
.gevents-pagination span.page-numbers,
.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-pagination a:hover,
.gevents-pagination a.page-numbers:hover,
.page-numbers a:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.woocommerce-pagination span.current,
.gevents-pagination span.current,
.page-numbers span.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.woocommerce-pagination .prev,
.woocommerce-pagination .next,
.gevents-pagination .prev,
.gevents-pagination .next {
    font-size: 0;
}

.woocommerce-pagination .prev svg,
.woocommerce-pagination .next svg,
.gevents-pagination .prev svg,
.gevents-pagination .next svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Hero responsive at 1024px */
    .single-product-hero > .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .single-product-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .single-product-title {
        font-size: 2rem;
    }

    .single-product-header .hero-info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Hero actions responsive */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-share-buttons {
        justify-content: center;
    }
    
    /* Esconder os 4 cards de benefícios no tablet */
    .hero-benefits-cards {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Hero at 768px */
    .single-product-hero {
        padding: 2.5rem 0;
    }

    .single-product-hero > .container {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

    .single-product-image {
        max-width: 320px;
    }

    .single-product-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .single-product-header .hero-info-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.625rem;
    }

    .single-product-header .info-card {
        flex-direction: column;
        text-align: center;
        padding: 0.625rem 0.5rem;
    }

    .single-product-header .info-card-icon-emoji {
        font-size: 1.25rem;
    }

    .single-product-header .info-card-title {
        font-size: 0.625rem;
    }
    
    /* Esconder os 4 cards de benefícios no mobile */
    .hero-benefits-cards {
        display: none !important;
    }

    .single-product-header .info-card-desc {
        font-size: 0.8125rem;
    }

    .hero-cta-button {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
    }
}

@media (max-width: 640px) {
    /* Hero at 640px */
    .single-product-hero {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .single-product-hero > .container {
        padding: 0 1rem;
        gap: 1.25rem;
    }

    .single-product-image {
        max-width: 280px;
    }

    .single-product-title {
        font-size: 1.5rem;
    }

    /* Manter 3 cards lado a lado no mobile */
    .single-product-header .hero-info-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
    }

    .single-product-header .info-card {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0.5rem 0.25rem;
    }
    
    .single-product-header .info-card-icon-emoji {
        font-size: 1rem;
    }
    
    .single-product-header .info-card-title {
        font-size: 0.5625rem;
    }
    
    .single-product-header .info-card-desc {
        font-size: 0.6875rem;
        font-weight: 600;
    }
}
