body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #e10072;
    color: white;
    font-size: 1rem;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 15s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-80%);
    }
}

.contact-number {
    font-weight: bold;
    color: #ffd700;
}

/* ===== LOGO & CONTACT BUTTONS ===== */
.logo {
    max-height: 70px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-btn {
    background: linear-gradient(90deg, #28a745, #20c997);
    color: white;
    font-weight: bold;
    border-radius: 25px;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 128, 0, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(90deg, #ff8800, #ff0080);
    color: white;
    font-weight: bold;
    border-radius: 25px;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(255, 0, 128, 0.4);
}

/* ===== NAVIGATION BAR ===== */
.main-nav {
    background-color: #e10072;
}

.main-nav .nav-link {
    color: white !important;
    font-weight: bold;
    padding: 10px 30px;
    position: relative;
    transition: background 0.3s, color 0.3s;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.main-nav .nav-link:hover::after {
    width: 60%;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: #ff007f;
    border-radius: 4px;
}


/* Center align links in phone view */
@media (max-width: 768px) {
    .main-nav .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .main-nav .nav-link {
        padding: 10px 15px;
    }
}

/* Move hamburger to the right */
.main-nav .navbar-toggler {
    margin-left: auto;
}



.footer-section {
    background: linear-gradient(to bottom, #ff007f, #b3005e);
    color: white;
    padding: 40px 20px;
    border-top: 2px solid #ff007f;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo-img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Verdana', sans-serif;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li, .footer-contact ul li {
    margin: 10px 0;
    font-size: 1.1rem;
    font-family: 'Helvetica', sans-serif;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-contact ul li span {
    display: block;
    font-size: 1.1rem;
    font-family: 'Helvetica', sans-serif;
}

.social-icon {
    color: white;
    font-size: 1.8rem;
    margin: 0 12px;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
}

.social-icon:hover {
    color: #e64a19;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    font-family: 'Georgia', serif;
}

.footer-bottom p {
    margin: 5px 0;
    font-weight: 500;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, .footer-links, .footer-contact {
        margin-bottom: 20px;
    }

    .footer-logo-img {
        width: 120px;
    }

    .footer-links h3, .footer-contact h3 {
        font-size: 1.2rem;
    }

    .footer-links ul li, .footer-contact ul li {
        font-size: 1rem;
    }

    .social-icon {
        font-size: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-logo-img {
        width: 100px;
    }

    .footer-links h3, .footer-contact h3 {
        font-size: 1rem;
    }

    .footer-links ul li, .footer-contact ul li {
        font-size: 0.9rem;
    }

    .social-icon {
        font-size: 1.2rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}





/* Footer Bar */
.footer-bar {
    position: fixed;
    bottom: 20px;
    background-color: transparent;
    left: 0;
    right: 0;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Social Media Links */
.footer-left a {
    color: #ffcc33;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-left a:hover {
    color: #ff6600;
    transform: scale(1.2);
}

/* Order Now Button */
.order-now-btn {
    background: #ff0000;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    transition: 0.3s ease;
}
.order-now-btn:hover {
    background: #ff4d4d;
    box-shadow: 0 0 25px rgba(255, 0, 0, 1);
}

/* Responsive Design */
@media (max-width: 900px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
    }
    .welcome-left img {
        max-width: 90%;
    }
    .welcome-right {
        max-width: 100%;
    }
}




/* table css */

.cracker-estimate-table-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 16px auto;
    padding: 0 6px;
    background: #fffbe8;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(220, 70, 130, 0.13);
    overflow-x: auto; /* Added horizontal scroll for mobile */
  }
  
  .cracker-estimate-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1em;
    min-width: 600px; /* Table remains readable, avoids squishing columns */
  }
  
  .cracker-estimate-table th, .cracker-estimate-table td {
    border: 1px solid #f2b2da;
    padding: 6px 3px;
    text-align: center;
    vertical-align: middle;
  }
  
  .cracker-estimate-table th {
    background: linear-gradient(90deg, #e50070 50%, #ffa800 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.01em;
    border-bottom: 3px solid #c91379;
  }
  
  .category-row {
    background: #ffcef8;
    color: #d20051;
    font-weight: bold;
    text-align: left;
    font-size: 1.05em;
    border-top: 2px solid #c91379;
    border-bottom: 2px solid #c91379;
  }
  
  .cracker-estimate-table td {
    color: #3a2328;
  }
  
  .cracker-estimate-table th, .cracker-estimate-table td {
    min-width: 56px;
  }
  
  .cracker-estimate-table td:nth-child(2) {
    text-align: left;
  }
  
  .qty-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #fff6ff;
    border-radius: 6px;
    box-shadow: 0 0 2px #cd73bb;
    padding: 2px 0;
    gap: 5px;
  }
  
  .qty-btn {
    display: inline-block;
    border: none;
    background: #ee28a6;
    color: #fff;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 9px;
    cursor: pointer;
    transition: background 0.18s;
    box-shadow: 0 1px 4px #ffc5e3 inset;
  }
  
  .qty-btn:active {
    background: #b4267f;
  }
  
  .qty-input {
    width: 36px;
    height: 27px;
    text-align: center;
    font-size: 1.09em;
    border: 1px solid #e16bad;
    border-radius: 3px;
    margin: 0 3px;
    outline: none;
    background: #fff;
  }
  
  .amount-cell {
    font-weight: 600;
    color: #de0087;
    letter-spacing: 0.08em;
  }
  
  /* Mobile and tablet responsiveness */
  @media (max-width: 900px) {
    .cracker-estimate-table-wrapper {
      max-width: 100vw;
      padding: 0 2vw;
    }
    .cracker-estimate-table {
      min-width: 520px; /* Let it scroll on small screens */
      font-size: 0.97em;
    }
  }
  
  @media (max-width: 600px) {
    .cracker-estimate-table-wrapper {
      max-width: 100vw;
      border-radius: 5vw;
      box-shadow: none;
      padding: 0 1vw;
    }
    .cracker-estimate-table th, .cracker-estimate-table td {
      font-size: 0.93em;
      padding: 5px 1px;
      min-width: 42px;
    }
    .qty-input {
      width: 29px;
      height: 22px;
      font-size: 0.99em;
    }
    .qty-btn {
      padding: 2px 7px;
      font-size: 1em;
    }
  }
  
  /* Extra small screens */
  @media (max-width: 450px) {
    .cracker-estimate-table {
      min-width: 380px; /* Narrow mobile scroll */
      font-size: 0.89em;
    }
    .cracker-estimate-table th, .cracker-estimate-table td {
      font-size: 0.89em;
      padding: 3px 0;
      min-width: 33px;
    }
  }
  

.overall-bar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 12px auto;
    padding: 14px 0 14px 0;
    background: #fff5f5;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 6px #fff6e7;
  }
  
  .overall-label {
    color: #bc0073;
    font-weight: 700;
    font-size: 1.09em;
    letter-spacing: 0.02em;
  }
  
  .overall-total {
    color: #d45500;
    font-size: 1.15em;
    background: #fff8e9;
    border-radius: 4px;
    padding: 3px 16px;
    font-weight: 800;
    margin: 8px 0 11px 0;
    box-shadow: 0 1px 2px #ffe6dc inset;
    display: inline-block;
  }
  
  .order-now-btn-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: linear-gradient(90deg,#ff319c 50%,#ffae4a 100%);
    font-weight: 700;
    font-size: 1.07em;
    border: none;
    padding: 8px 27px;
    border-radius: 28px;
    cursor: pointer;
    box-shadow: 0 3px 9px #ffd7ea38;
    margin-top: 2px;
  }
  
  .cart-icon-center {
    color: #fff;
    font-size: 1.28em;
    vertical-align: middle;
  }
  
  @media (max-width: 600px) {
    .overall-bar-center {
      font-size: 0.98em;
      padding: 9px 0 9px 0;
      max-width: 100vw;
      border-radius: 8vw;
    }
    .order-now-btn-center {
      font-size: 0.98em;
      padding: 8px 15vw;
      border-radius: 12vw;
    }
    .overall-total {
      font-size: 1.05em;
      padding: 3px 8vw;
    }
  }
  





/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .about-section {
        padding: 40px 15px;
    }
    .header-text h1 {
        font-size: 2rem;
    }
    .about-content {
        padding: 20px;
        margin-top: 20px;
    }
    .about-content h2 {
        font-size: 1.7rem;
    }
    .btn-contact {
        padding: 10px 20px;
    }
}
