
/* === General container === */
.akm-vendor-dashboard,
.akm-vendor-store {
  max-width: 960px;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 1.25rem;
  background: #f9fafb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === DASHBOARD === */
.akm-vd-header {
  text-align: right;
  margin-bottom: 0.75rem;
}

.akm-vd-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.akm-vd-header p {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.akm-vd-tabs-nav {
  display: flex;
  overflow-x: auto;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.akm-vd-tab-btn {
  flex: 1 0 auto;
  border: none;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.akm-vd-tab-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #f9fafb;
}

.akm-vd-tabs {
  margin-top: 0.5rem;
}

.akm-vd-tab {
  display: none;
}

.akm-vd-tab--active {
  display: block;
}

.akm-vd-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.akm-vd-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.akm-vd-field input[type="text"],
.akm-vd-field input[type="number"],
.akm-vd-field input[type="url"],
.akm-vd-field input[type="color"],
.akm-vd-field textarea,
.akm-vd-field select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  box-sizing: border-box;
}

.akm-vd-two-cols {
  display: flex;
  gap: 0.5rem;
}

.akm-vd-two-cols .akm-vd-field {
  flex: 1;
}

/* Images grid for add product */
.akm-vd-images-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.akm-vd-image-slot {
  border-radius: 0.9rem;
  border: 1px dashed #9ca3af;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.akm-vd-image-slot input[type="file"] {
  font-size: 0.7rem;
}

.akm-vd-image-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.akm-vd-image-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  transition: width 0.3s ease;
}

.akm-vd-help-text {
  font-size: 0.74rem;
  color: #6b7280;
}

.akm-vd-actions {
  margin-top: 0.25rem;
}

.akm-vd-btn-primary,
.akm-vd-btn-secondary {
  border-radius: 999px;
  border: none;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.akm-vd-btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #f9fafb;
}

.akm-vd-btn-secondary {
  background: #111827;
  color: #f9fafb;
}

/* My products */
.akm-vd-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.akm-vd-product-card {
  display: flex;
  gap: 0.55rem;
  padding: 0.45rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.akm-vd-product-thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.8rem;
}

.akm-vd-product-info {
  flex: 1;
}

.akm-vd-product-title {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
}

.akm-vd-product-title a {
  text-decoration: none;
  color: #111827;
}

.akm-vd-product-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 0.15rem;
}

.akm-vd-product-status {
  font-size: 0.75rem;
  color: #6b7280;
}

.akm-vd-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.akm-vd-link {
  font-size: 0.78rem;
  text-decoration: none;
  color: #2563eb;
  background: #e0f2fe;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.akm-vd-link--danger {
  background: #fee2e2;
  color: #b91c1c;
}

/* Store preview inside dashboard */
.akm-vd-store-preview {
  border-radius: 1.2rem;
  background: #111827;
  color: #f9fafb;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.akm-vd-store-cover img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 1.2rem 1.2rem 0 0;
}

.akm-vd-store-header {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.6rem 0;
}

.akm-vd-store-avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.9);
}

.akm-vd-store-info h4 {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
}

.akm-vd-store-info p {
  margin: 0.05rem 0;
  font-size: 0.75rem;
}

/* Orders */
.akm-vd-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.akm-vd-order-card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.akm-vd-order-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.akm-vd-order-label {
  color: #6b7280;
}

.akm-vd-order-actions select {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
  margin-inline-start: 0.4rem;
}

/* Misc */
.akm-vd-checkbox {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.akm-vd-alert {
  padding: 0.45rem 0.6rem;
  border-radius: 0.9rem;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.akm-vd-alert-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.akm-vd-notice {
  font-size: 0.85rem;
  text-align: right;
}

/* === VENDOR STORE FRONT === */

.akm-vendor-store {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.akm-vs-hero {
  position: relative;
  border-radius: 0 0 1.5rem 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #f9fafb;
  padding-bottom: 3.2rem;
}

.akm-vs-hero-cover img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  opacity: 0.95;
}

.akm-vs-hero-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.4rem;
}

.akm-vs-hero-avatar {
  position: absolute;
  bottom: -32px;
  right: 1rem;
  transform: translateY(50%);
}

.akm-vs-hero-avatar img,
.akm-vs-hero-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 3px solid #f9fafb;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.akm-vs-hero-info {
  margin-right: 5.2rem;
}

.akm-vs-store-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.akm-vs-store-meta {
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  opacity: 0.95;
}

.akm-vs-store-meta span::before {
  content: '•';
  margin: 0 0.15rem;
}

.akm-vs-store-meta span:first-child::before {
  content: '';
  margin: 0;
}

/* Content layout */
.akm-vs-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.6rem 1rem 1.5rem;
}

.akm-vs-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 1rem;
}

.akm-vs-card {
  border-radius: 1.1rem;
  background: #ffffff;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 0.7rem;
}

.akm-vs-card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.akm-vs-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
}

.akm-vs-info-line {
  display: flex;
  gap: 0.3rem;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.akm-vs-info-label {
  color: #6b7280;
}

/* Contact card */
.akm-vs-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
  margin-bottom: 0.35rem;
}

.akm-vs-contact-btn {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.akm-vs-contact-phone {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.akm-vs-contact-wa {
  background: #ecfdf3;
  color: #15803d;
  border-color: #bbf7d0;
}

.akm-vs-social-row a {
  font-size: 0.8rem;
  color: #2563eb;
  text-decoration: none;
}

/* Products section */
.akm-vs-products-section {
  border-radius: 1.1rem;
  background: #ffffff;
  padding: 0.8rem 0.9rem 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.akm-vs-products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.akm-vs-products-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.akm-vs-filters {
  display: flex;
  gap: 0.25rem;
}

.akm-vs-filter-btn {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
}

.akm-vs-filter-btn.active {
  background: #111827;
  color: #f9fafb;
}

.akm-vs-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.akm-vs-product-card {
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.akm-vs-product-imgwrap {
  position: relative;
  display: block;
}

.akm-vs-product-imgwrap img,
.akm-vs-product-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.akm-vs-product-placeholder {
  background: #e5e7eb;
}

.akm-vs-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.akm-vs-badge-free {
  top: auto;
  bottom: 0.4rem;
  right: 0.4rem;
  background: #ecfdf3;
  color: #15803d;
}

.akm-vs-badge-sale {
  background: #fee2e2;
  color: #b91c1c;
}

.akm-vs-product-body {
  padding: 0.4rem 0.45rem 0.45rem;
}

.akm-vs-product-title {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
}

.akm-vs-product-title a {
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.akm-vs-product-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
}

/* Responsive */
@media (max-width: 768px) {
  .akm-vendor-dashboard,
  .akm-vendor-store {
    margin: 0.5rem;
    padding: 0.75rem;
  }

  .akm-vd-two-cols {
    flex-direction: column;
  }

  .akm-vd-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .akm-vs-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .akm-vs-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .akm-vs-hero-bottom {
    padding-inline: 0.85rem;
  }
}
