* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #fff;
  color: #111
}

.topbar {
  background: #2b2b2b;
  color: #aaa;
  font-size: 12px;
  padding: 8px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.topbar a {
  color: #aaa;
  text-decoration: none
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  height: 60px;
  background: #fff;

  position: fixed;
  top: 28px;
  /* tinggi topbar */
  left: 0;
  width: 100%;
  z-index: 999;
}

.logo {
  font-weight: bold;
  font-size: 18px
}

nav {
  display: flex;
  gap: 25px
}

nav a {
  text-decoration: none;
  color: #111;
  font-size: 14px
}

.icons {
  display: flex;
  gap: 15px
}

/* HERO */
.hero {
  margin-top: 90px;
}

.hero img {
  width: 100%;
  object-fit: cover
}

.hero .content {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  text-align: center;
}

.hero button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: 2px solid;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
}

.hero button:hover {
  background: #fff;
  color: #000;
  border: 2px solid;
  border-radius: 20px;
}

@media(max-width:768px) {

  .hero .content {
    bottom: 10px;
    font-size: 10px;
    color: white;
    text-shadow:
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000;
  }

  .hero button {
    margin-top: 10px;
    padding: 5px 10px;
    background: #000;
    color: #fff;
    border: 2px solid;
    border-radius: 20px;
    font-weight: bold;
    font-size: 10px;
  }

  .hero button:hover {
    background: #fff;
    color: #000;
    border: 2px solid;
    border-radius: 20px;
  }
}

.section {
  padding: 60px 40px
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.nav-arrows {
  display: flex;
  gap: 5px;
}

.nav-arrows i {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.nav-arrows i:hover {
  background: #000;
  color: #fff;
}

.h2 {
  font-family: Inter, sans-serif;
  font-family: var(--font-heading-family);
  line-height: 1.25em;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.3em;
}

.h4 {
  display: block;
  margin-block-start: 1.33em;
  margin-block-end: 0.4em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}

.product-card {
  background: #fff;
  padding: 5px;
  max-width: 220px;
  margin: auto
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f5f5f5;
}

.product-card p {
  font-size: 16px;
  margin-top: 5px
}

.product-card .title {
  font-weight: 600
}

.product-card .price {
  margin-top: 6px;
  font-weight: 700;
}

.product-card .title {
  font-weight: bold
}

.product-card .price {
  margin-top: 5px;
  font-weight: bold
}

.product-card {
  transition: 0.3s
}

.product-card:hover {
  transform: scale(1.05)
}

.product-detail .price {
  margin-top: 6px;
  font-weight: 600;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.product-detail p {
  font-size: 15px;
  margin-bottom: 10px;
}

.product-detail .abu {
  color: #929292;
}

/* CATEGORY SLIDER */
.category-card {
  position: relative;
  height: auto;
  overflow: hidden
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s
}

.category-card:hover img {
  transform: scale(1.1)
}

.category-card span {
  position: absolute;
  bottom: 35px;
  left: 12px;
  color: #000;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
  font-weight: bold
}

@media(max-width:768px) {
.category-card span {
  bottom: 30px;
  left: 10px;
}
}

.banner {
  position: relative;
  height: auto
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.banner .content {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  text-align: center;
}

.banner button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: 2px solid;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
}

.banner button:hover {
  background: #fff;
  color: #000;
  border: 2px solid;
  border-radius: 20px;
}

@media(max-width:768px) {
  .banner .content {
    font-size: 10px;
    color: white;
    text-shadow:
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000;
  }

  .banner button {
    padding: 5px 10px;
    font-size: 10px;
  }
}

.video {
  position: relative
}

.video video {
  width: 100%
}

.video .content {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  text-align: center;
}

.video button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: 2px solid;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
}

.video button:hover {
  background: #fff;
  color: #000;
  border: 2px solid;
  border-radius: 20px;
}

@media(max-width:768px) {

  .video .content {
    bottom: 10px;
    font-size: 10px;
    color: white;
    text-shadow:
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000;
  }

  .video button {
    margin-top: 10px;
    padding: 5px 10px;
    background: #000;
    color: #fff;
    border: 2px solid;
    border-radius: 20px;
    font-weight: bold;
    font-size: 10px;
  }

  .video button:hover {
    background: #fff;
    color: #000;
    border: 2px solid;
    border-radius: 20px;
  }
}

footer {
  background: #111;
  color: #ccc;
  padding: 50px
}

footer .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr)
}

footer a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 5px
}

/* NEWS CARD */
.news-card img {
  width: 100%;
  object-fit: cover;
  max-height: 349px;
}

.news-card .date {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px
}

.news-card h3 {
  font-size: 16px;
  margin-top: 5px;
  line-height: 1.4
}

footer .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr)
}

footer a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 5px
}

@media(max-width:768px) {
  nav {
    display: none
  }
}


/* FOOTER RESPONSIVE */
@media(max-width:768px) {
  footer>div {
    grid-template-columns: 1fr !important;
  }

  footer input {
    width: 100%;
  }

  footer div[style*="display:flex"] {
    flex-direction: column;
  }
}

/* ICON STYLE */
.icons i {
  cursor: pointer;
  font-size: 16px;
}

/* HAMBURGER ONLY MOBILE */
#menuToggle {
  display: none;
}

@media(max-width:768px) {
  #menuToggle {
    display: block;
  }
}

/* MOBILE NAV STYLE (TIDAK MENGGANGGU DESKTOP) */
@media(max-width:768px) {
  nav.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    z-index: 999;
    gap: 10px;
  }
}

/* SEARCH CONTAINER */
#searchBox {
  display: none;
  align-items: center;
  width: 50%;
}

/* aktif saat search */
.search-active #searchBox {
  display: flex !important;
}

/* sembunyikan nav */
.search-active nav {
  display: none !important;
}

/* INPUT */
#searchInput {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 20px 0 0 20px;
  outline: none;
}

/* BUTTON */
#searchBtn {
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-left: none;
  background: #000;
  color: #fff;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

/* HIDE SEARCH ICON SAAT AKTIF */
.search-active #searchIcon {
  display: none;
}

@media(max-width:768px) {
  #searchBox {
    position: absolute;
    top: 13px;
    left: 38%;
    transform: translateX(-50%);
    width: 30%;
    z-index: 1000;
    background: #fff;
  }
}

/* OVERLAY */
#cartOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

/* SIDEBAR */
#cartSidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 30%;
  height: 100%;
  background: #fff;
  padding: 20px;
  transition: 0.3s;
  z-index: 1001;

  display: flex;
  flex-direction: column;
  /* penting */
}

/* ACTIVE STATE */
#cartOverlay.active {
  opacity: 1;
  visibility: visible;
}

#cartSidebar.active {
  right: 0;
}

/* MOBILE */
@media(max-width:768px) {
  #cartSidebar {
    width: 80%;
  }
}

/* ===== HEADER ===== */
#cartHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* ===== ITEM LIST ===== */
#cartItems {
  flex: 1;
  overflow-y: auto;
}

/* ITEM */
.cart-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  background: #f5f5f5;
}

.cart-info {
  flex: 1;
  font-size: 13px;
}

.cart-info p {
  margin: 2px 0;
}

.cart-price {
  font-weight: bold;
  font-size: 14px;
}

/* ===== FOOTER ===== */
#cartFooter {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}

#checkoutBtn {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}


/* ========================================== */

/* ===== LAYOUT PRODUK ===== */
.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media(max-width:768px) {
  .product-container {
    grid-template-columns: 1fr;
  }
}

/* IMAGE */
/* ZOOM CONTAINER */
.main-image {
  position: relative;
  overflow: hidden;
}

/* IMAGE */
.main-image img {
  width: 100%;
  height: 450px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

/* SAAT ZOOM */
.main-image.zoomed img {
  cursor: zoom-out;
}

/* THUMB */
.thumb {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.thumb img {
  width: 70px;
  height: 70px;
  cursor: pointer;
}

/* ARROW */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  /* penting biar di atas gambar */
  border-radius: 10px;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}

/* COLOR */
.colors {
  display: flex;
  gap: 10px;
}

.color-box {
  width: 60px;
  height: 60px;
  border: 2px solid #ddd;
  cursor: pointer;
  overflow: hidden;
}

.color-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-box.active {
  border: 2px solid #000;
}

/* SIZE */
.sizes {
  display: ruby;
  margin-bottom: 20px;
}

.size-box {
  padding: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
  margin-bottom: 10px;
}

.size-box.active {
  background: #000;
  color: #fff;
}

/* QTY */
.qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-box button {
  padding: 5px 10px;
  cursor: pointer;
}

/* BUTTON */
.actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.cart-btn {
  flex: 1;
  padding: 10px;
  background: #000;
  color: #fff;
  border: none;
}

.buy-btn {
  flex: 1;
  padding: 10px;
  background: #d6001c;
  color: #fff;
  border: none;
}

/* ACCORDION */

.accordion {
  margin-top: 20px;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

/* HEADER */
.accordion-header {
  padding: 15px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

/* ICON */
.arrow-down {
  transition: 0.3s;
}

/* ROTATE SAAT AKTIF */
.accordion-item.active .arrow-down {
  transform: rotate(180deg);
}

/* CONTENT */
.accordion-content {
  display: none;
  padding-bottom: 15px;
  font-size: 14px;
  color: #555;
}

.container-product {
  width: 70%;
  margin: auto;
}

@media(max-width:768px) {
  .container-product {
    width: 100%;
    padding: 0 15px;
  }
}

/* ===== CART PAGE ===== */
.cart-page-container {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.cart-items-section {
  flex: 2;
}

.cart-summary {
  flex: 1;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  height: max-content;
}

.cart-row {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.cart-row-img {
  width: 120px;
  height: 120px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-row-img img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.cart-row-details {
  flex: 1;
}

.cart-row-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cart-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 15px;
}

.summary-line.total-line {
  border-top: 1px solid #ddd;
  padding-top: 15px;
  font-weight: bold;
  font-size: 1.2em;
}

@media(max-width:768px) {
  .cart-page-container {
    flex-direction: column;
  }

  .cart-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    gap: 10px 15px;
    padding: 15px 0;
  }

  .cart-row-img {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100px;
    height: 100px;
  }

  .cart-row-details {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .cart-row-actions {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 0;
  }
}

/* DROPDOWN MENU */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown .dropbtn {
  color: #111;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  top: 100%;
  left: -20px;
  border-radius: 5px;
  flex-direction: column;
}

.dropdown-content a {
  color: #111;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* PRODUCT RESULT GRID (SEARCH/CATEGORY) */
.product-result-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

@media (max-width: 768px) {
  .section {
    padding: 30px 15px;
  }

  .product-result-grid {
    gap: 10px;
    padding: 10px;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
  }

  .product-result-grid .product-card {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5px;
  }

  .product-card .title {
    font-size: 14px;
  }

  .product-card .price {
    font-size: 14px;
  }
}

/* PRICE DISPLAY IMPROVEMENTS */
.price-box {
  margin-top: 5px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}

.old-price {
  text-decoration: line-through !important;
  color: #9CA3AF !important;
  font-size: 13px;
  display: block;
}

.new-price {
  font-weight: 800;
  font-size: 17px;
  display: block;
}

@media (max-width: 768px) {
  .old-price {
    font-size: 11px;
  }

  .new-price {
    font-size: 15px;
  }
}