
/* =========================
   DASAR
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  color: #1f2937;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-content {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.cart-button {
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #8061d1;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cart-button:hover {
  background: #694bb7;
}

#cartCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  min-height: 23px;
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 50px;
  background: #fff;
  color: #8061d1;
  font-size: 12px;
  font-weight: 800;
}

/* =========================
   KATEGORI
========================= */
.category-nav {
  position: sticky;
  top: 70px;
  z-index: 90;
  padding: 14px 0;
  border-bottom: 1px solid #eee8fb;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.category-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  white-space: nowrap;
  scrollbar-width: none;
}

.category-menu::-webkit-scrollbar {
  display: none;
}

.category-menu button {
  flex-shrink: 0;
  padding: 11px 19px;
  border: 1px solid #e8e1f7;
  border-radius: 999px;
  background: #fff;
  color: #706583;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.category-menu button:hover {
  transform: translateY(-2px);
  border-color: #b9cdfa;
  background: #e8f0ff;
  color: #4169b5;
}

.category-menu button.active {
  border-color: #cbb8f5;
  background: #eee7ff;
  color: #6941b5;
  font-weight: 700;
}

.category-menu button:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #eef2ff, #fff);
}

.hero p:first-child {
  margin-bottom: 15px;
  color: #6366f1;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: 55px;
  line-height: 1.1;
}

.hero h1 span {
  color: #8061d1;
}

.hero .description {
  max-width: 600px;
  color: #64748b;
  font-size: 18px;
  line-height: 1.6;
}

/* =========================
   KATALOG PRODUK
========================= */
.products-section {
  padding: 60px 0;
}

.products-section h2 {
  margin-bottom: 30px;
  font-size: 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.product-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  background: #fff;
  transition: .2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgb(0 0 0 / 8%);
}

.product-card img,
.product-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #eef2ff;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.product-info h3,
.product-name {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 700;
}

.product-info p,
.product-description {
  margin-bottom: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.product-price {
  margin-bottom: 0;
  color: #8061d1;
  font-size: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.variant-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.variant-select {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
}

.variant-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgb(99 102 241 / 10%);
}

.add-button,
.add-to-cart {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 9px;
  background: #8061d1;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}

.add-button:hover,
.add-to-cart:hover {
  background: #694bb7;
}

.product-card .detail-button {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #a78bfa;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: .2s ease;
}

.product-card .detail-button:hover {
  transform: translateY(-1px);
  background: #8b5cf6;
}

/* =========================
   PAGINATION
========================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 35px;
}

.pagination button {
  padding: 9px 13px;
  border: 1px solid #e5dcfa;
  border-radius: 8px;
  background: #fff;
  color: #7056b3;
  font-size: 13px;
  cursor: pointer;
}

.pagination button:hover:not(:disabled) {
  background: linear-gradient(135deg, #eee7ff, #e5f0ff);
}

.pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pagination span {
  color: #716782;
  font-size: 14px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  margin-top: 55px;
  border-top: 1px solid #e9defb;
  background: linear-gradient(135deg, #f7f2ff, #eef3ff);
  color: #655778;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 35px;
  padding-top: 38px;
  padding-bottom: 35px;
}

.footer-brand {
  text-align: center;
}

.footer-brand h2 {
  margin-bottom: 12px;
  color: #7956cf;
  font-size: 24px;
  font-weight: 800;
}

.footer-brand p {
  max-width: 420px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.footer-since {
  margin-top: 14px !important;
  color: #8669bd;
}

.footer-contact {
  text-align: center;
}

.footer-contact h3 {
  margin-bottom: 15px;
  color: #59418b;
  font-size: 16px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  margin-top: 14px;
}

.footer-socials a {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #e5d9f8;
  border-radius: 10px;
  background: #fff;
  color: #8061d1;
  text-decoration: none;
}

.footer-socials a:hover {
  background: #f0e8ff;
  color: #603ca0;
}

.footer-socials svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-socials a[aria-label="X atau Twitter"] svg {
  fill: currentColor;
  stroke: none;
}

.footer-bottom {
  padding: 16px;
  border-top: 1px solid #e5dcf5;
  background: rgb(255 255 255 / 45%);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #594477;
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   KERANJANG
========================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  justify-content: flex-end;
  overflow: hidden;
  background: rgb(38 25 62 / 45%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.cart-overlay.active {
  display: flex;
}

.cart-panel {
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  height: 100dvh;
  margin-left: auto;
  overflow: hidden;
  background: #fff;
  color: #30283d;
  box-shadow: -10px 0 40px rgb(55 35 90 / 15%);
}

.cart-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #ebe4fa;
  background: linear-gradient(135deg, #f6f0ff, #f0f5ff);
}

.cart-header h2 {
  color: #59418b;
  font-size: 20px;
}

.cart-header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.clear-cart-button,
.close-cart {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #e5d9f8;
  border-radius: 10px;
  background: #fff;
  color: #7956b8;
  cursor: pointer;
}

.clear-cart-button {
  gap: 6px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.clear-cart-button svg {
  display: block;
  width: 15px;
  height: 15px;
}

.clear-cart-button:hover,
.close-cart:hover {
  background: #f0e8ff;
  color: #603ca0;
}

.close-cart {
  width: 36px;
  padding: 0;
  font-size: 20px;
}

.cart-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 20px;
}

.empty-cart {
  padding: 45px 10px;
  color: #887b9e;
  text-align: center;
  line-height: 1.7;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid #f0ebf7;
}

.cart-item-image {
  flex: 0 0 65px;
  width: 65px;
  height: 65px;
  border: 1px solid #eee6fb;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-item-name {
  margin-bottom: 6px;
  color: #393047;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.cart-item-price {
  margin-top: 4px;
  color: #8061d1;
  font-size: 14px;
  font-weight: 700;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.quantity button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e4d9f4;
  border-radius: 8px;
  background: #f8f4ff;
  color: #6847a0;
  cursor: pointer;
}

.remove-button {
  margin-top: 7px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #dc5572;
  font-size: 12px;
  cursor: pointer;
}

.cart-footer {
  flex: 0 0 auto;
  max-height: 65%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px 20px;
  border-top: 1px solid #eee6f7;
  background: #fff;
}

.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #e9def9;
  border-radius: 12px;
  background: #f7f2ff;
  color: #514365;
  font-size: 15px;
}

.total strong {
  min-width: 0;
  color: #7953c4;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.total strong:last-child {
  text-align: right;
}

/* =========================
   FORM CHECKOUT
========================= */
.checkout-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.checkout-form h3 {
  margin-bottom: 4px;
  color: #49365f;
  font-size: 17px;
}

.checkout-form label {
  color: #514365;
  font-size: 13px;
  font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e3dbea;
  border-radius: 9px;
  background: #fdfbff;
  color: #30283d;
  font-family: inherit;
  font-size: 14px;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: #8061d1;
  box-shadow: 0 0 0 3px rgb(128 97 209 / 12%);
}

.checkout-form textarea {
  min-height: 75px;
  resize: vertical;
}

.checkout-button {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  border: 0;
  border-radius: 9px;
  background: #8061d1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-button:hover {
  background: #694bb7;
}

/* =========================
   HALAMAN DETAIL
========================= */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 5%;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.detail-header h2 {
  color: #111827;
}

.back-link {
  display: inline-block;
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-container {
  width: min(1000px, 90%);
  margin: 35px auto;
}

.detail-product {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  padding: 25px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(0 0 0 / 5%);
}

.detail-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f3f4f6;
  object-fit: cover;
}

.detail-info h1 {
  margin-bottom: 12px;
  color: #111827;
}

.detail-price {
  margin-bottom: 16px;
  color: #8061d1;
  font-size: 22px;
  font-weight: 700;
}

.detail-description {
  color: #6b7280;
  line-height: 1.7;
}

.detail-info h3 {
  margin: 25px 0 12px;
}

.detail-variants {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}

.detail-variant:hover {
  border-color: #8061d1;
  background: #f5f3ff;
}

.detail-variant span:first-child {
  flex: 1;
  line-height: 1.5;
}

.detail-variant strong {
  color: #8061d1;
  white-space: nowrap;
}

.detail-variant .variant-add-icon {
  color: #8061d1;
  font-size: 22px;
  font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 650px) {
  .hero {
    padding: 55px 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .logo {
    font-size: 18px;
  }

  .cart-button {
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-card img,
  .product-image {
    height: 125px;
  }

  .product-info {
    gap: 8px;
    padding: 10px;
  }

  .product-info h3,
  .product-name {
    font-size: 13px;
    line-height: 1.4;
  }

  .product-info p,
  .product-description {
    font-size: 11px;
    line-height: 1.4;
  }

  .product-price {
    font-size: 13px;
  }

  .product-card .detail-button {
    padding: 9px 5px;
    font-size: 11px;
  }

  .pagination {
    gap: 6px;
    padding: 12px 4px;
  }

  .pagination button {
    padding: 6px 9px;
    font-size: 11px;
  }

  .pagination span {
    font-size: 11px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 25px;
  }

  .footer-brand h2 {
    font-size: 21px;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .footer-bottom {
    padding: 14px 10px;
  }

  .cart-panel {
    width: 100%;
    max-width: 100%;
  }

  .cart-header {
    padding: 16px;
  }

  .cart-header h2 {
    font-size: 18px;
  }

  .cart-items {
    padding: 10px 16px;
  }

  .cart-footer {
    max-height: 68%;
    padding: 14px 16px 18px;
  }

  .detail-header {
    flex-wrap: wrap;
  }

  .detail-container {
    width: 92%;
    margin: 20px auto;
  }

  .detail-product {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .detail-image {
    max-width: 260px;
    margin: 0 auto;
  }

  .detail-info h1 {
    font-size: 24px;
  }

  .detail-variant {
    gap: 8px;
    padding: 12px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .cart-header {
    gap: 8px;
    padding: 14px 12px;
  }

  .cart-header h2 {
    font-size: 16px;
  }

  .cart-header-actions {
    gap: 6px;
  }

  .clear-cart-button {
    gap: 5px;
    padding: 8px;
    font-size: 11px;
  }

  .close-cart {
    width: 34px;
    height: 34px;
  }
}
/* =========================================
   NAAM AWW'S — ADMIN KELOLA PRODUK
========================================= */

#produk {
  width: 100%;
  min-width: 0;
  color: #352544;
}

/* HEADER */

#produk .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

#produk .section-heading h2 {
  margin: 0 0 7px;
  color: #39254d;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.5px;
}

#produk .section-heading p {
  margin: 0;
  color: #887a96;
  font-size: 14px;
  line-height: 1.6;
}

/* TOMBOL MUAT ULANG */

#produk #refresh-products {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #dfd0f1;
  border-radius: 10px;
  background: #fff;
  color: #7045a0;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: 0.2s ease;
}

#produk #refresh-products:hover {
  background: #f4edfc;
  border-color: #cbb2e8;
  transform: translateY(-1px);
}

/* SEARCH DAN FILTER */

#produk .product-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #eee6f6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(69, 43, 91, 0.035);
}

#produk .product-toolbar input,
#produk .product-toolbar select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #e5d9f0;
  border-radius: 9px;
  outline: none;
  background: #fdfbff;
  color: #443451;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#produk .product-toolbar input:focus,
#produk .product-toolbar select:focus {
  border-color: #a77bd0;
  box-shadow: 0 0 0 3px rgba(167, 123, 208, 0.13);
}

#produk .product-toolbar input::placeholder {
  color: #a397b0;
}

/* GRID PRODUK */

#produk .admin-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* KARTU PRODUK */

#produk .admin-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ece3f4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(61, 37, 83, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#produk .admin-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 24px rgba(61, 37, 83, 0.09);
  border-color: #ddc9ef;
}

/* GAMBAR PRODUK */

#produk .admin-product-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  background: #faf7fd;
  border-bottom: 1px solid #f0e9f6;
}

#produk .admin-product-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: #faf7fd;
  color: #9987aa;
  font-size: 13px;
  border-bottom: 1px solid #f0e9f6;
}

/* INFORMASI PRODUK */

#produk .admin-product-info {
  padding: 20px;
}

#produk .admin-product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#produk .admin-product-top h3 {
  min-width: 0;
  margin: 0;
  color: #39254d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#produk .admin-product-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

#produk .admin-product-status.active {
  background: #e9f7ef;
  color: #27764b;
}

#produk .admin-product-status.inactive {
  background: #fceced;
  color: #b43f4a;
}

#produk .admin-product-category {
  display: inline-block;
  margin: 10px 0 8px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #f4edfb;
  color: #79539c;
  font-size: 11px;
  font-weight: 650;
}

#produk .admin-product-description {
  margin: 8px 0 18px;
  color: #82768e;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* DAFTAR VARIAN DAN HARGA */

#produk .admin-product-variants {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #eee7f4;
}

#produk .admin-product-variants > strong {
  display: block;
  margin-bottom: 8px;
  color: #59436f;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

#produk .admin-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f2edf6;
  color: #655672;
  font-size: 13px;
  line-height: 1.5;
}

#produk .admin-variant-row:last-child {
  border-bottom: none;
}

#produk .admin-variant-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#produk .admin-variant-row > strong {
  flex-shrink: 0;
  color: #7044a0;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

#produk .admin-variant-row small {
  display: block;
  margin-top: 3px;
  color: #b43f4a;
  font-size: 11px;
}

#produk .admin-product-variants > p {
  color: #998ba5;
  font-size: 13px;
}

/* ID PRODUK */

#produk .admin-product-id {
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #eee6f5;
  color: #a094ad;
  font-size: 11px;
}

/* PESAN KOSONG / ERROR */

#produk #admin-product-list > .notice {
  padding: 24px;
  border: 1px solid #e9def4;
  border-radius: 12px;
  background: #fcf9ff;
  color: #6f5a82;
  line-height: 1.7;
}

/* RESPONSIVE TABLET */

@media (max-width: 900px) {
  #produk .admin-product-grid {
    grid-template-columns: 1fr;
  }

  #produk .admin-product-image {
    height: 230px;
  }
}

/* RESPONSIVE HP */

@media (max-width: 600px) {
  #produk .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  #produk .section-heading h2 {
    font-size: 22px;
  }

  #produk #refresh-products {
    width: 100%;
  }

  #produk .product-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }

  #produk .admin-product-info {
    padding: 15px;
  }

  #produk .admin-product-image {
    height: 190px;
  }

  #produk .admin-product-top {
    flex-wrap: wrap;
  }
}
/* ===================================
   REFINEMENT — NAAM AWW'S ADMIN
=================================== */

/* Area produk lebih lapang */
#produk {
  color: #39264b;
}

#produk .section-heading {
  margin-bottom: 28px;
  align-items: center;
}

#produk .section-heading h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
}

#produk .section-heading p {
  margin-top: 6px;
  color: #9585a5;
}

/* Tombol MUAT ULANG berwarna lavender */
#produk #refresh-products {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 19px;
  border: none;
  border-radius: 9px;
  background: #8955b5;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 4px 10px rgba(137, 85, 181, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

#produk #refresh-products::before {
  content: "↻";
  font-size: 19px;
  line-height: 1;
}

#produk #refresh-products:hover {
  background: #704098;
  transform: translateY(-1px);
}

/* Area pencarian: ringan, tidak seperti kotak besar */
#produk .product-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Cari produk */
#produk .product-toolbar input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 17px;
  border: 1px solid #e4d5f2;
  border-radius: 10px;
  background: #f8f3fd;
  color: #493459;
  font-size: 13px;
  transition: all 0.2s ease;
}

#produk .product-toolbar input::placeholder {
  color: #9a87ac;
}

#produk .product-toolbar input:focus {
  border-color: #a77acb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(167, 122, 203, 0.12);
  outline: none;
}

/* Filter SEMUA PRODUK */
#produk .product-toolbar select {
  flex: 0 0 190px;
  width: 190px;
  height: 46px;
  padding: 0 35px 0 14px;
  border: 1px solid #e0d1f0;
  border-radius: 10px;
  background-color: #eee4fa;
  color: #70439a;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  outline: none;
}

#produk .product-toolbar select:focus {
  border-color: #a77acb;
  box-shadow: 0 0 0 3px rgba(167, 122, 203, 0.12);
}

/* Kartu produk lebih menyatu dan ringan */
#produk .admin-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

#produk .admin-product-card {
  overflow: hidden;
  border: none;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transition: transform 0.2s ease;
}

#produk .admin-product-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

/* Gambar menjadi bagian utama produk */
#produk .admin-product-image {
  height: 235px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #f7f1fc;
  object-fit: contain;
}

#produk .admin-product-no-image {
  height: 200px;
  border: none;
  border-radius: 12px;
  background: #f7f1fc;
  color: #9580aa;
}

/* Informasi tanpa bingkai kartu */
#produk .admin-product-info {
  padding: 15px 3px 8px;
}

#produk .admin-product-top h3 {
  color: #39264b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

#produk .admin-product-status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
}

#produk .admin-product-status.active {
  background: #e4f5eb;
  color: #26744a;
}

#produk .admin-product-status.inactive {
  background: #fce9ed;
  color: #b43e54;
}

#produk .admin-product-category {
  margin: 8px 0 4px;
  padding: 0;
  background: transparent;
  color: #9062b1;
  font-size: 12px;
  font-weight: 650;
}

#produk .admin-product-description {
  margin: 8px 0 15px;
  color: #8b7d98;
  font-size: 13px;
  line-height: 1.7;
}

/* Varian harga berupa baris bersih */
#produk .admin-product-variants {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #eee6f4;
}

#produk .admin-product-variants > strong {
  margin-bottom: 5px;
  color: #80638f;
  font-size: 11px;
  letter-spacing: 0.7px;
}

#produk .admin-variant-row {
  padding: 11px 0;
  border-bottom: 1px solid #f3edf7;
  color: #665572;
  font-size: 13px;
}

#produk .admin-variant-row > strong {
  color: #8250aa;
  font-weight: 750;
}

#produk .admin-product-id {
  color: #a99ab5;
  font-size: 11px;
}

/* Tampilan HP */
@media (max-width: 700px) {
  #produk .section-heading h2 {
    font-size: 23px;
  }

  #produk .product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #produk .product-toolbar input,
  #produk .product-toolbar select {
    box-sizing: border-box;
    width: 100%;
    flex: auto;
  }

  #produk .admin-product-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  #produk .admin-product-image {
    height: 220px;
  }
}

/* =========================================
   FORM TAMBAH PRODUK — NAAM AWW'S
========================================= */

#produk .admin-add-product {
  margin: 22px 0 30px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

#produk .add-product-heading {
  margin-bottom: 18px;
}

#produk .add-product-heading h3 {
  margin: 0 0 5px;
  color: #39264b;
  font-size: 17px;
  font-weight: 650;
}

#produk .add-product-heading p {
  margin: 0;
  color: #8d8298;
  font-size: 12px;
  line-height: 1.5;
}

/* Susunan kolom formulir */

#produk .product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

#produk .admin-add-product .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

#produk .admin-add-product .form-group label {
  color: #51445e;
  font-size: 12px;
  font-weight: 600;
}

#produk .admin-add-product .form-group input,
#produk .admin-add-product .form-group textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e5dbea;
  border-radius: 7px;
  background: #fff;
  color: #352544;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease;
}

#produk .admin-add-product .form-group input {
  min-height: 36px;
}

#produk .admin-add-product .form-group textarea {
  min-height: 62px;
  resize: vertical;
}

#produk .admin-add-product .form-group input:focus,
#produk .admin-add-product .form-group textarea:focus {
  border-color: #a58ac2;
}

#produk .admin-add-product .form-group input::placeholder,
#produk .admin-add-product .form-group textarea::placeholder {
  color: #aaa0b3;
  font-size: 11px;
}

#produk .admin-add-product .form-group small {
  color: #91869a;
  font-size: 10px;
  line-height: 1.5;
}

#produk .product-form-full {
  grid-column: 1 / -1;
}

/* Status produk */

#produk .product-active-option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  cursor: pointer;
}

#produk .product-active-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #8061a3;
  cursor: pointer;
}

#produk .product-active-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#produk .product-active-option strong {
  color: #51445e;
  font-size: 12px;
  font-weight: 600;
}

#produk .product-active-option small {
  color: #91869a;
  font-size: 10px;
}

/* Tombol formulir */

#produk .product-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

#produk .product-reset-button {
  padding: 9px 13px;
  border: 1px solid #e5dbea;
  border-radius: 7px;
  background: #fff;
  color: #746780;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

#produk .product-reset-button:hover {
  background: #f8f5fb;
}

#produk #save-product-button {
  padding: 9px 15px;
  border: 1px solid #8061a3;
  border-radius: 7px;
  background: #8061a3;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

#produk #save-product-button:hover {
  background: #6e508f;
}

/* Pesan formulir */

#produk #add-product-message {
  margin-top: 12px;
  font-size: 12px;
}

/* Pencarian dan filter produk */

#produk .product-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

#produk .product-toolbar input[type="search"] {
  flex: 1 1 200px;
  width: 100%;
  min-width: 0;
  height: 37px;
  padding: 0 11px;
  border: 1px solid #e5dbea;
  border-radius: 7px;
  background: #fff;
  color: #352544;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

#produk .product-toolbar select {
  flex: 0 0 175px;
  width: 175px;
  height: 37px;
  padding: 0 10px;
  border: 1px solid #e5dbea;
  border-radius: 7px;
  background: #fff;
  color: #51445e;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

#produk .product-toolbar input:focus,
#produk .product-toolbar select:focus {
  border-color: #a58ac2;
}

/* Tampilan layar kecil */

@media (max-width: 600px) {
  #produk .product-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #produk .product-form-full {
    grid-column: auto;
  }

  #produk .product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #produk .product-toolbar input[type="search"],
  #produk .product-toolbar select {
    flex: 1 1 auto;
    width: 100%;
  }
}