/* 🌸 Diwali Pastel Festive Theme 🌸 */


/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Numans", sans-serif;
  background-color: var(--light-gray);
  color: var(--text-primary);
  overflow-x: hidden;
}
main {
  padding: 20px;
}

/* Header Styles */
header {
  background-color: var(--bg-header);
  padding: 0;
  color: var(--text-dark);
}

.warning-message {
  background-color: var(--bg-warning);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.main-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  gap: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: auto;
  width: 100px;
  border-radius: 50%;
}

@media (max-width: 767px){
  .logo{
    width: 63px;
  }
  .logo-container{
    gap: 5px;
  }
}


#title {
  margin: 0;
  text-align: left;
  color: var(--text-danger);
}

/* Carousel Styles */
#glc-carousel-51b7 {
  position: relative;
  width: 100%;
  margin: 28px auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--glc-surface);
  box-shadow: 0 16px 36px var(--glc-shadow);
  touch-action: pan-y;
}

.glc-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.glc-slide {
  position: relative;
  line-height: 0;
  user-select: none;
  background: var(--bg-slide);
  flex: 0 0 100%;
}

.glc-slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.glc-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glc-dots-panel);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px var(--glc-shadow);
  z-index: 5;
}

.glc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--glc-dot);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.glc-dot[aria-selected="true"] {
  background: var(--glc-dot-active);
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--glc-dot-ring);
}

.glc-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--glc-dot-ring);
}

/* Contact Info */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}
.svg-icons {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 5px;
}
.contact-item a {
  text-decoration: none;
  color: var(--text-primary);
}

/* Controls Section */
.mobile-controls {
  margin-bottom: 16px;
  background: var(--bg-white);
  box-shadow: 0 2px 4px var(--shadow-subtle);
  border-radius: 8px;
}

.accordion-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-accordion);
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.accordion-icon.rotate {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 16px;
}

.accordion-content.active {
  display: block;
}
.control-item {
  margin-bottom: 16px;
}

#controls-accordion input,
#controls-accordion select,
#controls-desktop input,
#controls-desktop select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-size: 16px;
}

#controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin: 16px;
}

/* Products Table */
.products-container {
  width: 100%;
}

.desktop-table {
  display: block;
}

.mobile-accordion {
  display: none;
}

.desktop-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
  box-shadow: 0 0 10px var(--shadow-subtle);
}

th,
td {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-medium);
}

th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.category-row td {
  background-color: var(--category-bg);
  font-weight: bold;
  text-align: center;
  padding: 5px;
}

.product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s;
}

.product-image:hover {
  transform: scale(1.1);
}

.quantity-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.quantity-controls button {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  border-radius: 4px;
}

.quantity-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 1em;
}

.highlight-row {
  background-color: var(--highlight-bg);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--modal-overlay-darker);
  padding-top: 50px;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  width: 90%;
  padding: 10px;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--shadow-medium);
  position: relative;
}

.modal-header {
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  text-align: center;
}

.close {
  color: var(--modal-close);
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

#modal-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.modal-text {
  padding: 20px;
}

.modal-text input {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

#phone-error {
  color: var(--modal-close);
  font-size: 0.9em;
  display: none;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-medium);
}

.modal-buttons button {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

#submit-button {
  background-color: var(--whatsapp-bg);
  color: var(--white);
}

#close-form {
  background-color: var(--button-red);
  color: var(--white);
}

.amount-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  background-color: var(--bg-amount-summary);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 20px;
  font-weight: 600;
}
.amount-summary #saved-amount {
  color: var(--text-success);
  font-size: 20px;
}
.amount-summary #total-amount-modal {
  color: var(--text-total-modal);
  font-size: 20px;
}

/* Floating Total & Icons */
#floating-total {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background-color: var(--text-primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 25px;
  font-weight: 600;
  z-index: 1000;
}

#ok-button {
  margin-left: 10px;
  background-color: var(--button-ok-bg);
  color: var(--button-ok-text);
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 20px;
  font-size: 20px;
}

#floating-icons {
  position: fixed;
  bottom: 80px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-button {
  background-color: var(--whatsapp-bg);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.floating-buttonp{
  background-color: var(--floating-phone-bg);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.floating-buttona {
  background-color: var(--floating-address-bg);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  /* Bounce animation add pannuren */
  animation: bounce 1s infinite;
}

/* Keyframes for bounce */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0); /* Original position */
  }
  40% {
    transform: translateY(-15px); /* Up */
  }
  60% {
    transform: translateY(-8px); /* Small bounce */
  }
}

/* Footer */
footer {
  background: var(--bg-footer);
  color: var(--white);
  padding: 20px 24px 24px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.company-info .footer-logo img {
  max-width: 160px;
}

.contact-us ul {
  list-style: none;
  padding: 0;
}

.contact-us li {
  margin: 12px 0;
}

.contact-us a {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.contact-us svg {
  width: 20px;
  height: 20px;
  fill: var(--text-white);
}

.follow-us .social-icons {
  display: flex;
  /* justify-content: space-around; */
  gap: 16px;
}

.follow-us a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--social-icon-bg);
}

.follow-us svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  margin-bottom: 50px;
}

.footer-links a {
  color: var(--white);
  margin: 0 12px;
  text-decoration: none;
}
.tamil-name {
  font-size: 17px;
  font-weight: 600;
}
td[data-label="Original Price"] { grid-area: original; font-size: 15px; color: var(--text-danger);}
td[data-label="Offer Price"] { grid-area: offer; font-size: 20px;color:var(--text-success);font-weight: 600; }
td[data-label="Total"] {font-weight: 600 ;}
/* --- Go To Top Button Styles --- */
.rupee::before {
  /* content: "₹"; */
  margin-right: 2px;
  
}

/* Quantity cell-ஐ badge-ன் parent ஆக மாற்றுகிறோம் */
td[data-label="Quantity"] {
  position: relative;
}

/* Badge-க்கான ஸ்டைல்கள் (சிவப்பு பின்னணி, வெள்ளை எழுத்து) */
.product-code-badge {
  position: absolute;
  top: 50%; /* ಮೇಲಿನಿಂದ ಇರುವ ಅಂತರ */
  left: 15%;
  transform: translateX(-50%);
  background-color: var(--text-danger); /* Red color from your theme */
  color: var(--text-white);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1; /* ಇತರ ಅಂಶಗಳ ಮೇಲೆ ಕಾಣಿಸಲು */
}

/* Badge-க்கு இடம் கொடுக்க, quantity பட்டன்களை కొద్దిగా క్రిందికి జరుపుతున్నాము */
.quantity-controls {
    margin-top: 18px; 
}
/* மொபைல் வியூவில் சிறிய மாற்றங்கள் */
@media (max-width: 900px) {
     .quantity-controls button {
    width: 25px;
    height: 25px;
  }
  .quantity-input{
    width: 25px;
    height: 25px;
  }
  th, td{
    padding: 6px;
  }
}


/* மொபைல் வியூவில் சிறிய மாற்றங்கள் */
@media (max-width: 767px) {
    .quantity-controls {
        margin-top: 15px; 
    }
    #glc-carousel-51b7{
      margin-bottom: 10px;
      margin-top: 0px;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
  main {
    padding: 10px;
  }
  #title{
    font-size: 20px;
  }
  #form-modal-header{
    font-size: 20px;
    font-weight: 600;
    text-align: center;
  }
  .amount-summary{
    font-size: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: center;
  }
  .main-header-content, .contact-info {
    flex-direction: row;
    text-align: left;
    padding: 5px;
    gap: 0px;
  }
  .contact-info{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .contact-item span {
    display: none;
  }
  .follow-us .social-icons {
    justify-content: space-around;
  }
  .desktop-controls, .desktop-table {
    display: none;
  }
  /* Add this code for centering the category row */
.mobile-accordion .category-row {
  display: flex; /* Use flexbox for simple centering */
  justify-content: center; /* Center horizontally */
  align-items: center;
  padding: 5px;
  background-color: var(--category-bg);
  font-weight: bold;
}

.mobile-accordion .category-row td {
  text-align: center;
  border: none; /* Remove the border from the cell */
  width: 100%;
}
  .mobile-controls, .mobile-accordion {
    display: block;
  }
  .mobile-accordion table{
    width: 100%;
  }
  .mobile-accordion tr {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas:
      "image name original"
      "image name offer"
      "links quantity total";
    padding: 5px;
    margin-bottom: 15px;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    background-color: var(--bg-white);
  }
  .mobile-accordion thead {
    display: none;
  }
  .mobile-accordion tr.highlight-row {
    background-color: var(--highlight-bg);
  }
  .mobile-accordion .category-row td {
    text-align: center;
  }

  .mobile-accordion td {
    border: none;
    padding: 3px;
    place-content: center;
  }
  
  td[data-label="Image"] { grid-area: image;display: none; }
  td[data-label="Name"] { grid-area: name; font-size: 12px;place-content: center; text-align: left;}
  td[data-label="Original Price"] { grid-area: original; font-size: 13px; color: var(--text-danger);}
  td[data-label="Quantity"] { grid-area: quantity; }
  td[data-label="Content"] {text-align: left;}
  td[data-label="Total"] { grid-area: total; font-weight: bold;}
  td[data-label="Links"] { grid-area: links; font-size: 12px;}
  td[data-label="Offer Price"] { grid-area: offer; font-size: 15px;color:var(--text-success);font-weight: 600; }
  .quantity-controls button {
    width: 25px;
    height: 25px;
  }
  .tamil-name{
    font-size: 15px;
    font-weight: 600;
  }
  .quantity-controls{
    justify-content: end;
  }
  .quantity-input {
    width: 30px;
    height: 25px;
  }
  #floating-total {
    bottom: 10px;
    right: 10px;
    font-size: 20px;
  }
  #ok-button {
            font-size: 19px;
        padding: 15px;
        width: 80px;
  }
 
  #goTopBtn{
    bottom: 60px;
    right: 10px;
  }
  #clear-button{
            font-size: 19px;
        padding: 15px;
        width: 80px;
  }
}

@media (max-width: 350px) {
#title{
  font-size: 17px;
}
}

@media (min-width: 768px) {
  .mobile-controls {
    display: none;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    width: 700px;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    width: 1000px;
  }
}

.info-modal {
  display: none; /* Initially hide the modal */
  position: fixed;
  z-index: 1002; /* Higher z-index to appear above other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--modal-overlay-darker);
  padding-top: 50px;
}

.copyright{
  color: var(--text-white);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  text-decoration: none;
}

/* --- Premium Modern Floating Bottom Action Bar --- */
#bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 74px; /* Enhanced padding footprint for modern screen profiles */
  background-color: rgba(0, 0, 0, 0.95); /* Frosted premium dark charcoal slate layout */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}

.total-display {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  flex-grow: 1;
}

#total-amount {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-color, #ffc107); /* Highlighting computed price metrics in prosperity gold */
  margin-left: 2px;
}

.bottom-bar-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-bar-buttons button {
  border: none;
  padding: 11px 32px;
  cursor: pointer;
  border-radius: 50px; /* Clean capsule pill-shape boundaries alignment mapping */
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 0;
}

.bottom-bar-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.bottom-bar-buttons button:active {
  transform: translateY(0);
}

#clear-button {
  background-color: #ef4444; /* Clean premium flat crimson red override */
  color: #ffffff;
}

#clear-button:hover {
  background-color: #dc2626;
}

#ok-button {
  background-color: #ffffff;
  color: var(--primary-color, #f55f0a); /* Locks color value cleanly with active workspace configuration rules */
}

#ok-button:hover {
  background-color: #f8fafc;
  color: #c94705;
}

/* Fluid responsive breakdown adaptation metrics */
@media (max-width: 600px) {
  #bottom-bar {
    padding: 0 14px;
    height: 66px;
  }

  .total-display {
    font-size: 1rem;
  }

  #total-amount {
    font-size: 1.2rem;
  }

  .bottom-bar-buttons button {
    font-size: 0.9rem;
    padding: 9px 22px;
  }
}

/* Tutorial Button (?) Styles */
#tutorial-button {
  background-color: var(--button-tutorial-bg);
  color: var(--button-tutorial-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px var(--shadow-medium);
  animation: bounce 1s infinite;
}

/* Keyframes for bounce (already in your CSS, no need to add again) */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-8px);
  }
}

/* Video Modal Styles */
#video-modal .modal-content {
  padding: 0;
  background-color: var(--bg-modal-video);
}

#video-modal video {
  display: block;
  border-radius: 12px;
}

.close-video {
  color: var(--modal-video-close-text);
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  z-index: 1002; /* Ensure it's above the video */
}

/* --- Noxlay Marketing Ad Styles --- */
.noxlay-ad-container {
  background-color: var(--bg-noxlay-ad);
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.noxlay-ad-container p {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.noxlay-ad-container p strong {
  color: var(--primary-color);
  font-weight: bold;
}

.noxlay-ad-button {
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.noxlay-ad-button:hover {
  background-color: var(--button-green-hover);
  transform: translateY(-2px);
}

/* --- Modern Image Modal Premium Styles --- */
#image-modal {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

#image-modal .modal-content {
  max-width: 430px;
  width: 92%;
  padding: 0;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(245, 95, 10, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  margin: auto;
}

#image-modal .modal-header {
  padding: 22px 24px 14px 24px;
  border-bottom: none;
  text-align: center;
  position: relative;
}

#modal-header-text {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  padding-right: 25px;
}

#image-modal .close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 20;
  color: #94a3b8;
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f5f9;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#image-modal .close:hover {
  color: var(--text-danger);
  background-color: #fee2e2;
  transform: rotate(90deg);
}

#modal-image {
  width: calc(100% - 32px);
  max-height: 65vh;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 16px;
  background-color: #f8fafc;
  padding: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

/* Add your new code right here */
.img-bunk{
  display: block;
}
.img-bunk-mo{
    display: none;
  }
@media (max-width: 767px){
  .img-bunk{
    display: none;
  }
  .img-bunk-mo{
    display: block;
    margin-top: 20px;
  }
}


/* ## INTHA CODE-AI UNGA STYLE.CSS-IN KADAISIYIL PASTE SEIYAVUM ## */

/* ---- Enquiry Billing Styles ---- */
.enq-invoice-container {
  max-width: 850px;
  margin: 20px auto;
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}
.enq-invoice-header {
  background-color: var(--enq-header-bg);
  color: var(--enq-header-text);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.enq-logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.enq-logo-text-wrapper .dyn-txt-company-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}
.enq-logo-container img {
  width: 120px;
  height: auto;
  border-radius: 50%;
}
.enq-company-name h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}
.enq-company-name p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}
.enq-header-details {
  text-align: right;
  font-size: 0.85rem;
}
.enq-invoice-details {
  padding: 20px;
  border-bottom: 1px solid var(--enq-border);
}
.enq-detail-box {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.enq-detail-box h3 {
  margin-top: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--enq-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.enq-detail-box p { margin: 2px 0; font-weight: 500; }
.enq-text-right { text-align: right; }
.enq-invoice-table-container { padding: 30px; overflow-x: auto;width: 98%; }
.enq-items-table { width: 100%; border-collapse: collapse; }
.enq-items-table th {
  background-color: var(--enq-th-bg);
  color: var(--enq-th-text);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border: var(--enq-th-text);
}
.enq-items-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--enq-border-row);
  font-size: 0.9rem;
  border: var(--enq-th-text);
}
.enq-items-table tbody tr:nth-child(even) { background-color: var(--enq-row-even-bg); }
.enq-items-table .item-name { font-weight: 600;text-align: left; }
.enq-items-table .enq-align-right { text-align: right; }
.enq-invoice-totals {
  padding: 30px;
  display: flex;
  justify-content: flex-end;
  background-color: var(--enq-totals-bg);
}
.enq-totals-table { width: 50%; max-width: 300px; }
.enq-totals-table td { padding: 10px; font-size: 0.9rem; border: none;}
.enq-totals-table .enq-label { font-weight: 500; color: var(--enq-text-muted); }
.enq-totals-table .enq-value { font-weight: 600; text-align: right; }
.enq-totals-table .enq-saved .enq-value { color: var(--enq-saved-text); }
.enq-grand-total { border-top: 2px solid var(--enq-border); margin-top: 10px; padding-top: 10px; }
.enq-grand-total .enq-label, .enq-grand-total .enq-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--enq-grand-total-text);
}
.enq-invoice-actions { padding: 20px 30px; text-align: center; }
.enq-print-button {
  background-color: var(--enq-print-btn-bg);
  color: var(--text-white);
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.enq-print-button:hover { background-color: var(--enq-print-btn-hover-bg); }

@media (max-width: 767px){
  .enq-invoice-header {
        flex-direction: row;
        padding:  10px 5px;
        gap: 0px;
        text-align: center;
        justify-content: space-between;
    }
    .enq-invoice-header .enq-logo-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .enq-invoice-header .enq-logo-text-wrapper .dyn-txt-company-name {
        font-size: 1.1rem;
        color: var(--enq-header-text);
    }
    .enq-invoice-header .enq-company-name p {
        font-size: 13px;
        color: var(--enq-header-text);
        text-align: left;
    }

    .enq-invoice-header .enq-header-details {
        text-align: right;
        font-size: 10px;
        color: var(--enq-header-text);
    }

    .enq-invoice-details {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }

    .enq-detail-box .enq-text-right {
        display: grid;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .enq-invoice-table-container, .enq-invoice-totals {
        padding: 0px;
    }
    .enq-logo-container img{
      width: 80px;
    }

    .enq-totals-table {
        width: 100%;
        max-width: none;
    }
    .enq-items-table th, .enq-items-table td {
        padding: 5px 5px;
        font-size: 0.7rem;
        
    }
    .enq-invoice-totals {
        padding: 10px;
        display: flex;
        justify-content: flex-end;
        background-color: var(--enq-totals-bg);
    }
    
    .enq-totals-table {
        width: 100%;
        /* max-width: 300px; */
    }
    
    .enq-totals-table td {
        padding: 5px;
        font-size: 0.9rem;
    }
    
    .enq-totals-table .enq-label {
        font-weight: 500;
        color: var(--enq-text-muted);
    }
    
    .enq-totals-table .enq-value {
        font-weight: 600;
        text-align: right;
    }
    
    
    
    .enq-grand-total {
        border-top: 2px solid var(--enq-border);
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .enq-grand-total .enq-label, .enq-grand-total .enq-value {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--secondary-color);
    }
}


@media print {
  body > *:not(.enq-invoice-container) {
      display: none;
  }
  .enq-invoice-container {
      box-shadow: none;
      margin: 0;
      max-width: 100%;
      border-radius: 0;
  }
  .enq-print-button{
    display: none;
  }
  .enq-invoice-actions { display: none; }
  .enq-invoice-actions, .whatsapp-send-section { display: none; }
  #toast-container {
  display: none;
}
.toast {
  display: none;
}

.toast.show {
display: none;
}

/* வண்ண வேறுபாடுகள் */
.toast.success {
  display: none;
}

.toast.error {
  display: none;
}


  .enq-invoice-header {
        flex-direction: row;
        padding:  10px 0px;
        gap: 0px;
        text-align: center;
        justify-content: space-between;
    }
    .enq-invoice-header .enq-logo-container {
        display: flex;
        align-items: center;
        gap:0px;
    }
    .enq-invoice-header .enq-company-name h1 {
        font-size: 22px;
        color: var(--enq-th-text);
    }
    .enq-invoice-header .enq-company-name p {
        font-size: 13px;
        color: var(--enq-th-text);
    }

    .enq-invoice-header .enq-header-details {
        text-align: right;
        font-size: 13px;
        color: var(--enq-th-text);
    }

    .enq-invoice-details {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }

    .enq-detail-box .enq-text-right {
        display: grid;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .enq-invoice-table-container, .enq-invoice-totals {
        padding: 0px;
    }

    .enq-totals-table {
        width: 100%;
        max-width: none;
    }
    .enq-items-table th, .enq-items-table td {
        padding: 5px 5px;
        font-size: 0.7rem;
    }
    .enq-invoice-totals {
        padding: 30px;
        display: flex;
        justify-content: flex-end;
        background-color: var(--enq-totals-bg);
    }
    
    .upi-payment-accordion, .upi-div {
      display: none;
    }
    
    .enq-totals-table {
        width: 50%;
        max-width: 300px;
    }
    
    .enq-totals-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .enq-totals-table .enq-label {
        font-weight: 500;
        color: var(--enq-text-muted);
    }
    
    .enq-totals-table .enq-value {
        font-weight: 600;
        text-align: right;
    }
    
    
    
    .enq-grand-total {
        border-top: 2px solid var(--enq-border);
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .enq-grand-total .enq-label, .enq-grand-total .enq-value {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--secondary-color);
    }
    #upi-payment-section {
        display: none !important;
    }
}

/* Loader Overlay Styles */
#loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--loader-overlay-bg);
  z-index: 10;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.loader-spinner {
  border: 5px solid var(--loader-spinner-bg);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

  /* Floating Share Button Style */
#ssfloating-share-btn {
    background-color: var(--floating-share-bg);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 12px var(--shadow-medium);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}



/* Modal (Dialog Box) Style */
#ssshare-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-overlay-darker);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s forwards;
}

/* Modal Content */
.ssmodal-content {
    background-color: var(--bg-white);
    margin: 10% auto;
    padding: 25px;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 20px var(--shadow-medium);
    text-align: center;
    transform: scale(0.9);
    animation: scaleUp 0.3s forwards;
}

/* Modal Title */
.ssmodal-content h2 {
    color: var(--text-dark);
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    margin-bottom: 20px;
}

/* Modal Buttons and Input Style */
.ssshare-options-btn {
    background-color: var(--button-share-portal-bg);
    color: var(--text-white);
    padding: 12px 20px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.fs{
  background-color: var(--button-share-portal-bg);
}
.fs:hover{
  background-color: var(--button-share-portal-hover-bg);
  transform: translateY(-2px);
}

/* Hover effect for buttons */
.ss:hover {
    background-color: #218838; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Input field */
#sscustom-name-input {
    width: calc(100% - 24px);
    padding: 12px;
    margin-top: 25px;
    font-size: 16px;
    border: 1px solid var(--border-input-light);
    border-radius: 8px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus effect on input field */
#sscustom-name-input:focus {
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Close Button Style */
.ssclose-btn {
    color: var(--modal-share-close-text);
    float: right;
    font-size: 32px;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Hover effect for the close button */
.ssclose-btn:hover {
    color: var(--modal-share-close-hover-text);
}

/* Keyframe animations for a smooth UI */
 @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
} 


/* ---- WhatsApp Send Section ---- */
.whatsapp-send-section {
    padding: 20px 30px;
    background-color: var(--enq-totals-bg);
    text-align: center;
    border-top: 1px solid var(--enq-border);
}
.whatsapp-send-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.whatsapp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}
#whatsapp-number-input {
    flex-grow: 1;
    max-width: 300px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--border-default);
    border-radius: 8px;
}
#send-whatsapp-btn {
    background-color: var(--whatsapp-bg);
}
#send-whatsapp-btn:hover {
    background-color: #128c7e;
}
.error-message {
    color: var(--text-danger);
    font-size: 0.9em;
    margin-top: 8px;
    height: 1em; /* Reserve space to prevent layout shift */
}

/* MODIFICATIONS for Preview and Back buttons */

/* Adjust the bottom bar to fit both 'P' and 'OK' buttons */
#bottom-bar .bottom-bar-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* Style for the new Preview button */
#preview-button {
  background-color: var(--button-preview-bg);
  color: var(--button-preview-text);
  font-weight: bold;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 8px var(--shadow-medium);
}

/* Style for the new "Back to Edit" button on the enquiry page */
#back-to-edit-btn {
  background-color: var(--button-back-edit-bg);
}

#back-to-edit-btn:hover {
  background-color: var(--button-back-edit-hover-bg);
}

/* On mobile, ensure the right-side buttons look good */
@media (max-width: 600px) {
  .bottom-bar-buttons {
    flex-grow: 1;
  }
  #back-to-edit-btn{
            width: 100%;
        padding: 14px;
        font-size: 1.1rem;
  }
  
  /* Ensure the right-side buttons are aligned to the right */
  #bottom-bar .bottom-bar-buttons:last-child {
    justify-content: flex-end;
  }
  .enq-print-button{
    padding: 10px;
    font-size: 13px;
  }
}

/* Make action buttons on enquiry page responsive */
.enq-invoice-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* ## START: CSS MODIFICATIONS FOR ENHANCED SHARE MODAL ## */

/* Hide the old preview button from the main page */
/* #preview-button {
  display: none;
} */

/* Flex container for the new button row in the modal */
.ss-modal-button-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding: 10px;
}

/* Base styles for action buttons in the top row */
.ss-modal-action-btn {
  background-color: var(--button-share-action-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-share-action);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex: 1;
  line-height: 1;
}

/* Hover effect for all modal buttons */
.ss-modal-action-btn:hover, .ssshare-options-btn:hover {
  background-color: var(--button-share-action-hover-bg);
  transform: translateY(-2px);
}

/* Styles for the larger portal buttons */
.ssshare-options-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

/* Style for SVG icons inside any modal button */
.ss-modal-action-btn svg, .ssshare-options-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Specific color for the WhatsApp buttons */
.ss-whatsapp-btn {
  background-color: var(--button-share-whatsapp-bg);
  color: var(--text-white);
  border-color: var(--button-share-whatsapp-bg);
}

.ss-whatsapp-btn:hover {
  background-color: var(--button-share-whatsapp-hover-bg);
}

/* Make SVG icons in WhatsApp buttons white */
.ss-whatsapp-btn svg {
  fill: currentColor;
}


/* Hide agent-specific and user-specific elements by default */
.ss-agent-view,
.ss-user-view {
  display: none;
}

/* Container for portal creation buttons */
.ss-portal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 600px){
  .ss-modal-action-btn {
    font-size: 11px;
  }
  .ssshare-options-btn{
    gap: 4px;
    font-size: 12px;
  }
}

/* ## START: STYLES FOR NEW FEATURES ## */

/* --- 🔹 Floating Cart Summary --- */
#floating-summary-container {
  position: fixed;
  top: 70%;
  right: 0;
  transform: translateX(100%);
  z-index: 999;
  background-color: var(--primary-color, #dc3545);
  color: var(--white, #fff);
  border-radius: 12px 0 0 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

#floating-summary-container.visible {
  transform: translateX(0);
}

.noxlay-summary-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 220, 220, 0.43);
  padding: 8px;

  cursor: pointer;
}

.noxlay-summary-box span {
  font-size: 20px;
  font-weight: 700;
}

.noxlay-summary-box label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

/* 🔹 Logo Button Image */
.noxlay-logo-box img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background-color: #fff;
  padding: 3px;
  border-radius: 9px;
}

/* --- 🔹 Modal --- */
.noxlay-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.noxlay-modal-content {
  background: #fff;
  color: #333;
  padding: 25px 30px;
  border-radius: 14px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: noxlayFadeIn 0.3s ease-in-out;
}

.noxlay-company-logo {
  width: 85px;
  margin-bottom: 12px;
}

.noxlay-close {
  position: absolute;
  top: 12px; right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.noxlay-close:hover {
  color: #000;
}

@keyframes noxlayFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- 🔹 Responsive Sidebar --- */
@media (max-width: 768px) {
  #floating-summary-container {
    top: auto;
    bottom: 10%;
    right: 5px;
    flex-direction: row;
    border-radius: 12px;
    padding: 8px;
  }

  .noxlay-summary-box {
    padding: 6px;
  }

  .noxlay-summary-box span {
    font-size: 14px;
  }

  .noxlay-summary-box label {
    font-size: 12px;
  }

  .noxlay-logo-box img {
    width: 36px;
    height: 36px;
  }
}


/* --- Style for the new Copy button --- */
#copy-enquiry-btn {
  background-color: var(--button-copy-bg);
}

#copy-enquiry-btn:hover {
  background-color: var(--button-copy-hover-bg);
}


/* --- Responsive adjustments for the new button --- */
@media (max-width: 600px) {
  #copy-enquiry-btn {
    padding: 10px;
    font-size: 13px;
  }
  #floating-icons{
    left: 7px;
  }
  /* --- Floating Cart Summary --- */
#floating-summary-container {
  position: fixed;
  top: 65%;
  right: 0;
  transform: translateX(100%); /* Initially hidden off-screen */
  z-index: 998;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 10px 0px 0px 10px;
  box-shadow: 0 4px 12px rgba(248, 194, 194, 0.74);
  transition: transform 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 0px;
  height: 133px;
}

#floating-summary-container.visible {
  transform: translateX(0); /* Slide in to view */
}

.summary-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 220 220 / 43%);
  padding: 5px;
  border-radius: 0px;
}

.summary-box span {
  font-size: 15px;
  font-weight: 700;
}

.summary-box label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
}
}

/* ## END: STYLES FOR NEW FEATURES ## */

/* ---- Filter Switch Styles ---- */
.filter-switch-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.filter-switch {
  display: flex;
  background-color: var(--filter-switch-bg);
  border-radius: 20px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--border-switch);
  width: 200px; /* Adjust width as needed */
}


.switch-button {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background-color: var(--filter-switch-btn-bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: var(--filter-switch-btn-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 16px;
  text-align: center;
}

.switch-button.active {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 2px 5px var(--shadow-switch-active);
}
@media (max-width: 768px) {
  .filter-switch{
    margin-bottom: 10px;
  }
  .filter-switch-container{
    justify-content: center;
 
    gap: 0px;
  }
}

@media (max-width: 767px){
  .filter-switch-container{
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0px;
  }
}

@media (max-width: 600px) {
  .filter-switch{
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ---- Infinite Scroll Sentinel Styles ---- */
.infinite-scroll-sentinel {
  width: 100%;
  height: 20px;
  margin-top: 10px;
  margin-bottom: 60px;
  pointer-events: none;
  visibility: hidden;
}

/* ---- Toast Notification Styles ---- */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1005;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--toast-default-bg);
  color: var(--text-white);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow-toast);
  font-size: 16px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
  min-width: 250px;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* வண்ண வேறுபாடுகள் */
.toast.success {
  background-color: var(--toast-success-bg);
}

.toast.error {
  background-color: var(--toast-error-bg);
}

/* ---- START: STYLES FOR ENHANCED SEARCH & QUICK ADD ---- */
.search-add-wrapper {
    display: grid;
    width: 100%;
    gap: 10px;
    
}
.search-bar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}


.search-add-wrapper input[type="text"] {
    flex-grow: 1; /* Search input takes available space */
}

.quantity-input-quick-add {
    width: 70px; /* Fixed width for quantity input */
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.suggestions-container {
    position: absolute;
    background-color: #ffffff;
    z-index: 1000;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.highlighted {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* 'Added' mode active-la irukum pothu, layout-a rendu column-a maatharom */
.search-add-wrapper.quick-add-active {
    grid-template-columns: 1fr 80px;
}

.quantity-input-quick-add {
    /* CSS மூலமா default-a maraikirom */
    display: none;
    width: 70px;
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

/* 'Added' mode active-la irukum pothu mattum quantity input-a kaaturom */
.search-add-wrapper.quick-add-active .quantity-input-quick-add {
    display: block;
}

/* ---- END: STYLES FOR ENHANCED SEARCH & QUICK ADD ---- */



/* 1. New container for mobile search/quantity outside the accordion */
.control-item.mobile-search-controls {
    display: none; /* Hide by default on desktop */
    padding: 16px; 
    background: var(--bg-white);
    box-shadow: 0 2px 4px var(--shadow-subtle);
    border-radius: 8px;
    margin-bottom: 16px;
    border-top: 1px solid var(--border-default);
}

@media (max-width: 767px) {
    .control-item.mobile-search-controls {
        display: block; /* Show the new container only on mobile */
    }
    .search-add-wrapper input[type="text"]{
      padding: 10px;
      border: 1px solid black;
      border-radius: 10px;
    }
    
}

/* ## START: IMAGE COLUMN & MODAL STYLES ## */

/* டெஸ்க்டாப் வியூவில் படத்திற்கான தலைப்பு மற்றும் செல் */
.th-image {
  text-align: center;
}

.td-image {
  text-align: center;
  padding: 5px; /* படத்தைச் சுற்றி சிறிய இடைவெளி */
}

/* டேபிளில் உள்ள படத்திற்கான ஸ்டைல் */
.product-image {
  width: 50px;
  height: 50px;
  object-fit: cover; /* படத்தை சதுரத்திற்குள் சரியாகப் பொருத்த */
  border-radius: 8px; /* படத்திற்கு வளைந்த முனைகள் */
  cursor: pointer;    /* கிளிக் செய்யலாம் என்பதைக் காட்ட */
  transition: transform 0.2s ease; /* சிறிய அனிமேஷன் */
}

.product-image:hover {
  transform: scale(1.1); /* Hover செய்யும்போது படத்தை பெரிதாக்க */
}

/* Modal-இல் உள்ள படத்திற்கான ஸ்டைல் */
#modal-image {
  width: 100%;
  max-height: 70vh; /* Modal உயரத்திற்கு ஏற்ப படத்தை சரிசெய்ய */
  object-fit: contain;
  display: block;
  padding: 10px;
}


/* மொபைல் வியூ மாற்றங்கள் */
@media (max-width: 767px) {
  
  /* படத்திற்கான செல் ஸ்டைல் */
  td[data-label="Image"] { 
    grid-area: image; 
    display: flex;
    align-items: center;
    justify-content: center;
  }

  td[data-label="Name"] {
    text-align: left;
    align-self: center;
  }
}

/* ## END: IMAGE COLUMN & MODAL STYLES ## */

/* ---- புதிய Spinning Radio Button (உங்கள் கலர் தீம் + ஒரு வரிசை லேஅவுட்) ---- */

/* அனிமேஷனுக்கான Keyframes (இது மாறாது) */
@keyframes spin-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ஃபில்டர்களின் முக்கிய கண்டெய்னர் (ஒரு வரிசை + உங்கள் கலர் தீம்) */
.brand-filters {
  display: flex;
  flex-direction: row; /* ஒரே வரிசையில் வர */
  justify-content: space-around; /* விருப்பங்களுக்கு இடையில் சமமான இடைவெளி */
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  max-width: 500px;
  background-color: var(--bg-white); /* உங்கள் கலர் பேலட்டில் இருந்து */
  border-radius: 15px;
  box-shadow: 0 4px 12px var(--shadow-subtle); /* ஒரு சிறிய நிழல் */
}

/* இது மாறாது */
.brand-filter-item input[type="radio"] {
  display: none;
}

/* லேபிள்களுக்கான ஸ்டைல் (உங்கள் கலர் தீம்) */
.brand-filter-item label {
  display: flex;
  align-items: center;
  gap: 10px; /* பட்டனுக்கும் எழுத்துக்கும் இடையில் இடைவெளி */
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted); /* உங்கள் கலர் பேலட்டில் இருந்து */
  transition: color 0.3s ease;
}

/* நாம் உருவாக்கும் புதிய ரேடியோ பட்டன் (உங்கள் கலர் தீம்) */
.custom-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background-color: var(--border-default); /* உங்கள் கலர் பேலட்டில் இருந்து */
  transition: background-color 0.2s ease;
}

/* தேர்ந்தெடுக்காத பட்டனுக்குள் இருக்கும் மெல்லிய வளையம் (உங்கள் கலர் தீம்) */
.custom-radio::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--bg-white); /* கண்டெய்னரின் பின்னணி நிறம் */
  border-radius: 50%;
}

/* --- தேர்ந்தெடுக்கப்பட்ட நிலைக்கான (SELECTED State) ஸ்டைல்கள் --- */

/* ஒரு பட்டன் தேர்ந்தெடுக்கப்பட்டால், இந்த ஸ்டைல்கள் வேலை செய்யும் */
.brand-filters input[type="radio"]:checked + label .custom-radio {
  /* உங்கள் பிராண்ட் நிறங்களைப் பயன்படுத்தி சுழலும் பார்டர் */
  background: conic-gradient(from 180deg at 50% 50%, var(--accent-color) 0%, var(--primary-color) 100%);
  animation: spin-gradient 2s linear infinite;
}

/* தேர்ந்தெடுக்கப்பட்ட பட்டனின் உள் வட்டத்தை உருவாக்குகிறது (உங்கள் கலர் தீம்) */
.brand-filters input[type="radio"]:checked + label .custom-radio::before {
  width: 18px;
  height: 18px;
  background: var(--bg-white); /* கண்டெய்னரின் பின்னணி நிறம் */
}

/* தேர்ந்தெடுக்கப்பட்ட பட்டனின் மையத்தில் புள்ளியை உருவாக்குகிறது */
.brand-filters input[type="radio"]:checked + label .custom-radio::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary-color); /* உங்கள் பிராண்ட் நிறம் */
  border-radius: 50%;
}

/* தேர்ந்தெடுக்கப்பட்ட லேபிளின் எழுத்து நிறத்தை மாற்றுகிறது (உங்கள் கலர் தீம்) */
.brand-filters input[type="radio"]:checked + label {
    color: var(--text-primary); /* உங்கள் கலர் பேலட்டில் இருந்து */
    font-weight: 600;
}

@media (max-width: 768px) {
  .brand-filters{
      margin-bottom: 15px;
      width: 100%;
  }
}

/* ---- புதிய Tag Filter Styles (தனி ஸ்டைல்) ---- */

.tags-filter {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 15px;
  padding: 10px;
  /* max-width ஐ அகற்றுவதால், மற்ற ஃபில்டர்களுடன் ஒரே வரியில் சரியாகப் பொருந்தும் */
  background-color: var(--bg-white);
  border-radius: 15px;
  box-shadow: 0 4px 12px var(--shadow-subtle);
}

.tag-filter-item input[type="radio"] {
  display: none;
}

.tag-filter-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.tags-filter .custom-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background-color: var(--border-default);
  transition: background-color 0.2s ease;
}

.tags-filter .custom-radio::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--bg-white);
  border-radius: 50%;
}

/* --- தேர்ந்தெடுக்கப்பட்ட நிலைக்கான ஸ்டைல்கள் --- */

.tags-filter input[type="radio"]:checked + label .custom-radio {
  background: conic-gradient(from 180deg at 50% 50%, var(--accent-color) 0%, var(--primary-color) 100%);
  animation: spin-gradient 2s linear infinite;
}

.tags-filter input[type="radio"]:checked + label .custom-radio::before {
  width: 18px;
  height: 18px;
  background: var(--bg-white);
}

.tags-filter input[type="radio"]:checked + label .custom-radio::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

.tags-filter input[type="radio"]:checked + label {
    color: var(--text-primary);
    font-weight: 600;
}

/* மொபைல் வியூவிற்கான ஸ்டைல்கள் */
@media (max-width: 768px) {
  .tags-filter {
      margin-bottom: 15px;
      width: 100%;
  }
}
/* மொபைல் வியூவிற்கான ஸ்டைல்கள் */
@media (max-width: 400px) {
.tag-filter-item label ,.brand-filter-item label{
  font-size: 15px;
  gap: 5px;
}

}


/* START: DYNAMIC ANIMATED COUNTDOWN STYLES (v2) */
#sale-countdown-timer-block {
  padding: 15px 10px;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  margin-top: 25px;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.countdown-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.time-segment {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 15px;
  min-width: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.time-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  /* text-shadow: 
    0 0 5px #fff, 
    0 0 10px #fff, 
    0 0 20px var(--accent-color), 
    0 0 30px var(--accent-color), 
    0 0 40px var(--accent-color); */
}

.time-label {
  font-size: 0.7rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 5px;
}

.time-separator {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-weight: bold;
  padding-bottom: 20px;
  text-shadow: 0 0 8px var(--accent-color);
}

.animated-message {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  padding: 10px 0;
  min-height: 45px;
}

.animated-message span {
  display: inline-block;
  animation: wave-glow 2.5s infinite;
  animation-delay: var(--i); 
}

/* This is the style for the secondary message */
.days-left-message {
  color: #fff;
  margin-top: 15px;
  font-style: italic;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

@keyframes wave-glow {
  0%, 100% {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 5px var(--primary-color);
  }
  50% {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 10px #fff, 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
  }
}

@media (max-width: 600px) {
  .time-value { font-size: 1.8rem; }
  .time-segment { min-width: 55px; padding: 8px 10px; }
  .time-separator { font-size: 1.8rem; }
  .animated-message { font-size: 1rem; min-height: 35px; }
}

@media (max-width: 400px){
.time-label{
  font-size: .5rem;
}
}
/* END: DYNAMIC ANIMATED COUNTDOWN STYLES (v2) */

#lottie-scroll-animation-container {
    /* Positioning: Fixed to the exact center of the screen */
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Keeps it on top of everything */

    /* Visibility & Interaction */
    opacity: 1; /* Starts visible */
    transition: opacity 0.5s ease-in-out; /* Smooth fade out */
    pointer-events: none; /* Allows you to click through the animation */
  }

  /* This is the hidden state */
  #lottie-scroll-animation-container.hidden {
    opacity: 0;
  }

  /* Styling your Lottie animation player */
  #lottie-scroll-animation-container dotlottie-wc {
    width: 400px;
    height: 400px;
    /* This shadow helps it stand out on any background */
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.3));
  }

  
  /* --- NOXLAY UNIQUE ENQUIRY MODAL STYLES --- */

/* Modal Background Overlay */
.nox-enq-modal {
    display: none;
    position: fixed;
    z-index: 2000; /* எல்லாற்றிற்கும் மேலே */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark Overlay */
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    animation: noxFadeIn 0.3s ease;
}

/* Modal Content Box */
.nox-enq-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 400px; /* Mobile-friendly width */
    margin: 10% auto; /* Center alignment fix */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.nox-enq-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #333;
    font-weight: 700;
}

.nox-enq-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Close Button */
.nox-enq-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}
.nox-enq-close:hover { color: #000; }

/* Phone Input Style */
.nox-enq-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
    margin-bottom: 20px;
}

.nox-enq-input:focus {
    border-color: var(--primary-color, #f55f0a);
}

/* --- CLOUDFLARE STYLE CAPTCHA BOX --- */
.nox-captcha-container {
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.2s;
    user-select: none;
}

.nox-captcha-container:hover {
    background-color: #f0f0f0;
}

/* 1. Initial Checkbox */
.nox-captcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 4px;
    background: #fff;
}

/* 2. Loading Spinner (Hidden by default) */
.nox-captcha-spinner {
    display: none;
    width: 28px;
    height: 28px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50; /* Green spinner */
    border-radius: 50%;
    animation: noxSpin 1s linear infinite;
}

/* 3. Success Checkmark (Hidden by default) */
.nox-captcha-success {
    display: none;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.nox-checkmark-icon {
    width: 28px;
    height: 28px;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: noxDrawCheck 0.5s ease forwards;
}

/* Captcha Text */
.nox-captcha-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Error Message */
.nox-enq-error {
    color: #d32f2f;
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Submit Button */
.nox-enq-btn {
    width: 100%;
    padding: 12px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}

.nox-enq-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.nox-enq-btn:hover:not(:disabled) {
    background-color: #1ebc57;
}

/* --- CSS UPDATE FOR CAPTCHA FLOW --- */

/* Phone Number டைப் செய்யும் வரை இது Disable ஆக இருக்கும் */
.nox-captcha-disabled {
    opacity: 0.5; /* மங்கலாக தெரியும் */
    pointer-events: none; /* கிளிக் செய்ய முடியாது */
    filter: grayscale(100%); /* கருப்பு வெள்ளையாக தெரியும் */
    cursor: not-allowed;
    transition: all 0.3s ease;
}

/* Submit பட்டன் Disable ஆக இருக்கும்போது */
.nox-enq-btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
}

/* Keyframe Animations */
@keyframes noxSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes noxDrawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes noxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .nox-enq-content {
        width: 95%;
        padding: 20px;
    }
    .nox-captcha-label {
        font-size: 13px;
    }
}

/* Puthu Bill Preview Total Row Styles */
.enq-totals-table #enq-discount-row .enq-value {
    color: var(--text-danger); /* Sivappu color */
}
.enq-totals-table .enq-gst-row .enq-label {
    color: var(--text-light);
    font-weight: 500;
    padding-left: 15px; /* Konjam ulla thalli kaatta */
    font-size: 0.85rem;
}
.enq-totals-table .enq-gst-row .enq-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

#enq-customer-name-row {
    font-size: 1.1rem; /* Konjam periyadaga kaatta */
    font-weight: 500;
    color: var(--primary-color); /* Ungal theme color-il kaattum */
    border-bottom: 1px dashed var(--border-color); /* Oru chinna line */
    padding-bottom: 5px;
    margin-bottom: 5px;
}

#enq-customer-name {
    font-weight: 600; /* Peyar mattum konjam bold aaga */
}

/* ========================================= */
/* == PUTHU BUTTON STYLES (NEW BUTTON STYLES) == */
/* ========================================= */

/* Button container-ai flex-aaga maatrugirom */
.enq-invoice-actions {
  display: flex;
  flex-wrap: wrap; /* Chinna screen-il kilee varum */
  justify-content: center;
  gap: 15px;
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid var(--enq-border-row); /* Oru chinna line */
}

/* Palaya 'enq-print-button' style-ai override seithu maraikkirom */
.enq-print-button {
    display: none !important; 
}

/* Puthu button-in pothu (common) style */
.enq-action-btn {
  display: inline-flex; /* Icon matrum text-ai ore variyil vaikka */
  align-items: center;
  justify-content: center;
  gap: 10px; /* Icon-kum text-kum idaiyil idaiyaveli */
  
  border: none;
  border-radius: 50px; /* Muzhu vatta vadivam (Pill shape) */
  padding: 12px 24px;
  
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Button hover seiyyum pothu siriya effect */
.enq-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* --- Nira (Color) Variations --- */

/* Blue Button (Share/OK) */
.enq-action-btn.btn-blue {
  background-color: #007bff; /* Ungal image-il ulla blue */
}
.enq-action-btn.btn-blue:hover {
  background-color: #0056b3;
}

/* Red Button (Edit/Back) */
.enq-action-btn.btn-red {
  background-color: #dc3545; /* Ungal image-il ulla red */
}
.enq-action-btn.btn-red:hover {
  background-color: #c82333;
}

/* Green Button (Print) */
.enq-action-btn.btn-green {
  background-color: #28a745; /* Ungal image-il ulla green */
}
.enq-action-btn.btn-green:hover {
  background-color: #218838;
}

/* Grey Button (Copy) */
.enq-action-btn.btn-grey {
  background-color: #6c757d; /* Oru standard grey */
  color: white;
}
.enq-action-btn.btn-grey:hover {
  background-color: #5a6268;
}
.enq-action-btn.btn-dark-slate {
  background-color: #334155; /* Corporate dark slate design layout */
}
.enq-action-btn.btn-dark-slate:hover {
  background-color: #1e293b;
}

/* Unlocked UPI Card Display Grid Layout Definitions (Premium Styled Dropdown & Panel) */
.enq-unlocked-panel-card {
    max-width: 850px;
    margin: 20px auto;
    background-color: #fff8f5; /* Soft saffron tint accent */
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 6px 18px rgba(245, 95, 10, 0.08);
    box-sizing: border-box;
    animation: uniqueFadeIn 0.3s ease;
}
.enq-panel-inside-flexbar {
    display: grid;
    grid-template-columns: 1fr auto; /* Two-column grid layout locking controls neatly */
    gap: 15px;
    align-items: center;
}
.qr-selection-dropdown-menu {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
}
.qr-selection-dropdown-menu:focus {
    border-color: var(--primary-color);
}
#enq-client-qr-generate-action-btn {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s ease, transform 0.2s ease;
}
#enq-client-qr-generate-action-btn:hover {
    background-color: var(--button-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
#enq-client-qr-generate-action-btn:active {
    transform: translateY(0);
}
.enq-client-layer-hidden {
    display: none !important;
}
.qr-rendered-image-element {
    width: 250px;
    height: 250px;
    display: block;
    object-fit: contain;
}

/* Premium Gate Authorization Modal Style Rules Layout */
.enq-gate-modal-premium-box {
    background-color: var(--white);
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-top: 5px solid var(--primary-color);
    animation: scaleUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}
.enq-gate-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.enq-gate-lock-icon {
    color: var(--primary-color);
}
.enq-gate-modal-muted-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 500;
}
.enq-gate-premium-password-field {
    width: 100%;
    padding: 12px;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 2px;
    border: 2px solid var(--border-default);
    border-radius: 8px;
    text-align: center;
    outline: none;
    transition: border-color 0.25s ease;
    margin-bottom: 5px;
}
.enq-gate-premium-password-field:focus {
    border-color: var(--primary-color);
}
.enq-gate-premium-error-msg {
    color: var(--text-danger);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 5px;
}
.enq-gate-modal-actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.enq-gate-btn {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.enq-gate-btn-cancel {
    background-color: var(--bg-accordion);
    color: var(--text-dark);
}
.enq-gate-btn-cancel:hover {
    background-color: #d1d5db;
}
.enq-gate-btn-confirm {
    background-color: var(--primary-color);
    color: #fff;
}
.enq-gate-btn-confirm:hover {
    background-color: #c94705;
}

/* Premium Dynamic QR Modal Box Layout Framework */
.enq-premium-qr-modal-box-frame {
    background-color: var(--white);
    width: 92%;
    max-width: 440px;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 5px solid var(--secondary-color);
    animation: scaleUp 0.25s ease;
}
.enq-premium-qr-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.enq-premium-qr-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.enq-premium-qr-close-x {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}
.enq-premium-qr-close-x:hover {
    color: var(--text-danger);
}
.enq-premium-qr-display-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fcfdfd;
}
.enq-premium-qr-rendered-canvas-holder {
    padding: 15px;
    background-color: #fff;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    justify-content: center;
    align-items: center;
}
.enq-premium-qr-meta-amount {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.enq-premium-qr-meta-amount span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary-color);
}
.enq-premium-qr-footer-actions-bar {
    padding: 15px 20px;
    background-color: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.enq-premium-qr-action-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    transition: background-color 0.2s ease;
}
.enq-qr-btn-download { background-color: #4b5563; } /* Slate grey */
.enq-qr-btn-download:hover { background-color: #374151; }
.enq-qr-btn-share-link { background-color: #0284c7; } /* Sky blue */
.enq-qr-btn-share-link:hover { background-color: #0369a1; }
.enq-qr-btn-share-img { background-color: #16a34a; } /* WhatsApp green */
.enq-qr-btn-share-img:hover { background-color: #15803d; }

@media (max-width: 600px) {
    .enq-panel-inside-flexbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Fixed: Missing full-screen hidden backdrop backdrop layouts for client verification gate prompt and dynamic QR modals */
.custom-nav-modal-overlay {
    display: none; /* Keeps it completely hidden on initial bill preview screen load */
    position: fixed;
    z-index: 5000; /* Positions the verification gate layout perfectly above core layout components stacks */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    place-items: center;
}
.gallery-modal-hidden {
    display: none !important; /* Keeps the checkout QR generator popup window container modal hidden until password verifies */
}

/* Chinna screen-il button-gal sariyaga therivatharku */
@media (max-width: 600px) {
  .enq-invoice-actions {
    display: grid; 
    grid-template-columns: 1fr 1fr;/* Ondru kilee ondru */
    padding: 20px 15px;
    gap: 12px;
  }
  
  .enq-action-btn {
    width: 100%; /* Full width */
    padding: 14px; /* Konjam periyathaga */
    font-size: 1.1rem;
  }
}

/* Print seiyyum pothu intha puthu button-galaiyum maraikkavum */
@media print {
  .enq-invoice-actions {
    display: none !important;
  }
}

/* ========================================= */
/* == 1. PRINT TABLE BORDER FIX (பிரிண்ட் பார்டர்) == */
/* ========================================= */
@media print {
    .enq-items-table {
        border-collapse: collapse !important;
        width: 100%;
    }
    
    /* Table Header மற்றும் Cells-க்கு பார்டர் */
    .enq-items-table th, 
    .enq-items-table td {
        border: 1px solid #000 !important; /* கருப்பு நிற பார்டர் */
        padding: 8px !important;
    }
    
    /* தேவையில்லாத இடங்களை மறைக்க */
    .enq-invoice-container {
        box-shadow: none !important;
        border: none !important;
    }
}

/* ========================================= */
/* == 2. TOTALS GRID DESIGN (கிரிட் டிசைன்) == */
/* ========================================= */

/* பழைய Table ஸ்டைலை மறைத்து, புதிய Grid-ஐ செட் செய்கிறோம் */
.enq-totals-box {
    width: 100%; /* அதிகபட்ச அகலம் */
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* ஒவ்வொரு வரிக்கும் இடைவெளி */
}

/* ஒவ்வொரு வரியும் (Row) ஒரு Grid */
.enq-row-div {
    display: grid;
    grid-template-columns: 1fr 1fr; /* சமமான இரண்டு பத்திகள் */
    align-items: center;
}

/* வலது பக்கம் இருக்கும் தொகை */
.enq-row-div span:last-child {
    text-align: right;
    font-weight: 600;
    color: #333;
}

/* Grand Total - தனி ஸ்டைல் (முழு அகலம்) */
.enq-grand-total-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--primary-color); /* மேலே ஒரு கோடு */
    margin-top: 10px;
    padding-top: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color); /* உங்கள் தீம் கலர் */
}

/* factory_buddy.css */

/* லோகோவையும் டெக்ஸ்ட்டையும் செங்குத்தாக (Vertical) அடுக்க */
.logo-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* இடது பக்கம் ஒட்டி இருக்கும் */
    gap: 5px;
}

/* GST டெக்ஸ்டுக்கான பொதுவான ஸ்டைல் */
.enq-gst-text {
    font-size: 0.9rem;
    margin-top: 2px;
}

/* மொபைல் வியூவில் (Mobile View) சென்டராகக் காட்ட */
@media (max-width: 767px) {
    .logo-wrapper {
        align-items: center; /* மொபைலில் சென்டர் */
    }
    .enq-gst-text {
        font-size: 0.8rem; /* மொபைலில் எழுத்து அளவு சிறிது */
    }
    .enq-totals-box{
      font-size: 12px;
    }
    #sale-countdown-timer-block{
      margin-top: 10px;
      margin-bottom: 5px;
    }
}

/* === SAVED ESTIMATION BILL CSS FIX === */

/* 1. Totals Box-ஐ Grid ஆக மாற்றுகிறோம் (2 Columns) */
.enq-totals-box {
    display: grid;
    grid-template-columns: 1fr 1fr; /* இரண்டு சமமான காலம்கள் */
    gap: 8px 20px; /* வரிசை மற்றும் காலம்களுக்கு இடைவெளி */
    width: 100%;
}

/* 2. சாதாரண வரிசைகள் (Total Qty, Sub Total...) */
.enq-row-div {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

/* 3. Grand Total - முழு வரிசையிலும் வர (Full Width) */
.enq-grand-total-div {
    grid-column: 1 / -1; /* இரண்டு காலம்களையும் சேர்த்து எடுக்கும் */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #333;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
}

/* 4. Print-ல் சரியாக வர */
@media print {
    .enq-totals-box {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
    .enq-grand-total-div {
        grid-column: 1 / -1 !important;
    }
}

/* ========================================= */
/* ==   NOXLAY B2C CARD VIEW STYLES       == */
/* ========================================= */

/* Grid Container Layout */
.nox-grid-container {
  display: grid;
  gap: 15px;
  padding: 10px 0;
  width: 100%;
}

/* Category Header in Grid */
.nox-grid-category-header {
  grid-column: 1 / -1; /* Full Width */
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: left;
  padding-bottom: 5px;
  text-transform: uppercase;
}

/* Desktop: 4 Cards per row */
@media (min-width: 1301px) {
  .nox-grid-container {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 1300px) {
  .nox-grid-container {
    grid-template-columns: repeat(5, 1fr);
  }
}
/* Desktop: 4 Cards per row */
@media (max-width: 1024px) {
  .nox-grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile: 2 Cards per row */
@media (max-width: 767px) {
  .nox-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; /* மொபைலில் இடைவெளி கொஞ்சம் குறைவு */
  }
}

/* Mobile: 2 Cards per row */
@media (max-width: 767px) {
  .nox-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .nox-grid-category-header {
    font-size: 16px;
    margin-top: 15px;
  }
}

/* --- Card Design --- */
.nox-product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.nox-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px var(--shadow-medium);
  border-color: var(--primary-color);
}

/* Image Section */
.nox-card-image-box {
  width: 100%;
  height: 140px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nox-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.nox-card-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}

/* Divider */
.nox-card-divider {
  height: 2px;
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  width: 100%;
}

/* Details Section */
.nox-card-details {
  padding: 8px;
  flex-grow: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nox-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
  height: 34px; /* 2 lines fixed height */
  overflow: hidden;
}

.nox-card-tamil {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 5px;
}

/* Price Section (B2C Specific) */
.nox-card-price-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.nox-card-mrp {
  font-size: 12px;
  color: var(--text-danger);
  text-decoration: line-through;
}

.nox-card-offer {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-success);
}

/* Quantity & Total */
.nox-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.nox-card-qty-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nox-card-qty-ctrl button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.nox-card-qty-ctrl input {
  width: 40px;
  height: 28px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: bold;
}

.nox-card-total {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 20px;
}

/* Highlight Selected Card */
.nox-product-card.highlight-card {
  border: 2px solid var(--secondary-color);
  background-color: var(--category-bg);
}

@media (max-width: 767px) {
    .nox-card-image-box { height: 110px; }
    .nox-card-title { font-size: 12px; }
    .nox-card-qty-ctrl button { width: 24px; height: 24px; font-size: 14px; }
    .nox-card-qty-ctrl input { width: 35px; height: 24px; font-size: 12px; }
}

/* --- Product Card Social Icons --- */
.nox-card-social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 0 0;
    background-color: var(--bg-white);
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white);
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.youtube-btn {
    background-color: #FF0000;
}
.instagram-btn {
    background: #f09433; 
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
}

/* --- Product Row (List View) Social Icons --- */
.nox-row-social-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* மொபைல் வியூவில் படத்திற்கு கீழே ஐகான்கள் சரியாக வர */
@media (max-width: 767px) {
    td[data-label="Image"] { 
        flex-direction: column; 
    }
}

/* --- Content Column (10 Pcs & Social Icons) --- */
.td-content-group {
    text-align: center !important;
    vertical-align: middle;
}

.list-content-text {
    font-size: 13px; /* 10 Pcs text-ஐ சிறியதாக்க */
    font-weight: 600;
    display: block;
    margin: 4px auto; /* டெக்ஸ்டுக்கும் ஐகானுக்கும் இடைவெளி */
    color: var(--text-color, #333);
}

.nox-row-social-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}


 @media (max-width: 1280px) {
  td[data-label="Quantity"]{
    position: static;
  }
  .product-code-badge{
    position: static;
  }
 }

/* மொபைல் வியூவில் 10 Pcs மற்றும் ஐகான்கள் இடதுபுறம் (Left Align) சரியாக வர */
@media (max-width: 767px) {
    td[data-label="Content"].td-content-group {
        text-align: left !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    
    .nox-row-social-icons {
        justify-content: flex-start;
    }
    
    /* இமேஜ் காலமில் நாம் முன்பு செய்த மாற்றத்தை மீட்டமைக்கிறோம் */
    td[data-label="Image"] { 
        flex-direction: row; 
    }
    .filter-switch-div{
  display: flex;
  width: 100%;
  gap: 10px;
}
.warning-message{
  font-size: 12px;
}
 td[data-label="Quantity"]{
    position: relative;
  }
  .product-code-badge{
    position: absolute;
  }
}

 .filter-switch-div{
 display: flex;
 gap: 10px;
 }



