/* Offer Pages Specific Styles */

/* Offer hero section */
.offer-hero {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.offer-hero picture {
    width: 100%;
    height: 100%;
}

.offer-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-heading {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.offer-heading h1 {
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 1.8rem;
    max-width: 70%;
}

.offer-badge {
    background-color: var(--complementary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

/* Offer content section */
.offer-content {
    padding: 60px 0;
    background-color: white;
}

/* Product layout */
.offer-product {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-product-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.secondary-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.secondary-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 100px;
}

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

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

.product-description {
    background-color: var(--complementary-color-lighter);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-description h2 {
    color: var(--primary-color-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.product-description h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0px;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Product specifications */
.product-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.spec-group {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.spec-group h3 {
    color: var(--primary-color-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.spec-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spec-item strong {
    color: var(--text-color);
}

/* Features section */
.features-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.features-section h3 {
    color: var(--primary-color-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    columns: 1;
    column-gap: 30px;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Pricing section */
.pricing-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.price {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.regular-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.discount-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color-dark);
}

.discount-badge {
    position: absolute;
    top: -15px;
    right: -60px;
    background-color: var(--complementary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 15px;
    transform: rotate(15deg);
}

.price-note {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offer-cta {
    padding: 12px 25px;
    font-size: 1.1rem;
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: var(--primary-color-lighter);
}

/* Additional Info Cards */
.offer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.info-advantages {
    background-color: var(--primary-color-lighter);
}

.info-installation {
    background-color: var(--complementary-color-lighter);
}

.info-card h3 {
    color: var(--primary-color-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.info-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.info-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Related offers section */
.related-offers {
    margin-top: 60px;
}

.related-offers h3 {
    text-align: center;
    margin-bottom: 30px;
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.offer-card-small {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.offer-card-image {
    height: 150px;
    overflow: hidden;
}

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

.offer-card-small:hover .offer-card-image img {
    transform: scale(1.05);
}

.offer-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-card-title {
    font-size: 1.1rem;
    color: var(--primary-color-dark);
    margin-bottom: 10px;
}

.offer-card-specs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.offer-card-price {
    font-weight: 700;
    color: var(--primary-color-dark);
    margin-bottom: 15px;
}

.offer-card-link {
    text-align: center;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .offer-hero {
        height: 450px;
    }

    .offer-heading h1 {
        font-size: 2.2rem;
    }

    .secondary-images {
        grid-template-columns: repeat(3, 1fr);
    }

    .secondary-image {
        height: 120px;
    }

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

    .features-list {
        columns: 2;
    }

    .cta-container {
        flex-direction: row;
        justify-content: center;
    }

    .offer-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .offer-hero {
        height: 550px;
    }

    .offer-heading {
        padding: 30px;
    }

    .offer-heading h1 {
        font-size: 2.5rem;
    }

    .offer-product {
        flex-direction: row;
        align-items: flex-start;
    }

    .product-images {
        flex: 1;
    }

    .product-description {
        flex: 1;
    }

    .secondary-image {
        height: 150px;
    }

    .features-list {
        columns: 2;
    }

    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .offer-hero {
        height: 650px;
    }

    .secondary-image {
        height: 180px;
    }
}
