/* Clean Shop Grid Layout - Alternative to Fullwidth */

/* Remove list bullets from products */
ul.products,
ul.products li,
.woocommerce ul.products,
.woocommerce ul.products li {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Section styling */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.event-selection {
    background: var(--tt-grey, #F5F5F5);
    padding: 2rem 2.5rem 1rem 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Event Logo Grid */
.event-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 3rem;
}

.event-logo-item {
    background: transparent;
    border: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 140px;
    min-height: 160px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.event-logo-item:hover {
    transform: scale(1.05);
}

.event-logo-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.event-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.event-logo-item:hover .event-logo-img {
    filter: none;
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 0.5rem 0;
    transition: all 0.3s ease;
}

.event-date {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    display: block;
    margin-top: 0.5rem;
}

.no-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    color: #666;
    font-size: 0.7rem;
    text-align: center;
}

/* Mobile Event Selector */
.mobile-event-selector select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #333;
}

/* Back Button */
.btn-back {
    background: none;
    border: none;
    color: #333;
    padding: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #007cba;
}

.btn-back svg {
    fill: currentColor;
}

/* Product Grid */
.product-grid-section {
    margin-top: 2rem;
}

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: var(--tt-red, #dc3545);
}

.product-thumbnail {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.product-thumbnail img {
    width: 40%;
    height: 40%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-thumbnail img {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.05);
    color: #666;
    font-style: italic;
}

.product-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #007cba;
}

.product-price {
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.product-price .woocommerce-Price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tt-red, #dc3545) !important;
}

.product-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.product-actions {
    margin-top: auto;
}

.product-actions .button,
.product-actions .btn,
.product-link-button {
    width: auto;
    background: var(--tt-red, #dc3545);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.product-actions .button:hover,
.product-actions .btn:hover,
.product-link-button:hover {
    background: var(--tt-red-dark, #c82333);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.event-fallback-logo {
    opacity: 0.7;
    filter: grayscale(0.3);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .event-logo-grid {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .event-logo-grid {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .event-logo-item {
        min-width: 120px;
        padding: 0.75rem;
    }
    
    .event-logo-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .event-title {
        font-size: 0.9rem;
    }
    
    .product-content {
        padding: 0.75rem;
    }
    
    .no-logo {
        width: 80px;
        height: 80px;
        font-size: 0.6rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeInUp 0.5s ease;
}