/* ========================================
   Product Pages Common Styles
   ======================================== */

/* ========================================
   Page Hero Section
   ======================================== */
.product-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.product-hero .container {
    position: relative;
    z-index: 2;
}

.product-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.product-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb i {
    font-size: 0.8rem;
}

/* ========================================
   Product Groups Grid
   ======================================== */
.product-groups-content {
    padding: 6rem 0;
    background: #f8fafc;
}

.product-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-group-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.product-group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.group-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-group-card:hover .group-image img {
    transform: scale(1.1);
}

.group-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #667eea;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.group-info {
    padding: 2rem;
}

.group-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1F2937;
}

.group-description {
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.group-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.group-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.price-info {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.select-arrow {
    color: #6B7280;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.product-group-card:hover .select-arrow {
    transform: translateX(4px);
}

/* ========================================
   Product Details (Products Page)
   ======================================== */
.selected-destination {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.destination-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    border-radius: 0.75rem;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.destination-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.destination-title p {
    color: #6B7280;
    margin: 0;
}

/* ========================================
   Product Selection Grid
   ======================================== */
.days-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.day-option {
    position: relative;
    padding: 1.5rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.day-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.day-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.day-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.day-price {
    font-size: 1rem;
    color: #6B7280;
    font-weight: 600;
}

/* ========================================
   No Products Message
   ======================================== */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.no-products i {
    font-size: 4rem;
    color: #D1D5DB;
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.5rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

.no-products p {
    color: #9CA3AF;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    color: white;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .product-groups-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 6rem 0 3rem;
    }
    
    .product-hero h1 {
        font-size: 2.5rem;
    }
    
    .product-groups-content {
        padding: 4rem 0;
    }
    
    .product-groups-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .destination-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .days-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .selected-destination {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-hero h1 {
        font-size: 2rem;
    }
    
    .days-selector {
        grid-template-columns: 1fr;
    }
    
    .day-option {
        padding: 1rem;
    }
    
    .group-info {
        padding: 1.5rem;
    }
    
    .no-products {
        padding: 3rem 1.5rem;
    }
}

/* ========================================
   Loading and Interaction States
   ======================================== */
.product-group-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.day-option.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ========================================
   Enhanced Visual Effects
   ======================================== */
.product-group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-group-card:hover::before {
    opacity: 1;
}

/* ========================================
   Focus States for Accessibility
   ======================================== */
.product-group-card:focus,
.day-option:focus,
.back-btn:focus,
.back-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ========================================
   High Contrast Mode Support
   ======================================== */
@media (prefers-contrast: high) {
    .product-group-card {
        border: 2px solid #333;
    }
    
    .day-option {
        border: 2px solid #333;
    }
    
    .feature-tag {
        background: #333;
        color: white;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .product-hero {
        background: white;
        color: black;
        padding: 2rem 0;
    }
    
    .product-group-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .back-btn,
    .back-button {
        display: none;
    }
}