/* 
 * Products Single Page Styles 
 * Custom styles for single product display
 */

/* Main container */
.product-single {
    padding: 1rem;
}

/* Two-column layout */
.product-two-column-layout {
    display: block;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .product-two-column-layout {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); /* Adjust ratio for gallery and details */
        /* Example: 40% for gallery, 60% for details */
        /* grid-template-columns: 0.8fr 1.2fr; */
    }

    .product-details-column.is-sticky {
        position: sticky;
        top: 2rem; /* Adjust as needed for header height */
        height: calc(100vh - 4rem); /* Example: full viewport height minus some padding */
        overflow-y: auto; /* Allow scrolling within the sticky column if content is too long */
    }
}

/* Breadcrumbs & Share */
.breadcrumbs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
  }
  
  .breadcrumbs {
    flex: 1;
  }
  
  .breadcrumbs-inner {
    font-size: 0.9rem;
    color: #666;
  }
  
  .breadcrumbs-inner a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-right: 5px;
  }
  
  .breadcrumbs-inner a:hover {
    color: var(--primary-color);
  }
  
  .breadcrumbs-inner .breadcrumb_last {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 5px;
  }
  
  /* Add spacing to breadcrumb separator */
  .breadcrumbs-inner span[property="itemListElement"] {
    margin: 0 3px;
  }
  
  .breadcrumbs-inner span[property="itemListElement"]::after {
    content: ">";
  }
  
  .breadcrumbs-inner span[property="name"] {
    margin: 0 3px;
  }

.share-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem; /* Ensure it wraps nicely on mobile */
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; /* Slightly larger */
    height: 2.5rem; /* Slightly larger */
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555; /* Darker icon color */
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Gallery styles */
.product-gallery {
    border-radius: 12px; /* More rounded */
    overflow: hidden;
    position: relative;
    background-color: #fff; /* Cleaner background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Softer shadow */
}

.main-image-container {
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: white;
    /* padding: 1rem; */
    border-radius: 8px; /* Consistent rounding */
    display: flex;
    align-items: center;
    max-height: 450px;
    justify-content: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother zoom */
}


.product-status { /* General status badge */
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-status.status-sold { background-color: #dc3545; }
.product-status.status-sale-agreed { background-color: #ffc107; color: #333; }
.product-status.status-new, .product-status.status-in-stock { background-color: #28a745; }
.product-status.status-used { background-color: #17a2b8; }


.fullscreen-btn, .view-360-btn {
    position: absolute;
    bottom: 1rem;
    width: 2.8rem; /* Slightly larger */
    height: 2.8rem; /* Slightly larger */
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker background */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border: none; /* Remove border if any */
}

.fullscreen-btn {
    right: 1rem;
}

.view-360-btn {
    right: 4.5rem; /* Adjust spacing */
    font-size: 0.8rem; /* Icon and text */
}

.fullscreen-btn:hover, .view-360-btn:hover {
    background-color: var(--primary-color);
}

.product-gallery-thumbs {
    padding: 1rem;
    background-color: #f9f9f9; /* Light grey background */
    border-top: 1px solid #eee;
}

.gallery-thumbs-container {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem; /* Increased gap */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0; /* Adjusted scrollbar color */
    padding: 0.5rem 0;
}

.gallery-thumb {
    flex: 0 0 90px; /* Larger thumbs */
    height: 90px; /* Larger thumbs */
    border-radius: 6px; /* More rounded */
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent; /* Thicker border for active state */
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gallery-thumb.active {
    border-color: #FF8C00; /* Orange */
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.5); /* Orange glow */
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.08); /* Slightly more zoom on thumb hover */
}

.video-thumb-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #333; /* Darker background for video thumb */
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem; /* Larger play icon */
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.gallery-nav {
    display: none; /* Consider removing if scroll is sufficient, or style better */
}

/* Product details */
.product-details-column {
    padding-left: 1rem; /* Add some padding if columns are close */
}
@media (max-width: 991px) {
    .product-details-column {
        padding-left: 0;
    }
}


.product-header {
    margin-bottom: 1.5rem;
}

.product-title-area {
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 2rem; /* Slightly larger title */
    margin: 0 0 0.5rem;
    line-height: 1.3;
    color: #222; /* Darker title */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.model-badge {
    display: inline-block;
    background-color: #e9ecef; /* Lighter grey */
    color: #495057; /* Darker text */
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500; /* Slightly bolder */
}

.product-sku {
    font-size: 0.9rem;
    color: #6c757d; /* Softer grey */
    margin-top: 0.5rem;
}

.product-price {
    display: flex;
    align-items: baseline; /* Align price and label better */
    margin: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.price-label {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-right: 0.75rem;
}

.price-value {
    font-size: 2rem; /* Larger price */
    font-weight: 700;
    color: #FF8C00; /* Orange price */
}

.vat-status {
    font-size: 0.8rem;
    font-weight: normal;
    color: #6c757d;
    margin-left: 0.5rem;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem; /* More padding */
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}
.product-availability i { margin-right: 0.3em;}

.product-availability.availability-in-stock { /* Use class for easier targeting */
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #b0d9b1;
}

.product-availability.availability-low-stock {
    background-color: #fff8e1;
    color: #ff8f00;
    border: 1px solid #ffe082;
}

.product-availability.availability-out-of-stock {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}
.stock-level-note {
    font-size: 0.85rem;
    color: #555;
    margin-left: 0.5rem;
}


/* Quick actions */
.product-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Increased gap */
    margin: 2rem 0; /* More margin */
}

.btn-enquire-inline {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    border: 1px solid #dee2e6;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-enquire-inline:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Product Features Preview */
.product-features-preview {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-features-preview h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.features-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.feature-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.feature-preview-item:hover {
    transform: translateY(-2px);
}

.feature-preview-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.feature-preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-preview-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.2;
}

/* Product Highlights */
.product-highlights {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.highlight-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.highlight-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
}

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

.highlight-content strong {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.highlight-content span {
    font-size: 0.85rem;
    color: #666;
}

.btn-enquire {
    padding: 0.6rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    /* background-color: #28a745;
    color: white; */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.btn-enquire:hover {
    background-color: #21a33f;
    filter: brightness(1.2);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


.btn-download {
    background-color: var(--primary-color);
}

.btn-download:hover {
    filter: brightness(1.5);
    transform: translateY(-2px);
}

/* Product Tabs */
.product-tabs {
    margin-top: 2.5rem; /* More margin */
    border: 1px solid #e0e0e0; /* Softer border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa; /* Lighter tab nav background */
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto; /* Allow horizontal scroll on mobile */
    white-space: nowrap;
}

.tab-nav li {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    color: #495057; /* Darker grey for inactive tabs */
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent; /* Prepare for active indicator */
}

.tab-nav li.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: #fff; /* White background for active tab */
}

.tab-nav li:hover {
    color: var(--primary-color);
    background-color: #f1f3f5; /* Slightly darker hover */
}

.tab-content {
    padding: 2rem; /* More padding in tab content */
    background-color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.5s ease; /* Tab fade in animation */
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Tab content specific styles */
.tab-pane h2, .tab-pane h3 { /* Consistent heading styles in tabs */
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.product-description {
    line-height: 1.7; /* Improved line height */
    color: #444;
    font-size: 1.05rem;
}
.product-description p { margin-bottom: 1em; }
.product-description ul { list-style-position: inside; padding-left: 1em; margin-bottom: 1em;}
.product-description li { margin-bottom: 0.5em; }


.product-benefits {
    margin-top: 2rem;
}

.benefits-list { /* Assuming this is a ul/ol from a WYSIWYG */
    list-style: none;
    padding-left: 0; /* Remove default padding if using custom icons */
}

.benefits-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem; /* Space for custom icon */
    margin-bottom: 0.5rem;
}

.benefits-list li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; /* Solid icon */
    position: absolute;
    left: 0;
    top: 0.6rem; /* Adjust vertical alignment */
    color: #FF8C00; /* Orange check */
    font-size: 1rem;
}

.product-specs {
    margin-bottom: 2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Wider items */
    gap: 1.5rem; /* Increased gap */
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: 1rem; /* More padding */
    background-color: #f8f9fa;
    border-radius: 6px; /* More rounded */
    border: 1px solid #e9ecef;
}

.spec-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem; /* Slightly more margin */
    font-size: 0.9rem;
}

.spec-value {
    color: #212529; /* Darker value text */
    font-size: 1rem;
}

.additional-specs {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.tech-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem; /* More margin */
    font-size: 0.95rem;
}

.tech-specs-table th, 
.tech-specs-table td {
    padding: 1rem; /* More padding */
    text-align: left;
    border: 1px solid #e0e0e0; /* Borders on all sides */
}

.tech-specs-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 30%; /* Adjust width */
}

.product-feature-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem; /* Increased gap */
    margin-top: 2rem;
}

.product-feature-icon-item {
    display: flex;
    gap: 1.5rem; /* Increased gap */
    align-items: flex-start;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-feature-icon {
    flex: 0 0 60px; /* Larger icon container */
}

.product-feature-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.product-feature-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-feature-content p {
    margin: 0;
    color: #555; /* Darker grey text */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews Tab */
.product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}
.average-rating .stars {
    color: #FFC107; /* Gold for stars */
    font-size: 1.5rem;
}
.average-rating .rating-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-left: 0.5rem;
}
.reviews-count {
    font-size: 1rem;
    color: #555;
}
.btn-write-review {
    margin-left: auto;
    padding: 0.6rem 1.2rem;
    background-color: #FF8C00;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-write-review:hover {
    background-color: #E67E00;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.reviewer-name {
    font-weight: bold;
    color: #333;
}
.review-date {
    font-size: 0.85rem;
    color: #777;
}
.review-stars {
    color: #FFC107; /* Gold for stars */
    margin-bottom: 0.5rem;
}
.review-text {
    line-height: 1.6;
    color: #555;
}
#review-form-container {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}


/* Enquiry Form */
.product-enquiry {
    max-width: 700px; /* Slightly narrower form */
    margin: 0 auto;
}

.enquiry-content > p { /* Target the intro paragraph specifically */
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-contact-form {
    padding: 2rem; /* More padding */
    background-color: #fff; /* White background for form */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07); /* Softer shadow */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem; /* Increased gap */
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    .breadcrumbs-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
      }
      
      .breadcrumbs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
      }
}

.form-group {
    margin-bottom: 1rem; /* Default, can be overridden by form-row gap */
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem; /* More space below label */
    font-weight: 600;
    color: #343a40; /* Darker label */
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.cf-input input,
.cf-input textarea {
    width: 100%;
    padding: 0.9rem 1rem; /* More padding */
    border: 1px solid #ced4da; /* Standard Bootstrap border color */
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa; /* Light input background */
}
.form-group input:focus,
.form-group textarea:focus,
.cf-input input:focus,
.cf-input textarea:focus {
    border-color: #FF8C00; /* Orange focus border */
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25); /* Orange focus shadow */
    background-color: #fff;
}

.cf-input textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    text-align: center;
    margin-top: 2rem; /* More margin */
}

.btn-submit {
    padding: 0.9rem 2.5rem; /* Larger submit button */
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    filter: brightness(1.5);
}
.btn-submit i { margin-right: 0.5em; }


.form-success-message {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #e8f5e9; /* Light green success background */
    border-radius: 8px;
    border: 1px solid #b0d9b1;
}

.form-success-message i {
    font-size: 3.5rem; /* Larger icon */
    color: #28a745;
    margin-bottom: 1.5rem;
    display: block;
}

.form-success-message h3 {
    margin-top: 0;
    color: #155724; /* Darker green text */
    font-size: 1.5rem;
}
.form-success-message p {
    color: #155724;
    font-size: 1.1rem;
}


/* CTA Section */
.product-cta-section {
    margin: 4rem 0 2rem;
    background-color: var(--secondary-color); /* Dark background for CTA */
    border-radius: 12px; /* More rounded */
    overflow: hidden;
    color: white; /* Text color for dark background */
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .cta-container {
        grid-template-columns: 1fr; /* Single column for stacked layout initially */
    }
}
@media (min-width: 992px) {
    .cta-container {
         grid-template-columns: 1fr; /* Text on left, image on right */
    }
}


.cta-content {
    padding: 3rem; /* More padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 991px) {
    .cta-content {
        text-align: center;
    }
}

.cta-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem; /* Larger CTA title */
    color: white; /* White title */
    text-align: center;
}

.cta-content p {
    margin-bottom: 2rem; /* More margin */
    color: #f8f9fa; /* Lighter grey text on dark background */
    font-size: 1.1rem;
    line-height: 1.7;
}

.cta-buttons-product {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
@media (max-width: 991px) {
    .cta-buttons-product {
        justify-content: center;
    }
}

/* Base for CTA buttons */
.cta-buttons-product .btn-primary, 
.cta-buttons-product .btn-secondary {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
    min-width: 130px;
    justify-content: center;
}
.cta-buttons-product .btn-primary i, 
.cta-buttons-product .btn-secondary i {
    font-size: 1.1em;
}


.cta-buttons-product .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.cta-buttons-product .btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    filter: brightness(1.5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cta-buttons-product .btn-secondary {
    background-color: transparent; /* Transparent background */
    color: white; /* White text */
    border: 1px solid var(--primary-color);
}

.cta-buttons-product  .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    filter: brightness(1.5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cta-image {
    min-height: 300px; /* Ensure image has some height */
    background-size: cover;
    background-position: center;
}
@media (max-width: 991px) {
    .cta-image {
       display: none; /* Hide image on smaller screens for stacked layout */
    }
}


/* You Might Also Like Section */
.you-might-also-like-section {
    padding: 3rem 0;
    border-top: 1px solid #eee;
}
.you-might-also-like-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.related-product-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.related-product-image {
    height: 200px;
    overflow: hidden;
}
.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-product-info {
    padding: 1rem;
}
.related-product-info h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.related-product-info h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}
.related-product-info h3 a:hover {
    color: #FF8C00;
}
.related-product-price {
    font-size: 1rem;
    font-weight: bold;
    color: #FF8C00;
    margin-bottom: 0.5rem;
}
.btn-view-related {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.btn-view-related:hover {
    background-color: #e0e0e0;
}


/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050; /* Higher z-index for modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
    animation: fadeIn 0.3s ease;
    overflow-y: auto; /* Allow modal itself to scroll if content too long */
}

.modal.active { /* Class to show modal */
    display: flex; /* Use flex to center content */
    align-items: center;
    justify-content: center;
}


.modal-content {
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: white;
    position: relative;
    margin: 2rem;
    max-width: 900px;
    width: auto;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 4rem);
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: scale(0.9) translateY(-30px); 
        opacity: 0; 
    }
    to { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
}

.close-modal {
    position: absolute;
    top: 0.8rem; /* Adjust position */
    right: 0.8rem;
    color: #888; /* Grey close icon */
    font-size: 1.8rem; /* Larger close icon */
    background-color: transparent; /* No background initially */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #333; /* Darker on hover */
    background-color: #f0f0f0; /* Light background on hover */
    transform: rotate(90deg);
}

.video-container { /* For video modal content */
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px; /* Rounded corners for video player */
    width: 100%; /* Ensure it fills modal content if needed */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Remove iframe border */
}

/* 360 View styles */
.view-360-content { /* Specific modal content for 360 view */
    padding: 0;
    overflow: hidden;
    max-width: 1000px; /* Wider for 360 view */
    background-color: #222; /* Dark background for 360 view */
}
.view-360-content .close-modal {
    color: #ccc; /* Lighter close icon for dark background */
}
.view-360-content .close-modal:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}


.view-360-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; /* Adjust aspect ratio for 360 images (e.g., 3:2) */
    background-color: #222; /* Dark background */
}

.product-360-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: grab;
}

.product-360-view:active {
    cursor: grabbing;
}

.spinner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 34, 34, 0.9); /* Darker overlay for spinner */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 5;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #555; /* Darker spinner track */
    border-top: 5px solid #FF8C00; /* Orange spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.view-360-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); /* Gradient for controls */
}

.view-360-prev, .view-360-next {
    width: 44px; /* Larger controls */
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-360-prev:hover, .view-360-next:hover {
    background-color: rgba(255, 140, 0, 0.8); /* Orange hover for 360 controls */
    border-color: rgba(255, 140, 0, 1);
}

.view-360-instruction {
    color: #eee; /* Lighter instruction text */
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0,0,0,0.4);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

/* GLightbox custom styles */
.glightbox-container {
    z-index: 99999 !important;
}

.goverlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

.gnext, 
.gprev {
    background-color: rgba(0, 0, 0, 0.7) !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.gnext:hover, 
.gprev:hover {
    background-color: var(--primary-color) !important;
}

.gclose {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.gclose:hover {
    background: var(--primary-color) !important;
}

/* Sticky Product Details Column */
@media (min-width: 992px) {
    .product-two-column-layout {
        position: relative; /* For sticky positioning context */
    }
    .product-details-column.is-sticky {
        position: sticky;
        top: 20px; /* Adjust based on your header height */
        max-height: calc(100vh - 40px); /* Limit height to viewport minus some padding */
        overflow-y: auto; /* Add scroll if content overflows */
        padding-bottom: 20px; /* Ensure some space at the bottom when scrolling */
    }
}

/* Call Request Modal Specific Styles */
#call-request-modal .modal-content {
    max-width: 500px;
    padding: 2rem;
}

#call-request-modal h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}

#call-request-modal p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

#call-request-modal .cf-input {
    margin-bottom: 1rem;
}

#call-request-modal .acceptance-20 {
    margin: 1rem 0;
    font-size: 0.9rem;
}

#call-request-modal .cf-submit {
    text-align: center;
}

#call-request-modal .wpcf7-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

#call-request-modal .wpcf7-submit:hover {
    background-color: var(--primary-color);
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Disabled submit button state */
#call-request-modal .wpcf7-submit:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
    transition: none;
}

#call-request-modal .wpcf7-submit:disabled:hover {
    background-color: #cccccc;
    color: #888888;
    transform: none;
    box-shadow: none;
    filter: none;
}

/* Privacy policy link */
.acceptance-20 {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.acceptance-20 .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
}

.acceptance-20 input[type="checkbox"] {
    appearance: checkbox;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-top: 3px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    outline: none;
    padding: 0;
    background-color: #fff;
}

.acceptance-20 input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.acceptance-20 .wpcf7-list-item-label {
    cursor: pointer;
    user-select: none;
}

.acceptance-20 a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.acceptance-20 a:hover {
    color: var(--secondary-color);
}

/* Contact Form 7 Styles */
.wpcf7-response-output {
    margin: 1rem 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    border-width: 1px !important;
}

/* Success message */
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb !important;
}

/* Error message */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb !important;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-spinner {
    margin: 0 0 0 10px !important;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 1 !important;
}

.wpcf7 form.submitting {
    position: relative;
}

.wpcf7 form.submitting::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
    border-radius: 5px;
}

/* General CF7 disabled submit button styles */
.wpcf7-submit:disabled {
    background-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
    transition: none !important;
}

.wpcf7-submit:disabled:hover {
    background-color: #cccccc !important;
    color: #888888 !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Modal animation refinements */
.modal {
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.modal-content {
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content {
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from { 
        transform: scale(0.9) translateY(-30px); 
        opacity: 0; 
    }
    to { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
}

/* Responsive modal adjustments */
@media (max-width: 576px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    #call-request-modal .modal-content {
        padding: 1.5rem;
    }
    
    #call-request-modal h3 {
        font-size: 1.3rem;
    }
    
    #call-request-modal p {
        font-size: 0.9rem;
    }
    
    /* Mobile floating button */
    .floating-call-btn {
        bottom: 1rem;
        right: 1rem;
    }
    
    .call-btn-text {
        display: none;
    }
    
    /* Mobile features preview */
    .features-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile highlights */
    .highlight-item {
        padding: 0.75rem;
    }
    
    .highlight-item i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Mobile comparison */
    .product-comparison-section {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-header h2 {
        font-size: 1.5rem;
    }
}

/* CF7 Submit Button Styling */
.wpcf7-submit,
input[type="submit"].wpcf7-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: auto;
    display: inline-block;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpcf7-submit:hover,
input[type="submit"].wpcf7-submit:hover {
    background-color: var(--primary-color);
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* CF7 Submit Button Container */
.cf-submit {
    text-align: center;
    margin-top: 1.5rem;
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-call-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.call-btn-floating {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.call-btn-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.call-btn-text {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(40, 167, 69, 0.5); }
}

/* Product Comparison Section */
.product-comparison-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.comparison-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.comparison-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.comparison-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comparison-item.current-product {
    border: 2px solid var(--primary-color);
}

.comparison-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.comparison-item:hover .comparison-image img {
    transform: scale(1.05);
}

.current-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-details {
    padding: 1.25rem;
}

.comparison-details h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.comparison-details h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comparison-details h3 a:hover {
    color: var(--primary-color);
}

.comparison-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.comparison-specs {
    margin-bottom: 1rem;
}

.comparison-specs .spec {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.btn-compare {
    background: var(--secondary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-compare:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}


