/**
 * Product Page Styles for Luxury Daily Cruises Theme
 * Contains styles for single product pages
 */

/* Product Page Container */
.yacht-product-page {
    padding: 2rem 0;
}

/* Breadcrumbs Styling */
.yacht-breadcrumbs {
    margin-bottom: 2rem;
}

.woocommerce-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    padding: 1rem 0;
}

.woocommerce-breadcrumb a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #1e3f73;
    text-decoration: underline;
}

.woocommerce-breadcrumb .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

.yacht-product-header {
    margin-bottom: 2rem;
}

.yacht-product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Yacht Gallery */
.yacht-gallery {
    position: relative;
    margin-bottom: 30px;
}

.yacht-main-image {
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.yacht-main-image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.yacht-gallery-thumbs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: center;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: #2c5aa0;
    box-shadow: 0 0 10px rgba(44, 90, 160, 0.5);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Yacht Info Section */
.yacht-info-section {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.yacht-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.yacht-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #333;
}

.yacht-type-badge {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.yacht-price {
    font-size: 2rem;
    font-weight: 600;
    color: #2c5aa0;
}

.yacht-price .price-period {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
}

/* Yacht Specifications */
.yacht-specifications {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.yacht-specifications h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.spec-item i {
    color: #2c5aa0;
    font-size: 1.2rem;
    width: 20px;
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-weight: 600;
    color: #333;
}

/* WooCommerce Add to Cart Button Styling */
.single_add_to_cart_button,
.single_add_to_cart_button.button,
.single_add_to_cart_button.alt,
.single_add_to_cart_button.button.alt {
    width: 100%;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.single_add_to_cart_button::before,
.single_add_to_cart_button.button::before,
.single_add_to_cart_button.alt::before,
.single_add_to_cart_button.button.alt::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 ease;
}

.single_add_to_cart_button:hover::before,
.single_add_to_cart_button.button:hover::before,
.single_add_to_cart_button.alt:hover::before,
.single_add_to_cart_button.button.alt:hover::before {
    left: 100%;
}

.single_add_to_cart_button:hover,
.single_add_to_cart_button.button:hover,
.single_add_to_cart_button.alt:hover,
.single_add_to_cart_button.button.alt:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 100%);
}

.single_add_to_cart_button:active,
.single_add_to_cart_button.button:active,
.single_add_to_cart_button.alt:active,
.single_add_to_cart_button.button.alt:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* Loading state */
.single_add_to_cart_button.loading,
.single_add_to_cart_button.button.loading,
.single_add_to_cart_button.alt.loading,
.single_add_to_cart_button.button.alt.loading {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.single_add_to_cart_button.loading::after,
.single_add_to_cart_button.button.loading::after,
.single_add_to_cart_button.alt.loading::after,
.single_add_to_cart_button.button.alt.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Yacht Booking Form Styles */
.yacht-booking-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.yacht-booking-form h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
    text-align: center;
}

.yacht-booking-form .booking-field {
    margin-bottom: 1.5rem;
}

.yacht-booking-form .booking-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.yacht-booking-form .booking-field input,
.yacht-booking-form .booking-field select,
.yacht-booking-form .booking-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.yacht-booking-form .booking-field input:focus,
.yacht-booking-form .booking-field select:focus,
.yacht-booking-form .booking-field textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1);
    transform: translateY(-2px);
}

.yacht-booking-form .booking-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Booking Summary */
.booking-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

/* Yacht Details Section */
.yacht-details-section {
    margin-top: 4rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.yacht-tabs {
    width: 100%;
}

.tab-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.tab-button.active {
    background: white;
    color: #2c5aa0;
    border-bottom: 3px solid #2c5aa0;
}

.tab-button:hover {
    color: #2c5aa0;
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    padding: 3rem;
}

.tab-panel.active {
    display: block;
}

.yacht-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.amenities-list li::before {
    content: '✓';
    color: #2c5aa0;
    font-weight: bold;
}

.itinerary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itinerary-list li {
    padding: 1rem;
    border-left: 3px solid #2c5aa0;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.itinerary-list li strong {
    color: #2c5aa0;
    margin-right: 1rem;
}

/* Related Yachts Section */
.related-yachts-section {
    margin-top: 4rem;
}

.related-yachts-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 300;
    color: #333;
}

.related-yachts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-yacht-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-yacht-card:hover {
    transform: translateY(-5px);
}

.related-yacht-card .yacht-image {
    height: 200px;
    overflow: hidden;
}

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

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

.related-yacht-card .yacht-info {
    padding: 1.5rem;
}

.related-yacht-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.related-yacht-card h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.related-yacht-card h3 a:hover {
    color: #2c5aa0;
}

.related-yacht-card .yacht-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* WooCommerce Form Fields */
.woocommerce-input-wrapper {
    width: 100%;
    display: block;
}

.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1);
}

.woocommerce form .form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .yacht-product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .yacht-title {
        font-size: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .related-yachts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 50%;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .tab-panel {
        padding: 2rem 1rem;
    }
    
    .related-yachts-grid {
        grid-template-columns: 1fr;
    }
}
