/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    padding: 10px 0;
    background-color: #f8f9fa;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Button Styles */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Footer */
footer {
    margin-top: 50px;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Product Grid */
.product-grid {
    margin: 30px 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Services Section */
.service-card {
    text-align: center;
    padding: 20px;
}

.service-card i {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 10px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Responsive Map */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Pagination Styles */
.pagination .page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.pagination .page-item .page-link {
    color: #28a745;
}

.pagination .page-item .page-link:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* IndiaMart Style Product Cards */
.product-card-indiamart {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #fff;
}

.product-card-indiamart:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #28a745;
}

.product-card-indiamart .product-image-container {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.product-card-indiamart .product-image-container img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
}

.product-card-indiamart .product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-indiamart .product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card-indiamart .product-title a:hover {
    color: #28a745;
}

.product-card-indiamart .product-specs {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.product-card-indiamart .product-category-badge {
    font-size: 12px;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    color: #495057;
}

.product-card-indiamart .btn-enquiry {
    background: #28a745;
    border: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s;
}

.product-card-indiamart .btn-enquiry:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Filter Sidebar */
.filter-sidebar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-sidebar .filter-header {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.filter-sidebar .filter-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.filter-sidebar .filter-item:hover {
    background: #f8f9fa;
}

.filter-sidebar .filter-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.filter-sidebar .filter-item.active a {
    color: #28a745;
    font-weight: 600;
}

/* Products Header */
.products-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.products-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.products-header .product-count {
    font-size: 14px;
    color: #666;
}

/* Product Details Page - IndiaMart Style */
.product-details-indiamart .product-image-container {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details-indiamart .specifications-table {
    font-size: 14px;
}

.product-details-indiamart .specifications-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-details-indiamart .specifications-table tr:last-child td {
    border-bottom: none;
}

.product-details-indiamart .action-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-details-indiamart .supplier-info {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #666;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #28a745;
}

.breadcrumb-item.active {
    color: #333;
}

/* Related Products */
.related-product-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.related-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #28a745;
    transform: translateY(-2px);
}

.related-product-card a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ============================================ */

/* Tablet Styles (max-width: 992px) */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .products-header h2 {
        font-size: 20px;
    }
    
    .product-details-indiamart .product-image-container {
        min-height: 350px;
    }
    
    .product-details-indiamart h1 {
        font-size: 24px !important;
    }
    
    /* Footer adjustments */
    footer .col-md-2,
    footer .col-md-6,
    footer .col-md-4 {
        margin-bottom: 20px;
    }
}

/* Mobile & Tablet Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* General */
    body {
        font-size: 14px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation */
    .navbar-brand img {
        height: 50px !important;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* Products Page */
    .products-header {
        padding: 10px 0;
    }
    
    .products-header h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .products-header .product-count {
        font-size: 12px;
    }
    
    /* Filter Sidebar - Stack on mobile */
    .col-lg-3.mb-4 {
        margin-bottom: 20px !important;
    }
    
    .filter-sidebar {
        margin-bottom: 20px;
    }
    
    /* Product Cards - IndiaMart Style */
    .product-card-indiamart .row {
        flex-direction: column;
    }
    
    .product-card-indiamart .col-md-3,
    .product-card-indiamart .col-md-6 {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    .product-card-indiamart .col-md-3:last-child {
        text-align: left !important;
    }
    
    .product-card-indiamart .btn-enquiry,
    .product-card-indiamart .btn-outline-primary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Product Details Page */
    .product-details-indiamart .product-image-container {
        min-height: 250px;
        padding: 15px;
    }
    
    .product-details-indiamart h1 {
        font-size: 20px !important;
        line-height: 1.3;
    }
    
    .product-details-indiamart .specifications-table {
        font-size: 13px;
    }
    
    .product-details-indiamart .specifications-table td {
        padding: 6px 0;
        display: block;
        width: 100%;
    }
    
    .product-details-indiamart .specifications-table td:first-child {
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    /* Action Buttons */
    .d-grid.gap-2 .btn {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Contact Page */
    .contact-form {
        padding: 15px;
    }
    
    /* Footer */
    footer {
        margin-top: 30px;
        padding: 20px 0 !important;
    }
    
    footer .col-md-2,
    footer .col-md-6,
    footer .col-md-4 {
        margin-bottom: 25px;
        text-align: center;
    }
    
    footer h5 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    footer ul {
        padding-left: 0;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
        padding: 8px 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    /* Search Form */
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        margin-bottom: 10px;
        border-radius: 4px !important;
    }
    
    .input-group .btn {
        width: 100%;
        border-radius: 4px !important;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-item {
        margin: 2px;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Related Products */
    .related-product-card {
        margin-bottom: 15px;
    }
    
    /* About Page */
    .col-md-8.offset-md-2 {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Enquiry Form */
    .card-body form {
        padding: 0;
    }
}

/* Small Mobile Styles (max-width: 576px) */
@media (max-width: 576px) {
    /* Typography */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    h4, h5 {
        font-size: 1rem !important;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    /* Products Header */
    .products-header h2 {
        font-size: 16px;
    }
    
    .products-header .row {
        flex-direction: column;
    }
    
    .products-header .col-md-8,
    .products-header .col-md-4 {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Product Cards */
    .card-body {
        padding: 12px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    /* Product Details */
    .product-details-indiamart h1 {
        font-size: 18px !important;
    }
    
    .product-details-indiamart .product-image-container {
        min-height: 200px;
        padding: 10px;
    }
    
    /* Price Display */
    .h4.mb-0.text-success {
        font-size: 24px !important;
    }
    
    /* Buttons */
    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .btn-lg {
        font-size: 13px;
        padding: 10px 18px;
    }
    
    /* Forms */
    .form-control {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    /* Contact Page */
    .contact-form {
        padding: 10px;
    }
    
    /* Footer */
    footer {
        padding: 15px 0 !important;
    }
    
    footer .text-white {
        font-size: 12px;
    }
    
    /* Map */
    .ratio-16x9 {
        padding-bottom: 75%;
    }
    
    /* Badges */
    .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Tables */
    .table {
        font-size: 12px;
    }
    
    /* Spacing */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-4 {
        margin-top: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Product Listing Cards */
    .card.mb-3 {
        margin-bottom: 15px !important;
    }
    
    .card-body.p-3 {
        padding: 12px !important;
    }
    
    /* WhatsApp Buttons */
    .btn[style*="background-color: #25D366"] {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Social Icons in Navbar */
    .navbar-nav .nav-link[style*="padding: 0.5rem"] {
        padding: 0.3rem !important;
    }
    
    .navbar-nav .nav-link span {
        width: 25px !important;
        height: 25px !important;
    }
    
    /* Related Products Grid */
    .col-6.col-md-3 {
        width: 50% !important;
        padding: 5px;
    }
}

/* Extra Small Devices (max-width: 400px) */
@media (max-width: 400px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section h1 {
        font-size: 1.25rem;
    }
    
    .products-header h2 {
        font-size: 14px;
    }
    
    .product-details-indiamart h1 {
        font-size: 16px !important;
    }
    
    .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .card-body {
        padding: 10px;
    }
    
    footer {
        font-size: 11px;
    }
}

/* Landscape Orientation for Tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        padding: 15px 0;
    }
    
    .product-details-indiamart .product-image-container {
        min-height: 300px;
    }
} 