body {
  font-family: Inter, sans-serif;
  overflow-x: hidden;
  background: rgb(238, 237, 237);
}

.top-bar {
  background-color: #d4aa6c;
  font-size: 0.9rem;
}

section {
  margin: 0 1rem;
}

.main-nav {
  background-color: #112145;
}

.nav-link {
  color: black;
}

.c {}

.navbar ul {
  width: 3rem;
}

.nav-link.active {
  color: #d4aa6c !important;
}

.s {
  height: 4rem;
  width: 4rem;
  text-align: center;
}

.s p {
  font-size: .8rem;
  width: 1rem;
}

.quick-support {
  background-color: #112145;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 2px 6px;
}


/* Desktop specific */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff5722;
    color: white;
    border-radius: 50%;
    padding: 0;
}

/* Mobile specific */
#mobile-cart-count {
    font-size: 0.65rem;
    padding: 0.15em 0.4em;
}
.icon-wrapper {
  position: relative;
  margin-right: 20px;
  color: white;
  font-size: 1.2rem;
}

.logo {
  height: 55px;
}

.btn1 {
  background-color: #CC9656;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none;
  position: absolute;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

.nav-link i {
  transition: transform 0.3s;
}

.nav-link[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.nav-link:hover {
  color: #d4aa6c !important;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: #d4aa6c !important;
}

.social-icon {
  font-size: 0.85rem;
  padding: 0.5rem;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: .3rem;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove margin between list-inline-items */
.list-inline-item:not(:last-child) {
  margin-right: 0.2rem;
}

.navbar1 {
  background: #fff;
  padding: 0.5rem;
  border: 1px solid white;

  align-items: center;

  gap: 2rem;
  margin: 1rem;
}

.nav-item img {
  width: 8rem;
  height: 8rem;
  display: block;
  margin: 0 auto 8px auto;
}

/* Centered category name with reduced size */
.nav-item span {
  font-size: 0.68rem;
  font-weight: 500;
  display: block;
  text-align: center;
  line-height: 1.3;
}

.nav-menu {
  padding: .5rem;
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
  cursor: pointer;
}

.nav-item:hover .dropdown-menu {
  display: flex;
  flex-wrap: wrap;
}

/* Ensure parent is positioned */
.nav-item.dropdown {
  position: relative;
}

/* Center the mega menu */
.dropdown-menu.mega-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  /* just below the nav item */
  z-index: 1000;
  background: white;
  padding: 20px;
  display: none;
  /* toggle with JS or :hover */
  width: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Optional: show on hover for desktop */
.nav-item.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Style the columns */
.mega-menu {
  display: flex;
  gap: auto;
  /* spacing between columns */
}

.mega-column {
  min-width: 200px;
}

.mega-column h4 {
  font-size: 1rem;
  font-weight: bold;
  color: #c82333;
  margin-bottom: 0.5rem;
  padding-top: 1rem;
}

.mega-column ul {
  padding: 0;
  list-style: none;
}

.mega-column ul li {
  margin-bottom: 0.3rem;
  cursor: pointer;
}


.icon {
  width: 20px;
  vertical-align: middle;
  margin-right: 6px;
}

.icon-sm {
  width: 16px;
  vertical-align: middle;
  margin-right: 5px;
}


.promo-banner {
  height: 600px !important;
  /* or any height you want */
  overflow: hidden;
}

.promo-banner img {
  height: 300px;
  position: absolute;
  right: 0px;
  top: 0px;
}

.electronics-section img {
  height: 120px;
  object-fit: contain;
}

.carousel-item img {
  width: 100%;
  height: 100%;
 
}

.carousel-control-prev,
.carousel-control-next {
  width: auto;
  padding: 1rem;
  background: rgba(218, 211, 211, 0.3);
  border-radius: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
    left: 1rem;
}

.container-fluid,
.product-detail-container,
.carousel-section,
.related-products {
  margin-left: 20px;
  margin-right: 20px;
}

.carousel-control-next {
  right: 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
  width: 2rem;
  height: 2rem;
}

.a1 {
  /* margin:1rem; */
}

.c {
  margin: 1rem 0;
  background: #fff;
  padding: 1rem;
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-inner-custom {
  display: flex;
  transition: transform 0.5s ease;

}

.product-card {
  flex: 0 0 calc(100% / 7);
  /* Show 7 items */
  padding: 10px;
  text-align: center;
}

.product-card img {
  height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card img:hover {
  transform: scale(1.1);
}

.carousel-img {
  width: 100%;
  height: 100%;

}

.carousel-controls {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.carousel-controls button {
  background: white;
  width: auto;
  padding: 1rem;
  border: none;
  border-radius: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.img1 {
  height: 16rem;
  width: 15rem;
}

/* New styles for additional carousels */
.carousel-section {
  margin: 1rem;
  background: #fff;
  padding: 1rem;
}

.carousel-section h5 {
  margin-bottom: 1rem;
}

.card img {
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 14px;
}

footer a {
  text-decoration: none;
}

.login {
  background-color: #d3a968;
}

.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: solid #333;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
  transform: rotate(-135deg);
}



.product-card {
  position: relative;
  max-width: 355px;
  width: 100%;
  padding: 20px 30px 30px 30px;
  background: #fff;
  box-shadow: none;
  z-index: 3;
  overflow: hidden;
}


.footer {
  margin: 0;
}

.navbar .caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 0.3s ease;
}

/* For desktop header */

/* For mobile header */
.offcanvas-body .navbar .caret {
  border-top-color: #152544;
  /* Dark for light background */
}

/* Rotate on dropdown open */
.dropdown-toggle[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

/* Font Awesome adjustments */
.fa-icon {
  margin-right: 5px;
  font-size: 0.9em;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background: none;
  font-size: 1.5rem;
  color: #333;
}

.carousel-control-prev-icon::before {
  content: "\f053";
  /* Font Awesome chevron-left */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.carousel-control-next-icon::before {
  content: "\f054";
  /* Font Awesome chevron-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Social media icons */
.social-icon {
  font-size: 1.2rem;
  margin: 0 5px;
}


/* New toggle indicator for mobile dropdowns */
.mobile-toggle {
  display: none;
}




.pad {
  padding: 0 15rem;
}

@media (max-width: 767.98px) {
  .product-detail-container {
   
    margin: 30px;
   
}
  .mobile-toggle {
    display: inline-block;
    margin-left: auto;
    padding: 0 10px;
  }
  .promo-banner {
  
    overflow: hidden;
  }
}

@media (max-width: 575.98px) {
  .promo-banner {
    height: 450px !important;
    overflow: hidden;
}
  .product-detail-container {
   
    margin: 30px;
   
}
  .c {
    margin: 0;
  }

  .promo-banner {
  
    overflow: hidden;
  }

  .navbar1 {
    display: block;
    gap: 0;
    /* Optional: reset gap if needed */
    justify-content: unset;
    align-items: unset;
  }

  .pad {
    padding: 0 1rem;
  }
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Add this to your existing CSS */
@media (max-width: 767.98px) {
  .product-detail-container {
   
    margin: 30px;
   
}

  /* Small devices (landscape phones, less than 768px) */
  .product-card {
    flex: 0 0 calc(100% / 2);
    /* Show exactly 2 items */
    min-width: calc(50% - 0.5rem);
    /* Account for gap */
  }

  .carousel-inner-custom {
    gap: 0.5rem;
    /* Reduce gap on mobile */
  }

  /* Adjust image sizes for mobile */
  .product-card img {
    height: 120px;
  }

  /* Adjust carousel controls for mobile */
  .carousel-controls button {
    padding: 0.5rem;
    font-size: 1.2rem;
  }

  .img1 {
    width: 100%;
    height: auto;
    max-height: 350px;
    padding-top: 1rem;
  }

  .navbar1 {
    display: block;
    gap: 0;
    /* Optional: reset gap if needed */
    justify-content: unset;
    align-items: unset;
  }
}


@media (min-width: 992px) {
  .navbar .caret {
    border-top-color: white;
    /* White for dark header */
  }
}

@media (max-width: 767.98px) {
  .navbar1 {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .nav-item {
    width: 100%;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
  }

  .nav-item img {
    display: none;
    /* Hide images on mobile to save space */
  }

  .nav-item span {
    justify-content: space-between;
    font-size: 1rem;
    padding: 0.5rem;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 5px 10px;
    margin-top: 0.5rem;
  }

  .submenu>li {
    padding: 5px 0;
  }

  .has-submenu .sub-submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    padding-left: 1rem;
  }

  .dropdown .arrow {
    transform: rotate(-135deg);
    /* Default rotated state */
  }

  .dropdown:hover .arrow {
    transform: rotate(45deg);
    /* Reversed rotation */
  }

  .dropdown:hover .dropdown-menu {
    display: none;
    /* Disable hover on mobile */
  }

  /* Add active class for mobile dropdowns */
  .dropdown.active .arrow {
    transform: rotate(45deg);
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}


.product-detail-container {
  display: flex;
  max-width: 1400px;
  margin: 30px auto;
  gap: 2rem;
}

.sticky-image-section {
  flex: 0 0 45%;
  position: sticky;
  top: 12rem;
  align-self: flex-start;
  height: calc(100vh - 13rem);
  overflow: auto;
}

.product-info-section {
  flex: 1;
}

.image-gallery {
  display: flex;
  height: 100%;
  gap: 1rem;
}

.thumbnail-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 100%;
  padding-right: 10px;
}

.thumbnail-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.thumbnail-img:hover,
.thumbnail-img.active {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.main-image-container {
  flex: 1;
  

  justify-content: center;
  background: var(--light-gray);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.main-image {
  width: 100%;

  object-fit: contain;
  transition: transform 0.3s ease;
}

.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.wishlist-btn:hover {
  background: #fff6f6;
  border-color: #ff6161;
}

.wishlist-btn.active {
  background: #fff6f6;
  border-color: #ff6161;
  color: #ff6161;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.model-number {
  font-size: 16px;
  color: #666;
  margin-bottom: 1rem;
  display: block;
}

.price-container {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.current-price {
  font-size: 32px;
  font-weight: bold;
  color: var(--accent-color);
}

.vat-info {
  font-size: 14px;
  color: #666;
}

.bulk-info {
  background: #e9f5e9;
  padding: 15px;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 4px solid var(--accent-color);
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn-cart {
  background: #ff9f00;
  color: white;
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  transition: all 0.3s;
  flex: 1;
  min-width: 200px;
}

.btn-cart:hover {
  background: #e68a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-buy {
  background: #fb641b;
  color: white;
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  transition: all 0.3s;
  flex: 1;
  min-width: 200px;
}

.btn-buy:hover {
  background: #e0550f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-contact {
  background: #2c2648;
  color: white;
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  transition: all 0.3s;
  flex: 1;
  min-width: 200px;
}

.btn-contact:hover {
  background: #1a1a36;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.5rem 0;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.quantity-input {
  width: 70px;
  height: 36px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: bold;
}

.stock-info {
  font-weight: bold;
  color: #d9534f;
  margin-left: 15px;
}

.product-description {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.help-section {
  background: #f0f8ff;
  border-radius: 8px;
  padding: 20px;
  margin: 2rem 0;
}

.help-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.help-link:hover {
  color: #1a1a36;
  transform: translateX(5px);
}

.customization-section {
  background: #fff8e1;
  border-radius: 8px;
  padding: 20px;
  margin: 2rem 0;
  border-left: 4px solid #ffc107;
}

.related-products {
  margin-top: 3rem;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;

  transition: transform 0.3s;
}



.card-img-top {
  height: 200px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 15px;
}

.card-body {
  padding: 15px;
}

.product-category {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0;
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .product-detail-container {
    flex-direction: column;
  }

  .sticky-image-section {
    position: static;
    height: auto;
  }

  .image-gallery {
    flex-direction: column-reverse;
  }

  .thumbnail-column {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .action-buttons .btn {
    min-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .product-title {
    font-size: 24px;
  }

  .current-price {
    font-size: 26px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .help-links {
    flex-direction: column;
  }
}

/* Image Zoom Modal */
.zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.zoom-modal-content {
  max-width: 90%;
  max-height: 90%;
}

.zoom-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-zoom {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.close-zoom:hover {
  color: #ccc;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 10px;
}

.notification.show {
  display: flex;
  animation: slideIn 0.5s, fadeOut 0.5s 2.5s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.cart-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.cart-image {
  width: 80px;
  height: auto;
}

.price {
  font-weight: bold;
}

.note {
  font-size: 0.875rem;
  color: #6c757d;
}

.card-header {
  background-color: #0d1b3d;
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
}

.btn-primary {
  background-color: #c68c4c;
  border-color: #c68c4c;
}

.btn-primary:hover {
  background-color: #b27a3a;
  border-color: #b27a3a;
}

.form-control::placeholder {
  color: #adb5bd;
}

.full-height-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Cart Drawer Custom Styling */
.cart-drawer {
    background: #f8f9fa;
    border-left: 1px solid #dee2e6;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

/* Slick animation on show */
.cart-drawer.show {
    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cart Item Styles */
.cart-body .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
}

.cart-body .list-group-item:hover {
    background-color: #f1f3f5;
}

.cart-body .btn-danger {
    background-color: #e03131;
    border: none;
    transition: transform 0.2s;
}

.cart-body .btn-danger:hover {
    transform: scale(1.1);
}

/* Empty Cart Animation */
.cart-body img {
    max-width: 70%;
    animation: floatCart 2.5s ease-in-out infinite;
}

@keyframes floatCart {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Proceed Button */
.cart-body .btn-success {
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.15);
}


/* Remove animation */
.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
        height: 0;
        margin: 0;
        padding: 0;
    }
}
