/* Products Section Modern Styles - Redesigned */

.products-section {
    padding: 120px 0 !important;
    position: relative !important;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    overflow: hidden;
    min-height: 400px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.products-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(178, 120, 25, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 10s ease-in-out infinite;
}

.products-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(178, 120, 25, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 12s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.products-section .container,
.products-section .container-fluid {
    position: relative !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.products-section .row {
    position: relative;
    z-index: 2;
}

/* Section Title */
.products-section .section-title {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    visibility: visible !important;
    opacity: 1 !important;
}

.products-section .section-title .title {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a !important;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    visibility: visible !important;
    opacity: 1 !important;
}

.products-section .section-title .bg-text {
    font-size: 140px;
    font-weight: 900;
    color: rgba(178, 120, 25, 0.05);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -50px;
    z-index: 0;
    line-height: 1;
    letter-spacing: 5px;
}

.products-section .section-title .title span:not(.bg-text) {
    position: relative;
    z-index: 1;
}

.products-section .section-title p {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
    line-height: 1.8;
}

/* Product Card Modern */
.product-card-modern {
    background: #ffffff !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(178, 120, 25, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex !important;
    flex-direction: column;
    border: 2px solid transparent;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b27819 0%, #d4902a 100%);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    z-index: 2;
}

.product-card-modern:hover::before {
    transform: scaleX(1);
}

.product-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(178, 120, 25, 0.25);
    border-color: rgba(178, 120, 25, 0.2);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Image Wrapper */
.product-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    aspect-ratio: 4/3;
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .product-card-image img {
    transform: scale(1.15) rotate(2deg);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(178, 120, 25, 0.1) 0%, rgba(178, 120, 25, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.product-overlay-content {
    transform: translateY(30px) scale(0.8);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .product-overlay-content {
    transform: translateY(0) scale(1);
}

.view-product-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b27819;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.view-product-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #b27819 0%, #d4902a 100%);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.view-product-btn:hover::before {
    width: 100px;
    height: 100px;
}

.view-product-btn:hover {
    color: #ffffff;
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 35px rgba(178, 120, 25, 0.4);
}

.product-badge {
    display: none !important;
}

/* Product Card Content */
.product-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
}

.product-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
    min-height: 62px;
    position: relative;
}

.product-card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #b27819 0%, #d4902a 100%);
    transition: width 0.4s ease;
}

.product-card-modern:hover .product-card-title {
    color: #b27819;
}

.product-card-modern:hover .product-card-title::after {
    width: 60px;
}

.product-card-description {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    position: relative;
}

.read-more-link {
    color: #b27819;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b27819 0%, #d4902a 100%);
    transition: width 0.4s ease;
}

.read-more-link i {
    transition: transform 0.4s ease;
    font-size: 16px;
}

.product-card-modern:hover .read-more-link {
    color: #d4902a;
    gap: 15px;
}

.product-card-modern:hover .read-more-link::after {
    width: 100%;
}

.product-card-modern:hover .read-more-link i {
    transform: translateX(8px);
}

/* View All Button */
.products-section .theme-btn {
    background: linear-gradient(135deg, #b27819 0%, #d4902a 100%);
    color: #ffffff;
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(178, 120, 25, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.products-section .theme-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.products-section .theme-btn:hover::before {
    width: 400px;
    height: 400px;
}

.products-section .theme-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(178, 120, 25, 0.4);
    background: linear-gradient(135deg, #d4902a 0%, #b27819 100%);
}

/* Responsive Design */
@media (max-width: 991px) {
    .products-section {
        padding: 80px 0;
    }
    
    .products-section .section-title .title {
        font-size: 36px;
    }
    
    .products-section .section-title .bg-text {
        font-size: 100px;
        top: -35px;
    }
    
    .product-card-title {
        font-size: 20px;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .products-section {
        padding: 60px 0;
    }
    
    .products-section .section-title {
        margin-bottom: 40px;
    }
    
    .products-section .section-title .title {
        font-size: 32px;
    }
    
    .products-section .section-title .bg-text {
        font-size: 80px;
        top: -25px;
    }
    
    .product-card-content {
        padding: 25px;
    }
    
    .product-card-title {
        font-size: 18px;
    }
    
    .product-card-description {
        font-size: 14px;
    }
    
    .view-product-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .product-badge {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 575px) {
    .products-section .section-title .title {
        font-size: 28px;
    }
    
    .products-section .section-title .bg-text {
        font-size: 60px;
        top: -20px;
    }
    
    .product-card-content {
        padding: 20px;
    }
    
    .product-card-title {
        font-size: 17px;
    }
    
    .read-more-link {
        font-size: 13px;
    }
}

/* Animation for fade_up */
[data-aos="fade-up"] {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Force visibility */
section.products-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.products-section .row {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.products-section .col-lg-4,
.products-section .col-md-6,
.products-section .col-sm-6 {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.products-section .product-card-modern,
.products-section .product-card-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

