/*CSS Eksternal*/
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: poppins;
    }
a{
    text-decoration: none;
}
ul {
    list-style-type: none;
}
/*header*/
header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Navbar Container */
.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 70px;
  box-sizing: border-box;
}

/* Logo */
.logo img {
  width: auto;
  height: 120px;
}

.menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu li a:hover {
  color: #B88E2F;
}


/* Right Side*/
.nav-right {
  display: flex;
  align-items: center;
  gap: 40px; /* jarak antara ikon dan tombol login/signup */
}

/* Ikon */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 40px; /* jarak antar ikon */
}

.profile-icon,
.search-icon,
.cart-icon {
  position: relative;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
}

.profile-icon:hover,
.search-icon:hover,
.cart-icon:hover {
  color: #B88E2F;
}

.cart-icon .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #B88E2F;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
}

.cart-count:empty {
  display: none;
}

/* Tombol Login & Sign Up */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-buttons a {
  text-decoration: none;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 18px;
  transition: 0.3s;
}
.auth-buttons .login {
  background-color: #B88E2F;
  color: #fff;
  border: 1px solid transparent;
}

.auth-buttons .login:hover {
  background-color: #fff;
  color: #B88E2F;
  border: 1px solid #B88E2F;
}

/* Responsive */
@media (max-width: 900px) {
  .navigation {
    flex-direction: coulum  ;
    padding: 15px 30px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
  }

  .nav-right {
    flex-direction: column;
    gap: 10px;
  }
}
/*Search Bar */
.search-bar {
    width: 100%;
    height: 40vh;
    background-color: #ffffffbb;
    backdrop-filter: blur(30px);
    position: fixed;
    left: 0;
    bottom: 0;
    display: none; 
    justify-content: center;
    z-index: 101;
    box-shadow: 2px 2px 30px rgba(0,0,0,0.05);
}

.search-bar.search-bar-active {
    display: flex; 
}

.search-input{
    width: 90%;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-top: 20px;
}
.search-input input{
    width: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 1.8rem;
    margin: 0px;
    color: #000000;
}
.search-cancel{
    color: #041020;
    font-size: 2rem;
    padding-right: 40px;
    position: relative;
    z-index: 10; /* biar di atas layer lain */
    cursor: pointer;
}

.search-bar-active{
    display: flex;

}
.nav-search{
    font-size: 1.4rem;
}
/* Wrapper agar posisi absolute bekerja */
.product-box-img {
    position: relative;
    display: block;
}
/* Login login */
.form {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0px;
    top: 0px;
    background-color: #F9F8F694;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 102;
}
.login-form,
.sign-up-form
{
    max-width: 420px;
    width: 90%;
    padding: 20px 10px;
    background-color: #ffffff;
    box-shadow: 2px 2px 30px #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    position: relative;
}
.form-cancel {
    position: absolute;
    right: 20px;
    top: 10px;
    color: black;
}
.login-form form,
.sign-up-form form
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.login-form strong,
.sign-up-form strong {
    color: #272727;
    font-size: 2rem;
    margin: 2px 7px 7px 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.login-form input,
.sign-up-form input {
    width: 90%;
    height: 45px;
    margin: 6px 0px;
    padding: 0px 10px;
    border: 1px solid #000;
    outline: none;
    border-radius: 7px;
}
.login-form input::placeholder,
.sign-up-form input::placeholder {
    color: #000;
}
.login-form input[type="submit"], 
.sign-up-form input[type="submit"]{
    background-color: #B88E2F !important;
    color: #ffffff !important;
    border: none;
    outline: none;
    text-transform: uppercase !important;
    margin-top: 10px;
    border-radius: 3px;
    box-shadow: 1px 1px 1px #000;
}
.form-btns {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    grid-gap: 20px;
}
.form-btns a {
    color: #4d4d4d;
    font-size: 0,9rem;
    text-align: center;
}
.login-form,
.sign-up-form,
.form{
    display: none;
}
.login-active, 
.login-active .login-form, 
.sign-up-active,
.sign-up-active .sign-up-form{
    display: flex;
}
/*main hero*/
.hero {
  position: relative;
  height: 95vh; /* nggak full layar, bisa diatur */
  max-width: 1300px; /* lebar kotak hero */
  margin: 50px auto; /* space putih kiri-kanan */
  border-radius: 20px; /* sudut bulat */
  overflow: hidden; /* biar gambar nggak keluar kotak */
  background-image: url('images/scandinavian_bacground.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

/* Overlay biar teks jelas */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  border-radius: 20px; /* supaya ikut membulat */
}

.hero-content {
  position: relative;
  z-index: 2; 
  max-width: 700px;
}

.hero-content span {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-content button {
  background-color: #fff;
  color: #333;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.hero-content button:hover {
  background-color: #B88E2F;
}

/* Bagian Produk */
.produk {
  padding: 30px 20px;
  text-align: center;
}


/* category */
#category {
  max-width: 1200px;
  width: 90%;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  justify-items: center;
}

.category-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.category-box:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.category-img {
  background-color: #f7d890;
  border-radius: 50%;
  padding: 15px;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-img img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.category-box strong {
  color: #1d1d1d;
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}
/* Popular Section */
#popular {
    max-width: 1200px;
    width: 90%;
    margin: 50px auto;
}

#popular h2 {
    color: #1d1d1d;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Grid untuk produk */
.popular-product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
}

.product-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-box-img {
    width: 100%;
    height: 250px;    
    width: 250px;   
    position: relative;
    overflow: hidden;    
    border-radius: 5px;
    background-color: #f5f9ff;
}

.product-box-img img {
    width: 100%;
    height: 100%;      
    object-fit: cover;  
}

/* Label "New" */
.product-box-img span {
    color: #fff;
    background-color: #041020;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    padding: 2px 10px;
    font-weight: 400;
    border-radius: 3px;
}

/* Teks produk */
.product-box-text {
    margin-top: 10px;
}

.product-box-text .product-text-title {
    color: #041020;
    font-size: 1rem;
    font-weight: 600;
}

.product-box-text span {
    color: #041020;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin: 5px 0;
}

.product-box-text span del {
    color: #696969;
}

/* Tombol add to cart */
.add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.8);
  color: inherit;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease
}

.add-to-cart:hover {
    background-color: #B88E2F;
    color: #fff;
    /* remove subtle divider on hover so the button feels pressed/active */
    box-shadow: none;
}

.add-to-cart:hover svg {
    fill: #fff;
    border: #000;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .popular-product-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .popular-product-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .popular-product-container {
        grid-template-columns: 1fr;
    }
}
/*shopping-banner*/
#shopping-banner{
    max-width: 1200px;
    width: 90%;
    margin: 50px auto;
    background-color: #f3d285;
    padding: 30px;
    border-radius: 10px;
}
.shopping-banner-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 900px;
    margin: auto;
}
.shopping-banner-text{
    display: flex;
    flex-direction: column;
    max-width: 400px;
}
/* Container tombol di tengah */
.shopping-banner-button {
    display: flex;
    justify-content: center; 
    margin-top: 20px;        
}

.shopping-banner-button button {
    background-color: white; 
    color: black;            
    border: 1px solid #ccc;  
    padding: 10px 20px;     
    border-radius: 5px;      
    cursor: pointer;         
    font-size: 16px;         
    transition: all 0.3s ease;
}

/* Hover tombol */
.shopping-banner-button button:hover {
    background-color: #B88E2F; 
    color: white;               
    border-color: #B88E2F;
}
.shopping-banner-img{
    height: 300px;
    display: flex;
    justify-content: center;
}
.shopping-banner-img img{
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-fit: center;
}
.shopping-banner-text {
    color: #181818;
    font-size: 100px;
    font-weight: 300;
}
.shopping-banner-text{
    color: #3f3f3f;
    margin: 10px 0px;
    font-weight: 400;
    font-size: 0.9rem;
}
/* Services */
.services {
    display: flex;
    width: 90%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: auto;
    max-width: 1200px;
}
.service-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    margin: 15px;
    flex-grow: 0.7;
    min-width: 250px;
    background-color: #f3d285; 
    border-radius: 10px;
}       
.service-box svg {
    fill: #041020;
    font-size: 2rem;
    margin:15px
}
.service-box span {
    color: #041020;
    font-weight: 500;
    font-size: 1rem;
}
.service-box p {
    color: black;
    margin: 0px;
    font-size: 1rem;
}
/*footer*/
.footer {
    width: 100%;
    background-color: #f3d285;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

/* Profil Perusahaan */
.profil-perusahaan {
    max-width: 300px;
}
.profil-perusahaan img {
    width: 120px;
    margin-bottom: 10px;
}
.profil-perusahaan p {
    color: #585858;
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid #e9e9e9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background-color: #B88E2F;
    border-color: transparent;
    color: #fff;
}
.footer-social svg {
    fill: currentColor;
}

/* Link Navigasi */
.footer-link-box {
    display: flex;
    gap: 60px;
}
.footer-link-box strong {
    color: #3b3b3b;
    font-size: 1.1rem;
    font-weight: 600;
}
.footer-link-box ul {
    margin-top: 8px;
    list-style: none;
    padding: 0;
}
.footer-link-box ul li {
    margin-bottom: 6px;
}
.footer-link-box ul li a {
    color: #585858;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link-box ul li a:hover {
    color: #041020;
}

/* Subscribe */
.footer-subscribe {
    max-width: 300px;
}
.footer-subscribe strong {
    color: #3b3b3b;
    font-size: 1.1rem;
    font-weight: 600;
}
.footer-subscribe p {
    color: #585858;
    margin: 5px 0 10px;
}
.subscribe-box {
    display: flex;
    width: 100%;
    border: 1px solid #dadada;
    border-radius: 5px;
    overflow: hidden;
}
.subscribe-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    background:white;
}
.subscribe-box button {
    border: none;
    background-color: #041020;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.subscribe-box button:hover {
    background-color: #B88E2F;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-link-box {
        flex-direction: column;
        gap: 20px;
    }
}