.product-detail-container {
    width: 80%;
    margin: 30px auto;
    text-align: center;
}

.product-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.product-thumbnail img {
    width: 100%;
    height: auto;
    max-width: 633px;
    border-radius: 5px;
}

.product-info {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
}

.product-info p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Gallery container */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between images */
    justify-content: space-between;
}

h3{
    text-align: center;
    font-size: 30px;
}

/* Gallery item (each image) */
.gallery-item {
    flex: 1 1 calc(33.33% - 15px); /* Makes 3 items per row with some space between */
    box-sizing: border-box;
}

/* Gallery item (each image) */
.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, cursor 0.3s ease;
}

/* Hover effect to zoom in the image */
.gallery-item img:hover {
    transform: scale(1.1);
    cursor: pointer;
}


@media (max-width: 768px) {
    .product-info {
        width: 100%;
    }
    .gallery-item {
        flex: 1 1 calc(50% - 15px); /* 2 items per row on smaller screens */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%; /* 1 item per row on very small screens */
    }
}

/* Lightbox Modal Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    margin: 0 auto;
    display: block;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

/* Hide the navigation buttons when there's no next/prev image */
#prev:disabled, #next:disabled {
    display: none;
}

.availability {
    margin-top: 20px;
    font-size: 18px;
}

.availability p {
    margin: 5px 0;
}

.availability strong {
    font-weight: bold;
}

.availability span {
    font-size: 20px;
    color: green;
}

.availability span.x {
    color: red;
}

/* discount & price */

.price {
    display: flex;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: red;
    margin-right: 10px;
}

.final-price {
    font-weight: bold;
    color: green;
}

.discount-code-form {
    margin-top: 20px;
}

.discount-code-form label {
    font-weight: bold;
}

.discount-code-form input {
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    border-radius: 10px;
}

.discount-code-form button {
    padding: 10px 15px;
    background-color: #aa0000;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 15px;
}

.discount-code-form button:hover {
    background-color: #880000;
}

/* Styling for the bike-years container */
.bike-years {
    margin-top: 20px;
}

.bike-years h3 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 10px;
}

/* Styling the table */
.bike-years-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bike-years-table th,
.bike-years-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.bike-years-table thead th {
    background-color: #f4f4f4;
    color: #000000;
    font-weight: bold;
}

.bike-years-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bike-years-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Add some color to the cells */
.bike-years-table th {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bike-years-table td {
    color: #000000;
}

.bike-years-table tbody tr td:first-child {
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bike-years-table {
        font-size: 0.8rem;
    }

    .bike-years h3 {
        font-size: 1.2rem;
    }
}


/* Order Form Container */
form {
    width: 80%;
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Form Heading */
h3 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
}

/* Label Styling */
label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* Input Fields */
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Textarea Styling */
textarea {
    height: 150px;
    resize: vertical;
}

/* Select Fields */
select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
}

/* Form Button */
button[type="submit"] {
    background-color: #AA0000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #880000;
}

/* Show/Hide Sections Based on Team Option */
#team_details,
#model_cc {
    display: none;
}

/* Form Input Styling */
input:focus,
select:focus,
textarea:focus {
    border-color: #007BFF;
    outline: none;
}

/* Form Section (spacing and styling) */
form > div {
    margin-bottom: 20px;
}

/* Option for Number of Riders */
#rider_details {
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    form {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    form {
        width: 100%;
    }
}

.image-order-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.product-images {
    display: flex;
    flex-direction: column;
    width: 50%; /* Set the width of the left section (images) */
}

.product-image {
    width: 100%;
    margin-bottom: 10px;
}

.irlstore-form-row {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.irlstore-form-group {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
}

.irlstore-form-group label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #222;
}

.irlstore-form-group input[type="file"] {
    padding: 8px 0;
    border: none;
    background: none;
}

.irlstore-form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .irlstore-form-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

.faq-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.faq-question {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
    text-align: left;
}

.faq-answer {
    display: none;
    padding: 10px 0;
    color: #000000;
    font-weight: bold;
    font-size: 20px;
}

.faq-question::after {
    content: '\25BA';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
    transform: rotate(90deg);
}

.faq-item.open .faq-answer {
    display: block;
}
.faq-text{
    text-align: center;
}
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip-icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  filter: grayscale(0.2);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.tooltip:hover .tooltip-icon {
  opacity: 1;
}

.tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: #222;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* Show above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 15px;
  pointer-events: none;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.quantity-group-with-tooltip .quantity-tooltip-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* FAQ Section Styling */
.faq-section {
    margin-top: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #830000;
}

.faq-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-size: 22px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    background-color: #f5f5f5;
    user-select: none;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e8e8e8;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #850000;
    background-color: #e8f4ff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question span:last-child {
    flex: 1;
    text-align: left;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.faq-answer {
    display: none;
    padding: 10px 12px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    line-height: 1.5;
    color: #555;
    animation: slideDown 0.3s ease;
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}