/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #00aaff;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #444;
    --white: #fff;
    --gray: #ddd;
    --dark-gray: #777;
}

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

html {
    scrollbar-gutter: stable; /* Prevents layout shift */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-y: scroll; /* Always show scrollbar */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: #314A9C;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #006666;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background: rgb(133, 172, 186);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    padding: 20px 0; /* Reduced from 15px */
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo img {
    height: 100px; /* Reduced from 125px (36% reduction) */
    width: auto; /* Maintain aspect ratio */
    margin-right: 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    transition: 
        font-size 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease,
        max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo h1 span {
    color: var(--primary-color);
    font-weight: normal;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: 
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #314A9C;
    border-bottom: 2px solid #314A9C;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto; /* Pushes icon to far right */
    padding: 10px 15px; /* Better touch target */
    order: 1; /* Ensures it stays on the right in flex layout */
}

.mobile-menu:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Shrinking Header Effects */
header {
    transition: 
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.shrink {
    padding: 5px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header.shrink .logo {
    padding: 5px 0;
}

header.shrink .logo img {
    height: 80px;
    transition: height 0.3s ease-out;
}

header.shrink .logo h1 {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    transition: font-size 0.3s ease-out;
}

header.shrink nav ul li a {
    padding: 3px 0; /* Reduced from 5px */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo img {
        height: 60px; /* Base mobile size */
    }
    
    header.shrink .logo img {
        height: 50px; /* Shrunk mobile size */
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../images/banner1.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center; 
    padding: 100px 0;
}

.hero h2 {
    font-size: 2.5rem;
    color: white;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: rgb(3, 11, 75);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Featured Products */
/* Custom Swiper Container */
.swiper {
    padding: 0 0 20px;
    cursor: grab;
    /* Top 20px, Bottom 40px for more space */

}

/* Universal Card Sizing */
.swiper-slide {
    height: auto;
    /* Makes all cards same height */
}

/* Custom Arrow Colors */
.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    background: #314A9C;
    /* Your brand blue */
    border-radius: 50%;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #314A9C;
    /* Darker blue on hover */
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper {
        padding-bottom: 30px;
    }

    .product img {
        height: 150px;
    }
}

.featured {
    background: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.featured h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px; /* Prevents over-stretching */
    margin: 0 auto; /* Centers the grid */
}

.product {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s;
    ;
    cursor: pointer;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    margin-bottom: 15px;
}

.product h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.product p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.carousel-product {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s;
    ;
    cursor: grab;
}

.carousel-product:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.carousel-product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    margin-bottom: 15px;
}

.carousel-product h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.carousel-product p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.price {
    display: block;
    padding: 0 15px 15px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials {
    background: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
}

.author {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
}

/* Why Choose Us Section */
.why-choose-us {
    background: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit {
    background: var(--white);
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.benefit img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.benefit h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.benefit p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}


/* Suppliers Section */
.suppliers {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.suppliers h2 {
    margin-bottom: 2rem;
    color: #333;
}

.suppliers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.suppliers-grid img {
    height: 100px;
    width: auto;
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
    transition: all 0.3s ease;
}

/* .suppliers-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
} */

@media (max-width: 768px) {
    .suppliers-grid {
        gap: 1rem;
    }

    .suppliers-grid img {
        height: 40px;
    }
}

/* SOCIAL BANNER */
.social-banner {
  padding: 40px 0;
  text-align: center;
}

.social-banner h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--primary-color);
  margin-bottom: 20px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.social-card, .social-card-facebook {
  background: var(--white);
  border-radius: 10px;
  padding: 25px 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.social-icon {
  width: 60px;
  height: 60px;
  background: #4267B2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 15px;
}

.social-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.social-card p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-facebook {
  background: #4267B2;
  color: white !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Facebook Embed Specific */
.social-card-facebook {
  padding: 15px;
  grid-column: 1 / -1; /* Full width on mobile */
}

.fb-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.fb-page {
  min-height: 300px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .social-card-facebook {
    grid-column: span 2;
    order: 3; /* Move to bottom on tablet */
  }
}

@media (min-width: 1024px) {
  .social-grid {
    grid-template-columns: 1fr 2fr 1fr;
  }
  
  .social-card-facebook {
    grid-column: auto;
    order: initial;
  }
}

/* Mobile-specific fixes */
@media (max-width: 480px) {
  .social-card, .social-card-facebook {
    padding: 20px 10px;
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .fb-page {
    min-height: 250px;
  }
}

/* Footer */
/* Footer Contact Grid */
.footer-contact {
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-location {
    margin-bottom: 15px;
}

.contact-location p,
.contact-email p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.contact-location i,
.contact-email i {
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

.contact-location h5,
.contact-email h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 600;
}

footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 30px 0 0;
}

.footer-info,
.footer-contact,
.footer-hours {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    margin-right: 10px;
}

.footer-logo h3 {
    color: var(--white);
    margin: 0;
}

.footer-contact p,
.footer-hours p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact h4 {
    color: white;
}

.footer-hours h4 {
    color: white;
}

.footer-contact i,
.footer-hours i {
    margin-right: 10px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

/* Catalogue Page */
.catalogue-hero {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../images/banner2.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.catalogue-hero h2 {
    color: #314A9C;
    font-size: 2.5rem;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: white;
}

.filter-options {
    display: flex;
    align-items: flex-start;
    /* align to top first */
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-options h3 {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.2;
}

option[value="combos"] {
    color: red;
    /* ⚠️ May work in Firefox but not in Chrome/Safari */
}

.filter-options select,
.filter-options input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--gray);
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    height: 44px;
    /* force same height across both */
}

/* About Page */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../images/banner3.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.about-hero h2 {
    color: #314A9C;
    font-size: 2.5rem;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: white;
}

.about-content {
    padding: 60px 0;
}

.about-text {
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.locations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.location-map {
    flex: 1;
    min-width: 300px;
}

.map-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.map-wrapper {
    height: 300px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.address {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .locations-container {
        flex-direction: row; /* Side by side on larger screens */
        flex-wrap: wrap;
    }
    
    .location-map {
        flex: 1;
        min-width: calc(50% - 1rem); /* Two columns with gap */
    }
    
    .map-wrapper {
        padding-bottom: 60%; /* Adjust aspect ratio */
    }
    
    .address {
        padding: 1.5rem;
    }
}

.address p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.address i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Popup Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal-body {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.modal-image {
    width: 100%;
}

.modal-image img {
    width: 100%;
    border-radius: 5px;
}

.modal-text {
    width: 60%;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        align-items: center;
    }

    .modal-text {
        width: 100%;
    }

    .modal-image {
        width: 100%;
    }

    .modal-content {
        margin: 20% auto;
        width: 90%;
        padding: 20px;
    }
}

/* Hide the view details button */
.view-details-btn {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        padding: 15px;
        border-bottom: 1px solid var(--gray);
    }

    .mobile-menu {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    footer .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}

/* Privacy Policy Page */
.privacy-policy {
    padding: 60px 0;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-policy h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.effective-date {
    color: var(--dark-gray);
    text-align: center;
    display: block;
    margin-bottom: 40px;
}

.privacy-policy h2 {
    color: var(--primary-color);
    margin: 40px 0 15px;
    font-size: 1.3rem;
}

.privacy-policy ul {
    padding-left: 20px;
}

.privacy-policy li {
    margin-bottom: 10px;
    position: relative;
}

.privacy-policy li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Mobile */
@media (max-width: 600px) {
    .privacy-policy {
        padding: 40px 15px;
    }
}

/*WhatsApp*/
/* WhatsApp Toggle Styles */
.whatsapp-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-main-btn {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-main-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-options {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: white;
    border-radius: 10px;
    padding: 15px;
    width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.whatsapp-toggle.active .whatsapp-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #075E54;
    text-decoration: none;
    transition: background 0.2s ease;
}

.whatsapp-option:hover {
    background: #f0f8f0;
}

.whatsapp-option i {
    margin-right: 10px;
    font-size: 20px;
    color: #25D366;
}

.whatsapp-option-text {
    font-size: 14px;
}

.whatsapp-option-text strong {
    display: block;
    margin-bottom: 3px;
}

.whatsapp-option:last-child {
    margin-bottom: 0;
}