/* Automation product detail pages */
.automation-product-page {
    padding: 56px 0 72px;
    background: #f3f6fb;
}

.automation-product-stack {
    display: grid;
    gap: 24px;
}

.automation-product-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #2d8bd6;
    text-decoration: none;
    font-weight: 600;
}

.automation-product-card {
    background: #ffffff;
    border: 1px solid #e7eef6;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
}

.automation-product-gallery {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 12px;
    align-items: center;
}

.automation-product-main {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dce8f4;
    background: #ffffff;
}

.automation-product-main img {
    width: 100%;
    height: 440px;
    object-fit: contain;
    display: block;
    background: #f7f9fc;
}

.automation-product-thumbs {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

.automation-product-nav {
    grid-row: 1;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(45, 139, 214, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d8bd6;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.automation-product-nav:hover,
.automation-product-nav:focus-visible {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.automation-product-nav--prev {
    grid-column: 1;
    justify-self: start;
    margin-left: 12px;
}

.automation-product-nav--next {
    grid-column: 3;
    justify-self: end;
    margin-right: 12px;
}

.automation-product-thumb {
    border: 1px solid #dce8f4;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.automation-product-thumb img {
    width: 100%;
    height: 86px;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.automation-product-thumb.is-active {
    border-color: #2d8bd6;
    box-shadow: 0 0 0 2px rgba(45, 139, 214, 0.18);
}

.automation-product-meta {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.automation-product-title {
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 2.05rem;
    line-height: 1.2;
}

.automation-product-description {
    margin: 0 0 16px;
    color: #3d5266;
    font-size: 1.04rem;
    line-height: 1.55;
}

.automation-product-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.automation-product-specs li {
    background: #f8fafc;
    border: 1px solid #e6edf5;
    border-radius: 10px;
    padding: 10px 12px;
    color: #2c3e50;
    font-weight: 600;
}

.automation-product-cta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.automation-product-section {
    display: grid;
    gap: 12px;
}

.automation-product-section__title {
    margin: 0;
    color: #1e293b;
    font-size: 1.2rem;
}

.automation-accessories {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.automation-accessories__header {
    margin: 0;
    color: #1e293b;
    font-weight: 700;
}

.automation-accessories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.automation-accessories__item {
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.automation-accessories__media {
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #edf2f7;
}

.automation-accessories__media a {
    display: block;
}

.automation-accessories__media img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
    background: #ffffff;
    padding: 6px;
}

.automation-accessories__title {
    margin: 0;
    color: #1e293b;
    font-size: 0.98rem;
}

.automation-accessories__text {
    margin: 0;
    color: #526273;
    line-height: 1.5;
    font-size: 0.94rem;
}

.automation-accessories__list {
    margin: 0;
    padding-left: 18px;
    color: #405365;
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .automation-product-card {
        grid-template-columns: 1fr;
    }

    .automation-product-main img {
        height: 360px;
    }
}

@media (max-width: 640px) {
    .automation-product-page {
        padding: 40px 0 56px;
    }

    .automation-product-card {
        padding: 16px;
    }

    .automation-product-title {
        font-size: 1.62rem;
    }

    .automation-product-main img {
        height: 260px;
    }

    .automation-product-thumb img {
        height: 70px;
    }

    .automation-product-gallery {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .automation-product-nav {
        width: 38px;
        height: 38px;
    }

    .automation-product-nav--prev {
        margin-left: 8px;
    }

    .automation-product-nav--next {
        margin-right: 8px;
    }
}
