/* Product detail page shared styles */
.product-detail-hero-bg {
    background-image: url('../images/hero-1.jpg');
}

.product-back-wrap {
    margin-top: 30px;
}

.product-back-link {
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-categories-header {
    margin-bottom: 50px;
}

.product-categories-label {
    color: #16cde9;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.product-categories-title {
    font-size: 2.2rem;
}

.category-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .category-grid-layout {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}

/* Modifier for left-aligned single card pages */
.category-grid-left {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(auto-fill, minmax(350px, 400px));
    justify-content: start;
}

.category-card-base {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card-base:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-card-delay-1 {
    transition-delay: 0.1s;
}

.category-img-wrapper-base {
    width: 100%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.category-img-standard {
    height: 220px;
}

.category-img-tall {
    height: 280px;
}

.category-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-base:hover .category-img-cover {
    transform: scale(1.05);
}

.category-info-block {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.category-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #0a0e27;
    font-weight: 700;
}

.category-description {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.category-cta {
    margin-top: auto;
}

/* ==========================================================================
   Product Type Detail Page Styles
   ========================================================================== */

/* Specifications Section */
.specs-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);

}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.specs-content {
    padding-right: 40px;
}

.specs-label {
    color: #16cde9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.specs-title {
    font-size: 2.5rem;
    color: #0a0e27;
    margin-bottom: 25px;
    line-height: 1.2;
}

.specs-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.specs-table th,
.specs-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.specs-table th {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3d 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: rgba(22, 205, 233, 0.03);
}

.specs-table td:first-child {
    font-weight: 600;
    color: #0a0e27;
}

.specs-table td:last-child {
    color: #64748b;
}

/* Product Image Showcase */
.product-showcase {
    position: relative;
}

.product-showcase-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-showcase-img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

/* Color Swatches Section */
.colors-section {

    background: #ffffff;
}

.colors-header {
    text-align: center;
    margin-bottom: 50px;
}

.colors-title {
    font-size: 2rem;
    color: #0a0e27;
    margin-bottom: 15px;
}

.colors-subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.color-swatch {
    text-align: center;
    transition: transform 0.3s ease;
}

.color-swatch:hover {
    transform: translateY(-5px);
}

.swatch-color {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid #ffffff;
    outline: 1px solid #e0e0e0;
}

.swatch-name {
    font-weight: 600;
    color: #0a0e27;
    font-size: 0.9rem;
}

.swatch-code {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Feature Highlights */
.features-section {

    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3d 100%);
    color: #ffffff;
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-label {
    color: #16cde9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.features-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(22, 205, 233, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #16cde9 0%, #0ea5e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Back to Series Link */
.back-to-series {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #16cde9;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-to-series:hover {
    color: #0ea5e9;
    gap: 15px;
}

/* CTA Section */
.product-cta-section {

    background: linear-gradient(135deg, #16cde9 0%, #0ea5e9 100%);
    text-align: center;
}

.product-cta-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.product-cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.product-cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #0a0e27;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Shared Product Section Classes
   ========================================================================== */
.product-detail-section,
.gallery-section,
.installation-section,
.showcase-section,
.curaguard-about-section,
.color-selection-section,
.specs-section,
.features-section,
.product-cta-section,
.colors-section {
    padding: var(--section-padding);
}

/* Specific background overrides if needed */
.color-selection-section {
    background: #f8fbff;
}

.gallery-section {
    background: #fff;
}

/* Responsive Adjustments */
@media screen and (max-width: 992px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .specs-content {
        padding-right: 0;
    }

    .specs-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {

    .specs-section,
    .colors-section,
    .features-section,
    .product-cta-section,
    .product-detail-section,
    .gallery-section,
    .installation-section,
    .showcase-section,
    .curaguard-about-section,
    .color-selection-section {
        padding: var(--section-padding-mobile) !important;
    }

    .specs-title,
    .colors-title,
    .features-title,
    .product-cta-title {
        font-size: 1.8rem;
    }

    .color-swatches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .swatch-color {
        height: 80px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 25px;
    }
}