@media (max-width: 768px) {
    /* Make all elements include padding/border in width */
    *, *::before, *::after {
        box-sizing: border-box;
    }

    footer {
        padding: 20px;
    }

    footer .columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  gap: 20px; /* optional: adds space between columns */
}

footer .col,
footer .follow {
  width: 100%;
  flex: 1; /* allows all columns to grow equally */
  margin-bottom: 0; /* remove bottom margin if no longer stacking */
  min-width: 200px; /* optional: avoid them getting too small on tiny screens */
  text-align: center; /* optional: center content */
}

    footer .col h4,
    footer .follow h4 {
        font-size: 16px;
    }

    footer .col p,
    footer .col a {
        font-size: 14px;
    }

    footer .follow i {
        font-size: 28px;
    }

    footer .copyright {
        font-size: 0.75rem;
    }

    footer .follow a {
        font-size: 10px;
    }

    .follow i.fab{
      font-size: 16px;
    }

    body {
        font-size: 14px;
    }
    

    #header {
        padding: 10px 20px; 
        flex-direction: row;
        justify-content: space-between;
    }
    
    #header a img {
        width: 200px; 
        height: auto;
    }
    
    #header-bus {
        padding: 10px 20px !important; 
        flex-direction: row;
        justify-content: space-between !important;
    }
    
    #header-bus a img {
        width: 200px !important; 
        height: auto !important;
    }
    
    #navbar {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 10px;
        background: linear-gradient(135deg, #f5faff, #eaf4ff);
        padding: 20px 25px;
        gap: 12px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        min-width: 200px;
        border: 1px solid #dbeafe;
        overflow: hidden;          /* Add this */
        pointer-events: none;      /* Disable clicks when hidden */
        opacity: 0;                /* Hide visually */
    }

    #navbar.active {
        transform: translateX(0);
        pointer-events: auto;      /* Enable clicks */
        opacity: 1;
    }

    #navbar li, #close {
        list-style: none;
        width: 100%;
        order: 2;              /* Default order */
    }

    #close {
        order: 1 !important;   /* Make close appear first */
        font-size: 20px;
        color: #334155;
        cursor: pointer;
        padding: 10px 0;
        text-align: left;
        display: block;
        transition: color 0.3s;
    }

    #close:hover {
        color: #ef4444;
    }

    #navbar li a {
        color: #0f172a;
        font-size: 16px;
        text-decoration: none;
        padding: 10px 0;
        display: block;
        width: 100%;
        transition: color 0.3s, background 0.3s;
        border-radius: 6px;
        cursor: pointer;
    }

    #navbar li a:hover,
    #navbar li a.active {
        color: #ffffff;
        background-color: #3b82f6;
    }

    /* Hamburger icon */
    #mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1100;
        position: relative;
        padding: 10px;
    }

    .intro-section {
        padding: 30px 15px;
    }

    .intro-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .intro-section::before{
      opacity: 0.3; /* Adjust to your liking */
    }

    .intro-content h1 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .btn-primary-intro {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 8px !important;
        font-size: 0.95rem;
    }

    .ad-toggle-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 20px 0 20px;
        flex-wrap: wrap;
    }

    .ad-toggle-buttons button {
        padding: 12px 24px;
        border: 2px solid #007bff;
        background-color: #fff;
        color: #007bff;
        font-weight: 500;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        margin: 0;
        flex-shrink: 0;
    }

    .ad-toggle-buttons button.active-toggle {
        background-color: #007bff;
        color: #fff;
    }

    .container,
    .main-content,
    .product-grid {
        width: 100%;
        max-width: 100vw;
        padding: 10px;
        margin-left: 0 ; 
        margin-right: 0;
        overflow-x: hidden;
        flex-direction: column;
        gap: 20px;
    }

    .sidebar,
    #businessSidebar {
        width: 100%;
        margin-right: 0;
        padding: 20px 15px;
    }

    .sidebar h2 {
        font-size: 1.4rem;
    }

    .main-content {
        box-shadow: none;
        padding: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .product-item {
        max-width: 100%;
        height: 230px; /* fixed uniform height */
        padding: 8px;
        margin: 10px 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .product-item img,
    .icon-wrapper {
        height: 120px;
        width: 100%;
        object-fit: contain;      /* Show full image */
        background-color: #fff;   /* Adds padding background */
    }

    .slider img {
        height: 120px !important;
        width: 100%;
        object-fit: contain;      /* Show full image */
        background-color: #fff;
    }

    .slider-nav {
        bottom: 0.75rem;
        column-gap: 0.5rem;
    }

    .slider-nav span {
        width: 0.4rem;
        height: 0.4rem;
    }

    .sold-tag {
        font-size: 20px;
        padding: 8px 12px;
    }

    .product-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 4px;
        font-size: 0.75rem;
    }

    .product-details h3 {
        font-size: 0.8rem !important;
        margin: 0 !important;
    }

    .product-price {
        font-size: 0.8rem !important;
        margin: 0 !important;
    }

    .product-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin: 0 !important;
        padding: 2px 0;
    }

    .product-tags .tag {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .contact-info,
    .seller-contact {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .main-content,
    .product-grid {
        padding: 0 !important;
    }
}

@media (max-width: 320px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .main-content,
    .product-grid {
        padding: 10px !important;
    }

    .product-item {
        height: 230px;
    }

    .product-item img,
    .icon-wrapper,
    .slider img {
        height: 110px;
        object-fit: contain;
    }

    .product-details h3 {
        font-size: 0.75rem;
    }

    .product-price {
        font-size: 0.75rem;
    }
}

@media (max-width: 430px) {
    .product-item {
        max-width: 95%;
        margin: 12px auto;
        height: 235px;
    }

    .product-details {
        padding: 4px;
    }

    .intro-content h1 {
        font-size: 1.5rem;
    }

    .intro-text {
        font-size: 0.85rem;
    }

    .product-details h3 {
        font-size: 0.75rem !important;
        margin: 0 !important;
    }

    .product-price {
        font-size: 0.7rem !important;
        margin: 0 !important;
    }

    .product-tags .tag {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .icon-wrapper {
        padding-top: 6px;
        margin-bottom: 6px;
        text-align: center;
    }

    .icon-wrapper i {
        font-size: 56px;
    }

    .slider-nav {
        bottom: 0.8rem;
        column-gap: 0.5rem;
    }

    .slider-nav span {
        width: 0.4rem;
        height: 0.4rem;
    }

    .sold-tag {
        font-size: 16px;
        padding: 6px 10px;
        border-radius: 6px;
    }
}

/*Individual*/
/* Phones: up to 600px */
@media (max-width: 600px) {
    .main-content{
        padding-top: 0 !important;
    }

    #product-container{
        padding: 20px;
    }

    .product-detail-container {
        flex-direction: column;
        gap: 16px;
        margin: 16px 8px;
        padding: 8px;
    }

    .slider-wrapper {
        max-width: 100%;
        padding: 15px;
    }

    .slider img {
        height: 250px; /* smaller image for phones */
    }

    .product-details {
        flex: none;
        width: 100%;
        padding-top: 0;
    }

    .product-details h3 {
        font-size: 1.4rem;
        margin: 8px 0;
    }

    .product-price {
        font-size: 1rem;
        margin: 6px 0;
    }

    .product-info-section,
    .basic-info,
    .product-description-list,
    .contact-info {
        font-size: 0.9rem;
        margin: 6px 0;
    }

    .product-info-section h4 {
        font-size: 1rem;
        margin: 4px 0;
        padding-bottom: 2px;
    }

    .btn-primary,
    .whatsapp-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Tablets: 601px to 768px */
@media (min-width: 601px) and (max-width: 768px) {
    .main-content{
        padding-top: 0 !important;
    }

    #product-container{
        padding: 20px;
    }

    .product-detail-container {
        flex-direction: column;
        gap: 20px;
        margin: 24px 12px;
        padding: 12px;
    }

    .slider-wrapper {
        max-width: 100%;
        padding: 15px;
    }

    .slider img {
        height: 300px !important; /* bigger image for tablets */
    }

    .product-details {
        flex: none;
        width: 100%;
    }

    .product-details h3 {
        font-size: 1.6rem;
        margin: 10px 0;
    }

    .product-price {
        font-size: 1.2rem;
        margin: 8px 0;
    }

    .product-info-section,
    .basic-info,
    .product-description-list,
    .contact-info {
        font-size: 1rem;
        margin: 8px 0;
    }

    .product-info-section h4 {
        font-size: 1.1rem;
        margin: 6px 0;
        padding-bottom: 3px;
    }

    .btn-primary,
    .whatsapp-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/*Gft*/
@media (max-width: 600px) {
  .main-layout {
    flex-direction: column;
    margin: 10px;
  }

  .section-wrapper {
    padding: 20px 10px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .tagline {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 15px;
  }

  #our-products,
  #contact-gft {
    padding: 20px 10px;
  }

  #our-products h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .contact-heading {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .call-text {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .contact-list,
  .social-section {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .phone-number {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }

  .social-section p {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .social-section a {
    font-size: 0.9rem;
  }

  .contact-list i {
    margin-right: 6px;
  }

  .gft-left,
  .gft-right {
    width: 100%;
    padding: 10px;
    margin: 0 0 20px 0;
    box-shadow: none;
  }

  .logo img {
    width: 120px;
    height: 120px;
  }

  .product-container {
    gap: 1rem;
  }

  .product-item-1 {
    max-width: 100%;
    margin: 10px 0;
    padding: 8px;
    height: 200px;
  }

  .product-item-1 img {
    height: 120px;
    padding-top: 5px;
    margin-bottom: 5px;
  }

  .main-content {
    padding: 20px 10px;
  }

  .whatsapp-button {
    padding: 10px 18px;
    font-size: 14px;
  }
  .product-details-ind h3 {
    font-size: 1.5rem !important;
    margin: 6px 0 10px 0;
    line-height: 1.3;
  }
  .product-price-ind {
      font-size: 1.0rem !important;
      margin-left: 0;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
    margin: 0;
  }
}

@media (max-width: 768px) and (min-width: 601px) {
  .main-layout {
    flex-direction: column;
    margin: 10px;
  }

  .gft-left {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 20px;
    box-shadow: none;
    text-align: center;
  }

  .gft-left .logo img {
    width: 120px;
    height: auto;
    margin: 0 auto 10px;
  }

  .section-title {
    font-size: 1.8rem;
    margin: 10px 0 15px;
  }

  .tagline {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .contact-gft {
    padding: 0;
  }

  .contact-heading {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .contact-list {
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
  }

  .phone-number,
  .social-section {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .main-content {
    width: 100%;
    padding: 10px 0;
  }

  .main-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }

  .product-item-1 {
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
  }

  .slider-wrapper {
    max-width: 100%;
  }

  .slider img {
    height: 150px;
  }

  .product-details-ind h3 {
    font-size: 1.5rem !important;
    margin: 8px 0;
  }

  .btn-primary {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  .contact-gft {
    text-align: center;
    margin: 0 auto;
    max-width: 300px; /* optional */
  }

  .contact-list {
    display: inline-block;
    text-align: left;
    padding: 0;
    margin: 0 auto;
  }

  .contact-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .social-section p {
    margin-bottom: 8px;
  }
  
  .social-section a {
    display: block;  /* Makes the link go to a new line */
    margin-top: 4px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
  }
  
  .social-section i {
    margin-right: 6px;
  }
}

@media (max-width: 430px) {
  .popup-corner {
    bottom: 15px;
    left: 15px; /* keep close to edge */
  }

  .popup-box {
    max-width: 320px; /* keep it narrow */
    padding: 10px;     /* slightly reduced padding */
    border-radius: 8px;
  }

  .popup-box h4 {
    font-size: 1rem; /* slightly smaller */
  }

  .popup-box p {
    font-size: 0.85rem;
  }

  .popup-btn {
    font-size: 0.9rem;
    padding: 8px 14px; /* slightly tighter */
  }
}

@media (max-width: 768px) {
  .adcontainer-1 {
    padding: 16px;
    margin: 20px auto;
    border-radius: 12px;
  }

  .btn-primary-intro,
  .price-contact {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
  }

  .package-comparison th,
  .package-comparison td {
    padding: 8px;
    font-size: 14px;
  }

  .package-comparison {
    font-size: 14px;
    overflow-x: auto;
    display: block;
  }

  .intro-buttons {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .adcontainer-1 h1 {
    font-size: 22px;
  }

  .adcontainer-1 h2 {
    font-size: 18px;
  }

  .adcontainer-1 p,
  .adcontainer-1 ul li {
    font-size: 14px;
  }

  .btn-primary-intro,
  .price-contact {
    font-size: 15px;
    padding: 10px;
  }

  .package-comparison {
    font-size: 13px;
  }
}
