/* ==================================================
   COMPONENTS.CSS – WooCommerce, Blog, Cards
   OPTIMIZED – FIXED & PRODUCTION-READY
================================================= */

/* ==================================================
   STACKABLE – GLOBAL BASE WIDTH
================================================= */
.stk-column-wrapper,
.stk-inner-blocks,
.stk-block-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================================================
   HERO – LEFT ALIGN (existing)
================================================= */
@media (min-width: 1200px) {
    .stk-c82c2 .stk-block-content {
        transform: translateX(-260px);
        text-align: left;
        margin-left: 0;
    }

    .stk-c82c2 * {
        text-align: left;
        justify-content: flex-start;
    }
}

/* ==================================================
   HOMEPAGE HERO – FULL LEFT (stk-5cc302c)
================================================= */
@media (min-width: 1200px) {
    .home .wp-block-stackable-columns.stk-5cc302c,
    .home .wp-block-stackable-columns.stk-5cc302c .stk-inner-blocks,
    .home .wp-block-stackable-columns.stk-5cc302c .stk-block-content,
    .home .wp-block-stackable-columns.stk-5cc302c .stk-container {
        max-width: none !important;
        width: 100% !important;
        padding-left: 16px !important;
        margin-left: 0 !important;
    }

    .home .wp-block-stackable-columns.stk-5cc302c * {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
}

/* ==================================================
   WOOCOMMERCE + BLOG – EQUAL CARDS (GLOBAL)
================================================= */
.woocommerce ul.products li.product,
.blog .post,
.archive .post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.woocommerce ul.products,
.blog .entries,
.archive .entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    .blog .entries,
    .archive .entries {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .woocommerce ul.products,
    .blog .entries,
    .archive .entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

.woocommerce ul.products li.product img,
.blog .post img,
.archive .post img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    margin-bottom: 16px;
}

.woocommerce ul.products li.product h2,
.blog .post-title,
.archive .post-title {
    min-height: 56px;
    line-height: 1.3;
}

.woocommerce ul.products li.product .price {
    margin-top: auto;
    margin-bottom: 12px;
}

.blog .entry-excerpt,
.archive .entry-excerpt {
    min-height: 72px;
}

/* ==================================================
   HOMEPAGE – POSTS SHORTCODE (DEMO-LIKE)
================================================= */
.home .ct-posts-shortcode .entries {
    display: grid;
    align-items: stretch;
}

.home .ct-posts-shortcode article.post,
.home .ct-posts-shortcode article.post .entry-inner,
.home .ct-posts-shortcode article.post .entry-card,
.home .ct-posts-shortcode article.post .entry-card .entry-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home .ct-posts-shortcode .ct-image-container img,
.home .ct-posts-shortcode article.post img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.home .ct-posts-shortcode .entry-content,
.home .ct-posts-shortcode .entry-excerpt {
    flex: 1 1 auto;
}

.home .ct-posts-shortcode .entry-footer,
.home .ct-posts-shortcode .ct-read-more,
.home .ct-posts-shortcode .entry-button {
    margin-top: auto;
    width: 100%;
}

.home .ct-posts-shortcode .ct-read-more a,
.home .ct-posts-shortcode .entry-button a {
    display: inline-block;
    width: 100%;
}

/* ==================================================
   HOMEPAGE – SECTION HEADINGS (stk-36b564)
================================================= */
@media (min-width: 1200px) {
    .home .wp-block-stackable-columns.stk-36b564,
    .home .wp-block-stackable-columns.stk-36b564 .stk-inner-blocks,
    .home .wp-block-stackable-columns.stk-36b564 .stk-block-content {
        margin-left: -520px !important;
    }

    .home .wp-block-stackable-columns.stk-36b564 * {
        text-align: left !important;
        justify-content: flex-start !important;
    }
}

/* CTA buttons align right */
@media (min-width: 1200px) {
    .home .wp-block-stackable-columns.stk-36b564 .stk-block-button,
    .home .wp-block-stackable-columns.stk-36b564 .stk-button,
    .home .wp-block-stackable-columns.stk-36b564 .stk-block .stk-button,
    .home .wp-block-stackable-columns.stk-36b564 .stk-block [class*="stk-button"] {
        margin-left: auto !important;
        display: inline-flex !important;
        justify-content: flex-end;
    }

    .home .wp-block-stackable-columns.stk-36b564 .stk-block-button .stk-block-content {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* Fallback – section headings left */
@media (min-width: 1200px) {
    .home .ct-section-title,
    .home .ct-section-heading,
    .home .ct-section-header,
    .home .woocommerce-products-header,
    .home .ct-posts-shortcode .section-title,
    .home .ct-posts-shortcode header {
        margin-left: -300px;
    }

    .home .ct-section-title small,
    .home .ct-section-header small,
    .home .section-subtitle {
        display: block;
        margin-left: 0;
    }

    .home .ct-section-title h2,
    .home .ct-section-title h3,
    .home .woocommerce-products-header h2,
    .home .ct-posts-shortcode h2 {
        text-align: left;
    }
}

/* ==================================================
   BUTTONS – UNIFIED STYLE (consolidated)
   WooCommerce + Blog + Archive + Posts Shortcode
================================================= */
.woocommerce ul.products li.product .button,
.blog .entry-button,
.archive .entry-button,
.ct-posts-shortcode .entry-button,
.home .blog .entry-button,
.home .archive .entry-button {
    display: block !important;
    width: 100% !important;
    padding: 16px 0 !important;
    
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px;
    
    text-transform: uppercase !important;
    text-align: center !important;
    
    color: #ffffff !important;
    background-color: #B80000 !important;
    border: none !important;
    border-radius: 4px !important;
    
    box-sizing: border-box !important;
    cursor: pointer;
    transition: background-color 0.3s ease !important;
}

.woocommerce ul.products li.product .button::after,
.woocommerce ul.products li.product .button::before {
    content: none !important;
}

.woocommerce ul.products li.product .button:hover,
.blog .entry-button:hover,
.archive .entry-button:hover,
.ct-posts-shortcode .entry-button:hover,
.home .blog .entry-button:hover,
.home .archive .entry-button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* ==================================================
   RESPONSIVE ADJUSTMENTS – TABLET + MOBILE
================================================= */
@media (max-width: 768px) {
    .home .wp-block-stackable-columns.stk-36b564,
    .home .wp-block-stackable-columns.stk-36b564 .stk-inner-blocks,
    .home .wp-block-stackable-columns.stk-36b564 .stk-block-content {
        margin-left: 0 !important;
    }

    .home .wp-block-stackable-columns.stk-36b564 .stk-block-button {
        justify-content: center !important;
        margin-left: 0 !important;
    }

    .home .ct-section-title,
    .home .ct-section-heading,
    .home .ct-section-header {
        margin-left: 0;
    }
}