* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  padding-bottom: 70px;
}
:root {
  --navy: #0a192f;
  --gold: #d4af37;
  --deep-orange: #e67e22;
  --light-bg: #f8f9fa;
  --card-bg: #ffffff;
}
.header {
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-icon {
  font-size: 28px;
  color: var(--gold);
}
.logo-text {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--gold), var(--deep-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cart-icon {
  font-size: 24px;
  cursor: pointer;
  background: var(--deep-orange);
  padding: 6px 12px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.cart-icon span {
  font-size: 16px;
  background: white;
  color: var(--navy);
  border-radius: 20px;
  padding: 0 6px;
  font-weight: bold;
}
.search-bar {
  padding: 12px 16px;
  background: white;
  border-bottom: 2px solid var(--gold);
}
.search-wrapper {
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 40px;
  padding: 8px 16px;
}
.search-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
}
.search-wrapper label {
  font-size: 22px;
  cursor: pointer;
  margin-left: 8px;
}
.golden-line {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--deep-orange));
  width: 100%;
}
.main-menu, .sub-menu {
  display: flex;
  overflow-x: auto;
  background: white;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid #eee;
}
.main-menu div, .sub-menu div {
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 16px;
  background: #f1f3f5;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.main-menu div:hover, .sub-menu div:hover {
  background: var(--gold);
  color: var(--navy);
}
.sub-menu div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 4px 8px;
}
.sub-menu img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}
.page {
  display: none;
  padding: 16px;
}
.page.active {
  display: block;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  background: white;
  padding: 12px;
  border-radius: 16px;
}
.filter-bar select, .filter-bar input {
  padding: 8px;
  border-radius: 30px;
  border: 1px solid #ddd;
}
.filter-bar button {
  background: var(--navy);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
}
#productsContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  background: #e0e0e0;
  background-image: linear-gradient(90deg, #e0e0e0, #f0f0f0, #e0e0e0);
  background-size: 200% 100%;
}
.product-card img.loading {
  animation: shimmer 1.5s infinite;
}
.product-card img:not(.loading) {
  animation: none;
  background: none;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.product-info {
  padding: 12px;
  text-align: center;
}
.product-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
}
.product-price {
  color: var(--deep-orange);
  font-weight: bold;
  font-size: 1.1rem;
}
.product-detail {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}
.sub-images {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  overflow-x: auto;
}
.sub-images img {
  width: 70px;
  height: 70px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: 0.2s;
}
.sub-images img.active {
  border-color: var(--gold);
}
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 12px;
}
.product-header h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--navy);
}
.product-header .price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--deep-orange);
}
.product-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}
.color-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-select {
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: white;
}
.size-select {
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: white;
  font-size: 14px;
}
.description {
  margin: 16px 0;
  color: #555;
  line-height: 1.5;
}
.add-to-cart-btn {
  background: var(--deep-orange);
  color: white;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 40px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 12px;
}
.add-to-cart-btn:hover {
  background: var(--gold);
  color: var(--navy);
}
.product-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.back-btn-transparent, .download-btn-transparent {
  background: transparent;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  padding: 0 12px;
  transition: 0.2s;
}
.back-btn-transparent:hover, .download-btn-transparent:hover {
  color: var(--deep-orange);
}
.back-button-bar {
  margin-bottom: 16px;
}
.back-button-bar button {
  background: var(--navy);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.back-button-bar button:hover {
  background: var(--gold);
  color: var(--navy);
}
.recommendations {
  margin-top: 30px;
}
.recommendations h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}
.recommend-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.recommend-card {
  min-width: 140px;
  background: white;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.recommend-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.recommend-card p {
  margin-top: 6px;
  font-weight: 500;
  text-align: center;
}
#cartList {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.tracking-box, #shipmentHistory, .recommendations {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.tracking-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 30px;
}
button {
  background: var(--deep-orange);
  border: none;
  color: white;
  padding: 12px;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
button:hover {
  background: var(--gold);
  color: var(--navy);
}
#map {
  height: 200px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: #e9ecef;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: white;
  padding: 10px 0;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  z-index: 100;
}
.bottom-nav div {
  cursor: pointer;
  font-size: 26px;
  transition: 0.2s;
  color: #666;
}
.bottom-nav div:hover, .bottom-nav div.active-nav {
  color: var(--deep-orange);
}
#loginBox input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 30px;
}
#dashboard > div {
  background: white;
  margin: 8px 0;
  padding: 14px;
  border-radius: 40px;
  cursor: pointer;
  text-align: center;
  font-weight: 500;
}
.admin-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: 0.2s;
}
.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.admin-card h4 {
  margin: 0 0 8px 0;
  color: var(--navy);
}
.card-summary {
  font-size: 14px;
  color: #666;
}
#adminLogin input, #adminPanel input, #adminPanel textarea {
  width: 90%;
  padding: 8px;
  margin: 8px auto;
  border-radius: 20px;
  border: 1px solid #ddd;
}
#adminOrdersFull, #adminProductsFull {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
}
.quote-item-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.quote-item-row input, .quote-item-row span {
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.quote-item-row .item-subtotal {
  background: #f5f5f5;
  width: 80px;
  text-align: center;
}
.quote-item-row button {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#addItemBtn {
  background: #2ecc71;
  margin-bottom: 20px;
}
#quoteTotals p {
  margin: 5px 0;
  text-align: right;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 90%;
  overflow: auto;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.close-modal {
  font-size: 28px;
  cursor: pointer;
}
.quote-preview {
  font-family: 'Courier New', monospace;
  line-height: 1.5;
  margin-bottom: 20px;
  white-space: pre-wrap;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}
.shipping-form {
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
}
.shipping-form input, .shipping-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.shipping-form button {
  margin-top: 10px;
}
.shipment-card {
  border: 1px solid #eee;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #f9f9f9;
}
.shipment-card img {
  max-width: 100px;
  margin-top: 8px;
  border-radius: 4px;
}
