@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f8f8;
  color: #e4b76e;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: #fff;
  color: #fff;
  border-bottom: 1px solid #444;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  gap: 1rem;
}

.leftt, .centerr, .rightt {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.leftt {
  flex: 1;
}

.centerr {
  flex: 3;
  justify-content: center;
}

.rightt {
  flex: 1;
  justify-content: flex-end;
}

.logo img {
  height: 80px;
}

.search-box {
  display: flex;
  border: 1px solid #444;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 600px;
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  color: #252525;
  flex: 1;
}

.search-box button {
  background: #000;
  color: white;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
}

.cart {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #252525;
}

.cart-icon {
  text-decoration: none; 
  color: inherit;        
}

.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #252525;
}

.nav-bar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid #444;
}

.nav-left {
  flex: 1;
  position: relative;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-bar a {
  color: #252525;
  text-decoration: none;
  font-weight: 500;
}

.nav-bar a:hover {
  text-decoration: underline;
}

.category-btn {
  background: #333;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  border: 1px solid #444;
  border-top: none;
  z-index: 9999;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 0.5rem 0;
}

.category-dropdown ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-dropdown li {
  width: 100%;
}

.category-dropdown a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  transition: background 0.3s;
}

.category-dropdown a:hover {
  background: #444;
}

.category-dropdown.open {
  display: block;
}

@media (max-width: 768px) {
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .leftt, .centerr, .rightt {
    flex: 0 0 100%;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .leftt {
    order: 1;
    gap: 0.5rem;
  }

  .centerr {
    order: 3;
    display: flex;
    margin-top: 0.5rem;
    padding: 0 1rem;
  }

  .rightt {
    order: 2;
    justify-content: flex-end;
  }

  .burger {
    order: 1;
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
  }

  .category-btn {
    display: none;
  }

  .nav-bar {
    display: none;
    width: 100%;
  }

  .nav-bar.open {
    display: block;
  }

  .nav-bar nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .nav-right {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .category-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}



.product-container {
    max-width: 1400px;
    margin: auto;
    border-radius: 20px;
    padding: 100px 40px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #ECE7EE;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: #ECE7EE;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #007bff;
    transform: scale(1.05);
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-details h1 {
    color: #252525;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-code {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 20px;
}

.product-price {
    font-size: 2rem;
    color: #252525;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-specs {
    margin-top: 20px;
    margin-bottom: 20px;
}

.product-specs h2 {
    color: #252525;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.product-specs ul {
    color:#252525;
    list-style-type: none;
    padding-left: 0;
}

.product-specs li {
    margin-bottom: 6px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f1f1;
    padding: 6px 10px;
    width: fit-content;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
    margin: 20px 0;
}



.qty-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    background-color: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.qty-btn:hover {
    background-color: #c0c0c0;
    transform: scale(1.05);
}

#quantity {
    width: 48px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
}

.add-to-cart-btn {
    background: #e4b76e;
    color: white;
    padding: 16px;
    width: 100%;
    font-size: 1.2rem;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s ease;
    margin-top: 20px;
}

.add-to-cart-btn:hover {
    background: #d19f47;
    transform: translateY(-1px);
}

.product-description {
    margin-top: 40px;
}

.product-description h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-description p {
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
}

.not-found {
    text-align: center;
    font-size: 1.5rem;
    padding: 60px;
    color: #999;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #222;
    margin-bottom: 20px;
}

.delivery-icon {
    flex-shrink: 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 18px;
}

.new-price {
    color: #e60000;
    font-weight: bold;
    font-size: 22px;
}


/* FOOTER */
.site-footer {
  background-color: #1F1F1F;
  color: #eee;
  padding: 3rem 2rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: auto;
}

.footer-logo img {
  width: 160px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-legal h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-links ul,
.footer-contact ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li,
.footer-legal ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a,
.footer-legal a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #e4b76e;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom a {
  color: #87D037;
  text-decoration: none;
}