:root {
  --lavender: #b99cff;
  --lavender-dark: #7c5bd6;
  --lavender-light: #f3eeff;
  --text: #27222f;
  --muted: #6f6878;
  --white: #ffffff;
  --border: #e9e1fb;
  --danger: #d94f70;
  --shadow: 0 18px 45px rgba(80, 54, 130, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: #fbf9ff;
  color: var(--text);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: 1180px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lavender), var(--lavender-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: bold;
}

.brand h1 {
  font-size: 24px;
  margin: 0;
}

.brand p {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-info {
  font-size: 14px;
  color: var(--muted);
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 26px 20px 50px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--lavender-light), #ffffff);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero h2 {
  font-size: 42px;
  line-height: 1.1;
  margin: 14px 0;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

.hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 24px;
}

.tag {
  display: inline-block;
  background: var(--white);
  color: var(--lavender-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.shop-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.section-title h2 {
  margin: 0;
  font-size: 26px;
}

.section-title p {
  color: var(--muted);
  margin: 6px 0 18px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
  margin-bottom: 18px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  font-size: 14px;
  background: var(--white);
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lavender-dark);
}

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

.product-card,
.cart-card,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--lavender-light);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.badge {
  background: var(--lavender-light);
  color: var(--lavender-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.price {
  color: var(--lavender-dark);
  font-weight: bold;
}

.product-body h3 {
  margin: 14px 0 8px;
}

.product-body p {
  color: var(--muted);
  font-size: 14px;
  min-height: 48px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
  margin-top: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}


.product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-actions select {
  flex: 1;
}

.product-actions button {
  min-width: 90px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.btn.primary {
  background: var(--lavender-dark);
  color: var(--white);
}

.btn.secondary {
  background: var(--lavender-light);
  color: var(--lavender-dark);
}

.btn:hover {
  opacity: 0.9;
}

.full {
  width: 100%;
}

.cart-card {
  padding: 20px;
  position: sticky;
  top: 96px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
}

.cart-header span {
  background: var(--lavender-dark);
  color: var(--white);
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cart-items {
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

.cart-item,
.admin-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.cart-item h4,
.admin-item h4 {
  margin: 0 0 6px;
}

.cart-item small,
.admin-item small {
  color: var(--muted);
}

.cart-row,
.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.small-btn {
  border: none;
  background: var(--lavender-light);
  color: var(--lavender-dark);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.remove-btn {
  border: none;
  background: #fff1f5;
  color: var(--danger);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.cart-total {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.order-summary {
  margin-top: 14px;
  background: var(--lavender-light);
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.8;
}

.admin-panel {
  padding: 22px;
  margin-top: 28px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-form textarea,
.form-actions,
.admin-list {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empty {
  padding: 20px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 26px;
  border-top: 1px solid var(--border);
}

.hidden {
  display: none !important;
}

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

  .cart-card {
    position: static;
  }

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

@media (max-width: 640px) {
  .nav,
  .filters,
  .admin-form,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 22px;
  }

  .hero h2 {
    font-size: 30px;
  }
}

/* Login Dropdown & Section Styles */
.login-section {
  position: relative;
}

.login-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(80, 54, 130, 0.15);
  padding: 20px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

/* Google Sign-In Button style */
.btn.google-btn {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn.google-btn:hover {
  background: var(--lavender-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Divider inside the dropdown */
.dropdown-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 8px 0;
}

.dropdown-divider::before,
.dropdown-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.dropdown-divider:not(:empty)::before {
  margin-right: .5em;
}

.dropdown-divider:not(:empty)::after {
  margin-left: .5em;
}

/* Admin Input Fields inside dropdown */
.admin-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-fields input {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.admin-fields button {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
}
