/*==========================
    Products Elegant Section
============================*/

.our-products-elegant {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
    overflow: hidden;
}

/* Decorative Background Elements */
.products-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(222, 90, 86, 0.08), rgba(222, 90, 86, 0.03));
    animation: float-animation 20s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: 40%;
    animation-delay: 10s;
}

@keyframes float-animation {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 20px) rotate(3deg);
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(222, 90, 86, 0.03) 0%, transparent 50%);
}

.container {
    position: relative;
    z-index: 1;
}

/* Section Title Elegant */
.section-title-elegant {
    margin-bottom: 60px;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.decoration-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #de5a56, transparent);
    position: relative;
}

.line-start {
    background: linear-gradient(90deg, transparent, #de5a56);
}

.line-end {
    background: linear-gradient(90deg, #de5a56, transparent);
}

.title-badge {
    font-size: 14px;
    font-weight: 600;
    color: #de5a56;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 24px;
    background: rgba(222, 90, 86, 0.1);
    border-radius: 30px;
    position: relative;
}

.title-badge::before,
.title-badge::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #de5a56;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.title-badge::before {
    right: 8px;
}

.title-badge::after {
    left: 8px;
}

.elegant-heading {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: capitalize;
}

.heading-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.underline-short {
    width: 40px;
    height: 3px;
    background: #de5a56;
    border-radius: 2px;
}

.underline-dot {
    width: 8px;
    height: 8px;
    background: #de5a56;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(222, 90, 86, 0.2);
}

/* Products Grid */
.products-grid-elegant {
    margin-top: 50px;
}

/* Product Card Elegant */
.product-card-elegant {
    margin-bottom: 30px;
    height: 100%;
}

.card-inner-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-inner-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Product Visual */
.product-visual-wrapper {
    position: relative;
    flex-shrink: 0;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.image-link-elegant {
    display: block;
    position: relative;
}

.image-wrapper-elegant {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-elegant {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner-wrapper:hover .product-image-elegant {
    transform: scale(1.1);
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-inner-wrapper:hover .image-gradient-overlay {
    opacity: 1;
}

/* Hover Effect */
.hover-effect-elegant {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-inner-wrapper:hover .hover-effect-elegant {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.hover-icon-wrapper {
    position: relative;
}

.hover-icon-wrapper i {
    font-size: 28px;
    color: #de5a56;
    animation: pulse-icon 2s ease-in-out infinite;
}

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

/* Status Badge */
.status-badge-elegant {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #de5a56, #c94843);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(222, 90, 86, 0.3);
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.badge-icon {
    display: flex;
    align-items: center;
}

.badge-icon i {
    font-size: 12px;
    animation: star-rotate 4s linear infinite;
}

@keyframes star-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Product Details */
.product-details-elegant {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name-wrapper {
    margin-bottom: 20px;
}

.product-name-elegant {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.product-name-elegant a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.product-name-elegant a:hover {
    color: #de5a56;
}

.details-divider {
    height: 2px;
    background: linear-gradient(90deg, #de5a56, transparent);
    margin: 20px 0;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner-wrapper:hover .details-divider {
    transform: scaleX(1);
}

/* Action Button */
.product-action-elegant {
    margin-top: auto;
}

.action-button-elegant {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #de5a56, #c94843);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(222, 90, 86, 0.3);
}

.action-button-elegant::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 ease, height 0.6s ease;
}

.action-button-elegant:hover::before {
    width: 300px;
    height: 300px;
}

.action-button-elegant:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(222, 90, 86, 0.4);
    color: #ffffff;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.action-button-elegant:hover .button-icon {
    transform: translateX(-5px);
}

.button-icon i {
    font-size: 16px;
}

/* Card Border Animation */
.card-border-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 20px;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.card-inner-wrapper:hover .card-border-animation {
    border-color: rgba(222, 90, 86, 0.3);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .elegant-heading {
        font-size: 36px;
    }
    
    .floating-circle {
        opacity: 0.5;
    }
}

@media (max-width: 991px) {
    .our-products-elegant {
        padding: 80px 0;
    }
    
    .elegant-heading {
        font-size: 32px;
    }
    
    .product-card-elegant {
        margin-bottom: 25px;
    }
    
    .circle-2 {
        right: -200px;
    }
}

@media (max-width: 767px) {
    .our-products-elegant {
        padding: 60px 0;
    }
    
    .elegant-heading {
        font-size: 28px;
    }
    
    .title-badge {
        font-size: 12px;
        padding: 6px 18px;
    }
    
    .decoration-line {
        width: 40px;
    }
    
    .product-details-elegant {
        padding: 25px;
    }
    
    .product-name-elegant {
        font-size: 20px;
    }
    
    .action-button-elegant {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hover-effect-elegant {
        width: 60px;
        height: 60px;
    }
    
    .hover-icon-wrapper i {
        font-size: 22px;
    }
    
    .status-badge-elegant {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .floating-circle {
        opacity: 0.3;
    }
}

@media (max-width: 575px) {
    .elegant-heading {
        font-size: 24px;
    }
    
    .section-title-elegant {
        margin-bottom: 40px;
    }
    
    .products-grid-elegant {
        margin-top: 30px;
    }
    
    .card-inner-wrapper:hover {
        transform: translateY(-5px);
    }
}

/* RTL Support */
[dir="rtl"] .decoration-line.line-start {
    background: linear-gradient(90deg, #de5a56, transparent);
}

[dir="rtl"] .decoration-line.line-end {
    background: linear-gradient(90deg, transparent, #de5a56);
}

[dir="rtl"] .title-badge::before {
    right: auto;
    left: 8px;
}

[dir="rtl"] .title-badge::after {
    left: auto;
    right: 8px;
}

[dir="rtl"] .details-divider {
    transform-origin: right;
}

[dir="rtl"] .action-button-elegant:hover {
    transform: translateX(5px);
}

[dir="rtl"] .action-button-elegant:hover .button-icon {
    transform: translateX(5px);
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .our-products-elegant {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1624 100%);
    }
    
    .card-inner-wrapper {
        background: #16213e;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .elegant-heading,
    .product-name-elegant a {
        color: #ffffff;
    }
    
    .product-name-elegant a:hover {
        color: #de5a56;
    }
    
    .floating-circle {
        background: linear-gradient(135deg, rgba(222, 90, 86, 0.1), rgba(222, 90, 86, 0.05));
    }
}

/* Print Styles */
@media print {
    .our-products-elegant {
        background: white;
        padding: 20px 0;
    }
    
    .products-decorative-elements,
    .hover-effect-elegant,
    .card-border-animation {
        display: none;
    }
    
    .card-inner-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
