/* Hero Section - Full Width */
.pule-hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Full-width hero section breaks out of container */
.pule-hero-section.pule-hero-full-width {
    border-radius: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.pule-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

.pule-hero-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
}

.pule-hero-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.pule-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
}

/* Hero height variations */
.pule-hero-small {
    min-height: 200px;
}

.pule-hero-medium {
    min-height: 300px;
}

.pule-hero-large {
    min-height: 400px;
}

.pule-hero-xlarge {
    min-height: 500px;
}

/* Responsive hero */
@media (max-width: 768px) {
    .pule-hero-heading {
        font-size: 1.875rem;
    }

    .pule-hero-text {
        font-size: 1rem;
    }

    .pule-hero-section {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    .pule-hero-small,
    .pule-hero-medium {
        min-height: 180px;
    }

    .pule-hero-large {
        min-height: 250px;
    }

    .pule-hero-xlarge {
        min-height: 300px;
    }
}

/* Products Listing Title */
.pule-products-listing .pule-products-listing-title {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    text-align: center;
}

/* Products Listing Description */
.pule-products-listing .pule-products-listing-description {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #64748b;
    text-align: center;
    line-height: 1.5;
}

/* Product Cards */
.product-card {
    transition: 0.3s;
}

.product-card.pule-hidden {
    display: none;
}

/* Standard Product Cards - now with the old "compact" style as default */
.product-card-standard .product-title {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    min-height: auto !important;
}

.product-card-standard .product-title a {
    font-size: 0.9rem !important;
}

.product-card-standard .company-name {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
}

.product-card-standard .product-price {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
}

.product-card-standard .product-content {
    padding: 12px !important;
}

.product-card-standard .affiliate-button {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
}

/* Extra Compact Product Cards - smaller images, no description/stock */
.product-card-extra-compact .product-title {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
}

.product-card-extra-compact .product-title a {
    font-size: 0.85rem !important;
}

.product-card-extra-compact .company-name {
    font-size: 0.7rem !important;
    margin-bottom: 4px !important;
}

.product-card-extra-compact .product-price {
    font-size: 0.95rem !important;
    margin-bottom: 6px !important;
}

.product-card-extra-compact .product-content {
    padding: 10px !important;
}

.product-card-extra-compact .affiliate-button {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
}

/* Load More Button */
.pule-load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
}

.pule-load-more-btn {
    padding: 15px 30px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    position: relative;
    background: #345f8d;
    cursor: pointer;
    transition: 0.3s;
    min-width: 200px;
    font-weight: 600;
}

.pule-load-more-btn:hover:not(:disabled) {
    background: #2d5177;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 95, 141, 0.4);
}

.pule-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.products-shown-info {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

/* Custom Button */
.pule-custom-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
}

.pule-custom-button {
    padding: 15px 30px;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none !important;
    text-align: center;
    display: inline-block;
    background: #578fca;
    cursor: pointer;
    transition: 0.3s;
    min-width: 200px;
    font-weight: 600;
}

.pule-custom-button:hover,
.pule-custom-button:visited,
.pule-custom-button:focus,
.pule-custom-button:active {
    background: #4a7bb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 143, 202, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

/* Stock Status */
.in-stock {
    color: #1e8449 !important;
}

/* Old Price - darker gray for better accessibility */
.old-price {
    color: #666 !important;
}

/* Affiliate Button */
.affiliate-button,
.pule-affiliate-button,
.pule-products-listing .pule-affiliate-button {
    background: #1e8449 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 15px;
    border-radius: 4px;
    display: block;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s;
    font-weight: 600;
    box-sizing: border-box;
}

.affiliate-button:hover,
.pule-affiliate-button:hover,
.pule-products-listing .pule-affiliate-button:hover {
    background: #17703c !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Products with Filters Wrapper - Sidebar Layout */
.pule-products-with-filters-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.pule-filters-sidebar {
    flex-shrink: 0;
    width: 240px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.pule-products-main {
    flex: 1;
    min-width: 0;
}

/* When sidebar is present, make product cards smaller to fit 3 per row */
.pule-products-with-filters-wrapper .products-grid .product-card {
    flex: 0 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    min-width: 240px;
}

@media (max-width: 1200px) {
    .pule-products-with-filters-wrapper .products-grid .product-card {
        flex: 0 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pule-load-more-btn,
    .pule-custom-button {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 160px;
    }

    /* Stack sidebar layout on mobile */
    .pule-products-with-filters-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .pule-filters-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    /* Make product cards almost full width on mobile */
    .pule-products-with-filters-wrapper .products-grid .product-card {
        flex: 0 1 100%;
        max-width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .pule-products-listing .pule-products-listing-title {
        font-size: 1.5rem;
    }
}
