@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #777;
    --light-bg: #f9f9f9;
    --border-color: #e1e1e1;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product_cat-e-bike .product-container {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* Left Side - Image Slider */
.product-images {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    max-width: 50%; /* Control the width of the image section */
}

.swiper {
    width: 100%;
    height: 500px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to prevent stretching */
    transition: transform 0.5s ease;
    max-height: 450px; /* Limit the height of images */
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.image-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: white;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.thumbnail.active {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Right Side - Product Details */
.product-details {
    flex: 1.2;
    padding: 30px;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

.product-details::-webkit-scrollbar {
    width: 6px;
}

.product-details::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #f39c12;
}

.product-rating i {
    margin-right: 3px;
}

.product-rating span {
    margin-left: 8px;
    color: var(--light-text);
    font-size: 14px;
}

.product-description {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.7;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.feature i {
    color: var(--primary-color);
}

/* Rental Options */
.rental-options, .upsell-options {
    margin-bottom: 30px;
}

.rental-options h2, .upsell-options h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 8px;
}

.rental-options h2:after, .upsell-options h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    background: white;
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

.option-icon {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}

.option-card input[type="radio"]:checked + .option-content .option-icon {
    background: var(--primary-color);
    color: white;
}

.option-info {
    flex: 1;
}

.option-info h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.option-info p {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.option-info .price {
    font-weight: 600 !important;
    color: var(--accent-color)  !important;
    font-size: 1.25em !important;
}

.check-mark {
    opacity: 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.option-card input[type="radio"]:checked + .option-content .check-mark,
.upsell-card input[type="checkbox"]:checked + .upsell-content .check-mark {
    opacity: 1;
}

/* Upsell Options */
.upsell-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.upsell-card {
    position: relative;
    cursor: pointer;
}

.upsell-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.upsell-content {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    background: white;
}

.upsell-card input[type="checkbox"]:checked + .upsell-content {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

.upsell-icon {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}
.upsell-card input[type="checkbox"]:checked + .upsell-content .upsell-icon.upsellimg {
    background: #f9f9f9;
    color: white;
}
.upsell-card input[type="checkbox"]:checked + .upsell-content .upsell-icon {
    background: var(--primary-color);
    color: white;
}

.upsell-info {
    flex: 1;
    max-width: 75%;
}

.upsell-info h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.upsell-info p {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.upsell-price {
    font-size: 14px;
    color: var(--light-text);
}

.current-price {
    font-weight: 600;
    color: var(--accent-color);
}

/* Total Section */
.total-section {
    margin: 25px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.total-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 18px;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(52, 152, 219, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-container {
        flex-direction: column;
    }
    
    .product-images, .product-details {
        width: 100%;
    }
    
    .swiper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .swiper {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .product-details {
        padding: 20px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .swiper {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.product-container {
    animation: fadeIn 0.6s ease-out;
}

.add-to-cart-btn:hover i {
    animation: pulse 1s infinite;
}

.option-card, .upsell-card {
    animation: fadeIn 0.4s ease-out;
    animation-fill-mode: both;
}

.option-card:nth-child(1), .upsell-card:nth-child(1) {
    animation-delay: 0.1s;
}

.option-card:nth-child(2), .upsell-card:nth-child(2) {
    animation-delay: 0.2s;
}

.option-card:nth-child(3), .upsell-card:nth-child(3) {
    animation-delay: 0.3s;
}

.option-card:nth-child(4), .upsell-card:nth-child(4) {
    animation-delay: 0.4s;
}

.upsell-card:nth-child(5) {
    animation-delay: 0.5s;
}

.upsell-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 20px;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button loading state */
.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.add-to-cart-btn.loading .loading {
    display: inline-block;
}

.add-to-cart-btn.loading i {
    display: none;
}

/* After the rental options section, before the upsell options */
.rental-dates {
    margin-bottom: 30px;
}

.rental-dates h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 8px;
}

.rental-dates h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
}

.date-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.date-input {
    position: relative;
}

.date-input label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.date-input input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background-color: white;
    transition: var(--transition);
    cursor: pointer;
}

.date-input input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.date-input i {
    position: absolute;
    right: 15px;
    top: 40px;
    color: var(--primary-color);
    pointer-events: none;
}

.rental-duration {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rental-duration p {
    margin: 0;
    font-size: 14px;
}

.rental-duration span {
    font-weight: 600;
    color: var(--primary-color);
}


.upsell-card.disabled {
    display: none;
    opacity: 0.5;
    pointer-events: none;
  }
  