* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Jost", sans-serif;
}

body {
    overflow-x: hidden;
}


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

/* ================= CLICKABLE PRODUCT CARDS ================= */

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link,
.card-link * {
    text-decoration: none !important;
}

.card-link:hover {
    text-decoration: none;
}

.card-link .card {
    height: 100%;
}

/* Optional hover enhancement */
.card-link:hover .card-img {
    transform: scale(1.04);
}

.card-img {
    transition: transform 0.35s ease;
}


/* Styles for Hero Section */

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url("../images/product-banner-3.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-text {
    text-align: center;
    color: #ffffff;
    z-index: 2;
    position: relative;
    padding-top: 4rem;
}

.hero-text h3 {
    font-weight: 400;
    font-size: 40px;
    line-height: 70px;
}

.hero-text p {
    font-weight: 400;
    font-size: 16px;
    line-height: 28.34px;
    text-align: center;
}


@media screen and (max-width: 675px) {
    .hero-text h3 {
        font-weight: 400;
        font-size: 30px;
        line-height: 45px;
    }

    .hero-text p {
        font-weight: 400;
        font-size: 12px;
        line-height: 18.34px;
    }
}

/* Styles for section details */

.show-details {
    width: 80%;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.details-left {
    width: 30%;
    color: #000;
    font-weight: 400;
    font-size: 15px;
    line-height: 27px;
}

.details-right {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

/* Optional: make individual items more flexible on small screens */
.details-right p {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #000;
    font-weight: 400;
    font-size: 15px;
    line-height: 27px;
    flex-shrink: 0;
}

@media (max-width: 951px) {
    .show-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .details-left,
    .details-right {
        width: 100%;
        justify-content: flex-start;
    }

    .details-right {
        gap: 0.5rem;
        row-gap: 0.5rem;
    }

    .details-right p {
        flex-wrap: wrap;
        font-size: 16px;
    }
}

/* Style for product section */

/* .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 80%;
  margin: 2rem auto 0;
} */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 90%;
    margin: 2rem auto 0;
    box-sizing: border-box;
}

.product-card h4 {
    font-size: 1rem;
    margin: 0.5rem 0 0.2rem;
    text-align: center;
}

.product-card p {
    font-size: 0.85rem;
    margin: 0.2rem 0;
    color: #000;
    text-align: center;
}

.btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    margin-top: auto;
    cursor: pointer;
    font-weight: bold;
}

.btn a {
    text-decoration: none;
    color: white;
}

.rating {
    margin: 0.5rem 0;
    color: #ccc;
    font-size: 1rem;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Styles for navigation of product */

.nav-wrap {
    text-align: center;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.nav-wrap button {
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.nav-wrap button:hover {
    background-color: #9f9c9c;
}

/* Styles for Types of product */

.types-wrapper {
    width: 90%;
    margin-inline: auto;
    display: grid;
    gap: 1rem;
}

.types-head {
    color: #000;
    font-weight: 700;
    font-size: 35.47px;
    line-height: 55px;
}

.type-p {
    color: #000;
    font-weight: 400;
    font-size: 16px;
    line-height: 28.34px;
}

.type-list {
    padding: 0 1.5rem 0;
    color: #000;
    font-weight: 400;
    font-size: 16px;
    line-height: 28.34px;
}

.type-list ul li span {
    font-weight: 600;
}


.related-head {
    color: #000;
    margin: 3rem 0;
    text-align: center;
    font-weight: 500;
    font-size: 35px;
    line-height: 42px;
}

/* Styles For Product Description section */

.product-container {
    margin-top: 50px;
    display: flex;
    width: 80%;
    margin: auto;
}

.product-image {
    flex: 1;
    padding: 20px;
}

.product-image img {
    border: 1px solid #ddd;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.thumbnail {
    width: 32%;
    height: auto;
    margin: 0 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-info {
    flex: 1;
    padding: 20px;
}

.product-info h1 {
    font-weight: 500;
    font-size: 33px;
    line-height: 42px;
    margin: 0;
}

.ratings {
    margin: 10px 0;
    color: #777;
}

.description {
    margin: 20px 0;
    color: #000;
    font-weight: 400;
    font-size: 15px;
    line-height: 27px;
}

.quote-button {
    position: fixed;
    bottom: 90px;
    /* distance from bottom */
    right: 20px;
    /* distance from right */
    background-color: #e42b29;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}


/* Hover effect */
.quote-button:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}



/* .additional-info {
  margin-top: 20px;
}

.additional-info ul {
  list-style: none;
  padding: 0;
}

.additional-info li {
  margin: 5px 0;
  border: 1px solid #e2e2e2;
  padding: 1.2rem 0.4rem;
} */

.additional-info {
    margin-top: 20px;
}

.additional-info form {
    display: flex;
    flex-direction: column;
}

.additional-info form input[type="text"] {
    margin: 5px 0;
    border: 1px solid #e2e2e2;
    padding: 1.2rem 0.4rem;
    font-size: 1rem;
    border-radius: 4px;
}

.additional-info form input[type="text"]:focus {
    border-color: #e42b29;
}

.additional-info h2 {
    margin-bottom: 10px;
}

/* Tablet: Stack vertically on medium screens */
@media (max-width: 991px) {
    .product-container {
        flex-direction: column;
        margin-top: 50px;
        width: 90%;
    }

    .product-image,
    .product-info {
        padding: 15px;
    }

    .thumbnail {
        width: 30%;
        margin: 5px;
    }

    .product-info h1 {
        font-size: 33px;
        line-height: 36px;
    }
}

/* Mobile: Tighter spacing, full-width buttons/thumbnails */
@media (max-width: 576px) {
    .thumbnail-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .thumbnail {
        width: 30%;
        max-width: 90px;
        margin: 0;
    }

    .product-info h1 {
        font-size: 33px;
        line-height: 30px;
    }

    .description {
        font-size: 16px;
        line-height: 24px;
    }

    .quote-button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .additional-info li {
        font-size: 16px;
        padding: 1rem 0.6rem;
    }
}

/* Styles for Section Who We Are */

.w-wrapper {
    width: 80%;
    margin: 5rem auto;
    text-align: center;
}

.t-head {
    line-height: 26.6px;
    font-weight: 700;
    font-size: 18px;
    color: #e42b29;
}

.b-head {
    font-size: 22px;
    line-height: 55px;
    font-weight: 700;
    color: #000;
}

.detail {
    line-height: 28.34px;
    color: #000;
    font-weight: 400;
    font-size: 16px;
}

.detail p {
    padding: 1rem 0;
}

/* Styles for Section */

.card-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-inline: auto;
    display: grid;
    width: 90%;
    gap: 30px;
}

@media screen and (min-width: 1900px) and (max-width: 2800px) {
    .card-grid {
        width: 90%;
    }



    .product-grid {
        width: 90%;
    }

    .product-container {
        width: 50%;
        margin-top: 50px;
    }

    .footer {
        width: 90%;
    }

    .show-details {
        width: 50%;
    }

    .types-wrapper {
        width: 90%;
    }

}

@media screen and (min-width: 1600px) and (max-width: 1900px) {
    .card-grid {
        width: 90%;
    }


    .product-grid {
        width: 90%;
    }

    .product-container {
        margin-top: 50px;
        width: 80%;
    }

    .footer {
        width: 90%;
    }

    .show-details {
        width: 70%;
    }

    .types-wrapper {
        width: 90%;
    }
}

.card {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 16px;
    position: relative;
    height: 220px;
    z-index: 1;
    background-size: cover;
}

.card-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
    border-radius: 16px;
}

.card-content {
    background: white;
    padding: 20px;
    margin-top: -30px;
    margin-right: 30px;
    border-radius: 16px;
    min-height: 160px;
    height: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.card-content:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 16px !important;
    color: #000;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left !important;
}

@media (min-width: 1400px) and (max-width: 1640px) {

    .card-content h3 {
        font-size: 22px !important;
        font-weight: 500;
        margin-bottom: 8px;
        padding: 0.5rem;
    }

    .card-content p {
        font-size: 16px;
        color: #000;
        margin-bottom: 10px;
        padding: 0.5rem;
        text-align: left;
        height: 3rem;
    }

}

.card-content a {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 58px;
    text-decoration: none;
    color: #000;
    padding: 0.5rem;
}

.card-content a:hover {
    color: #e52421;
}

.wrap-line {
    text-align: center;
    padding: 4rem 0;
}

.w-para {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.01px;
    padding-bottom: 1.5rem;
}

.w-para a {
    color: #e42b29;
    font-size: 15px;
    font-weight: 700;
    line-height: 15px;
    text-decoration: none;
}

.cta-btn {
    background-color: #e42b29;
    color: #fff;
    padding: 0 25px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 55px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

@media screen and (max-width: 1158px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        width: 90%;
    }

    .card-content {
        height: auto;
    }

    .card-content h3,
    .card-content p,
    .card-content a {
        padding: 0.3rem;
    }

    .card-img {
        height: 200px;
    }
}

@media screen and (max-width: 605px) {
    .card-grid {
        width: 90%;
    }
}

@media screen and (max-width: 451px) {
    .card-grid {
        width: 90%;
    }
}

.message-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e42b29;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease;
}

.message-icon:hover {
    transform: scale(1.1);
    background-color: #000;
}

.message-icon img {
    width: 28px;
    height: 28px;
    display: block;
}

.footer-column ul li a:hover {
    color: #e42b29;
}

.footer-links a:hover {
    color: #e42b29;
}

.product-card img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* .product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
} */


.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}


.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #000;
    color: white;
}

.cta-btn:hover {
    background-color: #000;
    color: white;
}

.quote-button:hover {
    background-color: #000;
    color: white;
}

@media (max-width: 600px) {

    .w-para p {
        font-size: 12px;
    }

    .w-para a {
        font-size: 13px;
    }

    .cta-btn {
        font-size: 13px;
        padding: 0 20px;
        line-height: 40px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content p {
        font-size: 16px;
    }

    .ratings span {
        font-size: 0.9rem;
    }

    .quote-button {
        padding: 10px;
        font-size: 13px;
    }

    .additional-info form input[type="text"] {
        font-size: 0.9rem;
    }

    .card-content a {
        font-size: 0.9rem;
    }

    .related-head {
        font-size: 26px;
        line-height: 36px;
    }

    .b-head {
        font-size: 18px;
        line-height: 36px;
    }

    .t-head {
        font-size: 16px;
    }

    .type-p {
        font-size: 0.85rem;
        line-height: 22px;
    }

    .type-list ul li {
        font-size: 0.85rem;
    }

    .type-list ul li span {
        font-weight: 600;
        font-size: 0.87rem;
    }

}

@media (max-width: 455px) {
    .related-head {
        font-size: 22px;
        line-height: 26px;
    }

    .b-head {
        font-size: 16px;
        line-height: 26px;
    }

    .t-head {
        font-size: 13px;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.inquiry-btn {
    background-color: #e42b29;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.inquiry-btn:hover {
    background-color: #c82321;
}

.close-btn {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-btn:hover {
    background-color: #333;
}

.additional-info {
    position: relative;
}

.description {

    text-overflow: ellipsis;
    transition: max-height 0.3s ease;
}

.show-more {
    max-height: none;
}

.see-more {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-top: 10px;
}

.hidden {
    display: none;
}

.main-image {
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.1);
}

.thumbnail.active {
    border: 2px solid #000 !important;
}


.slider-arrow {
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 45%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.85);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.long-desc-content {
    max-height: 120px;
    /* collapsed height */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.long-desc-content.collapsed {
    max-height: 120px;
    /* show only first 120px */
}

.read-more-btn {
    display: none;
    /* hide by default */
    margin-top: 10px;
    cursor: pointer;
    background: #e42b29;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
}

.long-desc-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.long-desc-content strong {
    font-weight: bold;
}

.long-desc-content ul,
.long-desc-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.long-desc-content ul li,
.long-desc-content ol li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.long-desc-content {
    overflow: hidden;
    max-height: 120px;
    /* collapsed height */
    transition: max-height 0.4s ease;
    display: block;
    position: relative;
}


@media (min-width: 320px) and (max-width: 480px) {
    .des-selector {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .quote-button {
        position: static !important;
    }
}
