@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap");


/* Smooth scrolling for anchor links and mouse wheel */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for Webkit browsers (Chrome, Edge, Safari) */
body::-webkit-scrollbar {
  width: 12px;
  background: #f5f5f5;
}
body::-webkit-scrollbar-thumb {
  background: #b2bec3;
  border-radius: 6px;
  border: 3px solid #f5f5f5;
  transition: background 0.3s;
}
body::-webkit-scrollbar-thumb:hover {
  background: #636e72;
}

/* Custom scrollbar for Firefox */
body {
  scrollbar-width: thin;
  scrollbar-color: #b2bec3 #f5f5f5;
}
/* ===== CRITICAL CSS ===== */
.loader-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(0,0,0,0.12);
  border-top-color: #0e4930;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: #464646;
  font-weight: 300;
  line-height: 1.6;
  width: 100%;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
}

a, input, button {
  transition: ease-in-out 0.2s;
}

p:last-child {
  margin-bottom: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #0e4930;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
  transition: all 0.3s;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar .nav-link {
  color: #464646 !important;
  font-weight: 500;
  font-size: 14px;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar .nav-link:after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #0e4930;
  transition: width 0.3s;
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
}

.navbar .nav-link:hover:after,
.navbar .nav-link.active:after {
  width: calc(100% - 2rem);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  margin-right: 13px;
   background-color: #000000;
  color: white !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== SECTIONS ===== */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

#pagepiling .section {
  padding: 85px 0 40px;
}

/* ===== ALL PRODUCTS SECTION ===== */
#all-products {
  background: url('https://royalpapercups.com/assets/images/products_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: 10px;
}

.slogan-text {
  font-family: "Caveat", cursive;
  font-size: 4.3rem;
  color: #0b613d;
  font-weight: 600;
  margin-bottom: 10px;
}

.slider-hero{
  /* background-color: #0b613d; */
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== SUMMARY SECTION ===== */
#summary {
  background: #f8f9fa;
  margin: auto;
  display: flex;
  justify-content: center;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.column {
  flex: 1;
  min-width: 300px;
}

.main-title {
  font-size: 2.5rem !important;
  font-weight: 700;
  color: #0e4930;
  margin-bottom: 1.5rem;
  text-align: left;
   font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
  letter-spacing: 1px;
}

.main-colorr {
  color: #0e4930;
}

.sub-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0e4930;
  margin: 1.5rem 0 0.5rem;
  text-align: left;
}

.paragraph {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: left;
}

.banner-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #0e4930;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* ===== MANUFACTURE SECTION ===== */
#manufacture {
  background: white;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 900px;
  margin: 2rem auto 0 auto;
  justify-content: center;
}

.feature-card {
  flex: 1 1 180px;
  max-width: 200px;
  min-width: 140px;
  background: #f8f9fa;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: #0e4930;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  color: white;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0e4930;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-sec {
  background: #f8f9fa;
  margin-top: 40px;
}

.heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: #464646;
  margin-bottom: 30px;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.contact-details ul li {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: #464646;
}

.contact-details ul li i {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #0e4930;
  width: 30px;
}

.contact-social {
  margin-top: 30px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #f8f9fa;
  border-radius: 50%;
  margin-right: 10px;
  color: #464646;
  border: 2px solid #e9ecef;
}

.social-icon:hover {
  background: #0e4930;
  color: white;
  border-color: #0e4930;
}

/* Responsive modal layout for mobile */
#customModal .modal-content {
  display: flex;
  flex-direction: row;
  max-width: 700px;
  width: 95vw;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 600px) {
  #customModal .modal-content {
    flex-direction: column !important;
    max-width: 98vw;
    width: 98vw;
    min-width: unset;
    padding: 0;
    justify-content: center !important;
    
  }
  #customModal .modal-content > div,
  #customModal .modal-content > .modal-img-section {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 10px;
    border: 1px solid;
    margin: auto !important;
  }
  #customModal #modalImg {
    max-width: 98vw !important;
    max-height: 220px !important;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  #customModal .modal-content > div:last-child {
    padding: 20px 12px 18px 20% !important;
    margin: auto !important;
  }
}
@media (max-width: 400px) {
  #customModal .modal-content > div:last-child {
    padding: 20px 12px 18px 15% !important;
    margin: auto !important;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .slogan-text {
    font-size: 3rem;
  }
  
  .main-title {
    font-size: 2rem !important;
  }
  
  .row-custom {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 100px 0 40px;
  }
  
  .slogan-text {
    font-size: 2.8rem;
  }
  
  .main-title {
    font-size: 1.8rem !important;
    text-align: left;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .navbar-brand img {
    height: 40px;
  }
}

@media (max-width: 576px) {
  .slogan-text {
    font-size: 3rem;
  }
  
  .main-title {
    font-size: 1.6rem !important;
  }
  
  .heading {
    font-size: 2rem;
  }
  
  .container-custom {
    padding: 0 15px;
  }
}


.notprr{
  background-color: transparent !important;
}

/* ===== SLIDESHOW STYLES ===== */
.containerA1, .alpha6-container {
  max-width: 1200px;
  width: 100%;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background-color: white;
}

.containerA1 {
  height: 400px;
}

.wrapperC3, .gamma8-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.containerA1 .dotsI9 {
  display: none !important;
}

.slideD4, .delta9-slide {
  flex: 0 0 33.333%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  
  justify-content: flex-start;
  height: 350px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 0 8px;
  padding: 16px 8px 16px 8px;
  position: relative;
}
.slideD4 {
  transition: transform 0.3s;
}
.slideD4.active-slide {
  z-index: 2;
  transform: scale(1.1);
}

.imageE5, .epsilon10-image {
  width: 100%;
  max-width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 26px;
  transition: transform 0.3s ease;
}

.imageE5:hover, .epsilon10-image:hover {
  transform: scale(1.1);
}

.arrowF6, .zeta11-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.arrowF6:hover, .zeta11-arrow:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}

.prevG7, .eta12-prev {
  left: 15px;
}

.nextH8, .theta13-next {
  right: 15px;
}

.dotsI9, .iota14-dots {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.dotJ10, .kappa15-dot {
  width: 12px;
  height: 12px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dotJ10:hover, .kappa15-dot:hover {
  transform: scale(1.3);
}

.activeK11, .lambda16-active {
  background-color: #4a6ee0;
}

.btn-view-details {
  background: #fff;
  color: #0e4930;
  border-radius: 50px;
  padding: 6px 24px;
  font-size: 1rem;
  border: 2px solid #0e4930;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-view-details:hover {
  background: #157347;
  color: white;
}

@media (max-width: 768px) {
   .slideD4 {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
  .imageE5 {
    display: block;
    margin: 0 auto;
    height: 200px; /* or your preferred size */
    max-width: 200px;
    object-fit: cover;
  }
  .slideD4, .delta9-slide {
    flex: 0 0 100%;
  }
  
  .imageE5, .epsilon10-image {
    height: 250px;
  }
  
  .arrowF6, .zeta11-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .containerA1 {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .imageE5, .epsilon10-image {
    height: 200px;
  }
  
  .arrowF6, .zeta11-arrow {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* Make modal wider on desktop */
@media (min-width: 601px) {
  #productModal .modal-dialog {
    max-width: 700px;
  }
  .modal-cup-img {
    max-width: 100%;
    max-height: 340px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #f8f8f8;
    padding: 12px;
    margin: 0 auto 18px auto;
    display: block;
  }
}

/* Make only the first product slide's image smaller */
/* Make only the first cup (90ml) image small, everywhere it appears */
.containerA1 .cup-size-1 {
  max-width: 220px !important;
  height: 220px !important;
  margin-bottom: 26px;
  margin-top: 18px;
  object-fit: contain;
}
@media screen and (max-width: 600px) {
  .containerA1 .cup-size-1 {
    max-width: 180px !important;
    max-height: 180px !important;
    margin-bottom: 20px;
    margin-top: 10px;
    object-fit: contain;
  }
  .modal-content{
  width: 90% !important;
}
/* Make Bootstrap modal full width and height on mobile */
@media (max-width: 600px) {
  #productModal .modal-dialog {
    max-width: 98vw !important;
    margin: 10px auto !important;
  }
  #productModal .modal-content {
    padding: 10px 5px !important;
    border-radius: 10px;
  }
  #productModal .modal-body {
    padding: 20px 0 !important;
    margin-left: 10px;
  }
  .modal-cup-img {
    max-width: 95vw !important;
    max-height: 180px !important;
    width: auto;
    height: auto;
    margin-bottom: 12px;
    margin-top: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  #modalProductBody ul {
    max-width: 95vw !important;
    font-size: 1rem;
  }
  #productModal .modal-header {
    padding: 10px 10px 5px 10px;
  }
}

/* Optional: make modal title font a bit smaller on mobile */
@media (max-width: 600px) {
  #productModal .modal-title {
    font-size: 1.1rem;
  }
}
  
}
/* Responsive fix for second carousel (manufacture section) */
@media (max-width: 768px) {
  .gamma8-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  .delta9-slide {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 16px 8px 16px 8px;
    position: relative;
  }
  .epsilon10-image {
    width: 100%;
    max-width: 220px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 26px;
    transition: transform 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Responsive modal improvements for mobile devices */
@media (max-width: 600px) {
  #productModal .modal-dialog {
    max-width: 98vw !important;
    margin: 10px auto !important;
  }
  #productModal .modal-content {
    padding: 8px 2px !important;
    border-radius: 10px;
  }
  #productModal .modal-header {
    padding: 10px 10px 5px 10px;
  }
  #productModal .modal-title {
    font-size: 1.1rem;
  }
  #productModal .modal-body {
    padding: 10px 0 !important;
  }
  .modal-cup-img {
    max-width: 95vw !important;
    max-height: 180px !important;
    width: auto;
    height: auto;
    margin-bottom: 12px;
    margin-top: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 6px;
  }
  #modalProductBody ul {
    max-width: 95vw !important;
    font-size: 1rem;
    margin: 0 auto;
  }
}