/**
 * HD Shop Styles for Mainzer Hüpfburgen Template
 * Article Page Styling
 */

/* ================================================
   Article Page Layout
   ================================================ */

.HdShopArticlePage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    max-width: 100%;
    overflow: hidden;
}

.HdShopArticlePage.hasArticles {
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* ================================================
   Image Section
   ================================================ */

.HdShopArticlePage .HdOrderImages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 0 0 40%;
    max-width: 40%;
    min-width: 0;
}

.HdShopArticlePage .HdShopBigImageLayer {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.HdShopArticlePage .HdShopBigImageLayer a {
    display: block;
    position: relative;
}

.HdShopArticlePage .HdShopBigImageLayer img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.HdShopArticlePage .HdShopBigImageLayer a:hover img {
    transform: scale(1.05);
}

.HdShopArticlePage .HdShopBigImageLayer .hdicon-expand {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.HdShopArticlePage .HdShopBigImageLayer:hover .hdicon-expand {
    opacity: 1;
}

/* ================================================
   Thumbnails Section
   ================================================ */

.HdShopArticlePage .HdOrderThumbsLayer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.HdShopArticlePage .HdOrderThumbsLayer .thumbImage {
    flex: 0 0 auto;
    width: calc(20% - 0.6rem);
    min-width: 80px;
    max-width: 120px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.HdShopArticlePage .HdOrderThumbsLayer .thumbImage:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.HdShopArticlePage .HdOrderThumbsLayer .thumbImage img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================================
   Article Content Section
   ================================================ */

.HdShopArticlePage .HdOrderArticleContent {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 60%;
    max-width: 60%;
    min-width: 0;
    overflow: hidden;
}

.HdShopArticlePage .HdOrderArticleContent h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #007bff;
}

.HdShopArticlePage .HdOrderArticleContent h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #495057;
    margin: 0.75rem 0 0.5rem 0;
}

.HdShopArticlePage .HdOrderArticleContent p {
    line-height: 1.5;
    color: #495057;
    margin-bottom: 0.75rem;
}

.HdShopArticlePage .HdOrderArticleContent ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.HdShopArticlePage .HdOrderArticleContent ul li {
    line-height: 1.5;
    color: #495057;
    margin-bottom: 0.35rem;
}

.HdShopArticlePage .HdOrderArticleContent strong {
    color: #212529;
    font-weight: 600;
}

/* ================================================
   Article Attributes
   ================================================ */

.HdShopArticlePage .HdOrderArticleAttributes {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.75rem 0;
}

.HdShopArticlePage .HdOrderArticleAttributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.HdShopArticlePage .HdOrderArticleAttributes ul li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
}

.HdShopArticlePage .HdOrderArticleAttributes ul li span {
    font-weight: 600;
    color: #212529;
    margin-right: 0.5rem;
}

/* ================================================
   Article Options / Price Section
   ================================================ */

.HdShopArticlePage .HdOrderArticleOptionsLayer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.HdShopArticlePage .articleOptionTile {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.HdShopArticlePage .articleOptionTile:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.HdShopArticlePage .optionTileTitle {
    background: #007bff;
    color: #fff;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.HdShopArticlePage .optionTileContent {
    padding: 1rem;
}

.HdShopArticlePage .optionTileContent ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.HdShopArticlePage .optionTileContent ul li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f3f5;
}

.HdShopArticlePage .optionTileContent ul li:last-child {
    border-bottom: none;
}

.HdShopArticlePage .optionTileContent ul li span {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

/* ================================================
   Price Box
   ================================================ */

.HdShopArticlePage .priceBoxBase {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.HdShopArticlePage .tileIcons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
}

.HdShopArticlePage .addPriceBoxItemToCartCount {
    flex: 0 0 100px;
    height: 42px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.HdShopArticlePage .priceBoxButton {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    background: #28a745;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.HdShopArticlePage .priceBoxButton:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ================================================
   SEO Text Section (visually hidden but accessible)
   ================================================ */

.HdShopArticlePage ~ .HdOrderSeoText {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 992px) {
    .HdShopArticlePage.hasArticles {
        flex-direction: column;
        gap: 1rem;
    }

    .HdShopArticlePage .HdOrderImages {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .HdShopArticlePage {
        gap: 0.75rem;
    }

    .HdShopArticlePage .HdOrderThumbsLayer .thumbImage {
        width: calc(25% - 0.6rem);
    }

    .HdShopArticlePage .HdOrderArticleContent h2 {
        font-size: 1.25rem;
        margin: 0.75rem 0 0.35rem 0;
    }

    .HdShopArticlePage .priceBoxBase {
        font-size: 1.05rem;
        padding: 0.85rem;
    }

    .HdShopArticlePage .HdOrderArticleAttributes ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .HdShopArticlePage {
        gap: 0.5rem;
        margin: 0.75rem 0;
    }

    .HdShopArticlePage .HdOrderThumbsLayer .thumbImage {
        width: calc(33.333% - 0.6rem);
    }

    .HdShopArticlePage .optionTileContent {
        padding: 0.85rem;
    }

    .HdShopArticlePage .tileIcons {
        flex-wrap: wrap;
    }

    .HdShopArticlePage .addPriceBoxItemToCartCount {
        flex: 1 1 100%;
        order: -1;
    }
}
