* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f5f7fb;
  color: #101828;
}

.hidden {
  display: none !important;
}

/* LOGIN */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 35%),
    linear-gradient(135deg, #f8fafc, #eef4ff);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.96);
  border: 1px solid #e4e7ec;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.14);
}

.login-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.login-card h1 {
  margin: 18px 0 8px;
  font-size: 30px;
  letter-spacing: -1px;
}

.login-card p {
  margin: 0 0 22px;
  color: #667085;
  line-height: 1.5;
  font-size: 14px;
}

.google-btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #101828, #344054);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.allowed-note {
  margin-top: 14px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

/* HEADER */

.brand {
  font-size: 18px;
  font-weight: 900;
}

.store-id {
  margin-top: 2px;
  font-size: 12px;
  color: #667085;
  font-weight: 800;
}

.logout-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #101828;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* MAIN */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 35%),
    #fff;
  border: 1px solid #e4e7ec;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
  display: grid;
  gap: 16px;
}

.eyebrow {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 8px 0;
  font-size: 26px;
  letter-spacing: -0.9px;
}

.hero-card p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

.primary-btn,
.save-btn,
.dark-btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37,99,235,0.25);
}

.save-btn {
  margin-top: 14px;
  background: #2563eb;
  color: #fff;
}

.dark-btn {
  margin-top: 14px;
  background: #101828;
  color: #fff;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* FORMS ABOVE PRODUCTS */
.forms-area {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.product-list-section {
  margin-top: 20px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.panel,
.product-item {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 900;
}

.panel h3 span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #344054;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid #d0d5dd;
  font-size: 14px;
  outline: none;
  background: #fff;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

/* PRODUCT LIST */
.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-main-row {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 12px;
  align-items: start;
}

.admin-product-thumb {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
}

.product-title {
  font-size: 16px;
  font-weight: 900;
}

.product-meta {
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.status-active,
.status-disabled {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.status-active {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.status-disabled {
  background: #fff1f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product-actions button {
  border: 0;
  border-radius: 13px;
  padding: 11px;
  font-weight: 900;
  cursor: pointer;
}

.btn-edit {
  background: #eff6ff;
  color: #1d4ed8;
}

.btn-disable {
  background: #fff1f2;
  color: #dc2626;
}

.btn-enable {
  background: #ecfdf3;
  color: #027a48;
}

.btn-delete {
  background: #fee2e2;
  color: #991b1b;
}

/* VARIANT */
.variant-row {
  margin-top: 10px;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.variant-row button {
  align-self: center;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 900;
}

/* IMAGES */
.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.img-card {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 8px;
}

.img-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.img-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 7px;
}

.img-actions button {
  border: 0;
  border-radius: 10px;
  padding: 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.img-actions button:first-child {
  background: #fee2e2;
  color: #b91c1c;
}

.img-actions button:last-child {
  background: #eff6ff;
  color: #1d4ed8;
}

.light-btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 10px;
  background: #f2f4f7;
  color: #344054;
}

.variant-info {
  flex: 1;
}

.variant-status {
  display: inline-flex;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.variant-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 86px;
}

.variant-actions button {
  width: 100%;
}

.variant-actions .btn-edit {
  background: #eff6ff;
  color: #1d4ed8;
}

.variant-actions .btn-disable {
  background: #fff1f2;
  color: #dc2626;
}

.variant-actions .btn-enable {
  background: #ecfdf3;
  color: #027a48;
}

.variant-actions .btn-delete {
  background: #fee2e2;
  color: #991b1b;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(16, 24, 40, 0.58);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-box {
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-radius: 28px;
  padding: 26px 22px;
  box-shadow: 0 30px 90px rgba(16, 24, 40, 0.28);
  text-align: center;
  animation: modalPop 0.18s ease-out;
}

@keyframes modalPop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-weight: 900;
  font-size: 22px;
  background: #ecfdf3;
  color: #027a48;
}

.modal-icon.error {
  background: #fff1f2;
  color: #dc2626;
}

.modal-icon.confirm {
  background: #eff6ff;
  color: #2563eb;
}

.modal-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.modal-box p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}

.modal-ok,
.modal-cancel {
  border: 0;
  border-radius: 15px;
  padding: 13px;
  font-weight: 900;
  cursor: pointer;
}

.modal-ok {
  background: #101828;
  color: #fff;
}

.modal-cancel {
  background: #f2f4f7;
  color: #344054;
}

.modal-actions.confirm-mode {
  grid-template-columns: repeat(2, 1fr);
}

.modal-box {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

@media (min-width: 820px) {
  .hero-card {
    grid-template-columns: 1fr 220px;
    align-items: center;
  }

  .forms-area {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .product-card {
  grid-template-columns: 1fr;
}

  .img-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.top-header {
  height: 54px;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.back-btn,
.refresh-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 11px;
  background: #f3f4f6;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.back-btn i,
.refresh-btn i {
  font-size: 15px;
}

.header-title {
  font-size: 17px;
  font-weight: 900;
  color: #111827;
}


.action-lock {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  pointer-events: all;
}

.action-spinner {
  width: 46px;
  height: 46px;
  border: 5px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.img-card.is-cover {
  border: 2px solid #2563eb;
}

.img-cover-badge {
  margin-top: 6px;
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}


