/* product.css */

/* Product Page Styling */
.product-container {
    padding-top: 50px;
    background: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.product-container h1 {
    color: #002147;
}

.product-details {
    width: 85%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Flexbox for Image, Description & Brochure */
.product-info {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

.product-image {
    max-width: 60%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-description {
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.product-description ul {
    /* Remove any inside positioning and add left padding for consistent bullet alignment */
    list-style-position: outside;
    list-style-type: disc;
    margin: 0;
    padding-left: 1.5rem; /* Adjust as needed */
    line-height: 1.5;    /* Increase line-height for better readability */
}

.product-description ul li {
    margin-bottom: 0.5rem; /* Add spacing between bullet points */
    text-align: left;      /* Keep text left-aligned */
}

/* Brochure Section */
.brochure-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 50px;
}

.brochure-container h2 {
    color: #222;
    border-bottom: 3px solid #002147;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

.brochure-content {
    display: block;
    max-width: 100%;
    border-radius: 12px;
}

.brochure-content iframe {
    width: 100%;
    height: 1300px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Main Specifications */
.specs {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 30px;
    max-width: 1000px;
    width: 100%;
    padding: 15px;
    border-bottom: 2px solid #ddd;
}

.specs h1 {
    color: #222;
    border-bottom: 3px solid #002147;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Tabbed Specifications Section */
.tabs {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    padding-bottom: 50px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ddd;
    gap: 15px;
    margin-bottom: 10px;
}

.tab-buttons button {
    background: none;
    border: none;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-buttons button:hover,
.tab-buttons button.active {
    color: #002147;
    font-weight: 600;
}

.tab-buttons button.active::after {
    content: "";
    width: 100%;
    height: 3px;
    background: #002147;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.tab-content {
    display: none;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
    min-height: 250px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* MOBILE-FRIENDLY TABS */
@media (max-width: 700px) {
    /* Allow horizontal scrolling of the tab buttons */
    .tab-buttons {
      justify-content: flex-start;       /* Align left instead of centered */
      gap: 10px;                         /* Tighter gap on small screens */
      overflow-x: auto;                  /* Enable horizontal scroll */
      -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
      padding: 0 10px;                   /* Some side padding */
    }
  
    /* Make each button a minimum width so it's tappable */
    .tab-buttons button {
      flex: 0 0 auto;     /* Prevent shrinking or growing */
      min-width: 100px;   /* Adjust as needed for your labels */
      padding: 10px 12px; /* Comfortable tap area */
      white-space: nowrap;/* Prevent text wrapping */
    }
  
    /* Make the content full-width and add some breathing room */
    .tab-content {
      max-width: 100%;    /* Override your desktop max-width */
      margin: 0 auto;     /* Center if narrower */
      padding: 15px 10px; /* Tighter padding on mobile */
    }
  }

  

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.specifications {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.specifications li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.specifications li strong {
    color: #002147;
    font-weight: 600;
}

.back-button {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background: #002147;
    border-radius: 8px;
}

.back-button:hover {
    background: #003f7f;
}

/* Responsive */
@media (max-width: 1400px) {
    .product-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 1400px;
    }
    .product-info {
        flex-direction: column;
        width: 100%;
    }
    .product-image {
        max-width: 70%;
    }
    .brochure-container {
        width: 100%;
    }
}

/* Updated Inquiry Container Styling: Fixed to the right and sticky */
.inquiry-container {
    position: fixed;         /* Fixes the box relative to the viewport */
    top: 150px;              /* Adjust vertical distance from the top as desired */
    right: 60px;             /* Distance from the right edge of the viewport */
    width: 400px;            /* Fixed width for the inquiry box */
    background: #f3f3f3;     /* White background for clarity */
    border: 1px solid #ddd;  /* Light border to define the container */
    padding: 20px;           /* Padding for inner spacing */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border-radius: 8px;      /* Rounded corners for a modern look */
    z-index: 1000;           /* High z-index ensures it sits above other content */
}

/* Inquiry Form Heading */
.inquiry-container h2 {
    font-size: 1.2rem;
    color: #002147;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Inquiry Form Input Elements */
.inquiry-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
}

.inquiry-form input {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.inquiry-form button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #002147;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.inquiry-form button:hover {
    background: #003f7f;
}

/* Responsive Behavior: Hide the Inquiry Box under 1000px viewport width */
@media (max-width: 1000px) {
    .inquiry-container {
        display: none;
    }
}

/* MOBILE: hide iframe, style download link */
@media (max-width: 700px) {
    .brochure-content iframe {
      display: none !important;
    }
    .brochure-download-btn {
      display: inline-block;
      margin: 20px auto;
      padding: 12px 20px;
      background: #002147;
      color: #fff;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
      text-align: center;
    }
    .brochure-download-btn:hover {
      background: #003f7f;
    }
  }
  
