:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #fff1f4;
  color: #2f2438;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: #fff1f4;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.report-shell {
  max-width: 760px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 1rem 0.75rem 1.25rem;
  background: #f4f6f8;
  min-height: 100vh;
}

body {
  min-height: 100vh;
  background: #f4f6f8;
  margin: 0;
}

.report-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(214, 214, 222, 0.85);
  border-radius: 18px;
  padding: 1rem 1rem 0.95rem;
  box-shadow: 0 10px 28px rgba(38, 41, 59, 0.08);
}

.report-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 700;
  color: #1f1b26;
}

.report-subtitle {
  margin: 0;
  color: #6d6372;
  font-size: 0.85rem;
  line-height: 1.4;
}

.report-badge {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge.realtime {
  background: #e8f3ff;
  color: #1f61b2;
}

.badge.update {
  background: #ebf7ed;
  color: #1c5b2a;
}

.search-card {
  margin-top: 0.95rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(218, 218, 226, 0.8);
}

.search-label {
  display: block;
  margin-bottom: 0.65rem;
  color: #5f5b66;
  font-size: 0.82rem;
}

#searchInput {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(206, 209, 216, 0.9);
  padding: 0.82rem 1rem;
  background: #fafbfc;
  color: #24212a;
  font-size: 0.95rem;
}

#searchInput:focus {
  outline: none;
  border-color: rgba(98, 122, 229, 0.85);
  box-shadow: 0 0 0 3px rgba(217, 226, 255, 0.75);
}

.stats-row {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: #5f5b66;
  padding: 0.55rem 0.25rem;
}

.stats-row strong {
  color: #27232f;
  font-weight: 700;
}

.product-list-section {
  margin-top: 0.95rem;
}

.product-grid {
  display: grid;
  gap: 0.85rem;
}

.inventory-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0.95rem 0.95rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(218, 220, 229, 0.9);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(53, 54, 71, 0.06);
}

.inventory-item .product-image {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f6fb;
}

.inventory-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-item .item-info {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.inventory-item .item-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #191724;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inventory-item .item-meta {
  color: #7a7481;
  font-size: 0.78rem;
  line-height: 1.3;
}

.inventory-item .price-group {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.35rem;
}

.inventory-item .price-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #5f5b66;
}

.inventory-item .price-line span {
  color: #7a7481;
}

.inventory-item .price-original strong,
.inventory-item .price-only strong {
  color: #1f7c2b;
  font-weight: 700;
}

.inventory-item .price-sale strong {
  color: #1b57a9;
  font-weight: 700;
}

.stock-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
}

.stock-value {
  font-size: 1.35rem;
  font-weight: 800;
}

.stock-available {
  color: #11572d;
}

.stock-empty {
  color: #be2233;
}

.stock-label {
  color: #7a7481;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.inventory-item {
  display: grid;
  grid-template-columns: 70px minmax(180px, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 0.95rem 0.95rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(220, 189, 209, 0.6);
  background: #ffffff;
}

.inventory-item .product-image {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f0f4;
}

.inventory-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-item .item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.inventory-item .item-meta {
  color: #776b7b;
  font-size: 0.78rem;
  line-height: 1.3;
}

.inventory-item .price-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.inventory-item .price-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #5d4d63;
}

.inventory-item .price-line span {
  color: #7d6f83;
}

.inventory-item .price-original strong,
.inventory-item .price-only strong {
  color: #1c7e28;
  font-weight: 700;
}

.inventory-item .price-sale strong {
  color: #0f5ebd;
  font-weight: 700;
}

.stock-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.stock-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.stock-available {
  color: #117d3d;
}

.stock-empty {
  color: #be2432;
}

.stock-label {
  color: #7d6e7c;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-image {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  background: #faf0f4;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 72px;
  background: #f8f0f5;
  color: #6b5971;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.75rem;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-name {
  margin: 0;
  color: #2d2437;
  font-size: 1rem;
}

.product-desc {
  margin: 0;
  color: #6b5971;
  font-size: 0.92rem;
  line-height: 1.4;
}

.product-quantity,
.product-price,
.product-status {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label {
  color: #7d677d;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-price strong {
  font-size: 1rem;
  color: #2d2437;
}

.product-price small {
  color: #8b6d8b;
  font-size: 0.91rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  min-width: 86px;
  text-align: center;
}

.status-available {
  background: #dcf2ea;
  color: #1d5547;
}

.status-out {
  background: #ffe7ec;
  color: #97394f;
}

.empty-state {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px dashed rgba(215, 173, 193, 0.7);
  background: #fff4f7;
  color: #6f5871;
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .product-row {
    grid-template-columns: minmax(72px, 72px) 1fr;
    grid-template-rows: auto auto auto;
  }

  .product-quantity,
  .product-price,
  .product-status {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 1rem;
  }

  .product-table-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-row {
    grid-template-columns: minmax(64px, 64px) 1fr;
    padding: 0.95rem;
  }

  #searchInput {
    min-height: 48px;
    border-radius: 16px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

.popup-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.popup-price-row {
  align-items: flex-end;
}

.popup-meta {
  margin: 0;
  color: #6e546e;
}

@media (max-width: 940px) {
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .hero-visual {
    min-height: 240px;
  }
  .popup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-header,
  .page-controls,
  .admin-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-banner {
    border-radius: 24px;
  }

  .form-grid {
    gap: 1rem;
  }

  .page-controls,
  .admin-tools {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .popup-actions {
    grid-template-columns: 1fr;
  }
}

.control-item label,
label {
  display: grid;
  gap: 0.5rem;
  color: #54415a;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(226, 206, 217, 0.95);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: #fff;
  color: #362e3e;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #d63384;
  box-shadow: 0 0 0 4px rgba(214, 51, 132, 0.12);
}

textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-card,
.table-card,
.auth-card {
  max-width: 1180px;
  margin: 1rem auto;
}

.admin-layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.hidden {
  display: none !important;
}

.products-list {
  display: grid;
  gap: 1rem;
}

.product-card,
.product-row {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(148, 115, 150, 0.12);
}

.product-card {
  border: 1px solid rgba(231, 208, 222, 0.9);
}

.product-grid {
  max-width: 1180px;
  margin: 1rem auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card img,
.product-row img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 0.9rem;
}

.product-card h3,
.product-row h3 {
  margin: 0;
  font-size: 1.2rem;
}

.product-card p,
.product-row p {
  margin: 0.75rem 0 0;
  color: #64505b;
  line-height: 1.7;
}

.price-row,
.product-row .row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.9rem;
}

.price-row strong,
.product-row .price strong {
  color: #d63384;
  font-size: 1.15rem;
}

.price-row del,
.product-row .price del {
  color: #9b8aa3;
}

.badge,
.stock-badge,
.badge.small {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge {
  background: #fff0f7;
  color: #d63384;
}

.stock-badge {
  background: #fce7f3;
  color: #9a1f55;
}

.badge.small {
  background: #ffe3f1;
  color: #81325a;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.product-row {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.product-row .row-content {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.row-actions .button {
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
}

.empty-state {
  max-width: 780px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 32px;
  text-align: center;
  border: 1px dashed rgba(214, 51, 132, 0.3);
  background: rgba(255, 242, 249, 0.7);
}

.empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.message {
  margin-top: 0.9rem;
  color: #5f536b;
}

.message.success {
  color: #1d7a3f;
}

.message.error {
  color: #9b1f55;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(16px);
  min-width: 220px;
  max-width: 90%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(28, 134, 255, 0.95);
  color: #ffffff;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(20, 30, 80, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: rgba(187, 34, 53, 0.95);
}

.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  z-index: 9999;
}

.floating-button:hover {
  transform: scale(1.05);
  box-shadow:
    0 12px 40px rgba(255, 182, 193, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.floating-button:active {
  transform: scale(0.95);
}

@keyframes floatingPulse {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(255, 182, 193, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(255, 182, 193, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

.floating-button {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  background: rgba(255, 240, 247, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 182, 193, 0.3);
  box-shadow:
    0 8px 32px rgba(255, 182, 193, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: floatingPulse 2s infinite;
}

.floating-icon {
  font-size: 1.5rem;
  color: #e91e63;
  filter: drop-shadow(0 2px 4px rgba(233, 30, 99, 0.3));
}





/* Quantity Controls */
.quantity-cell {
  min-width: 180px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(233, 205, 222, 0.8);
  background: #ffffff;
  border-radius: 6px;
  color: #6d6372;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
  background: #f8f9ff;
  border-color: #c026d3;
  color: #c026d3;
}

.quantity-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quantity-input {
  width: 60px;
  height: 28px;
  border: 1px solid rgba(233, 205, 222, 0.8);
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f1b26;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.quantity-input:focus {
  outline: none;
  border-color: #c026d3;
  box-shadow: 0 0 0 2px rgba(192, 38, 211, 0.1);
}

.quantity-save-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid #c026d3;
  background: #c026d3;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-save-btn:hover {
  background: #a21caf;
  border-color: #a21caf;
}

@media (max-width: 900px) {
  .product-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-header,
  .page-controls,
  .admin-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
  animation: slideUp 0.3s ease;
  width: 95vw;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Index page luxury redesign */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 249, 0.92);
  border-bottom: 1px solid rgba(233, 205, 222, 0.85);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #2f2d36;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(214, 51, 132, 0.18);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-copy span {
  display: block;
  margin-top: 0.15rem;
  color: #7b5b74;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  color: #5f536b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
  color: #d63384;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(233, 205, 222, 0.9);
  color: #6e546e;
  text-decoration: none;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(214, 51, 132, 0.12);
  background: #fff0f7;
  color: #d63384;
}

.hero-section {
  display: none !important;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy .eyebrow {
  color: #d63384;
  letter-spacing: 0.16em;
}

.hero-copy h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.6rem, 3.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #2f2d36;
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: #7b5b74;
}

.hero-text {
  margin: 1rem 0 1.4rem;
  max-width: 460px;
  color: #6d5466;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-section .button {
  min-width: 145px;
  padding: 0.85rem 1.2rem;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  padding: 1.5rem;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 250, 249, 0.96), #fff6fb 100%);
  box-shadow: 0 30px 60px rgba(196, 147, 172, 0.12);
}

.hero-main-card {
  width: 100%;
  max-width: 340px;
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(233, 205, 222, 0.9);
  box-shadow: 0 24px 50px rgba(196, 147, 172, 0.12);
  text-align: center;
}

.hero-main-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 24px;
  margin: 0 auto;
}

.hero-main-copy strong {
  display: block;
  font-size: 1.2rem;
  color: #2f2d36;
}

.hero-main-copy span {
  display: block;
  color: #7b5b74;
  font-size: 0.96rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(196, 147, 172, 0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #5f536b;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.trust-section,
.search-panel,
.product-section,
.community-section,
.reviews-section,
.site-footer {
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.search-panel {
  position: sticky;
  top: 92px;
  z-index: 20;
  background: rgba(255, 250, 249, 0.96);
  border: 1px solid rgba(233, 205, 222, 0.7);
  border-radius: 32px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 24px 64px rgba(196, 147, 172, 0.08);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-head .eyebrow {
  margin: 0;
  color: #d63384;
  letter-spacing: 0.16em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  color: #2f2d36;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.trust-card {
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(233, 205, 222, 0.9);
  box-shadow: 0 24px 60px rgba(196, 147, 172, 0.08);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: rgba(214, 51, 132, 0.12);
  color: #d63384;
  font-size: 1.2rem;
}

.trust-card strong {
  display: block;
  margin: 1rem 0 0.75rem;
  color: #2f2d36;
}

.trust-card p {
  margin: 0;
  color: #7b5b74;
  line-height: 1.8;
}

.search-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.9rem;
  align-items: end;
}

.search-field {
  display: grid;
  gap: 0.4rem;
}

.search-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #6b5469;
  font-weight: 600;
  font-size: 0.95rem;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(233, 205, 222, 0.9);
  background: #fff;
  color: #2f2d36;
  min-height: 48px;
}

.product-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.product-card,
.product-row {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(196, 147, 172, 0.08);
}

.product-card {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(233, 205, 222, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(196, 147, 172, 0.12);
}

.product-card::before,
.product-card::after {
  display: none !important;
}

.product-card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #fafaf9;
  height: 280px;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  filter: none;
}

.product-card:hover .product-card-image img {
  transform: none;
}

.product-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.product-card-badges .product-tag,
.product-card-badges .stock-pill,
.product-card-badges .badge {
  position: static;
}

.product-tag {
  position: static;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(214, 51, 132, 0.12);
  color: #d63384;
  font-weight: 700;
  font-size: 0.75rem;
}

.stock-pill {
  position: static;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stock-pill.badge {
  background: rgba(255, 236, 242, 0.95);
  color: #a31f43;
}

.stock-pill.success {
  background: rgba(187, 247, 208, 0.85);
  color: #047857;
}

.stock-pill.danger {
  background: rgba(254, 226, 232, 0.95);
  color: #b91c1c;
}

.card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: #2f2d36;
  line-height: 1.3;
  font-weight: 600;
}

.card-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.4rem 0;
}

.card-price-row strong {
  color: #d63384;
  font-size: 1rem;
  font-weight: 700;
}

.card-price-row del {
  color: #999;
  font-size: 0.85rem;
  text-decoration: line-through;
}

.card-body p {
  margin: 0;
  color: #7b5b74;
  line-height: 1.75;
  font-size: 0.95rem;
  max-height: 3.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.product-card-footer small {
  color: #999;
  font-size: 0.8rem;
  flex: 1;
}

.product-actions {
  display: grid;
  gap: 0.5rem;
}

.product-actions .button {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 780px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card,
  .product-row {
    max-width: 100%;
  }
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.popup-content.premium-popup {
  max-width: 900px;
  width: 100%;
  padding: 1.5rem;
  border-radius: 24px;
}

.popup-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.popup-gallery {
  display: grid;
  gap: 1rem;
}

.popup-main-image {
  border-radius: 20px;
  overflow: hidden;
  background: #fafaf9;
  box-shadow: 0 12px 24px rgba(196, 147, 172, 0.08);
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 480px;
}

.popup-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 0.6rem;
}

.popup-thumb {
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fafaf9;
  box-shadow: 0 8px 16px rgba(196, 147, 172, 0.08);
  cursor: pointer;
  width: 60px;
  height: 60px;
  aspect-ratio: 1;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.popup-thumb.active,
.popup-thumb:hover {
  border-color: #d63384;
  box-shadow: 0 12px 24px rgba(214, 51, 132, 0.12);
}

.popup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-details h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  color: #2f2d36;
  font-weight: 700;
}

.popup-price-row {
  margin: 0.8rem 0;
  gap: 0.8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.popup-price-row strong {
  color: #d63384;
  font-size: 1.4rem;
  font-weight: 700;
}

.popup-price-row del {
  color: #999;
  font-size: 0.95rem;
  text-decoration: line-through;
}

.popup-meta {
  margin: 0.6rem 0;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.popup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.community-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.community-card,
.review-card {
  padding: 1.6rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(233, 205, 222, 0.9);
  box-shadow: 0 24px 60px rgba(196, 147, 172, 0.08);
}

.community-card {
  display: grid;
  gap: 1rem;
}

.community-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(214, 51, 132, 0.1);
  font-size: 1.4rem;
}

.community-card strong {
  margin: 0;
  color: #2f2d36;
}

.review-card .review-stars {
  margin: 0;
  color: #d63384;
  letter-spacing: 0.12em;
}

.review-card h3 {
  margin: 0.8rem 0 0.65rem;
  color: #2f2d36;
}

.review-card p {
  margin: 0;
  color: #6d5466;
  line-height: 1.85;
}

.review-card span {
  display: block;
  margin-top: 1rem;
  color: #8f6d8c;
}

.site-footer {
  padding-top: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(233, 205, 222, 0.8);
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(214, 51, 132, 0.16);
}

.footer-brand strong {
  display: block;
  font-size: 1.15rem;
  color: #2f2d36;
}

.footer-brand p,
.footer-links p {
  margin: 0.45rem 0 0;
  color: #6f5468;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 1rem;
}

.footer-links h4 {
  margin: 0 0 0.8rem;
  color: #2f2d36;
}

.footer-links a {
  color: #6f5468;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 1.5rem;
  color: #8b6d86;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
  }

  .search-panel {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }

  .popup-modal-grid {
    grid-template-columns: 1fr;
  }

  .popup-actions,
  .search-controls,
  .community-grid,
  .reviews-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 250, 249, 0.98);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(233, 205, 222, 0.85);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-section,
  .search-panel,
  .product-section,
  .community-section,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-visual {
    min-height: 40vh;
    padding: 1.5rem;
  }

  .product-card {
    border-radius: 28px;
  }
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - 2rem);
  padding: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

.admin-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(233, 205, 222, 0.95);
  border-radius: 32px;
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(196, 147, 172, 0.12);
  min-height: calc(100vh - 3rem);
}

.sidebar-brand p {
  margin: 0 0 0.25rem;
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2f2d36;
}

.sidebar-nav {
  display: grid;
  gap: 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  color: #5f536b;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  transition: all 0.24s ease;
  font-size: 0.98rem;
  cursor: pointer;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(214, 51, 132, 0.1);
  color: #d63384;
  box-shadow: 0 12px 30px rgba(214, 51, 132, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-note {
  margin: 0;
  color: #8f6d8c;
  font-size: 0.95rem;
  line-height: 1.5;
}

.admin-main {
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(233, 205, 222, 0.65);
  margin-bottom: 1rem;
}

.admin-topbar .eyebrow {
  margin: 0 0 0.35rem;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  color: #2f2d36;
}

.topbar-actions .button {
  min-width: 150px;
}

.section-panel {
  background: #ffffff;
  border: 1px solid rgba(233, 205, 222, 0.9);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(196, 147, 172, 0.12);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.newest-list {
  display: grid;
  gap: 1rem;
}

.newest-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 24px;
  background: #fff7fb;
  border: 1px solid rgba(233, 205, 222, 0.95);
}

.newest-image {
  width: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.newest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-card {
  padding: 1rem;
  min-height: 100px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(233, 205, 222, 0.9);
  box-shadow: 0 16px 40px rgba(196, 147, 172, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stat-card p {
  margin: 0;
  color: #7d5b79;
  font-size: 0.8rem;
  line-height: 1.2;
}

.stat-card strong {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
  color: #2f2d36;
}

.stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #fff0f7;
  border-radius: 14px;
  font-size: 1rem;
}

.dashboard-grid.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(233, 205, 222, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.45rem 0.5rem 0.5rem;
  box-shadow: 0 -12px 45px rgba(196, 147, 172, 0.08);
}

.bottom-nav-link {
  border: none;
  background: transparent;
  color: #6b4f6c;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
  width: 20%;
  min-height: 56px;
  padding: 0.4rem 0.25rem;
  border-radius: 16px;
  font-size: 0.7rem;
  text-align: center;
  transition: all 0.22s ease;
  cursor: pointer;
}

.bottom-nav-link.active,
.bottom-nav-link:hover {
  color: #d63384;
  background: rgba(214, 51, 132, 0.1);
}

.bottom-icon {
  font-size: 1.15rem;
}

.product-form {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.5rem;
}

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-fields {
  display: grid;
  gap: 1rem;
}

.checkbox-label {
  gap: 0.75rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(233, 205, 222, 0.8);
}

.admin-table th {
  color: #72536c;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.product-image {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8f0f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta strong {
  display: block;
  font-size: 1rem;
  color: #2f2d36;
}

.product-meta small {
  color: #7d5b79;
}

.action-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge.success {
  background: #e6f8f1;
  color: #137a4b;
}

.badge.danger {
  background: #fde8ee;
  color: #a31f43;
}

.button-danger {
  background: #d63384;
  color: #fff;
}

.button-small {
  padding: 0.75rem 1rem;
}

.empty-row {
  text-align: center;
  color: #7d5b79;
  padding: 2rem 0;
}

.auth-card {
  max-width: 680px;
  margin: 4rem auto;
}

.page-header,
.admin-layout {
  padding-left: 0;
  padding-right: 0;
}

.modal-content {
  max-width: 900px;
  width: 95vw;
  max-height: 88vh;
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    z-index: 100;
    margin: 0;
    border-radius: 0 24px 24px 0;
  }

  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: inline-flex;
    border: none;
    border-radius: 18px;
    padding: 0.85rem 1rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(196, 147, 172, 0.12);
    color: #6a5173;
  }

  .admin-topbar {
    justify-content: space-between;
    padding: 1rem 0;
  }

  .admin-main {
    padding-top: 1rem;
  }
}

@media (max-width: 720px) {
  .admin-sidebar {
    width: 100%;
    position: fixed;
    transform: translateY(-110%);
    top: 0;
    left: 0;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0 0 24px 24px;
  }

  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateY(0);
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .admin-topbar {
    flex-wrap: wrap;
  }

  .product-form,
  .dashboard-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid.dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stat-card {
    min-height: 96px;
    padding: 0.95rem;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .stat-card strong {
    font-size: 1.15rem;
  }

  .bottom-nav {
    display: flex;
    justify-content: space-between;
  }

  .admin-main {
    padding-bottom: 94px;
  }

  .admin-table {
    min-width: 0;
  }

  .action-rows {
    justify-content: flex-start;
  }
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(230, 210, 220, 0.8);
  padding-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #8a4d7d;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(214, 51, 132, 0.1);
  color: #d63384;
}

/* Segmented Control */
.stock-status-group {
  border: none;
  padding: 0;
  margin: 0;
}

.stock-status-group legend {
  color: #54415a;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.segmented-control {
  display: flex;
  gap: 0;
  background: rgba(230, 210, 220, 0.3);
  border-radius: 16px;
  padding: 4px;
}

.segment-option {
  flex: 1;
  position: relative;
}

.segment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segment-option span {
  display: block;
  padding: 0.85rem 1rem;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  color: #8a4d7d;
  transition: all 0.2s ease;
  cursor: pointer;
}

.segment-option input:checked + span {
  background: #d63384;
  color: white;
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.2);
}

/* Image Upload Section */
.image-upload-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.image-preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.image-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(214, 51, 132, 0.2);
  background: #f8fafc;
}

.image-upload-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.button-small {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.file-name {
  font-size: 0.8rem;
  color: #54415a;
  text-align: center;
  word-break: break-all;
}

/* Modal Enhancements */
.modal-content {
  position: relative;
  z-index: 1001;
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
  animation: slideUp 0.3s ease;
  width: 95vw;
}

/* Form Responsive */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  padding: 0.75rem;
  border: 1px solid rgba(230, 210, 220, 0.8);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: #d63384;
  box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Button Sizes */
.button {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Desktop Enhancements */
@media (min-width: 768px) {
  .image-preview {
    width: 160px;
    height: 160px;
  }
  
  .button {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
  }
  
  .button-small {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  
  .image-upload-section {
    grid-column: 1 / -1;
  }
  
  .form-actions {
    grid-column: 1 / -1;
  }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .modal-content {
    width: 95vw;
    max-height: 90vh;
    padding: 1.5rem;
  }
  
  .form-grid input,
  .form-grid textarea,
  .form-grid select {
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  .button {
    padding: 0.875rem 1.5rem;
    font-size: 1.05rem;
    min-height: 48px; /* Touch target */
  }
  
  .button-small {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .image-upload-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .segmented-control {
    gap: 0;
  }
  
  .segment-option span {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}
.product-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(120, 55, 80, 0.12);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff5f8;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sale-badge,
.stock-badge {
  position: absolute;
  top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.sale-badge {
  left: 12px;
  background: #ff3b7f;
  color: #fff;
}

.stock-badge {
  right: 12px;
  background: #111;
  color: #fff;
}

.stock-badge.in {
  background: #18a058;
}

.stock-badge.out {
  background: #999;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.price strong {
  color: #d91f5c;
  font-size: 18px;
}

.price del {
  color: #999;
  font-size: 14px;
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .price strong {
    font-size: 14px;
  }

  .price del {
    font-size: 12px;
  }

  .sale-badge,
  .stock-badge {
    top: 8px;
    padding: 4px 8px;
    font-size: 11px;
  }
}
/* Button Danger */
.button-danger {
  background: #dc2626;
  color: white;
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.18);
}

.button-danger:hover {
  box-shadow: 0 18px 50px rgba(220, 38, 38, 0.25);
}

/* Product Card Hover Effect */
.product-card {
  transition: all 0.3s ease;
}

#productGrid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0;
}

#productGrid .inventory-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0.95rem 0.95rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(218, 220, 229, 0.9);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(53, 54, 71, 0.06);
}

#productGrid .inventory-item .product-image {
  width: 64px;
  height: 64px;
}

#productGrid .inventory-item .item-info {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

#productGrid .inventory-item .item-title {
  font-size: 0.98rem;
}

#productGrid .inventory-item .price-line {
  font-size: 0.84rem;
}

#productGrid .inventory-item .stock-value {
  font-size: 1.35rem;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(148, 115, 150, 0.2);
}

/* Product Row Image Frame */
.product-row img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
}

/* Responsive Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95vw;
    max-height: 95vh;
    padding: 1.5rem;
  }
}

/* Analytics Dashboard Enhancements */
.stat-card.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.stat-card.success .stat-icon {
  background: #dcfce7;
  color: #166534;
}

.stat-card.warning {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.stat-card.warning .stat-icon {
  background: #fef3c7;
  color: #92400e;
}

.stat-card.critical {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.stat-card.critical .stat-icon {
  background: #fee2e2;
  color: #991b1b;
}

.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(233, 205, 222, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(196, 147, 172, 0.06);
}

.top-item .rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff0f7;
  border-radius: 50%;
  font-weight: 700;
  color: #c026d3;
}

.top-item .name {
  flex: 1;
  font-weight: 600;
  color: #1f1b26;
}

.top-item .value {
  font-weight: 700;
  color: #059669;
}

.low-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(233, 205, 222, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(196, 147, 172, 0.06);
}

.low-stock-item.critical {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.low-stock-item .name {
  font-weight: 600;
  color: #1f1b26;
}

.low-stock-item .quantity {
  font-weight: 700;
  color: #ea580c;
}

.low-stock-item.critical .quantity {
  color: #dc2626;
}

.low-stock-item.critical .quantity {
  color: #dc2626;
}

.empty-note {
  text-align: center;
  color: #6d6372;
  font-style: italic;
  padding: 2rem;
  margin: 0;
}

/* Floating Contact Popup */
.floating-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 280px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-popup:not(.hidden) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.popup-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 182, 193, 0.2);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(255, 182, 193, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.popup-header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(233, 205, 222, 0.3);
}

.popup-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f1b26;
  text-align: center;
}

.popup-links {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  color: #8b5cf6;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}

.contact-card.zalo {
  background: linear-gradient(135deg, rgba(0, 158, 255, 0.1), rgba(0, 158, 255, 0.05));
  border-color: rgba(0, 158, 255, 0.2);
}

.contact-card.zalo:hover {
  background: linear-gradient(135deg, rgba(0, 158, 255, 0.15), rgba(0, 158, 255, 0.1));
  box-shadow: 0 8px 20px rgba(0, 158, 255, 0.15);
  color: #0066cc;
}

.contact-card.instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(225, 48, 108, 0.05));
  border-color: rgba(225, 48, 108, 0.2);
}

.contact-card.instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(225, 48, 108, 0.1));
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.15);
  color: #c13584;
}

.contact-card.facebook {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(24, 119, 242, 0.05));
  border-color: rgba(24, 119, 242, 0.2);
}

.contact-card.facebook:hover {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(24, 119, 242, 0.1));
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.15);
  color: #1877f2;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-content {
  flex: 1;
}

.card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f1b26;
  margin-bottom: 0.125rem;
}

.card-subtitle {
  font-size: 0.8rem;
  color: #6d6372;
  font-weight: 500;
}

