/* Custom Styles for Ecela Prefab Manager */

:root {
    --ecela-primary: #e67e22;
    --ecela-dark: #2c3e50;
    --ecela-text: #333;
    --ecela-bg: #f9f9f9;
}

.ecela-prefab-container {
    max-width: 1300px;
    margin: -50px auto 0;
    padding: 0 20px 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    z-index: 10;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Reset overlap for Elementor Widget */
.elementor-widget-ecela_product_list .ecela-prefab-container,
.elementor-widget-ecela_blog_list .ecela-prefab-container,
.elementor-widget-ecela_blog_detail .ecela-prefab-container,
.elementor-widget-ecela_team .ecela-prefab-container,
.elementor-widget-ecela_gallery .ecela-prefab-container {
    margin-top: 0 !important;
    padding-top: 40px !important;
}




/* Team Widget Styles */
.ecela-member-img-wrapper {
    height: 350px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ecela-default-member-icon {
    font-size: 80px;
    color: #ccc;
}

.ecela-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 250px;
}

.ecela-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ecela-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Detail Specifics */
.ecela-product-detail-top.no-sidebar {
    display: block !important;
}

.ecela-gallery-wrapper.full-width {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.entry-content {
    background: #fff;
    padding: 10px;
    border-radius: 16px;
}

.entry-content img {
    max-width: 100%;
    height: -webkit-fill-available;
    border-radius: 12px;
}

/* Slider Navigation & Layout Refinements */
.ecela-slider-container {
    padding: 0 40px 60px !important;
    /* Space for arrows */
}

.ecela-slider-container .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

.ecela-slider-container .swiper-slide {
    height: auto !important;
    flex-shrink: 0 !important;
}

.ecela-slider-container .swiper-pagination-bullet-active {
    background: var(--ecela-primary) !important;
}

.ecela-slider-container .swiper-button-next,
.ecela-slider-container .swiper-button-prev {
    color: var(--ecela-primary) !important;
    background: #fff;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ecela-slider-container .swiper-button-next:hover,
.ecela-slider-container .swiper-button-prev:hover {
    background: var(--ecela-primary);
    color: #fff !important;
    transform: scale(1.1);
}

.ecela-slider-container .swiper-button-next::after,
.ecela-slider-container .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: 900;
}

.ecela-slider-container .swiper-button-next {
    right: 0 !important;
}

.ecela-slider-container .swiper-button-prev {
    left: 0 !important;
}

/* Fixed aspect ratio and button alignment for widget cards */
.ecela-elementor-widget .ecela-product-card {
    height: 400px !important;
}

.ecela-elementor-widget .ecela-product-card img {
    height: 100% !important;
    object-fit: cover !important;
}

.ecela-elementor-widget .ecela-product-overlay {
    padding: 25px !important;
}

.ecela-elementor-widget .ecela-btn-circle {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

/* Hero Section */
section.ecela-hero {
    position: relative;
    height: 750px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-top: -200px;
    margin-bottom: 0;
}

.ecela-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.ecela-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

.ecela-hero h1 {
    font-size: 3.5rem;
    margin: 15px 0;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ecela-breadcrumb {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.ecela-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecela-breadcrumb a:hover {
    color: var(--ecela-primary);
}

/* Category Grid - Base (responsive columns set via inline styles per widget) */
.ecela-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .ecela-product-grid:not(.ecela-responsive-grid) {
        grid-template-columns: 1fr !important;
    }
}

.ecela-product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.ecela-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ecela-product-card img {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ecela-product-card:hover img {
    transform: scale(1.05);
}

.ecela-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ecela-product-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.ecela-category-label {
    font-size: 0.85rem;
    color: var(--ecela-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.ecela-category-label a {
    color: var(--ecela-primary);
    text-decoration: none;
}

.ecela-category-label a:hover {
    color: #fff;
}

.ecela-product-price {
    display: block;
    font-weight: 800;
    line-height: 1.25;
}

.ecela-product-price--listing {
    margin-top: 7px;
    color: #fff;
    font-size: 1.1rem;
}

.ecela-spec-item--price .ecela-spec-label,
.ecela-spec-item--price .ecela-spec-value {
    color: var(--ecela-primary);
}

.ecela-spec-item--price .ecela-spec-value {
    font-size: 1.08rem;
}

.ecela-btn-circle {
    width: 50px;
    height: 50px;
    background: var(--ecela-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.ecela-btn-circle:hover {
    background: #fff;
    color: var(--ecela-primary);
    transform: rotate(90deg);
}

/* Product Detail Layout - 70/30 Split */
#ecela-unique-product-top.ecela-product-detail-top {
    display: flex !important;
    gap: 30px !important;
    width: 100% !important;
    margin-bottom: 40px !important;
}

#ecela-unique-product-top .ecela-gallery-wrapper {
    flex: 0 0 70% !important;
    width: 70% !important;
    max-width: 70% !important;
}

#ecela-unique-product-top .ecela-specs-wrapper {
    flex: 0 0 30% !important;
    width: 30% !important;
    max-width: 30% !important;
}

@media (max-width: 992px) {
    .ecela-prefab-container {
        margin-top: -30px;
    }

    #ecela-unique-product-top.ecela-product-detail-top {
        flex-direction: column !important;
    }

    #ecela-unique-product-top .ecela-gallery-wrapper,
    #ecela-unique-product-top .ecela-specs-wrapper {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }
}

/* Specs Box - Premium Redesign */
.ecela-specs-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ecela-specs-box h4 {
    margin: 0 0 25px 0;
    padding: 0;
    background: transparent;
    color: var(--ecela-dark);
    font-size: 1.6rem;
    font-weight: 800;
    text-align: left;
    border-bottom: 3px solid var(--ecela-primary);
    display: inline-block;
}

.ecela-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f1f1f1;
}

.ecela-spec-item:last-of-type {
    margin-bottom: 30px;
}

.ecela-spec-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.ecela-spec-value {
    color: var(--ecela-dark);
    font-weight: 700;
    text-align: right;
    font-size: 1rem;
}

.ecela-contact-btn {
    display: block;
    background: var(--ecela-dark);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: auto;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ecela-contact-btn:hover {
    background: var(--ecela-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(230, 126, 34, 0.3);
}

/* Gallery - Premium Grid */
.ecela-gallery-single-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100% !important;
}

.ecela-gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    height: 350px !important;
    transition: all 0.4s ease;
}

.ecela-gallery-item:first-child {
    grid-column: span 2;
    height: 500px !important;
}

.ecela-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ecela-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Content Bottom */
.ecela-product-content-bottom {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.ecela-content {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

.ecela-product-content-bottom h3 {
    color: var(--ecela-dark);
    margin-top: 0;
    font-weight: 800;
}

.ecela-rating-block {
    background: #fff;
    margin-top: 30px;
    padding: 28px 32px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ecela-rating-title {
    color: var(--ecela-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.ecela-rating-stars {
    color: #d5d8dc;
    display: flex;
    gap: 4px;
    font-size: 1.6rem;
    line-height: 1;
}

.ecela-rating-stars .is-active {
    color: var(--ecela-primary);
}

.ecela-rating-summary {
    color: #7f8c8d;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.98rem;
}

.ecela-rating-summary strong {
    color: var(--ecela-dark);
    font-size: 1.2rem;
}

@media (max-width: 700px) {
    .ecela-rating-block {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Pagination Redesign */
.ecela-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.ecela-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    color: var(--ecela-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.ecela-pagination .page-numbers:hover {
    background: var(--ecela-primary);
    color: #fff;
    border-color: var(--ecela-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.2);
}

.ecela-pagination .page-numbers.current {
    background: var(--ecela-primary);
    color: #fff;
    border-color: var(--ecela-primary);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

.ecela-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
}

.ecela-pagination .prev,
.ecela-pagination .next {
    font-size: 1.2rem;
    background: var(--ecela-dark);
    color: #fff;
    border-color: var(--ecela-dark);
}

.ecela-pagination .prev:hover,
.ecela-pagination .next:hover {
    background: var(--ecela-primary);
    border-color: var(--ecela-primary);
}

@media (max-width: 600px) {
    .ecela-pagination {
        gap: 5px;
    }

    .ecela-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}
