:root {
  --color1: #52357B;
  --color2: #5459AC;
  --color3: #648DB3;
  --color4: #B2D8CE;
  --primary: #0d6efd;
  --secondary: #6c757d;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
}

/* navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(255, 255, 255, 0.815);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* .navbar .logo {
  font-size: 2rem;
  color: var(--dark);
  font-weight: bolder;
} */

.navbar a img {
  height: 40px;
  /* max-height: 50px; */
  margin-right: 1rem
}

.navbar .navbar-nav a {
  color: var(--dark);
  display: inline-block;
  font-size: 1.2rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--secondary);
}

.navbar .navbar-nav a::after {
  content: '';
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--secondary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: var(--dark);
  margin: 0 0.5rem;
}


#btnShoppingCart {
  position: relative;
}

#btnShoppingCart span {
  position: absolute;
  top: -1.5rem;
  right: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--danger);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
}

.navbar .navbar-extra a:hover {
  color: var(--secondary);
}

#hamburger-menu {
  display: none;
}



/* search form */
.navbar .search-form {
  margin-top: 0.5rem;
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #fff;
  width: 40rem;
  height: 5rem;
  display: flex;
  border: 2px solid rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  align-items: center;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.3s;
}

.navbar .search-form input {
  border-radius: 10px;
  height: 100%;
  width: 100%;
  font-size: 1.6rem;
  color: var(--bg);
  padding: 1rem;
}

.navbar .search-form label {
  cursor: pointer;
  font-size: 2rem;
  margin-right: 1.5rem;
}

.navbar .search-form.active {
  transform: scaleY(1);
}

/* shopping cart */
.navbar .shopping-cart {
  margin-top: 0.5rem;
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 35rem;
  height: 80vh;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.3s;
  overflow-y: auto;
  border: 3px dashed rgba(0, 0, 0, 0.5);
}

.navbar .shopping-cart.active {
  transform: scaleY(1);
}

.navbar .shopping-cart .cart-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.navbar .shopping-cart .cart-item img {
  height: 4rem;
  width: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.navbar .shopping-cart .cart-item  h3 {
  color: var(--dark);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}


.shopping-cart .price #add,
.shopping-cart .price #remove {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0.5rem;
  cursor: pointer;
  font-weight: bolder;
}

.shopping-cart .price span {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: bolder;
}

.shopping-cart h4 {
  color: var(--dark);
  font-size: 1.4rem;
  margin: 1rem 0;
  text-align: center;
}

/* form checkout & customer */
.form-container {
  width: 100%;
  display: flex;
  justify-content: center;
  
  /* margin-top: 1rem; */
  /* padding: 2rem; */
}

.form-container h5 {
  margin-top: 1rem;
  margin-bottom: 0.1rem;
  font-size: 1.5rem;
  text-align: center;
}

.form-container form {
  width: 100%;
  display: flex;
  border-top: 2px dashed rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  /* margin-top: 1rem; */
}

.form-container input {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  width: 80%;
  margin: 0 auto;
}

.form-container .btnCheckout {
  background-color: var(--dark);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  width: 80%;
  margin: 0 auto;
}

.form-container .btnCheckout.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

 


/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  padding: 1.4rem 7%;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.hero-left {
  margin-left: 10rem;
  position: relative;
  position: center;
}

.hero-right {
  margin-left: 5rem;
  position: relative;
  position: center;
}

.hero-right img {
  width: 100%;
  max-width: 50rem;
  height: auto;
  position: relative;
  /* position: center; */
  /* margin-left: 15rem; */
}

.hero-left h3 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-left p {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.cta {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: var(--dark);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.cta:hover {
  background-color: var(--secondary);
}

/* About Section */
.about {
    padding: 10rem 7% 8rem;
    height: 100vh;
    background-color: #f9f9f9;
    color: #333;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}

.about-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
    position: relative;
}

.about-title::after {
    content: '';
    display: block;
    width: 60px;
    /* height: 2px; */
    border-bottom: 0.2rem solid var(--secondary);
    transform: scaleX(0);
    transition: 0.2s linear;
    margin: 10px auto 0;
    /* border-radius: 2px; */
}

.about-title:hover::after {
    transform: scaleX(1);
}

.about-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-left img {
    width: 370px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.about-left p {
    flex: 1;
    line-height: 1.8;
    font-size: 1.2rem;
    color: #444;
    /* margin: 0 8rem; */
    
}




/* css product */
.products {
/* SECTION STYLING */
  padding: 10rem 7% 8rem;
  background-color: #fff;
  text-align: center;
}

.products-category {
  font-size: 2rem;
  margin-bottom: 5rem;
  color: #333;
}

.products-category::after {
  content: '';
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.2rem solid var(--secondary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.products-category:hover::after {
  transform: scaleX(0.05);
}

.products-container {
/* CONTAINER GRID */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.products-card {
/* CARD STYLING */
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: calc(25% - 20px); /* 4 kolom */
}
.products-card:hover {

  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.products-image {
/* IMAGE STYLING */
  position: relative;
  width: auto;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
}
.products-image img {

  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.products-image img:last-child {

  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.products-card:hover .products-image img:last-child {

  opacity: 1;
}

.products-title {
/* TITLE & PRICE */
  font-size: 1.7rem;
  font-weight: 600;
  color: #222;
  margin: 1.5rem 0 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.products-price span {

  color: #e63946;
  font-weight: bold;
  font-size: 1.5rem;
}

.products-add {
/* CART STYLING */
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(30, 136, 229, 0.2);
}
.products-add:hover {

  background-color: var(--dark);
  transform: translateY(-2px);
}
.products-add:active {

  transform: scale(0.98);
}
.products-add i {

  width: 20px;
  height: 20px;
}

/* css kontak */
.contact-section {
  padding: 10rem 7% 8rem;
  background-color: #f4f4f4;
  /* padding: 60px 20px; */
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-container h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.contact-container p {
  margin-bottom: 30px;
  font-size: 16px;
  color: #555;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

form button {
  background-color: #25d366;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #128c7e;
}



/* payment */
.payment-status {
  background: #f8f8f8;
  border-top: 2px solid #eee;
  margin: 2rem 0;
}

.payment-status .status-box {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* css pagination */
.pagination {
  margin-top: 3rem;
}

.pagination button {
  padding: 6px 10px;
  margin: 0 2px;
  border: 1px solid var(--secondary);
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.pagination .active {
  background-color: var(--secondary);
  color: white;
}






/* footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px;
    font-family: sans-serif;
  }

  .footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
  }

  .footer-column {
    flex: 1 1 200px;
  }

  .footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
  }

  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-column ul li {
    margin-bottom: 10px;
  }

  .footer-column ul li a {
    color: #ecf0f1;
    text-decoration: none;
  }

  .footer-column ul li a:hover {
    text-decoration: underline;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #bdc3c7;
  }


/* modal */
/* modal item */
.modal {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.6); 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  z-index: 9999;
  animation: animateModal 0.5s;
  
}

/* modal animation */
@keyframes animateModal {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.modal-container {
  position: relative;
  background-color: #fefefe;
  color: var(--bg);
  margin: 15% auto;
  margin-top: 10rem;
  padding: 1.2rem;
  border: 1px solid #666;
  width: 60%;
  height: auto;
  animation: animateModal 0.5s;
  border-radius: 20px;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  right: 1rem;
}

.modal-container .modal-content {
  margin-top: 2rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.modal-container .modal-content img {
  height: 25rem;
  width: 25rem;
  margin-right: 2rem;
  margin-bottom: 2rem;
  margin-left: 2rem;
  border-radius: 20px;
}

.modal-text{
  margin: 0 2rem;
}

.modal-container .modal-text h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-container .modal-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.modal-text .deskripsi {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}
.modal-container .modal-content .product-star {

  margin-bottom: 0.5rem;
}
.modal-container .modal-content .product-price {

  margin-bottom: 0.2rem;
  font-size: 1.5rem;
  color: #e63946;
  font-weight: bold;
}

.modal-container .modal-content a {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(30, 136, 229, 0.2);
}

.modal-container .modal-content a:hover {
 background-color: var(--dark);
  transform: translateY(-2px);
}

.modal-container .modal-content a:active {
  transform: scale(0.98);
}







/* media query */

/* laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }

  
}

@media (max-width: 1000px) {

  html {
    font-size: 65.5%;
  }

  .products-card {
     width: calc(33.33% - 20px); 
  }

  .modal-container {
  width: 80%;
  height: auto;
}

.modal-container .modal-content {
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

}

/* tablet */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  .products-card { 
    width: calc(50% - 20px); 
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 25rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--dark);
    display: block;
    margin: 0.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  /* hero tab*/
.hero {
  min-height: 60vh;
  display: flex;
  padding: 1.4rem 7%;
  align-items: center;
  justify-content: center;
}

.hero-left {
    margin-left: 8rem;
    margin-right: 5rem;
    position: relative;
    position: center;
  }

  .hero-right {
    margin-left: 0rem;
    position: relative;
    position: center;
  }

.hero-right img {
  width: 100%;
}

.hero-left h3 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-left p {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.cta {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* modal tab */
.modal-container {
  width: 80%;
  height: auto;
}

.modal-container .modal-content {
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* about tab */
.about {
    padding: 10rem 7% 8rem;
    height: auto;
    background-color: #f9f9f9;
    color: #333;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}

.about-left {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-left p {
  font-size: 1rem;
  margin: 0 8rem;
}

    



}

/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }

  .products-card {
     width: 100%; 
    }

  .navbar-extra svg {
  width: 18px;       /* atau 16px untuk lebih kecil */
  height: 18px;
}


  .hero {
    min-height: 70vh;
    flex-direction: column;
    text-align: center;
  }

  .hero-left {
    margin-right: 0;
    margin-left: 0;
  }

  .hero-left h3 {
    font-size: 2.6rem;
  }
  
  .hero-right {
    margin-left: 0;
    margin-top: 3rem;
  }

  

  .navbar .search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #fff;
  width: 30rem;
  height: 5rem;
  display: flex;
  align-items: center;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.3s;
}

.navbar .search-form.active {
  transform: scaleY(1);
}

.modal-container {
  width: 90%;
  height: auto;
}

.modal-container .modal-content {
  flex-wrap: wrap;
  max-width: 100%;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* About Section */
.about {
    padding: 10rem 7% 8rem;
    height: auto;
    background-color: #f9f9f9;
    color: #333;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}

.about-left img {
    width: 270px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.about-left p {
    flex: 1;
    line-height: 1.8;
    font-size: 1.2rem;
    color: #444;
    margin: 0;
    text-align: center;
    max-width: 100%;
    
}

}