/* Common Product Pages Styles */
.products-section {
    background: #f8fafc;
}

/* Product Slider Styles */
.product-slider-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.product-slider .product-slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.product-slider .product-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.product-slider .product-slide:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.slide-caption h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.slide-caption p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.slider-navigation {
    margin-top: 20px;
    text-align: center;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Custom Owl Carousel Dots */
.product-slider-container .owl-dots {
    text-align: center;
    margin-top: 25px;
}

.product-slider-container .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.product-slider-container .owl-dot.active,
.product-slider-container .owl-dot:hover {
    transform: scale(1.2);
}

/* Grocery Theme Colors */
.grocery-theme .product-slider-container .owl-dot.active,
.grocery-theme .product-slider-container .owl-dot:hover {
    background: #659038;
}

.grocery-theme .product-slider-container .owl-nav button {
    color: #659038;
}

.grocery-theme .product-slider-container .owl-nav button:hover {
    background: #659038;
    color: white;
}

.grocery-theme .product-highlights .highlight-item i {
    color: #659038 !important;
}

.grocery-theme .category-header {
    background: linear-gradient(135deg, #659038 0%, #7ba142 100%);
    box-shadow: 0 10px 30px rgba(101, 144, 56, 0.2);
}

.grocery-theme .category-header:hover {
    box-shadow: 0 15px 40px rgba(101, 144, 56, 0.3);
}

.grocery-theme .category-title-header {
    border-bottom: 3px solid #659038;
}

.grocery-theme .expanded-category-title {
    color: #659038;
}

.grocery-theme .product-icon {
    background: linear-gradient(135deg, #659038 0%, #7ba142 100%);
}

.grocery-theme .product-content:hover {
    box-shadow: 0 10px 30px rgba(101, 144, 56, 0.15);
    border-color: #659038;
}

.grocery-theme .product-content:hover .product-icon {
    box-shadow: 0 8px 25px rgba(101, 144, 56, 0.4);
}

.grocery-theme .products-cta h3 {
    color: #659038;
}

/* Door Theme Colors */
.door-theme .product-slider-container .owl-dot.active,
.door-theme .product-slider-container .owl-dot:hover {
    background: #659038;
}

.door-theme .product-slider-container .owl-nav button {
    color: #659038;
}

.door-theme .product-slider-container .owl-nav button:hover {
    background: #659038;
    color: white;
}

.door-theme .product-highlights .highlight-item i {
    color: #659038 !important;
}

.door-theme .category-header {
    background: linear-gradient(135deg, #659038 0%, #7ba142 100%);
    box-shadow: 0 10px 30px rgba(101, 144, 56, 0.2);
}

.door-theme .category-header:hover {
    box-shadow: 0 15px 40px rgba(101, 144, 56, 0.3);
}

.door-theme .category-title-header {
    border-bottom: 3px solid #659038;
}

.door-theme .expanded-category-title {
    color: #659038;
}

.door-theme .door-content:hover {
    box-shadow: 0 15px 35px rgba(101, 144, 56, 0.15);
    border-color: #659038;
}

.door-theme .doors-cta h3 {
    color: #659038;
}

/* Custom Owl Carousel Navigation */
.product-slider-container .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.product-slider-container .owl-nav button {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-slider-container .owl-nav button:hover {
    transform: scale(1.1);
}

.product-slider-container .owl-nav .owl-prev {
    left: 20px;
}

.product-slider-container .owl-nav .owl-next {
    right: 20px;
}

/* Product Highlights */
.product-highlights .highlight-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #64748b;
}

.product-highlights .highlight-item i {
    font-size: 1.1rem;
}

.product-highlights .highlight-item strong {
    color: #2d3748;
}

/* Category and Product Styles */
.category-row {
    margin-bottom: 40px;
}

.product-category-section,
.door-category-section {
    margin-bottom: 0;
    transition: all 0.3s ease;
    height: 100%;
}

.category-header {
    color: white;
    padding: 20px !important;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 160px;
    justify-content: center;
}

.category-header:hover {
    transform: translateY(-3px);
}

.category-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.category-header:hover .category-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    color: white;
    line-height: 1.2;
    text-transform: uppercase;
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.collapse-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.category-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.collapse {
    margin-bottom: 25px;
}

.category-products-grid,
.category-doors-grid {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.category-title-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px 25px;
    border-radius: 12px;
    margin: -25px -25px 25px -25px;
    text-align: center;
}

.expanded-category-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expanded-category-count {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* Product Items */
.product-item {
    transition: all 0.3s ease;
}

.product-content {
    background: #f8fafc;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 140px;
    border: 2px solid transparent;
}

.product-content:hover {
    transform: translateY(-5px);
    background: white;
}

.product-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.product-content:hover .product-icon::before {
    left: 100%;
}

.product-content:hover .product-icon {
    transform: scale(1.1);
}

.product-name {
    font-size: 1.3rem !important;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
    text-transform: capitalize;
    word-wrap: break-word;
    hyphens: auto;
}

/* CTA Sections */
.products-cta,
.doors-cta {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.products-cta h3,
.doors-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.products-cta p,
.doors-cta p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Door Specific Styles */
.door-item {
    transition: all 0.3s ease;
}

.door-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.door-content:hover {
    transform: translateY(-5px);
}

.door-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.door-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.door-content:hover .door-image img {
    transform: scale(1.05);
}

.door-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.door-content:hover .door-overlay {
    opacity: 1;
}

.door-actions {
    display: flex;
    gap: 12px;
}

.btn-zoom, .btn-inquire {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #659038;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-zoom:hover, .btn-inquire:hover {
    background: #7ba142;
    transform: scale(1.1);
    color: white;
}

.door-info {
    padding: 18px;
    text-align: center;
}

.door-code {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px 0;
    word-wrap: break-word;
}

.door-category {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Modal Styles */
#modalImage {
    max-height: 70vh;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-slider .product-slide img {
        height: 350px;
    }
    
    .slide-caption {
        padding: 30px 20px 20px;
    }
    
    .slide-caption h5 {
        font-size: 1.2rem;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
    }
    
    .product-slider-container .owl-nav button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .product-slider-container .owl-nav .owl-prev {
        left: 15px;
    }
    
    .product-slider-container .owl-nav .owl-next {
        right: 15px;
    }
    
    .category-header {
        min-height: 140px;
        padding: 18px !important;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .product-content {
        min-height: 130px;
        padding: 18px 12px;
    }
    
    .product-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .door-image {
        height: 180px;
    }
    
    .door-info {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .product-slider .product-slide img {
        height: 300px;
    }
    
    .slide-caption {
        padding: 25px 15px 15px;
    }
    
    .slide-caption h5 {
        font-size: 1.1rem;
    }
    
    .slide-caption p {
        font-size: 0.85rem;
    }
    
    .product-slider-container .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .product-slider-container .owl-nav .owl-prev {
        left: 10px;
    }
    
    .product-slider-container .owl-nav .owl-next {
        right: 10px;
    }
    
    .product-highlights .highlight-item {
        font-size: 0.9rem;
        margin-bottom: 0.8rem !important;
    }
    
    .category-row {
        margin-bottom: 30px;
    }
    
    .category-header {
        min-height: 130px;
        padding: 15px !important;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .category-count {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .product-content {
        padding: 15px 10px;
        min-height: 120px;
    }
    
    .product-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .product-name {
        font-size: 0.85rem;
    }
    
    .door-image {
        height: 160px;
    }
    
    .door-info {
        padding: 12px;
    }
    
    .door-code {
        font-size: 0.9rem;
    }
    
    .door-category {
        font-size: 0.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .ch-btn-style-1,
    .cta-buttons .ch-btn-style-2 {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .product-slider .product-slide img {
        height: 250px;
    }
    
    .slide-caption {
        padding: 20px 12px 12px;
    }
    
    .slide-caption h5 {
        font-size: 1rem;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
    }
    
    .product-highlights .highlight-item {
        font-size: 0.85rem;
    }
    
    .category-header {
        min-height: 120px;
        padding: 12px !important;
    }
    
    .category-title {
        font-size: 0.95rem;
    }
    
    .product-content {
        padding: 12px 8px;
        min-height: 110px;
    }
    
    .product-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
    
    .door-image {
        height: 140px;
    }
    
    .door-actions {
        gap: 8px;
    }
    
    .btn-zoom, .btn-inquire {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .door-info {
        padding: 10px;
    }
    
    .door-code {
        font-size: 0.85rem;
    }
}
