/* Products Page Custom Styles */

/* Hero Section */
.products-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #e53e3e 100%);
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.products-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.products-hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.products-hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-badge i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Category Cards Section */
.category-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(229, 62, 62, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.category-container {
    position: relative;
    z-index: 10;
}

.category-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.category-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #1e40af, #e53e3e);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.category-header {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-header.steel {
    background: linear-gradient(135deg, #374151 0%, #1f2937 50%, #111827 100%);
}

.category-header.stainless {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
}

.category-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: shimmer 3s ease-in-out infinite;
}

.category-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.category-card:hover .category-header::after {
    transform: translateX(100%);
}

.category-icon {
    font-size: 5rem;
    color: white;
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.category-content {
    padding: 3rem;
    position: relative;
}

.category-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3rem;
    right: 3rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.category-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.category-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: #374151;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-feature:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.category-feature i {
    width: 1.25rem;
    color: #1e40af;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.category-feature:hover i {
    transform: scale(1.2);
}

.category-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.cta-text {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* Product Grid Section */
.product-grid-section {
    position: relative;
    padding: 6rem 0;
    background: white;
}

.product-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(229, 62, 62, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.product-grid-container {
    position: relative;
    z-index: 10;
}

.product-grid-header {
    text-align: center;
    margin-bottom: 4rem;
}

.product-grid-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #111827;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e40af, #e53e3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-grid-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-button {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    border-color: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e40af, #e53e3e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1e40af, #e53e3e);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-code {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.product-spec i {
    width: 1rem;
    color: #1e40af;
    font-size: 0.875rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.product-btn.primary {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
}

.product-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.product-btn.secondary {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.product-btn.secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}

/* Product Details Section */
.product-details-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(229, 62, 62, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.product-details-container {
    position: relative;
    z-index: 10;
}

.product-details-header {
    text-align: center;
    margin-bottom: 4rem;
}

.product-details-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #111827;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e40af, #e53e3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-details-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .product-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.product-details-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.product-details-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-details-header-card {
    text-align: center;
    margin-bottom: 2rem;
}

.product-details-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: white;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.product-details-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.product-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-details-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-details-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.product-details-item i {
    width: 1.25rem;
    color: #1e40af;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.product-details-item:hover i {
    transform: scale(1.2);
}

.product-details-text {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #e53e3e 100%);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-hero {
        min-height: 60vh;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .category-section,
    .product-grid-section,
    .product-details-section,
    .cta-section {
        padding: 4rem 0;
    }
    
    .category-cards {
        gap: 2rem;
    }
    
    .category-header {
        height: 200px;
    }
    
    .category-icon {
        font-size: 3.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-content {
        padding: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-button {
        width: 100%;
        max-width: 300px;
    }
    
    .product-details-grid {
        gap: 2rem;
    }
    
    .product-details-card {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-hero-content {
        padding: 0 1rem;
    }
    
    .category-header {
        height: 180px;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .category-content {
        padding: 1.5rem;
    }
    
    .product-content {
        padding: 1.25rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-details-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-card {
    animation: slideInLeft 0.8s ease-out;
}

.category-card:nth-child(2) {
    animation: slideInRight 0.8s ease-out;
    animation-delay: 0.2s;
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }
.product-card:nth-child(7) { animation-delay: 0.6s; }
.product-card:nth-child(8) { animation-delay: 0.7s; }
.product-card:nth-child(9) { animation-delay: 0.8s; }

.product-details-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-details-card:nth-child(2) {
    animation-delay: 0.2s;
}
