/* ── Page background ── */
.ptk-page-bg {
  background: #f5f5f5;
  min-height: 100vh;
}

/* ── Mobile sub-header ── */
.ptk-mobile-header {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 13px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Desktop header ── */
.ptk-desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ptk-btn-tambah {
  background: #ff5200;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(255, 82, 0, 0.2);
}

.ptk-btn-tambah:hover {
  background: #e64a00;
  transform: translateY(-1px);
}

/* ── Tab navigation ── */
.ptk-tabs {
  display: flex;
  background: white;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 50px;
  z-index: 99;
}

.ptk-tabs::-webkit-scrollbar { display: none; }

@media (min-width: 992px) {
  .ptk-tabs {
    position: static;
    background: transparent;
    border-bottom: none;
    margin-bottom: 20px;
    gap: 8px;
  }
}

.ptk-tab-item {
  padding: 12px 20px;
  font-size: 0.85rem;
  color: #666;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.ptk-tab-item.active {
  color: #ff5200;
  border-bottom-color: #ff5200;
  font-weight: 700;
}

@media (min-width: 992px) {
  .ptk-tab-item {
    background: white;
    border: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 24px;
  }
  .ptk-tab-item.active {
    background: #ff5200;
    color: white;
    border-color: #ff5200;
  }
}

/* ── Product list ── */
.ptk-product-list {
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .ptk-product-list { padding-bottom: 20px; }
}

/* ── Product card ── */
.ptk-product-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
 

/* ── Product main ── */
.ptk-product-main {
  display: flex;
  gap: 15px;
  margin-bottom: 14px;
}

@media (min-width: 992px) {
  .ptk-product-main {
    flex: 3;
    margin-bottom: 0;
  }
}

.ptk-product-img { 
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ptk-product-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.ptk-product-price {
  color: #ff5200;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── Stats ── */
.ptk-product-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

@media (min-width: 992px) {
  .ptk-product-stats {
    grid-template-columns: repeat(2, 1fr);
    flex: 2;
    margin-bottom: 0;
    background: transparent;
    padding: 0;
  }
}

.ptk-stat-box {
  font-size: 0.75rem;
  color: #777;
}

/* ── Actions ── */
.ptk-product-actions {
  display: flex;
  gap: 8px;
}

@media (min-width: 992px) {
  .ptk-product-actions { 
    justify-content: flex-end;
  }
}

.ptk-btn-action { 
  width:85px;
  margin: 3px 5px;
  /* display: table; */
  padding: 3px 5px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  border: none;
}

@media (min-width: 992px) {
  .ptk-btn-action {
    flex: none;
    padding: 3px 5px;
  }
}

.ptk-btn-outline {
  border: 1px solid #ddd !important;
  background: white;
  color: #666;
}

.ptk-btn-outline:hover { background: #f5f5f5; }

.ptk-btn-edit {
  border: 1px solid #ff5200 !important;
  background: white;
  color: #ff5200;
}

.ptk-btn-edit:hover {
  background: #ff5200;
  color: white;
}

/* ── Mobile fixed bottom ── */
.ptk-footer-action {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: white;
  border-top: 1px solid #eee;
  z-index: 101;
}

.ptk-btn-tambah-full {
  width: 100%;
  background: #ff5200;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 82, 0, 0.2);
  transition: 0.2s;
}

.ptk-btn-tambah-full:hover { background: #e64a00; }
