* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fff8f0;
  color: #3b2f2f;
}

.navbar {
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #f1d9c7;
}

.logo {
  font-family: "Pacifico", cursive;
  font-size: 28px;
  color: #c46b8c;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #3b2f2f;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #c46b8c;
}

#cartCount {
  background: #c46b8c;
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.toast {
  position: fixed;
  top: 88px;
  right: 8%;
  z-index: 2000;
  background: #3b2f2f;
  color: white;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  min-height: 90vh;
  padding: 80px 8%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  background:
    radial-gradient(circle at top left, #ffd6e5, transparent 35%),
    radial-gradient(circle at bottom right, #d8f3dc, transparent 35%),
    #fff8f0;
}

.small-title {
  color: #c46b8c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero p,
.section-heading p,
.request-box p,
.about-card p,
.checkout-card p,
.admin-note {
  color: #6f5d5d;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn, button {
  border: none;
  display: inline-block;
  background: #c46b8c;
  color: white;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover, button:hover {
  background: #aa5274;
  transform: translateY(-2px);
}

.secondary-btn {
  background: white;
  color: #c46b8c;
  border: 2px solid #c46b8c;
}

.secondary-btn:hover {
  background: #ffe8f0;
  color: #c46b8c;
}

.hero-card {
  background: white;
  padding: 45px;
  border-radius: 35px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(196, 107, 140, 0.25);
  animation: floatCard 4s ease-in-out infinite;
}

.plushie-emoji {
  font-size: 120px;
  margin-bottom: 20px;
}

.hero-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.section {
  padding: 90px 8%;
}

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading h2,
.request-box h2,
.about-card h2,
.checkout-card h2,
.admin-card h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: white;
  padding: 28px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(96, 61, 61, 0.08);
  transition: 0.3s;
  border: 1px solid #f1d9c7;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 70px rgba(196, 107, 140, 0.18);
}

.product-image {
  font-size: 80px;
  background: #fff1f6;
  border-radius: 24px;
  padding: 25px;
  margin-bottom: 20px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
}

.product-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.product-card p {
  color: #6f5d5d;
  margin-bottom: 14px;
}

.price {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #c46b8c;
  margin-bottom: 18px;
}

.request-section {
  background: #fbe4ec;
}

.request-box,
.about-card,
.checkout-card,
.admin-card {
  background: white;
  padding: 45px;
  border-radius: 35px;
  box-shadow: 0 20px 70px rgba(96, 61, 61, 0.1);
}

.request-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
}

form {
  display: grid;
  gap: 15px;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid #eac7d4;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  background: #fffafa;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #c46b8c;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

#formMessage,
#checkoutMessage,
#adminMessage {
  font-weight: 600;
  color: #4b9c68;
}

.about-section {
  background:
    radial-gradient(circle at top right, #d8f3dc, transparent 30%),
    #fff8f0;
}

.about-card {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  align-items: center;
  gap: 35px;
}

.about-image {
  font-size: 150px;
  text-align: center;
  background: #fff1f6;
  border-radius: 35px;
  padding: 30px;
}

.about-card p {
  line-height: 1.8;
  margin-bottom: 15px;
}

.cart-section {
  background: #fff;
}

.cart-box,
.checkout-summary {
  max-width: 850px;
  margin: auto;
  background: #fff8f0;
  border-radius: 30px;
  padding: 30px;
  border: 1px solid #f1d9c7;
}

.cart-item,
.admin-product-row,
.checkout-item {
  background: white;
  padding: 18px;
  border-radius: 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cart-item button,
.admin-product-row button {
  padding: 8px 14px;
  background: #e76f6f;
}

.cart-item button:hover,
.admin-product-row button:hover {
  background: #c94f4f;
}

.cart-total {
  margin-top: 25px;
  text-align: right;
}

.cart-total h3 {
  font-size: 26px;
  margin-bottom: 15px;
}

.checkout-page,
.admin-page {
  min-height: 100vh;
  padding: 80px 8%;
  background:
    radial-gradient(circle at top left, #ffd6e5, transparent 35%),
    radial-gradient(circle at bottom right, #d8f3dc, transparent 35%),
    #fff8f0;
}

.checkout-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.checkout-card,
.admin-card {
  width: 100%;
}

.checkout-summary h3,
.admin-card h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.payment-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: #fff1f6;
  border: 1px solid #eac7d4;
}

.admin-note {
  margin-bottom: 20px;
  line-height: 1.7;
}

footer {
  padding: 45px 8%;
  text-align: center;
  background: #3b2f2f;
  color: white;
}

footer h3 {
  font-family: "Pacifico", cursive;
  font-size: 30px;
  color: #ffd6e5;
  margin-bottom: 10px;
}

.footer-small {
  margin-top: 15px;
  color: #d6c8c8;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .request-box,
  .about-card,
  .checkout-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    text-align: center;
  }

  .hero p {
    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 650px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .checkout-page,
  .admin-page {
    padding: 70px 6%;
  }

  .request-box,
  .about-card,
  .hero-card,
  .checkout-card,
  .admin-card {
    padding: 28px;
  }

  .about-image {
    font-size: 100px;
  }

  .cart-item,
  .admin-product-row,
  .checkout-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* New admin login, image upload, and responsive checkout updates */
.hidden {
  display: none !important;
}

.nav-button {
  padding: 10px 16px;
  font-size: 14px;
}

.admin-login-card {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 32px;
  box-shadow: 0 20px 70px rgba(96, 61, 61, 0.1);
  border: 1px solid #f1d9c7;
}

.admin-login-card h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 10px;
}

.drop-zone {
  border: 2px dashed #c46b8c;
  background: #fff8fb;
  border-radius: 24px;
  min-height: 230px;
  padding: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  color: #7b6060;
  font-weight: 600;
  transition: 0.25s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
  background: #ffe8f0;
  transform: translateY(-2px);
}

.image-preview {
  width: min(100%, 320px);
  height: 210px;
  object-fit: cover;
  border-radius: 20px;
  margin-top: 14px;
  box-shadow: 0 12px 35px rgba(96, 61, 61, 0.15);
}

.admin-product-row {
  gap: 16px;
}

.admin-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff1f6;
  flex: 0 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-card h3 {
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 18px;
}

.same-billing {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8fb;
  border: 1px solid #eac7d4;
  border-radius: 16px;
  padding: 14px 16px;
  color: #6f5d5d;
  font-weight: 600;
}

.same-billing input {
  width: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card-grid input:first-child,
.card-grid input:nth-child(2) {
  grid-column: span 2;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid #f1d9c7;
}

.total-line {
  font-size: 22px;
  color: #c46b8c;
}

.tax-note {
  margin: 10px 0 20px;
  color: #6f5d5d;
  line-height: 1.6;
  font-size: 14px;
}

.warning-box {
  background: #fff6df;
  border-color: #efd48d;
}

.sticky-summary {
  position: sticky;
  top: 110px;
}

#loginMessage,
#adminMessage,
#checkoutMessage,
#formMessage {
  min-height: 24px;
  color: #4b9c68;
  font-weight: 700;
  line-height: 1.5;
}

#loginMessage,
#checkoutMessage {
  color: #a15a00;
}

code {
  background: #fff1f6;
  padding: 2px 6px;
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .checkout-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sticky-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .navbar {
    padding: 16px 5%;
  }

  .logo {
    font-size: 25px;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  nav a,
  .nav-button {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-card {
    animation: none;
  }

  .plushie-emoji {
    font-size: 84px;
  }

  .form-row,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid input:first-child,
  .card-grid input:nth-child(2) {
    grid-column: span 1;
  }

  .admin-login-card {
    padding: 26px;
    border-radius: 26px;
  }

  .drop-zone {
    min-height: 200px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 38px;
  }

  .section-heading h2,
  .request-box h2,
  .about-card h2,
  .checkout-card h2,
  .admin-card h2 {
    font-size: 30px;
  }

  .cart-box,
  .checkout-summary,
  .checkout-card,
  .admin-card,
  .request-box,
  .about-card {
    padding: 22px;
    border-radius: 24px;
  }

  button,
  .btn {
    width: 100%;
    text-align: center;
  }

  .cart-total {
    text-align: center;
  }
}

/* Dedicated shop page, filters, and homepage rare product cards */
.featured-section {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 214, 229, 0.85), transparent 32%),
    radial-gradient(circle at 90% 30%, rgba(216, 243, 220, 0.85), transparent 30%),
    #fff;
}

.featured-grid .featured-product-card {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(196, 107, 140, 0.38);
  background:
    linear-gradient(145deg, #ffffff 0%, #fff3f8 50%, #fffdf6 100%);
  box-shadow: 0 28px 90px rgba(196, 107, 140, 0.22);
}

.featured-product-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -35%;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(255, 214, 229, 0.9);
  filter: blur(5px);
  z-index: 0;
}

.featured-product-card > * {
  position: relative;
  z-index: 1;
}

.featured-product-card .product-image {
  background:
    radial-gradient(circle at 30% 20%, #fff, transparent 35%),
    linear-gradient(135deg, #ffd6e5, #d8f3dc);
  border: 1px solid rgba(196, 107, 140, 0.22);
  min-height: 180px;
}

.featured-product-card .product-image img {
  height: 180px;
  box-shadow: 0 15px 45px rgba(96, 61, 61, 0.18);
}

.rare-badge {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #3b2f2f;
  color: #ffd6e5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-category {
  color: #c46b8c !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
  margin-bottom: 8px !important;
}

.center-action {
  text-align: center;
  margin-top: 34px;
}

.shop-page {
  min-height: 100vh;
  padding: 70px 8% 100px;
  background:
    radial-gradient(circle at top left, #ffd6e5, transparent 32%),
    radial-gradient(circle at bottom right, #d8f3dc, transparent 35%),
    #fff8f0;
}

.shop-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.shop-hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.shop-hero p:not(.small-title) {
  color: #6f5d5d;
  font-size: 18px;
}

.shop-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #f1d9c7;
  border-radius: 34px;
  padding: 30px;
  box-shadow: 0 20px 70px rgba(96, 61, 61, 0.09);
}

.shop-toolbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.shop-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  color: #6f5d5d;
  font-weight: 700;
}

.shop-grid .product-card {
  display: flex;
  flex-direction: column;
}

.shop-grid .product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-grid .product-info button {
  margin-top: auto;
}

.empty-state {
  grid-column: 1 / -1;
  background: white;
  border: 1px dashed #c46b8c;
  border-radius: 26px;
  padding: 34px;
  text-align: center;
  color: #6f5d5d;
}

.empty-state h3 {
  color: #3b2f2f;
  margin-bottom: 8px;
}

/* Admin live/featured controls */
.admin-product-control-row {
  align-items: stretch;
}

.admin-product-copy {
  flex: 1;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eee;
  color: #6f5d5d;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.live {
  background: #d8f3dc;
  color: #26643b;
}

.status-pill.featured {
  background: #ffd6e5;
  color: #9a4162;
}

.status-pill.off {
  background: #f0e6e1;
  color: #7b6060;
}

.admin-switches {
  min-width: 160px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff8fb;
  border: 1px solid #eac7d4;
  color: #6f5d5d;
  font-weight: 800;
  font-size: 14px;
}

.toggle-line input {
  width: auto;
  accent-color: #c46b8c;
}

.emoji-thumb {
  display: grid;
  place-items: center;
  font-size: 36px;
}

.admin-upload-options {
  display: grid;
  gap: 12px;
}

@media (max-width: 1050px) {
  .shop-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .shop-page {
    padding: 52px 5% 80px;
  }

  .shop-panel {
    padding: 20px;
    border-radius: 26px;
  }

  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .shop-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-meta .btn {
    text-align: center;
  }

  .featured-product-card .product-image,
  .featured-product-card .product-image img {
    min-height: 150px;
    height: 150px;
  }

  .admin-switches {
    width: 100%;
  }

  .toggle-line {
    justify-content: flex-start;
  }
}

/* Navigation/cart/account updates */
.nav-checkout {
  background: #c46b8c;
  color: white !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-checkout:hover {
  background: #aa5274;
  color: white !important;
}

.checkout-card h1,
.account-card h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 10px;
}

.account-page {
  min-height: 100vh;
  padding: 80px 8%;
  background:
    radial-gradient(circle at top left, #ffd6e5, transparent 35%),
    radial-gradient(circle at bottom right, #d8f3dc, transparent 35%),
    #fff8f0;
}

.account-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.account-card,
.checkout-card,
.admin-card {
  background: white;
  padding: 40px;
  border-radius: 32px;
  box-shadow: 0 20px 70px rgba(96, 61, 61, 0.1);
  border: 1px solid #f1d9c7;
}

.account-profile {
  max-width: 1100px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.profile-box,
.order-card {
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 24px;
  padding: 22px;
}

.profile-box h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.profile-box p,
.order-card p {
  color: #6f5d5d;
  margin-bottom: 10px;
  line-height: 1.6;
}

.order-card {
  margin-bottom: 12px;
  background: white;
}

.mini-remove {
  background: #e76f6f;
  padding: 8px 14px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .account-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .account-page,
  .checkout-page,
  .admin-page {
    padding: 45px 5%;
  }

  .account-card,
  .checkout-card,
  .admin-card,
  .admin-login-card {
    padding: 24px;
    border-radius: 26px;
  }

  .profile-header {
    flex-direction: column;
  }

  nav {
    gap: 10px;
  }

  nav a,
  .nav-button,
  .nav-checkout {
    font-size: 13px;
    padding: 9px 12px;
  }

  .checkout-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Account icon, cart dropdown, and account settings update */
.cart-menu {
  position: relative;
}

.cart-toggle {
  background: white;
  color: #3b2f2f;
  border: 1px solid #f1d9c7;
  padding: 10px 16px;
  box-shadow: none;
}

.cart-toggle:hover {
  background: #fff1f6;
  color: #c46b8c;
}

.cart-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(360px, 88vw);
  background: white;
  border: 1px solid #f1d9c7;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 25px 80px rgba(96, 61, 61, 0.18);
  z-index: 3000;
}

.cart-dropdown-list {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.cart-dropdown-item {
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.cart-dropdown-item p,
.cart-dropdown-empty p {
  color: #6f5d5d;
  margin-top: 4px;
}

.cart-dropdown-remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: #e76f6f;
  flex: 0 0 auto;
}

.cart-dropdown-footer {
  border-top: 1px solid #f1d9c7;
  margin-top: 14px;
  padding-top: 14px;
  display: grid;
  gap: 12px;
}

.cart-dropdown-footer .btn,
.cart-dropdown-empty .btn {
  display: inline-block;
  text-align: center;
}

.account-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #f1d9c7;
  background: white;
  overflow: hidden;
  padding: 0 !important;
}

.nav-avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #c46b8c;
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-edit {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff1f6;
  border: 3px solid #f1d9c7;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar-edit::after {
  content: "Change";
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(59, 47, 47, 0.72);
  color: white;
  font-size: 11px;
  text-align: center;
  padding: 5px 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: #c46b8c;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-btn {
  width: 100%;
  background: white;
  color: #3b2f2f;
  border: 1px solid #d8c7c7;
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(96, 61, 61, 0.08);
}

.google-btn:hover {
  background: #f8f8f8;
  color: #3b2f2f;
}

#accountSettingsForm,
#paymentSettingsForm {
  display: grid;
  gap: 12px;
}

.admin-navbar .logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

#savedPaymentOption {
  margin-bottom: 14px;
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 16px;
  padding: 12px 14px;
}

@media (max-width: 980px) {
  .cart-dropdown {
    left: 0;
    right: auto;
  }
}

@media (max-width: 620px) {
  .cart-menu {
    position: static;
  }

  .cart-dropdown {
    left: 5%;
    right: 5%;
    top: 145px;
    width: 90vw;
    position: fixed;
  }

  .account-icon-link {
    width: 40px;
    height: 40px;
  }

  .profile-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar-edit {
    width: 82px;
    height: 82px;
  }
}

/* Admin account management update */
.admin-account-form {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.admin-account-form p {
  grid-column: 1 / -1;
  color: #4b9c68;
  font-weight: 700;
}

.admin-accounts-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.admin-account-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 20px;
  padding: 14px;
}

.admin-account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff1f6;
  color: #c46b8c;
  font-weight: 900;
  overflow: hidden;
}

.admin-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-account-copy p {
  color: #6f5d5d;
  margin-top: 4px;
}

.remove-admin-btn {
  background: #e76f6f;
}

.remove-admin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

@media (max-width: 720px) {
  .admin-account-form,
  .admin-account-row {
    grid-template-columns: 1fr;
  }

  .admin-account-avatar {
    width: 48px;
    height: 48px;
  }
}


/* Admin fullscreen tabs update */
.admin-page {
  padding: 28px 4%;
}

.admin-tabs-layout {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.admin-tool-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 16px;
}

.admin-tool-header h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.admin-tool-header .admin-note {
  max-width: 460px;
  text-align: right;
}

.admin-tabs {
  position: sticky;
  top: 82px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #f1d9c7;
  padding: 10px;
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(96, 61, 61, 0.10);
  backdrop-filter: blur(14px);
}

.admin-tab-btn {
  background: transparent;
  color: #3b2f2f;
  border: 0;
  box-shadow: none;
  border-radius: 999px;
  padding: 15px 18px;
  font-size: 15px;
}

.admin-tab-btn:hover {
  background: #fff1f6;
  color: #c46b8c;
  transform: none;
}

.admin-tab-btn.active {
  background: #c46b8c;
  color: white;
  box-shadow: 0 12px 35px rgba(196, 107, 140, 0.28);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 210px);
  width: 100%;
  padding: clamp(28px, 4vw, 58px);
}

.admin-tab-panel > h2 {
  font-size: clamp(30px, 4vw, 50px);
}

#addProductTab form {
  width: min(100%, 920px);
  margin-top: 22px;
}

.admin-tab-panel #adminProductList,
.admin-tab-panel .admin-accounts-list {
  margin-top: 26px;
  width: 100%;
}

.admin-tab-panel .admin-product-row {
  grid-template-columns: 110px minmax(240px, 1fr) auto;
  width: 100%;
}

.admin-tab-panel .admin-account-form {
  width: min(100%, 760px);
  margin-top: 20px;
}

@media (max-width: 900px) {
  .admin-tool-header {
    align-items: start;
    flex-direction: column;
  }

  .admin-tool-header .admin-note {
    text-align: left;
  }

  .admin-tabs {
    top: 118px;
  }
}

@media (max-width: 760px) {
  .admin-page {
    padding: 20px 4%;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .admin-tab-panel.active {
    min-height: auto;
    padding: 24px;
  }

  .admin-tab-panel .admin-product-row {
    grid-template-columns: 1fr;
  }
}

/* Account loading and saved address */
.account-auth-buffer {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 70px 8%;
}

.account-loading-card {
  width: min(520px, 100%);
  background: white;
  border: 1px solid #f1d9c7;
  border-radius: 32px;
  padding: 42px 28px;
  text-align: center;
  box-shadow: 0 20px 70px rgba(96, 61, 61, 0.1);
}

.loading-yarn {
  font-size: 58px;
  line-height: 1;
  margin-bottom: 16px;
  animation: yarnBounce 1.6s ease-in-out infinite;
}

.account-loading-card h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 10px;
}

.account-loading-card p {
  color: #6f5d5d;
  font-weight: 600;
}

@keyframes yarnBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

.saved-address-card {
  display: grid;
  gap: 12px;
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 22px;
  padding: 18px;
}

.saved-address-card h4 {
  font-size: 18px;
}

.saved-address-card .admin-note {
  margin-bottom: 0;
}

.saved-address-preview {
  white-space: pre-line;
  background: white;
  border: 1px solid #f1d9c7;
  border-radius: 16px;
  padding: 12px;
}

.profile-box-wide {
  grid-row: span 2;
}

@media (max-width: 980px) {
  .profile-box-wide {
    grid-row: auto;
  }
}

/* Admin stats and cleaner checkout actions */
.admin-tabs {
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}

.stat-card {
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(96, 61, 61, 0.06);
}

.stat-card span {
  display: block;
  color: #6f5d5d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: clamp(28px, 4vw, 42px);
  color: #3b2f2f;
  line-height: 1;
}

.stats-section {
  margin-top: 26px;
}

.stats-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.stat-list-row {
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.stat-list-row p {
  color: #6f5d5d;
  margin-top: 4px;
}

.stat-row-numbers {
  text-align: right;
  display: grid;
  gap: 5px;
}

.stat-row-numbers span {
  color: #6f5d5d;
  font-size: 14px;
}

.stat-row-numbers strong {
  font-size: 20px;
  color: #c46b8c;
}

.checkout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-action {
  background: white;
  color: #c46b8c;
  border: 2px solid #c46b8c;
}

.secondary-action:hover {
  background: #fff1f6;
  color: #aa5274;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .stat-list-row {
    grid-template-columns: 1fr;
  }

  .stat-row-numbers {
    text-align: left;
  }

  .checkout-actions {
    display: grid;
  }
}

/* Order stats filters, confirmation page, tracking, and shipping label helper */
.admin-tabs {
  grid-template-columns: repeat(5, 1fr);
}

.stats-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 20px;
  width: fit-content;
}

.stats-filter-row label {
  color: #6f5d5d;
  font-weight: 800;
}

.stats-filter-row select {
  min-width: 190px;
  background: white;
}

.order-management-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.order-management-card {
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(96, 61, 61, 0.06);
}

.order-management-top,
.order-management-body,
.order-shipping-controls {
  display: grid;
  gap: 16px;
}

.order-management-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1d9c7;
}

.order-management-top h3 {
  font-size: 26px;
}

.order-management-top strong {
  font-size: 24px;
  color: #c46b8c;
}

.order-management-body {
  grid-template-columns: 1fr 1fr;
  margin: 16px 0;
}

.order-management-body h4 {
  margin-bottom: 6px;
}

.order-management-body p {
  color: #6f5d5d;
  line-height: 1.7;
}

.order-shipping-controls {
  grid-template-columns: 1fr 1fr 1fr auto auto auto;
  align-items: center;
}

.print-label-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.admin-message-line {
  min-height: 24px;
  color: #4b9c68;
  font-weight: 800;
}

.confirmation-page,
.tracking-page {
  min-height: 100vh;
  padding: 70px 8% 100px;
  background:
    radial-gradient(circle at top left, #ffd6e5, transparent 32%),
    radial-gradient(circle at bottom right, #d8f3dc, transparent 35%),
    #fff8f0;
}

.confirmation-card,
.tracking-card {
  width: min(980px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #f1d9c7;
  border-radius: 36px;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: 0 25px 90px rgba(96, 61, 61, 0.12);
}

.confirmation-icon {
  font-size: 72px;
  margin-bottom: 14px;
}

.confirmation-card h1,
.tracking-card h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.confirmation-card > p,
.tracking-card > p {
  color: #6f5d5d;
  font-size: 18px;
  line-height: 1.7;
}

.receipt-card,
.tracking-result {
  margin-top: 28px;
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 26px;
  padding: 24px;
}

.receipt-card h2,
.tracking-result h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}

.receipt-grid > div {
  background: white;
  border: 1px solid #f1d9c7;
  border-radius: 20px;
  padding: 18px;
}

.receipt-grid h3 {
  margin-bottom: 8px;
}

.receipt-grid p {
  color: #6f5d5d;
  line-height: 1.7;
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tracking-form {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: start;
}

#trackingMessage {
  grid-column: 1 / -1;
  min-height: 22px;
  color: #a15a00;
  font-weight: 800;
}

.tracking-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.tracking-header strong {
  font-size: 28px;
  color: #c46b8c;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.tracking-step {
  background: white;
  border: 1px solid #f1d9c7;
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  color: #6f5d5d;
}

.tracking-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f0e6e1;
  margin: 0 auto 8px;
  font-weight: 900;
}

.tracking-step.active {
  border-color: #c46b8c;
  background: #fff1f6;
  color: #3b2f2f;
}

.tracking-step.active span {
  background: #c46b8c;
  color: white;
}

.label-body {
  background: #f2f2f2;
}

.label-page {
  padding: 28px;
}

.shipping-label {
  width: min(780px, 100%);
  margin: 0 auto;
  background: white;
  border: 4px solid #111;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  padding: 22px;
}

.label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #111;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.label-bar strong {
  font-size: 52px;
  letter-spacing: -2px;
}

.label-bar span {
  border: 3px solid #111;
  padding: 10px 18px;
  font-size: 24px;
  font-weight: 900;
}

.label-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-bottom: 3px solid #111;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.label-mini {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #111 !important;
  margin-bottom: 6px;
}

.label-address-block {
  border-bottom: 4px solid #111;
  padding-bottom: 22px;
  margin-bottom: 18px;
}

.label-address-block h1 {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
}

.label-address-block p,
.label-grid p,
.label-tracking-block p {
  font-size: 18px;
  line-height: 1.35;
}

.label-tracking-block {
  border-bottom: 4px solid #111;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.label-tracking-block h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.fake-barcode {
  font-family: monospace;
  font-size: 42px;
  letter-spacing: 3px;
  overflow: hidden;
  white-space: nowrap;
  border: 2px solid #111;
  padding: 12px;
}

.label-bottom {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.label-actions {
  width: min(780px, 100%);
  margin: 20px auto 0;
  display: flex;
  gap: 12px;
}

@media (max-width: 1150px) {
  .order-shipping-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .stats-filter-row,
  .confirmation-actions,
  .label-actions {
    width: 100%;
    display: grid;
  }

  .order-management-top,
  .order-management-body,
  .order-shipping-controls,
  .receipt-grid,
  .tracking-form,
  .tracking-header,
  .tracking-steps,
  .label-grid {
    grid-template-columns: 1fr;
  }

  .confirmation-page,
  .tracking-page {
    padding: 46px 5% 80px;
  }

  .label-page {
    padding: 10px;
  }

  .label-bar strong {
    font-size: 38px;
  }

  .fake-barcode {
    font-size: 30px;
  }
}

@media print {
  .navbar,
  .label-actions,
  .confirmation-actions,
  .cart-menu {
    display: none !important;
  }

  body,
  .confirmation-page,
  .tracking-page,
  .label-body,
  .label-page {
    background: white !important;
    padding: 0 !important;
  }

  .confirmation-card,
  .shipping-label {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}


/* Admin cleanup, finished orders, and admin test checkout */
.admin-tabs {
  grid-template-columns: repeat(6, 1fr);
}

.admin-toolbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 16px;
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 20px;
}

.danger-action {
  background: #e76f6f;
  color: white;
}

.danger-action:hover {
  background: #c94f4f;
}

.finished-order-card {
  background: #f7fff9;
  border-color: #c8ead2;
}

.admin-test-panel {
  margin: 20px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff8f0;
  border: 1px solid #f1d9c7;
  border-radius: 24px;
  padding: 18px;
}

.admin-test-panel p {
  color: #6f5d5d;
  margin-top: 4px;
}

.admin-test-panel.hidden {
  display: none;
}

@media (max-width: 980px) {
  .admin-tabs,
  .admin-test-panel {
    grid-template-columns: 1fr;
  }
}

.order-code-note {
  margin: -4px 0 18px;
  padding: 14px 16px;
  background: white;
  border: 1px solid #f1d9c7;
  border-radius: 18px;
  color: #6f5d5d;
  line-height: 1.6;
}

.order-code-note strong {
  color: #c46b8c;
}
