:root {
  --coral: #b8863c;        /* gold accent */
  --coral-dark: #8f6423;   /* deep gold, hover/active states */
  --coral-light: #d9ab63;
  --green: #1c1c1c;        /* near-black, used for CTAs and price */
  --cream: #f7f4ef;        /* soft warm grey background */
  --cream-deep: #efe9df;
  --card-bg: #ffffff;
  --text: #262524;
  --muted: #7a746b;
  --border: #e6e0d5;
  --success: #2f6b4f;
  --danger: #b3452f;
  --shadow-sm: 0 1px 2px rgba(28, 24, 16, 0.06);
  --shadow-md: 0 6px 20px rgba(28, 24, 16, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 24, 16, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-body: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }

::selection { background: var(--coral-light); color: #1c1c1c; }

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  z-index: 50;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}

.nav-left {
  display: flex;
  gap: 28px;
}

.nav-left a {
  position: relative;
  color: var(--coral-dark);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding-bottom: 4px;
}

.nav-left a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  transition: right 0.25s ease;
}

.nav-left a:hover::after { right: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--coral-dark);
}

/* Hero banner (homepage) */
.hero {
  text-align: center;
  padding: 84px 20px 46px;
  background:
    radial-gradient(60% 140% at 50% 0%, rgba(184, 134, 60, 0.10), transparent),
    var(--cream);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--coral-dark);
  margin: 0 0 18px;
}

.hero p {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--coral);
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 700px) {
  .hero { padding: 56px 20px 32px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 12px; letter-spacing: 2px; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 19px;
  color: var(--text);
}

.cart-link {
  position: relative;
  transition: transform 0.15s ease;
  display: inline-flex;
}

.cart-link:hover { transform: translateY(-1px); }

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--coral-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 26px 0 0;
  border-bottom: 1px solid var(--border);
}

.tab {
  background: none;
  border: none;
  font-size: 15px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.tab.active {
  color: var(--text);
  border-bottom-color: var(--coral);
}

/* Product grid */
.product-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px 22px;
}

.product-card {
  display: block;
  transition: transform 0.2s ease;
}

.product-card:hover { transform: translateY(-3px); }

.product-image {
  background: #f4f1ec;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.product-card:hover .product-image { box-shadow: var(--shadow-md); }

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.product-info { padding: 14px 4px 0; }

.product-info h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.35;
}

.product-info .price {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
}

.tag {
  display: inline-block;
  border: 1px solid var(--coral);
  color: var(--coral-dark);
  background: rgba(184, 134, 60, 0.08);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

.loading, .empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  padding: 70px 0;
  font-size: 15px;
}

/* Product detail page */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 28px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
}

.gallery .main-image {
  background: #f4f1ec;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
}

.gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.thumbnails .thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumbnails .thumb:hover { opacity: 0.9; }
.thumbnails .thumb.active { border-color: var(--coral); opacity: 1; }

.detail-info h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.3;
  color: var(--text);
}

.detail-info .price {
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
}

.detail-info .mrp-note, .detail-info .sku {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0;
}

.size-row {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.size-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.size-row select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.size-row select:focus,
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(184, 134, 60, 0.16);
}

.btn-primary {
  margin-top: 22px;
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { opacity: 0.94; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: #fff;
  color: var(--coral-dark);
  border: 1px solid var(--coral);
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-secondary:hover { background: rgba(184, 134, 60, 0.08); transform: translateY(-1px); }

.btn-inline { width: auto; margin-top: 0; display: inline-block; }

.description-block {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.description-block ul {
  margin: 0;
  padding-left: 18px;
  color: #454138;
  font-size: 14px;
  line-height: 1.9;
}

.related-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 28px 70px;
}

.related-section h2 {
  text-align: center;
  font-family: var(--font-display);
  color: var(--coral-dark);
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

/* Footer */
footer.site-footer {
  background: #f9f6f1;
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding: 46px 28px 40px;
}

.footer-features {
  max-width: 1240px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

@media (max-width: 800px) {
  .footer-features { grid-template-columns: 1fr 1fr; }
}

.footer-features h4 {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 1px;
  margin: 12px 0 6px;
}

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

.footer-cols {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 800px) {
  .footer-cols { grid-template-columns: 1fr; }
}

.footer-cols h4 {
  color: var(--coral-dark);
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 14px;
}

.footer-cols p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-cols a {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-cols a:hover { color: var(--coral-dark); }

/* Cart page */
.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 28px 90px;
}

.cart-page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 26px;
}

.cart-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 82px;
  height: 102px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f4f1ec;
  box-shadow: var(--shadow-sm);
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 6px; font-weight: 600; }
.cart-item-info p { margin: 2px 0; color: var(--muted); font-size: 14px; }

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

.qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s ease;
}

.qty-control button:hover { background: var(--cream-deep); }

.remove-btn {
  background: none;
  border: none;
  color: var(--coral-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

#cart-summary {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px solid var(--text);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 22px;
}

#cart-summary input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#cart-summary input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(184, 134, 60, 0.16);
}

#cart-message {
  color: var(--success);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Admin */
.admin-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 28px 90px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--coral-dark);
  margin: 0;
}

.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.admin-card h2 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--coral-dark);
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 7px;
  color: var(--text);
}

.form-row label .field-status {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}

.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

#image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.preview-item {
  width: 82px;
  height: 82px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item span {
  position: absolute;
  bottom: 2px;
  right: 4px;
  color: var(--success);
  font-weight: 700;
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.admin-row:last-child { border-bottom: none; }

.admin-thumb {
  width: 50px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
}

.admin-row-info { flex: 1; display: flex; flex-direction: column; }
.admin-row-info span { color: var(--muted); font-size: 13px; margin-top: 3px; }

.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-danger:hover { background: rgba(179, 69, 47, 0.08); transform: translateY(-1px); }

.login-wrap {
  max-width: 400px;
  margin: 110px auto;
  padding: 0 20px;
}

.login-wrap h1 {
  font-family: var(--font-display);
  text-align: center;
  color: var(--coral-dark);
  margin-bottom: 32px;
}

.login-wrap .admin-card { padding: 32px; }

#login-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}

/* Admin — settings tabs */
.settings-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.settings-tab {
  background: none;
  border: none;
  padding: 10px 4px;
  margin-right: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.settings-tab:hover { color: var(--text); }

.settings-tab.active {
  color: var(--coral-dark);
  border-bottom-color: var(--coral);
}

.settings-panel[hidden] { display: none; }

.settings-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.save-message {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  min-height: 16px;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--coral);
}

.test-email-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}

.test-email-row input {
  flex: 1;
  min-width: 220px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
}

.test-email-row input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(184, 134, 60, 0.16);
}
