/* Products Hero */
.products-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1581094794329-c811e6aefb1f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0 60px;
    margin-top: 80px;
}

.products-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.products-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Products Filter */
.products-filter {
    padding: 40px 0;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-category ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-category ul li a {
    padding: 8px 15px;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.filter-category ul li a:hover,
.filter-category ul li a.active {
    background-color: var(--secondary-color);
    color: white;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by label {
    font-weight: 500;
}

.sort-by select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    outline: none;
    transition: var(--transition);
}

.sort-by select:focus {
    border-color: var(--secondary-color);
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
}

.view-btn:hover,
.view-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Products Grid */
.products-grid-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.quick-view {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .quick-view {
    bottom: 0;
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.product-desc {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-rating {
    color: #f1c40f;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.product-rating span {
    color: var(--gray-color);
    margin-left: 5px;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
}

.original-price {
    font-size: 0.9rem;
    color: var(--gray-color);
    text-decoration: line-through;
    margin-left: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: white;
    color: var(--dark-color);
    border: 1px solid #ddd;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Features */
.product-features {
    padding: 60px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--light-gray);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-category ul {
        flex-wrap: wrap;
    }
    
    .products-hero {
        padding: 100px 0 40px;
    }
    
    .products-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .filter-sort {
        width: 100%;
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #2a4365;
    overflow-x: hidden;
    min-height: 100vh;
}

.main-header {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 1s ease-out;
    background-color: #24aaf3;
    margin-bottom: 2rem;
}

.main-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.main-header h1 span {
    color: #3182ce;
}

.main-header p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Container */
.product-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.product-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

/* Product Card */
.product-card {
    width: 100%;
    max-width: 500px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    animation: float 6s ease-in-out infinite;
    flex: 1;
}

.product-card:nth-child(1) {
    animation-delay: 0s;
}
.product-card:nth-child(2) {
    animation-delay: 0.5s;
}
.product-card:nth-child(3) {
    animation-delay: 1s;
}
.product-card:nth-child(4) {
    animation-delay: 1.5s;
}

.product-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.product-card:hover .product-content {
    transform: rotateY(180deg);
}

.product-front,
.product-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.product-front {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    transform: rotateY(0deg);
    border: 1px solid #bee3f8;
}

.product-back {
    background: linear-gradient(135deg, #bee3f8 0%, #ebf8ff 100%);
    transform: rotateY(180deg);
    border: 1px solid #90cdf4;
}

.product-card:hover .product-front {
    box-shadow: 0 10px 25px rgba(49, 130, 206, 0.2);
}

.product-card:hover .product-back {
    box-shadow: 0 15px 30px rgba(49, 130, 206, 0.3);
}

/* Front Side Styles */
.product-front h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2b6cb0;
    text-align: center;
}

.product-icon {
    width: 100px;
    height: 100px;
    background: rgba(49, 130, 206, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 2px solid #3182ce;
}

.product-icon svg {
    width: 50px;
    height: 50px;
    fill: #3182ce;
}

/* Back Side Styles */
.product-back h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2b6cb0;
    text-align: center;
}

.product-back p {
    color: #4a5568;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-specs span {
    background: rgba(49, 130, 206, 0.1);
    color: #2b6cb0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #3182ce;
}

.explore-btn {
    background: transparent;
    color: #3182ce;
    border: 2px solid #3182ce;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 1rem;
}

.explore-btn:hover {
    background: rgba(49, 130, 206, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-row {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        max-width: 100%;
        height: 300px;
    }
    
    .main-header h1 {
        font-size: 2.2rem;
    }
    
    .main-header p {
        font-size: 1rem;
    }
    
    .product-icon {
        width: 80px;
        height: 80px;
    }
    
    .product-icon svg {
        width: 40px;
        height: 40px;
    }
}

.image-new {
  display: block;
  margin: 0 auto;               /* Center the image */
  width: 100%;                  /* Make it big - full container width */
  max-width: 1000px;            /* Optional: limit maximum size */
  height: auto;                 /* Keep aspect ratio */
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-new:hover {
  transform: scale(1.03);       /* Zoom effect on hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/*  */
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
}

/* Product Container */
.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Product Row */
.product-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

/* Product Card */
.product-card {
    width: calc(33.333% - 20px);
    min-width: 300px;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.product-content {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-content {
    transform: rotateY(180deg);
}

/* Front and Back Styles */
.product-front,
.product-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    border-radius: 15px;
}

.product-front {
    background: linear-gradient(135deg, #ffffff, #f1f3f5);
    color: #2b2d42;
}

.product-back {
    background: linear-gradient(135deg, #3a86ff, #4361ee);
    color: white;
    transform: rotateY(180deg);
}

/* Product Content Styles */
.product-front h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #3a86ff;
    font-weight: 700;
    text-align: center;
}

.product-back h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.product-back p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Product Icon */
.product-icon svg {
    width: 70px;
    height: 70px;
    fill: #3a86ff;
}

/* Product Specs */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-specs span {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Explore Button */
.explore-btn {
    padding: 12px 30px;
    background-color: white;
    color: #3a86ff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.explore-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .product-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .product-row {
        gap: 20px;
    }
    
    .product-card {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
    
    .product-card:hover .product-content {
        transform: none;
    }
    
    .product-card.flipped .product-content {
        transform: rotateY(180deg);
    }
    
    .product-front h2 {
        font-size: 1.8rem;
    }
    
    .product-back h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .product-container {
        padding: 10px;
    }
    
    .product-card {
        height: 220px;
    }
    
    .product-front h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .product-back h3 {
        font-size: 1.3rem;
    }
    
    .product-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .explore-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Change this in your existing CSS */
.product-icon svg {
    width: 70px;
    height: 70px;
    fill: #3a86ff;
}








:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #1a252f;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
}

.page-title {
    text-align: center;
    margin: 30px 0;
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px) rotateX(10deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-card:hover::before {
    height: 10px;
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.6);
}

.product-card h3 {
    margin: 15px 0;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.product-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Individual card colors */
#pipes {
    --secondary: #3498db;
    --accent: #2980b9;
}

#fittings {
    --secondary: #9b59b6;
    --accent: #8e44ad;
}

#flanges {
    --secondary: #e67e22;
    --accent: #d35400;
}

#valves {
    --secondary: #2ecc71;
    --accent: #27ae60;
}

#tube-fittings {
    --secondary: #1abc9c;
    --accent: #16a085;
}

#structural-steel {
    --secondary: #34495e;
    --accent: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 25px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* Custom pipe icon since Font Awesome doesn't have one */
.fa-pipe::before {
    content: "║";
    font-weight: bold;
    transform: rotate(90deg);
    display: inline-block;
}

.fa-tube::before {
    content: "○";
    font-weight: bold;
}








* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}
.container {
  width: 100%;
  max-width: 100%;
}









.products-container {
  width: 100%;
  max-width: 1200px; /* Or adjust as needed */
  margin: 0 auto; /* Horizontally center */
  padding: 0 20px; /* Optional: add side padding for mobile */
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the items inside */
  gap: 20px; /* Optional: space between items */
}















/* Remove unwanted spacing from body and html */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* prevents horizontal scroll on small devices */
}

/* Ensure container takes full width */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px; /* add small padding for inner spacing */
    box-sizing: border-box;
}

/* Optional: If you're using a section or wrapper */
section, .wrapper {
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
}













image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.image-row img {
  height: 300px;
  width: 550px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-row img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

@media (max-width: 700px) {
  .image-row img {
    height: 150px;
    width: 100%;
    max-width: 300px;
  }
}











/* Remove default margin and padding from body */
body {
  margin: 0;
  padding: 0;
}

/* Make the image container full width with no side gaps */
.image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 10px; /* optional: small padding so images don't touch screen edges on mobile */
  box-sizing: border-box;
  max-width: 100vw; /* full viewport width */
   /* prevent horizontal scroll */
}







