@import url('https://fonts.googleapis.com/css2?family=Alfarn:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alfarn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 18px; /* Increased base font size */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-family: 'Alfarn', sans-serif;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem; /* Increased from 0.9rem */
}

.cable-selector {
    font-family: 'Alfarn', sans-serif;
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.2rem; /* Increased from 1rem */
    font-weight: 600;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 170px;
}

.cable-selector:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.discount-input {
    font-family: 'Alfarn', sans-serif;
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.2rem; /* Increased from 1rem */
    font-weight: 600;
    background: white;
    color: #2c3e50;
    text-align: center;
    transition: all 0.3s ease;
    width: 140px;
}

.discount-input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}
.logo{
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a) !important;
}

.logo img {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: flex;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.product-section {
   
    /* border-radius: 10px; */
    overflow: hidden;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}
.product-inner{
 background: white;
 box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
   /* border-radius: 10px; */
}


.catalog-wrap{
    background-image: url(./public/bg_image.png);
    background-size: cover;
    background-repeat: no-repeat;
}

/* 
.product-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
} */

.product-section.hidden {
    display: none;
}

.product-header {
    font-family: 'Alfarn', sans-serif;
    padding: 18px 22px; /* Increased padding */
    color: white;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-height: auto;
    position: relative;
    flex-shrink: 0;
    /* justify-content: center; */
    /* border-radius: 10px 10px 0 0; */
    /* All headers now have black background */
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a) !important;
}

/* Brand logo styling */
.brand-logo {
    height: auto; /* Increased from 40px */
    width: 110px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

/* ISI logo styling */
.isi-logo {
    height: 36px; /* Increased from 36px */
    width: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    margin-left: auto;
}

/* Discount badge in header */
.product-header.has-discount::after {
    font-family: 'Alfarn', sans-serif;
    content: attr(data-discount);
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    right: 70px;
    background: #27ae60;
    color: white;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 0.9rem; /* Increased from 0.8rem */
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
}

/* Remove individual header background styles since all are now black */
.ankit-black, .anmol-black,
.ankit-xlpe, .anmol-xlpe,
.model-010, .model-09,
.pulser-blue, .delton-blue,
.ankit-aluminum, .anmol-aluminum,
.ankit-copper-white, .anmol-copper-black,
.anmol-house-wires, .ankit-house-wires,
.ankit-core-cable, .anmol-core-blue,
.avon-submersible {
    /* All headers use the black background defined in .product-header */
}

.brand, .model {
    font-family: 'Alfarn', sans-serif;
    font-size: 1.6rem; /* Increased from 1.4rem */
    font-weight: 700;
    letter-spacing: 1px;
    /* Make model text yellow like type text */
    color: #e9bb2c;
}

.type {
    font-family: 'Alfarn', sans-serif;
    font-size: 1.4rem; /* Increased from 1.2rem */
    font-weight: 600;
    /* Remove background and set golden color */
    background: none;
    color: #e9bb2c;
    border-radius: 0;
    padding: 0;
}

.color {
    font-family: 'Alfarn', sans-serif;
    font-size: 1.2rem; /* Increased from 1rem */
    font-weight: 600;
    /* Remove background and set golden color */
    background: none;
    color: #e9bb2c;
    border-radius: 0;
    padding: 0;
}

.subtitle {
    font-family: 'Alfarn', sans-serif;
    font-size: 1.1rem; /* Increased from 0.9rem */
    opacity: 0.9;
    /* Remove background to make it clear/transparent */
    background: none;
    color: white;
    padding: 0;
    border-radius: 0;
}

.standard {
    font-family: 'Alfarn', sans-serif;
    font-size: 1rem; /* Increased from 0.8rem */
    opacity: 0.8;
    font-style: italic;
}

.product-table {
    font-family: 'Alfarn', sans-serif;
    width: 100%;
    border-collapse: collapse;
    background: white;
    flex: 1;
    border: 1px solid #9c9c9c;
}

.product-table th {
    font-family: 'Alfarn', sans-serif;
    background: #cbd8ee;
    padding: 14px 10px; /* Increased padding */
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem; /* Increased from 0.9rem */
    border: 1px solid #9c9c9c;
    color: #000;
}

.product-table td {
    font-family: 'Alfarn', sans-serif;
    padding: 12px 10px; /* Increased padding */
    text-align: center;
    border: 1px solid #9c9c9c;
    font-size: 1rem; /* Increased from 0.9rem */
}

/* Price column cells styling */
.product-table td.price {
    background: #dddedd;
    color: #000;
    font-weight: 600;
    font-size: 1.1rem; /* Increased font size for prices */
}

.product-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.product-table tbody tr:nth-child(even) td.price {
    background-color: #dddedd;
}

.product-table tbody tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.2s ease;
}

.product-table tbody tr:hover td.price {
    background-color: #dddedd;
}

/* .product-table tbody tr:last-child td {
    border-bottom: 1px solid #dadadb;
} */

.price {
    font-family: 'Alfarn', sans-serif;
    font-weight: 600;
    color: #000;
}

.price.discounted {
    color: #000;
    font-weight: 700;
}

.table-note {
    font-family: 'Alfarn', sans-serif;
    padding: 12px 18px;
    background: #f8f9fa;
    font-size: 1rem; /* Increased from 0.85rem */
    color: #666;
    font-style: italic;
    text-align: center;
    border-top: 1px solid #dadadb;
    margin-top: auto;
}

/* Promotional Section */
.promotional-section {
    font-family: 'Alfarn', sans-serif;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    gap: 40px;
}

.promo-badge {
    flex-shrink: 0;
}

.promo-text {
    font-family: 'Alfarn', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 35px;
    border-radius: 50%;
    width: 220px; /* Increased from 200px */
    height: 220px; /* Increased from 200px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border: 4px solid #f39c12;
}

.promo-text::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed #f39c12;
    border-radius: 50%;
}

.main-text {
    font-family: 'Alfarn', sans-serif;
    font-size: 1.3rem; /* Increased from 1.1rem */
    font-weight: 600;
    line-height: 1.2;
}

.highlight {
    font-family: 'Alfarn', sans-serif;
    font-size: 1.5rem; /* Increased from 1.3rem */
    font-weight: 700;
    color: #f39c12;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.company-info {
    font-family: 'Alfarn', sans-serif;
    /* flex: 1; */
    text-align: center;
}

.tagline {
    font-family: 'Alfarn', sans-serif;
    font-size: 1.4rem; /* Increased from 1.2rem */
    color: #666;
    margin-bottom: 20px;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
    display: inline-block;
}

.services h2 {
    font-family: 'Alfarn', sans-serif;
    font-size: 2rem; /* Increased from 1.8rem */
    color: #2c3e50;
    margin: 12px 0;
    font-weight: 700;
}

.services h2:nth-child(2) {
    color: #e74c3c;
}

.services h2:nth-child(3) {
    color: #27ae60;
}

.services h2:nth-child(4) {
    color: #8e44ad;
}

@media screen and (max-width: 1199px) {
    .brand-logo{
        width: 80px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .product-header {
    padding: 18px 24px;
    gap: 14px;
  }
  .product-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    }

  .product-header .brand-logo {
    max-width: 90px;          
    height: auto;
  }

  .product-header .isi-logo {
    max-height: 36px;         
  }

  .product-header .type {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.8px;
  }

  .product-header .subtitle {
    font-size: 0.9rem;
    opacity: 0.85;            
  }


}

@media (max-width: 991px) {
    .catalog-grid{
        display: block;
    }
    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
    }
    .product-table {
        width: 100%;
        min-width: 340px;   
        border-collapse: collapse;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px; /* Increased base font size for mobile */
    }
        
    .filter-group label {
        font-size: 1rem;
    }


    .cable-selector, .discount-input {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    .product-header {
        padding: 12px 15px;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    .isi-logo {
        height: 30px;
    }
        
    .brand, .model {
        font-size: 1.3rem;
    }
    
    .type {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .product-table th,
    .product-table td {
        padding: 8px 6px;
        font-size: 0.9rem;
    }
    
    .product-table td.price {
        font-size: 1rem;
    }
    
    .promotional-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    
    .promo-text {
        width: 140px;
        height: 140px;
        padding: 20px;
    }
    
    .main-text {
        font-size: 1rem;
    }
    
    .highlight {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .services h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .filter-controls{
        gap: 10px;
    }
    .filter-group{
        align-items: start;
    }
    .logo img{  
        max-width: 200px;
    }
    .catalog-grid{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 10px;
    }
    
    .brand-logo {
        height: 28px;
        width: 50px;
    }
    .product-header {
        padding: 12px;
        gap: 9px;
    }
    .isi-logo {
        height: 25px;
    }
    .product-header.has-discount::after {
        padding: 0 8px;
        right: 40px;
    }
    
    
    .product-table th,
    .product-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }
    
    .product-table td.price {
        font-size: 0.9rem;
    }
    
    .brand, .model {
        font-size: 1.1rem;
    }
    
    .type {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .promo-text {
        width: 110px;
        height: 110px;
        padding: 12px;
    }
    
    .main-text {
        font-size: 0.85rem;
    }
    
    .highlight {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .services h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .filter-controls {
        flex-direction: column;
    }
    .product-header.has-discount::after{
        position: inherit;
        transform: inherit;
        right: 0;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-section {
    animation: fadeInUp 0.6s ease forwards;
}

.product-section:nth-child(1) { animation-delay: 0.1s; }
.product-section:nth-child(2) { animation-delay: 0.2s; }
.product-section:nth-child(3) { animation-delay: 0.3s; }
.product-section:nth-child(4) { animation-delay: 0.4s; }
.product-section:nth-child(5) { animation-delay: 0.5s; }
.product-section:nth-child(6) { animation-delay: 0.6s; }
.product-section:nth-child(7) { animation-delay: 0.7s; }
.product-section:nth-child(8) { animation-delay: 0.8s; }
.product-section:nth-child(9) { animation-delay: 0.9s; }
.product-section:nth-child(10) { animation-delay: 1.0s; }
.product-section:nth-child(11) { animation-delay: 1.1s; }
.product-section:nth-child(12) { animation-delay: 1.2s; }
.product-section:nth-child(13) { animation-delay: 1.3s; }
.product-section:nth-child(14) { animation-delay: 1.4s; }
.product-section:nth-child(15) { animation-delay: 1.5s; }
.product-section:nth-child(16) { animation-delay: 1.6s; }
.product-section:nth-child(17) { animation-delay: 1.7s; }

.promotional-section {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.8s;
}

/* Additional interactive elements */
.highlighted-row {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
    animation: pulse 0.5s ease-in-out;
}

.best-value {
    position: relative;
}

.best-value::after {
    font-family: 'Alfarn', sans-serif;
    content: "Best Value";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #28a745;
    color: white;
    font-size: 0.8rem; /* Increased from 0.7rem */
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.product-section:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}