body {
  font-family: 'Montserrat', Arial, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

main {
  min-height: 50vh;
}

p,h1,h2,h3,h4,h5,h6 {
  margin: 0;
}

section {
  margin-bottom: 5px;
}

article {
  text-align: start;
}

video {
    width: 100%;
    height: 100%;
}

.qty-box {
  width: max-content;
  border: 0.8px solid var(--primary-color);
}

.btn {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  padding: 12px 18px;
  text-align: center;
}

.cart-btn {
  width:100%;
  margin-top:8px;
  background:black;
  color: var(--accent-color);;
}

.quantity {
  color: black;
  background: transparent;
  border: none;
  width: 30px;
  text-align: center;
  padding: 0;
  font-size: 20px;
}

  .search-bar {
    position: fixed;
    top: -100px; /* Hidden initially */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out;
    z-index: 1;
  }
  
  .search-bar.open {
    top: 110px; /* Adjust based on header height */
  }
  
  .search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .search-container input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    margin-left: 15px;
  }
  
  .search-container .close-search {
    margin-left: 10px;
    font-size: 20px;
    cursor: pointer;
  }

  .search-results {
    margin-top: 10px;
    padding: 24px;
    min-height: 80vh;
    position: relative;
  }

  .toolbar {
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    position: relative;
  }
  
  .toolbar button {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
  }
  
  .toolbar button:hover {
    background-color: var(--primary-color);;
  }
  
  .dropdown-panel {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: none;
    z-index: 1000;
  }
  
  .dropdown-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-panel ul li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--primary-color);;
  }
  
  .dropdown-panel ul li:last-child {
    border-bottom: none;
  }
  
  .dropdown-panel ul li:hover {
    background-color: #f0f0f0;
  } 
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

.popup-content {
  background: #000;
  color: #fff;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.popup-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.popup-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.popup-content p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.popup-content input,
.popup-content select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  max-width: -webkit-fill-available;
}

.phone-number {
  display: flex;
  gap: 10px;
}

.phone-number select {
  flex: 1;
  width: 100px;
}

.phone-number input {
  flex: 2;
}

/* Buttons */
.button {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  cursor: pointer;
  font-size: 1rem;
}

.button:hover {
  background: #fff;
  color: #000;
  transition: background 0.3s, color 0.3s;
}

.no-thanks {
  display: block;
  margin: 15px auto;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
}

.no-thanks:hover {
  text-decoration: underline;
}

/* Notification Bar */
.notification-bar {
    background-color: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    z-index: 2;
}


.card {
  position: relative;
  overflow: hidden;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1;
}

.card-bottom {
  margin: 0;
  padding: 5px;
  z-index: 2;
}

.card-bottom>h1 {
  margin: 0;
}

.card-row {
  flex-direction: row;
}

.card-row .img-thumb {
  width: 40%;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  color: #000;
  border-bottom: 1px solid #ddd;
  align-items: center;
  position: sticky;
  top: 0;
  padding: 20px;
  z-index: 10;
}

.logo img {
  height: 60px;
}

.hero {
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
}

.mt-sm {
  margin-top: 12px;
}

.mt-md {
  margin-top: 22px;
}

.mb-sm {
  margin-bottom: 12px;
}

.p-md {
  padding: 18px;
}

.p-sm {
  padding: 12px;
}

.container img{
    max-height: 120vh;
    overflow: hidden;
}

.image-large {
    width: 100%;
}

.image-large img {
    width: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
}

.hero-text h1 {
    font-size: 48px;
}

.hero-text h2 {
    font-size: 24px;
}

.cover-center img {
  object-position: center center;
}

.cover-top img{
    object-position: center 25%;
}

.cover-left img{
    object-position: left top;
}

.product-card {
  min-height: 240px;
  max-height: 840px;
}

.product-carousel {
    text-align: center;
    padding: 20px;
  }
  
  .product-carousel h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
  }
  
  .carousel {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    overflow-x: auto;
  }
  
  .carousel-item {
    min-width: 200px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .carousel-item img {
    width: 100%;
    max-height: 600px;
    height: auto;
    display: block;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .carousel-btn.left-btn {
    left: 10px;
  }
  
  .carousel-btn.right-btn {
    right: 10px;
  }
  
  .carousel-btn:hover {
    background-color: #f0f0f0;
  }

  footer {
    background-color: black;
    padding: 25px 0 42px;
    color: white;
  }
  footer .flex {
    max-width: 1460px;
  }

  footer a{
    text-decoration: none;
    color: white;
  }
  footer ul {
    list-style: none;
  }
  footer ul li {
    margin-bottom: 12px;
  }
  .flex-column {
    flex: 1;
  }
  footer input {
    border: 1px solid white;
    padding: 8px 12px;
    background: black;
    color: white;
  }

.ml-md {
    margin-left: 12px;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#product-form {
  display: flex;
  flex-direction: row;
}

@media only screen and (max-width: 720px) {
  #product-form {
    flex-direction: column;
  }
}

.product-gallery {
  display: flex;
  flex-wrap: wrap;
  padding: 4px;
  margin-top: 8px;
  max-height: 600px;
}

.main-image {
  flex: 5;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
}

.main-image img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
}

.product-gallery-sidebar {
  flex: 1;
  padding: 8px;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.thumbnail {
  margin-bottom: 8px;
  cursor: pointer;
}

.thumbnail img {
  max-width: 100%;
  max-height: 100px;
}

.cart-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  width: 100%;
  border-bottom: 1px solid var(--primary-color);
}

.cart-item img {
  height: 80px;
}

.cart-counter {
  text-align: center;
  padding: 2px;
  font-size: 14px;
  font-weight: bold;
  background-color: var(--primary-color);
  color: var(--accent-color);
}

.card label {
  font-weight: bold;
}

.variant-options {
  overflow: auto;
  white-space: nowrap;
  list-style: none;
  margin-top: 10px;
  padding: 0;
}

.option {
  display: inline-block;
  margin: 1px;
  align-content: center;
  text-align: center;
  width: 50px;
  height: 50px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.option:hover {
  border-color: #000;
}

.option.selected {
  border-color: #000;
  background-color: #f0f0f0;
}

.option.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.color-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.color-option {
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.color-option:hover {
  border-color: #000;
}

.color-option.selected {
  border: 2px solid #000;
}

.color-option.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  border-color: #ddd;
}

.collapse-header {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  padding: 10px 0px;
  cursor: pointer;
  border-bottom: 0.8px solid #5d5c5c;
  margin-bottom: 10px;
}

.collapse-icon {
  margin-left: 10px;
  font-weight: bold;
  transition: transform 0.3s ease-in-out;
}

.collapse-header.collapsed .collapse-icon {
  transform: rotate(45deg);
}

.collapse-header .collapse-icon {
  transform: rotate(0deg);
}

.collapse-content {
  padding: 0 15px;
  text-align: start;
  overflow: hidden;
  max-height: 100%;
  transition: max-height 0.15s ease-out;
}

.collapse-content.hidden {
  max-height: 0;
}

.arrow-top, .arrow-down {
  font-size: 16px;
}

@keyframes loading {
  0% {
      transform: rotate(0deg);
  }

  100% {
      transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .grid-container {
      grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero img {
        height: 80vh;
    }
    .image-large img {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text h2 {
        font-size: 18px;
    }
    .flex {
      flex-wrap: wrap;
      justify-content: space-between;
    }
  
    .flex-column {
      flex: 1 1 45%;
      margin-bottom: 20px;
    }
  }

  @media (max-width: 480px) {
    .flex-column {
      flex: 1 1 100%;
      text-align: center;
    }

    footer .row-sm li{
      display: inline;
      margin: 0 12px;
    }
  }