/* ====================================
   Products Section - Premium Elegant Design
   Sophisticated & Modern Grid Layout
   ==================================== */

/* Section Container */
.products-premium-elegant {
    position: relative;
    padding: 130px 0;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 30%, #f8f9fa 100%);
    overflow: hidden;
}

/* Background Shapes */
.products-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
        background: linear-gradient(135deg, #10b366, #25a2e2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
        background: linear-gradient(135deg, #25a2e2, #10b366);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
        background: linear-gradient(135deg, #10b366, #25a2e2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

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

/* ====================================
   Section Header
   ==================================== */

.products-header-premium {
    margin-bottom: 70px;
}

.section-label-premium {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.label-line-left,
.label-line-right {
    width: 60px;
    height: 2px;
        background: linear-gradient(90deg, transparent, #10b366, transparent);
}

.label-text-premium {
    font-size: 14px;
    font-weight: 700;
    color: #10b366;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    padding: 8px 24px;
    background: rgba(16, 179, 102, 0.08);
    border-radius: 30px;
}

.products-title-premium {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 28px;
    position: relative;
}

.title-highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-decoration-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.decoration-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #10b366, #e0368e);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 179, 102, 0.1);
}

.decoration-line {
    width: 120px;
    height: 3px;
        background: linear-gradient(90deg, #10b366, #25a2e2, #10b366);
    border-radius: 2px;
    position: relative;
}

.decoration-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #10b366;
    border-radius: 50%;
}

/* ====================================
   Products Grid
   ==================================== */

.products-grid-premium {
    margin-top: 50px;
}

/* Product Card */
.product-card-premium {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.product-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 25px 60px rgba(16, 179, 102, 0.2),
        0 0 0 1px rgba(16, 179, 102, 0.15);
}

/* Product Image */
.product-image-premium {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.product-image-link-premium {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.image-container-premium {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.image-shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 1;
}

.product-card-premium:hover .image-shine-effect {
    left: 100%;
}

/* Image Overlay */
.image-overlay-premium {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(16, 179, 102, 0.95) 0%,
        rgba(40, 102, 143, 0.95) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

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

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

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

.overlay-icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.product-card-premium:hover .overlay-icon-circle {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.overlay-icon-circle svg {
    color: #ffffff;
    transition: color 0.4s ease;
}

.product-card-premium:hover .overlay-icon-circle svg {
    color: #10b366;
}

.overlay-text {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

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

/* Premium Badge */
.product-badge-premium {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    z-index: 3;
}

.badge-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b366, #e0368e);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 179, 102, 0.4);
    animation: badge-pulse-premium 2.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes badge-pulse-premium {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 8px 24px rgba(16, 179, 102, 0.4);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 12px 32px rgba(16, 179, 102, 0.6);
    }
}

.badge-inner svg {
    width: 24px;
    height: 24px;
}

.badge-glow-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(16, 179, 102, 0.3);
    border-radius: 18px;
    animation: ring-pulse-premium 2s ease-in-out infinite;
}

@keyframes ring-pulse-premium {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

/* Product Content */
.product-content-premium {
    padding: 32px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.product-title-premium {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 68px;
}

.product-title-premium a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.product-title-premium a:hover {
    color: #10b366;
}

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

.btn-premium-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #10b366;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.btn-link-text {
    position: relative;
    z-index: 2;
}

.btn-link-icon {
    width: 32px;
    height: 32px;
        background: linear-gradient(135deg, #10b366, #25a2e2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-premium-link:hover .btn-link-icon {
    transform: translateX(6px) scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 179, 102, 0.4);
}

[dir="rtl"] .btn-premium-link:hover .btn-link-icon {
    transform: translateX(-6px) scale(1.1);
}

.btn-link-icon svg {
    width: 18px;
    height: 18px;
}

.btn-link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b366, #25a2e2);
    transition: width 0.4s ease;
}

.btn-premium-link:hover .btn-link-underline {
    width: 100%;
}

.btn-premium-link:hover {
    color: #10b366;
    padding-left: 4px;
}

[dir="rtl"] .btn-premium-link:hover {
    padding-left: 0;
    padding-right: 4px;
}

/* Card Border Glow */
.card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, #10b366, #25a2e2, #10b366);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card-premium:hover .card-border-glow {
    opacity: 1;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 1199px) {
    .products-premium-elegant {
        padding: 110px 0;
    }
    
    .product-image-premium {
        height: 300px;
    }
    
    .products-title-premium {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .products-premium-elegant {
        padding: 90px 0;
    }
    
    .products-header-premium {
        margin-bottom: 50px;
    }
    
    .products-title-premium {
        font-size: 40px;
    }
    
    .product-image-premium {
        height: 280px;
    }
    
    .product-content-premium {
        padding: 28px 24px;
    }
    
    .product-title-premium {
        font-size: 22px;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .products-premium-elegant {
        padding: 70px 0;
    }
    
    .products-header-premium {
        margin-bottom: 40px;
    }
    
    .section-label-premium {
        gap: 12px;
    }
    
    .label-line-left,
    .label-line-right {
        width: 40px;
    }
    
    .label-text-premium {
        font-size: 12px;
        padding: 6px 18px;
    }
    
    .products-title-premium {
        font-size: 32px;
    }
    
    .title-decoration-premium {
        gap: 8px;
    }
    
    .decoration-line {
        width: 80px;
    }
    
    .decoration-dot {
        width: 8px;
        height: 8px;
    }
    
    .product-image-premium {
        height: 260px;
    }
    
    .product-content-premium {
        padding: 24px 20px;
    }
    
    .product-title-premium {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .overlay-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .overlay-icon-circle svg {
        width: 24px;
        height: 24px;
    }
    
    .product-badge-premium {
        width: 44px;
        height: 44px;
        top: 20px;
        right: 20px;
    }
    
    .badge-inner {
        border-radius: 12px;
    }
    
    .badge-inner svg {
        width: 20px;
        height: 20px;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none;
    }
}

/* ====================================
   RTL Support
   ==================================== */

[dir="rtl"] .product-badge-premium {
    right: auto;
    left: 24px;
}

@media (max-width: 767px) {
    [dir="rtl"] .product-badge-premium {
        left: 20px;
    }
}

/* ====================================
   Print Styles
   ==================================== */

@media print {
    .products-premium-elegant {
        padding: 40px 0;
        background: #ffffff;
    }
    
    .products-bg-shapes,
    .badge-glow-ring,
    .card-border-glow,
    .image-shine-effect,
    .btn-link-underline {
        display: none;
    }
    
    .product-card-premium {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .product-card-premium:hover {
        transform: none;
    }
}
