:root {
  --bg: #ffffff;
  --text: #000000;
  --text-muted: #666666;
  --border: #eeeeee;
  --accent: #000000;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --success: #25D366;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: #f5f5f5;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--text);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

/* Hero Section */
.hero {
  height: 50vh;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* NEW Section */
.new-section {
  padding: 40px 0;
}

.new-section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.new-products-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.new-products-scroll::-webkit-scrollbar {
  display: none;
}

.new-product-card {
  min-width: 180px;
  max-width: 180px;
  cursor: pointer;
}

.new-product-card .img-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f5f5f5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.new-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.new-product-card:hover img {
  transform: scale(1.05);
}

.new-product-card .info {
  margin-top: 12px;
}

.new-product-card .name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.new-product-card .price {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Categories */
.category-tabs {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.category-tab {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #bbb;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  white-space: nowrap;
}

.category-tab.active {
  color: var(--text);
  border-bottom: 2px solid var(--text);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 15px;
  padding: 40px 0;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 25px;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card.sold-out {
  opacity: 0.6;
}

.product-card .img-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f5f5f5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover img {
  transform: scale(1.08);
}

.sold-out-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  z-index: 10;
}

.product-info {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.add-btn {
  width: 100%;
  background: var(--text);
  color: white;
  border: none;
  padding: 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.1s;
}

.add-btn:active {
  transform: scale(0.98);
}

.add-btn:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 450px;
  padding: 35px;
  border-radius: 16px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text);
}

/* Cart Styles */
.cart-items {
  margin: 25px 0;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f9f9f9;
}

.cart-item img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-item-price {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.remove-item {
  background: none;
  border: none;
  color: #ddd;
  cursor: pointer;
  font-size: 20px;
}

.remove-item:hover {
  color: var(--text);
}

.cart-footer {
  margin-top: 25px;
  border-top: 1px solid var(--border);
  padding-top: 25px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 25px;
}

.whatsapp-btn {
  width: 100%;
  background: var(--success);
  color: white;
  border: none;
  padding: 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.3s;
}

.whatsapp-btn:hover {
  opacity: 0.9;
}

/* Account Notice */
.account-notice {
  background: #fcfcfc;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  border: 1px solid #f0f0f0;
}

.admin-login-link {
  text-align: center;
  margin-top: 20px;
}

.btn-text {
  background: none;
  border: none;
  text-decoration: underline;
  color: #aaa;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

/* Admin Form */
.account-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #999;
}

.account-form input, 
.account-form select, 
.account-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.account-form input:focus {
  outline: none;
  border-color: #000;
}

.btn-black {
  background: var(--text);
  color: white;
  border: none;
  padding: 16px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px 0 25px; /* Extra padding for modern mobile screens */
  z-index: 1000;
  justify-content: space-around;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }
}

footer {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
