@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif; /* Fixed: Use Poppins consistently */
}

:root {
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --lo: #30894c;
  --accent: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  background-color: var(--light);
  color: var(--gray-800);
  line-height: 1.6;
}

/* Notification bar - Consolidated and fixed contrast */
.notification-bar {
  background: linear-gradient(90deg, var(--lo), var(--lo));
  color: white; /* Fixed: White text for accessibility */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: relative;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: var(--transition);
  background: none;
  border: none;
}

.close-btn:hover { 
  opacity: 1; 
}

/* Hero */
.hero-section {
  color: white;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.custom-hr {
  width: 80px;
  height: 4px;
  background: var(--accent);
  border: none;
  margin: 1.5rem auto 2rem;
  border-radius: 2px;
  display: block; /* Fixed: For centering */
}

/* Contact section */
.contact-section {
  padding: 5rem 0;
}

.contact-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Center the icon perfectly */
.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
  color: white;
  font-size: 2rem;
}

.contact-info h3 {
  font-weight: 600;
  color: var(--dark);
}

.contact-info p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Form */
.form-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
}

.form-control, .form-select {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: var(--transition);
  color: white;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Map */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 3rem;
}

/* Responsive grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-title { 
    font-size: 2rem; 
  }
  .hero-subtitle { 
    font-size: 1rem; 
  }
  .contact-section { 
    padding: 3rem 0; 
  }
}

@media (max-width: 576px) {
  .contact-icon { 
    width: 70px; 
    height: 70px; 
    font-size: 1.6rem; 
  }
  .form-container { 
    padding: 1.5rem; 
  }
}

/* Fixed: Responsive image for OTTO BOT */
#imgp {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Cart sidebar - Consolidated */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
}

.cart-sidebar.open {
  right: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.cart-item .btn-sm {
  padding: 2px 6px;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 4px;
}

.cart-item .quantity {
  font-size: 16px;
  margin: 0 10px;
}

.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  width: 350px;
}

#loadingIndicator {
  display: none;
}

/* Text carousel - Keep if used */
.text-carousel .scrolling-text {
  display: inline-block;
  animation: scroll-text 40s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.quantity-input {
  max-width: 60px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

/* Navbar - Reduced !important usage */
.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 3rem;
}

.navbar-brand-logo img {
  height: 30px;
}

#first-ul {
  font-size: 1.3rem;
  margin-top: 0px;
}

#first-ul1 {
  font-size: 1.3rem;
  margin-top: 8px;
}

#shop1 {
  text-align: center;
  padding-left: 9rem; /* Removed !important */
}

#icon {
  font-weight: bold;
  color: black;
}

#image-one {
  height: 3.9rem;
}

#image-two {
  margin-left: 3.3rem;
  height: 4.2rem;
}

/* Card styles */
.card-title {
  margin-top: -0.3rem;
  font-weight: bold;
  text-align: center;
  color: white;
}

.shop-btn {
  background-color: rgb(60, 206, 71);
  color: white;
  height: 3.3rem;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
}

.feature-icon {
  font-size: 3rem;
  color: #0026b2;
}

.feature-card {
  text-align: center;
}

.feature-title {
  font-weight: bold;
}

#title {
  font-size: 3.5rem;
}

#title1 {
  font-size: 1.3rem;
}

/* Card portion first */
#img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: relative; /* Fixed: Avoid absolute */
  margin-left: auto; /* Centered */
}

#card-section {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

#card-text {
  margin-top: -1.5rem;
}

#button {
  height: 3.2rem;
  width: 100%;
}

#button1 {
  margin-top: 1rem;
}

#button h5 {
  margin-top: 0.5rem !important; /* Kept where necessary */
}

/* Shop section */
#below-card {
  background: linear-gradient(180deg, #020a33 0%, #030b34 105.52%);
}

/* Fixed: Responsive stem containers, avoid absolute positioning */
#stem1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

#stem1 img {
  width: 100%;
  height: auto;
}

#btn1 {
  position: relative;
  top: -50px;
  align-self: center;
  left: 0px;
}

#stem2 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

#stem002 {
  margin-top: -25px;
}

#testimonialCarousel .carousel .card {
  margin: 0 0.5em;
  border: 0;
}

#testimonialCarousel #back,
#front {
  width: 3rem;
  height: 3rem;
  background-color: grey;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

/* Cart input box */
.square-btn {
  width: 30px;
  height: 30px;
  display: flex;
  border-top-left-radius: 0%;
  border-bottom-left-radius: 0%;
  border-bottom-right-radius: 0%;
  border-top-right-radius: 0%;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: none;
  border: 1px solid #ddd;
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.form-section {
  padding: 30px;
  border-radius: 10px;
}

.send-btn {
  border: none;
}

.contact-info img {
  border-radius: 10px;
}

.contact-icons a {
  font-size: 20px;
  margin-right: 10px;
}

/* Product images */
.product-image {
  max-height: 400px;
  object-fit: cover;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
  opacity: 1;
}

.form-select, .input-group {
  width: 100%;
  max-width: 150px;
}

#end {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 8px 12px;
  background: #fff;
  z-index: 9999;
}

#end .btn {
  min-height: 48px;
}

#end i {
  vertical-align: middle;
}

.like-button.liked i {
  color: red;
}

@media (max-width: 992px) {
  #image-one {
    margin-left: -80px;
  }

  #first-ul {
    margin-left: 5rem;
    margin-top: -5px;
  }

  #first-ul1 {
    font-weight: bold;
    color: black;
  }

  #shop1 {
    margin-left: 5rem;
    padding-left: 1rem; /* Adjusted for mobile */
  }

  #storeDropdown {
    margin-left: 14rem;
  }

  .navbar-toggler {
    margin-right: 0.5rem;
  }

  .d-lg-none a.nav-link {
    margin-left: 10rem;
  }

  .shop-btn {
    height: 100%;
  }

  #title {
    font-size: 1.5rem;
    font-weight: bolder;
  }

  #title1 {
    text-align: justify;
    line-height: 1.5rem;
    font-size: 15.5px;
  }

  #card-one {
    margin-top: -40px;
  }

  #card-two {
    margin-top: 10px;
  }

  .accordion-button::after {
    color: white;
  }

  #stem002 {
    margin-top: 0px;
  }

  #img {
    margin-left: 190px;
  }

  .custom-hr {
    width: 50%;
    height: 7px;
    background-color: rgb(1, 4, 1);
  }
}

@media (max-width: 576px) {
  #first-ul {
    margin-left: 3.1rem;
    padding: 5px;
    font-size: 1.1rem;
  }

  .navbar-toggler {
    margin-right: 0.2rem;
  }

  .navbar-nav {
    font-size: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  #title {
    font-size: 1.2rem;
  }

  #title1 {
    font-size: 14px;
  }

  .shop-btn {
    height: auto;
    padding: 0.5rem;
    width: 150px;
  }

  .feature-card {
    text-align: center;
    padding: 0.5rem;
  }

  #space {
    margin-top: -0.9rem;
    font-size: 0.5rem; /* Fixed: font-size not font-style */
  }

  #storeDropdown {
    margin-left: 7.7rem;
  }

  .card-footer {
    padding: 0.5rem;
  }

  #stem2 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
  }

  #stem002 {
    margin-top: 0px;
  }

  #img {
    position: relative;
    top: -80px;
    left: 50px;
  }

  #text {
    margin-top: -14% !important;
  }

  /* Fixed: Remove carousel flex overrides to restore Bootstrap swipe */
  .carousel {
    touch-action: pan-y; /* Enable smooth mobile swipe */
  }

  .carousel-inner {
    display: block !important; /* Restore default for sliding */
  }

  .carousel-item {
    flex: none !important;
  }

  #testimonialCarousel .carousel-inner {
    display: block !important;
  }

  #testimonialCarousel .carousel-item {
    flex: none !important;
  }

  .custom-hr {
    width: 50%;
    height: 7px;
    background-color: rgb(1, 4, 1);
  }

  .text-center {
    font-size: 13px;
  }

  #card {
    margin-top: 10px;
  }

  #unknown {
    font-size: 20px;
  }

  #below-otto {
    font-size: 15px;
  }

  #Sign {
    font-size: 20px;
  }

  #sub {
    margin-top: 10px;
  }
}

/* FIXED: Gallery/Swiper spacing on sm - Zero out margins/paddings between galleries */
@media (max-width: 767px) {
  .gallery-top {
    margin-bottom: 0 !important; /* No bottom margin on main gallery */
    padding-bottom: 0 !important;
  }

  .gallery-thumbs {
    margin-top: 0 !important; /* No top margin on thumbs */
    padding-top: 0 !important;
    height: auto !important;
    flex-direction: row !important;
  }

  .gallery-thumbs .swiper-wrapper {
    flex-direction: row !important;
  }

  .gallery-thumbs .swiper-slide {
    width: 60px !important;
    height: 60px !important;
    overflow: hidden;
    margin: 0 2px; /* Minimal horizontal spacing for thumbs row */
  }

  /* .gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  } */

  /* .gallery-top {
    height: 300px !important;
  } */

  /* Ensure row has no extra gap */
  .row.gy-1 > [class*="col-"] {
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  .gallery-thumbs {
    height: 410px !important;
    flex-direction: column !important;
  }

  .gallery-thumbs .swiper-wrapper {
    flex-direction: column !important;
    display: flex;
  }

  .gallery-thumbs .swiper-slide {
    width: 80px !important;
    height: 80px !important;
    overflow: hidden;
  }

  .gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-top {
    height: 410px !important;
  }
}

@media (max-width: 300px) {
  body {
    font-size: 12px;
  }

  .container-fluid {
    padding-left: 5px;
    padding-right: 5px;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  .navbar-brand img {
    width: 80px;
    height: auto;
  }

  .gallery-thumbs {
    height: auto !important;
    flex-direction: row !important;
  }

  .gallery-thumbs .swiper-wrapper {
    flex-direction: row !important;
  }

  .gallery-thumbs .swiper-slide {
    width: 40px !important;
    height: 40px !important;
    overflow: hidden;
  }

  .gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .gallery-top {
    height: 200px !important;
  }

  .col-md-1, .col-md-3, .col-md-5, .col-md-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .border {
    padding: 5px !important;
  }

  .form-select, .input-group {
    max-width: 100% !important;
    font-size: 12px;
  }

  .btn {
    font-size: 12px;
    padding: 4px 8px;
  }

  #priceDisplay {
    font-size: 16px !important;
  }

  .fs-4, .fs-5 {
    font-size: 14px !important;
  }

  .color-option {
    width: 50px !important;
  }

  #end {
    padding: 4px 6px;
  }

  #end .btn {
    min-height: 36px;
    font-size: 12px;
  }

  .cart-sidebar {
    width: 100vw !important;
  }

  .cart-item img {
    width: 30px !important;
    height: 30px !important;
  }

  .cart-item h6 {
    font-size: 12px;
  }

  .cart-item p {
    font-size: 10px;
  }
}

.swiper-slide img, .swiper-slide video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Notification styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.error {
  background-color: #dc3545;
}

.notification i {
  margin-right: 10px;
  font-size: 1.2em;
}

/* Review system styles */
.review-container {
  max-height: 400px;
  overflow-y: auto;
}

.review-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #fff;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-author {
  font-weight: bold;
}

.review-date {
  color: #6c757d;
  font-size: 0.9em;
}

.star-rating {
  color: #ffc107;
}

.review-form {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
}

.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.rating-input input {
  display: none;
}

.rating-input label {
  font-size: 1.5em;
  color: #ddd;
  cursor: pointer;
  margin-right: 5px;
}

.cart-icon {
  cursor: pointer;
  font-size: 1.0rem;
}

.rating-input input:checked ~ label {
  color: #ffc107;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #ffc107;
}

/* Share Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-share {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-option {
  padding: 10px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.share-option:hover {
  background-color: #0056b3;
}

.order-whatsapp {
  background-color: #25D366;
}

.order-whatsapp:hover {
  background-color: #1DA851;
}

/* Fixed: Carousel-specific for mobile swipe (add to #below-card if needed) */
#below-card .carousel {
  overflow: hidden;
}