/* Products Hero Section */
.products-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.products-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(44, 90, 160, 0.6)),
                url('../images/placeholder.webp') center/cover;
    z-index: -1;
}

.products-hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.products-hero__subtitle {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
}

/* Products Main Section */
.products-main {
    background-color: #fff;
    padding: 80px 0;
}

.products-title {
    font-family: "DM Sans", Sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1F4396;
    line-height: 1.3em;
    margin: 0;
}

/* Product Categories */
.product-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.product-category-link {
    padding: 15px 15px;
    position: relative;
}

.product-category-link a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.product-category-link a:hover {
    color: #253993;
}

.product-category-link:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -16px;
    top: 6px;
    color: #ff6b35;
    font-size: 25px;
    font-weight: 400;
}

.product-category-divider {
    display: none;
    height: 2px;
    width: 60%;
    background-color: #ff6b35;
    margin: auto;
    margin-top: 2px;
    margin-bottom: 2px;
}

/* Product List */
.product-list {
    display: flex;
    flex-direction: column;
    margin-top: 120px;
}

.product-item {
    scroll-margin-top: 100px;
    padding: 0 calc((100vw - 1380px)/2);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 10px;
    align-items: top;
}

/* Product Title with Background Text Effect */
.product-title {
    position: relative;
    text-align: left;
    padding-bottom: 20px;
}

.product-title::before {
    content: "GLASS";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 120px;
    font-weight: 900;
    color: rgba(44, 90, 160, 0.08);
    z-index: 1;
    line-height: 1;
    pointer-events: none;
}

.product-icon {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c5aa0;
    position: relative;
    z-index: 3;
}

.product-name {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
    position: relative;
    z-index: 3;
    margin-top: 10px;
}

/* Different background text for each product */
.product-item:nth-child(1) .product-title::before {
    content: attr(data-text);
    bottom: -48%;
    left: 0%;
    transform: translateY(20%);
}

.product-item:nth-child(3) .product-title::before {
    content: attr(data-text);
    bottom: -48%;
    left: 0%;
    transform: translateY(20%);
}

.product-item:nth-child(5) .product-title::before {
    content: attr(data-text);
    bottom: -48%;
    left: 0%;
    transform: translateY(20%);
}

.product-item:nth-child(7) .product-title::before {
    content: attr(data-text);
    bottom: -48%;
    left: 0%;
    transform: translateY(20%);
}

.product-item:nth-child(9) .product-title::before {
    content: attr(data-text);
    bottom: -48%;
    left: 0%;
    transform: translateY(20%);
}

.divider {
    height: 2px;
    width: 55px;
    background-color: #2c5aa0;
    margin: 10px 0 35px 0;
}

.full-divider {
    height: 1px;
    background-color: #eee;
    margin: 0 0;
    margin-bottom: 120px;
    margin-top: -8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .product-title::before {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .products-title {
        font-size: 1.8em;
    }

    .product-title {
        text-align: center;
        text-align: left;
        margin-left: 1rem;
    }
    
    .product-title::before {
        font-size: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
    }
    
    .product-name {
        font-size: 24px;
    }

    .product-description p {
        text-align: left;
        margin-left: 16px;
        margin-right: 16px;
    }

    .product-image {
        margin-left: 16px;
        margin-right: 16px;
    }

    .divider {
        margin: 0;
        margin-bottom: 3rem;
        margin-left: 1rem;
    }

    .product-item .product-title::before {
        top: -90px;
    }

    .full-divider {
        margin-bottom: 70px;
    }
}

.product-description {
    color: #111;
    font-size: 15px;
    line-height: 2;
}

.product-image {
    text-align: center;
}

.product-image img {
    width: 100%;
    max-width: 460px;
    height: 330px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: translateY(8px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr 2fr;
    }
    
    .product-image img {
        max-width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .products-hero__title {
        font-size: 36px;
    }
    
    .product-categories {
        display: block;
        text-align: center;
        margin: 0;
        margin-bottom: 60px;
        padding: 6px;
    }

    .product-category-link {
        padding: 1px;
    }
    
    .product-category-link:not(:last-child)::after {
        display: none;
    }

    .product-category-divider {
        display: block;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .product-list {
        margin-top: 0px;
    }
}

h2, h4 {
    font-size: 1.5em;
    font-weight: 700;
}

h2 {
    font-weight: 700;
    font-family: "Montserrat", Sans-serif;
}

h4 {
    font-family: "Open Sans", Sans-serif;
}

.elementor-section-products {
    position: relative;
    padding: 400px 0 0 0;
    overflow: hidden;
}

.elementor-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100%;
}

.elementor-background-slideshow__slide__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.elementor-background-overlay-products {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    background-color: transparent;
    background-image: linear-gradient(240deg, #FFFFFF00 0%, #031E3AB0 100%);
    opacity: 0.05;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.elementor-container {
    position: absolute;
    top: 3.3rem;
    left: 19.1%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    min-height: 164px;
}

.text-container {
    text-align: center;
    max-width: 900px;
}

.elementor-heading-title-products {
    color: white;
    text-shadow: -1px 0px 6px rgba(7.808662570888461, 7.757608695652168, 19.499999999999982, 0.27);
    text-align: left;
}

.elementor-heading-title-products:nth-child(1) {
    transform: translateY(0);
    opacity: 1;
    margin: -25px 0;
    font-family: "Montserrat", Sans-serif;
    font-size: 40px;
}

.elementor-heading-title-products:nth-child(2) {
    transform: translateY(0);
    opacity: 1;
    margin: 37px 0;
    font-family: "DM Sans", Sans-serif;
    font-size: 1.5em;
    line-height: 28px;
}

.elementor-heading-title-products:last-child {
    animation: slideDown 1.5s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 767px) {
    .elementor-heading-title-products {
        font-size: 1.5em !important;
    }
    .elementor-heading-title-products:nth-child(2) {
        font-size: 1em !important;
        width: 70%;
    }
    .elementor-container {
        top: 18%;
        left: 0%;
    }
}

.line-container {
    width: 100px;
    margin: 0.72rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.line-container img {
    max-width: 100%;
    height: auto;
}
