/* ============ Color Palette ============
   Inspired by acetate tortoiseshell & vintage elegance
   Amber: #b8860b  |  Tortoise Brown: #6b4423
   Warm Gold: #d4a853  |  Cream: #faf6f0
   Deep Brown: #2c1810  |  Light Beige: #f5ede2
   Acetate Shine: rgba(180,130,70,0.15)
   ========================================== */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2c1810;
  background: #fcf8f4;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ============ Typography ============ */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.8rem; font-weight: 400; letter-spacing: -0.5px; }
h2 { font-size: 2rem; font-weight: 400; }
h3 { font-size: 1.15rem; font-weight: 500; }
p { color: #6b5a4a; line-height: 1.8; }

/* ============ Container ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #6b4423;
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: inherit;
}
.btn:hover { background: #4a2e15; }
.btn-outline {
  background: transparent;
  color: #6b4423;
  border: 1px solid #6b4423;
}
.btn-outline:hover { background: #6b4423; color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 0.75rem; }
.btn-block { width: 100%; text-align: center; }
.btn-light {
  background: transparent;
  color: #faf6f0;
  border: 1px solid rgba(250,246,240,0.3);
}
.btn-light:hover { background: rgba(250,246,240,0.1); border-color: #faf6f0; }
.btn-gold {
  background: #d4a853;
  color: #2c1810;
}
.btn-gold:hover { background: #c49640; }
.btn-paypal { background: #0070ba; }
.btn-paypal:hover { background: #005c9e; }
.btn-bank { background: #6b4423; }
.btn-bank:hover { background: #4a2e15; }

/* ============ Header ============ */
header {
  background: #fff;
  border-bottom: 1px solid #ede5da;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2c1810;
}

nav { display: flex; align-items: center; gap: 30px; }
nav a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8a7a6a;
  transition: color 0.2s;
  font-weight: 400;
}
nav a:hover, nav a.active { color: #2c1810; }

.cart-icon {
  position: relative;
  font-size: 1.1rem;
}
#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #6b4423;
  color: #fff;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: #2c1810; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(145deg, #f5ede2 0%, #e8dccc 35%, #d4c4b0 70%, #c4b098 100%);
  padding: 100px 0 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,168,83,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(107,68,35,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #fcf8f4, transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 16px;
  color: #2c1810;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.05rem;
  color: #6b5a4a;
  max-width: 520px;
  margin: 0 auto 35px;
  font-weight: 300;
}
.hero .section-divider { background: #c4b098; }

/* Hero with product showcase */
.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
  padding: 40px 0;
}
.hero-showcase .hero-text { padding-right: 20px; }
.hero-showcase h1 { font-size: 3.2rem; }
.hero-showcase .hero-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-showcase .hero-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.5s;
}
.hero-showcase .hero-image img:hover { transform: scale(1.03); }
.hero-showcase .hero-image .img-tall { height: 340px; grid-row: span 2; }

@media (max-width: 768px) {
  .hero-showcase { grid-template-columns: 1fr; text-align: center; }
  .hero-showcase .hero-text { padding-right: 0; }
  .hero-showcase .hero-image img { height: 200px; }
  .hero-showcase .hero-image .img-tall { height: 200px; grid-row: auto; }
}

/* ============ Section ============ */
.section { padding: 90px 0; }
.section-title {
  text-align: center;
  margin-bottom: 55px;
}
.section-title h2 { margin-bottom: 8px; color: #2c1810; }
.section-title p { color: #8a7a6a; font-size: 0.95rem; }
.section-divider {
  width: 36px;
  height: 2px;
  background: #d4a853;
  margin: 14px auto;
}

/* ============ Product Grid ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  border: 1px solid #ede5da;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(107,68,35,0.1); }
.product-card .image-wrap {
  height: 320px;
  background: #faf6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.product-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s;
}
.product-card:hover .image-wrap img { transform: scale(1.06); }
.product-card .info { padding: 20px 22px 26px; }
.product-card .category-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b8a898;
  margin-bottom: 6px;
}
.product-card h3 { margin-bottom: 8px; font-size: 1rem; color: #2c1810; font-weight: 500; }
.product-card .price {
  font-size: 1.15rem;
  font-weight: 600;
  color: #6b4423;
  margin-bottom: 18px;
}
.product-card .btn { width: 100%; text-align: center; }

/* ============ Product Detail ============ */
.product-detail { padding: 80px 0; }
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.detail-image {
  background: #fff;
  border: 1px solid #ede5da;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}
.detail-image img { max-height: 420px; max-width: 100%; object-fit: contain; }
.detail-info h1 { font-size: 2rem; margin-bottom: 12px; color: #2c1810; }
.detail-info .price { font-size: 1.6rem; font-weight: 600; color: #6b4423; margin-bottom: 20px; }
.detail-info .description { color: #6b5a4a; line-height: 2; margin-bottom: 35px; font-size: 0.95rem; }
.detail-info .meta { color: #b8a898; font-size: 0.85rem; margin-bottom: 8px; }
.quantity-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.quantity-selector button {
  width: 40px; height: 40px;
  border: 1px solid #ede5da; background: #fff;
  font-size: 1.1rem; cursor: pointer; transition: all 0.2s;
  color: #4a3a2a;
}
.quantity-selector button:hover { background: #f5ede2; border-color: #d4a853; }
.quantity-selector input {
  width: 64px; height: 40px;
  text-align: center; border: 1px solid #ede5da; font-size: 0.95rem; color: #2c1810;
}

/* ============ Cart ============ */
.cart-page { padding: 80px 0; }
.cart-page h1 { margin-bottom: 40px; }
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid #ede5da;
}
.cart-item .item-info { flex: 1; }
.cart-item .item-info h4 { margin-bottom: 6px; color: #2c1810; }
.cart-item .item-info span { color: #b8a898; font-size: 0.85rem; }
.cart-summary {
  margin-top: 40px;
  padding: 35px;
  background: #fff;
  border: 1px solid #ede5da;
  text-align: right;
}
.cart-summary .total { font-size: 1.4rem; font-weight: 600; color: #6b4423; margin-bottom: 20px; }
.empty-cart { text-align: center; padding: 100px 0; }
.empty-cart p { font-size: 1.1rem; margin-bottom: 25px; color: #8a7a6a; }

/* ============ Checkout + Payment ============ */
.checkout-page { padding: 80px 0; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #4a3a2a; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ede5da;
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #d4a853; }

.payment-options {
  margin: 30px 0;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border: 1px solid #ede5da;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.payment-option:hover { border-color: #d4a853; }
.payment-option.selected { border-color: #6b4423; background: #faf6f0; }
.payment-option input[type="radio"] { accent-color: #6b4423; width: 18px; height: 18px; }
.payment-option .payment-label { font-weight: 500; flex: 1; }
.payment-option .payment-desc { font-size: 0.85rem; color: #8a7a6a; }

.bank-details {
  background: #faf6f0;
  border: 1px solid #ede5da;
  padding: 28px;
  margin: 20px 0 30px;
  display: none;
}
.bank-details.active { display: block; }
.bank-details h4 { margin-bottom: 15px; color: #2c1810; }
.bank-details table { width: 100%; }
.bank-details td { padding: 8px 0; font-size: 0.9rem; }
.bank-details td:first-child { color: #8a7a6a; width: 140px; }
.bank-details td:last-child { font-weight: 500; font-family: 'Courier New', monospace; letter-spacing: 0.5px; }

/* ============ Admin ============ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px;
  background: #2c1810;
  color: #faf6f0;
  padding: 30px 0;
}
.admin-sidebar .logo {
  padding: 0 24px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
  font-size: 1rem;
  letter-spacing: 3px;
  color: #d4a853;
}
.admin-sidebar nav a {
  display: block;
  padding: 14px 24px;
  color: #b8a898;
  transition: all 0.2s;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(255,255,255,0.06); }
.admin-main { flex: 1; padding: 40px; background: #fcf8f4; }
.admin-header { margin-bottom: 30px; }
.admin-header h1 { font-size: 1.6rem; color: #2c1810; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: #fff;
  padding: 28px;
  border: 1px solid #ede5da;
}
.stat-card h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #b8a898; margin-bottom: 12px; }
.stat-card .value { font-size: 1.8rem; font-weight: 400; color: #6b4423; }

.data-table {
  width: 100%;
  background: #fff;
  border: 1px solid #ede5da;
}
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #f5ede2; font-size: 0.9rem; }
.data-table th { background: #fcf8f4; font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #b8a898; }
.data-table tr:hover td { background: #faf6f0; }
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
}
.status-pending { background: #f5ede2; color: #6b4423; }
.status-processing { background: #ede5da; color: #4a3a2a; }
.status-shipped { background: #d4e8d4; color: #3a6a3a; }
.status-delivered { background: #d4e8d4; color: #3a6a3a; }
.status-cancelled { background: #f0e0e0; color: #8a3a3a; }

/* Modal */
.modal {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(44,24,16,0.4);
  z-index: 1000;
  align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  background: #fff;
  padding: 35px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content h2 { margin-bottom: 25px; color: #2c1810; }

/* ============ Footer ============ */
footer {
  background: #2c1810;
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}
footer h4 {
  margin-bottom: 20px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #d4a853;
  font-weight: 500;
  text-transform: uppercase;
}
footer p, footer a { color: #b8a898; font-size: 0.85rem; line-height: 2.2; letter-spacing: 0.3px; }
footer a:hover { color: #d4a853; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 25px; text-align: center; color: #6b5a4a; font-size: 0.8rem; }

/* ============ Category Cards ============ */
.category-card {
  background: #fff;
  border: 1px solid #ede5da;
  padding: 40px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.category-card:hover { border-color: #d4a853; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(107,68,35,0.08); }
.category-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.category-card h3 { color: #2c1810; margin-bottom: 8px; }
.category-card p { color: #b8a898; font-size: 0.85rem; }

/* ============ Language Switcher ============ */
.lang-switcher a.active { color: #2c1810 !important; font-weight: 600; background: #ede5da; }
.lang-switcher a:hover { color: #4a3a2a !important; background: #f5ede2; }

/* ============ Order Success ============ */
.order-success {
  text-align: center;
  padding: 80px 0;
}
.order-success .checkmark {
  font-size: 4rem;
  color: #6b4423;
  margin-bottom: 20px;
}
.order-success h2 { margin-bottom: 16px; color: #2c1810; }
.order-success .order-details {
  max-width: 400px;
  margin: 30px auto;
  text-align: left;
  background: #faf6f0;
  padding: 24px;
  border: 1px solid #ede5da;
}
.order-success .order-details td { padding: 8px 12px; font-size: 0.9rem; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  nav { 
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid #ede5da;
    gap: 18px;
  }
  nav.open { display: flex; }
  .hero { padding: 60px 0 100px; }
  .hero h1 { font-size: 2.2rem; }
  .detail-wrap { grid-template-columns: 1fr; gap: 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .product-card .image-wrap { height: 220px; }
  h1 { font-size: 2rem; }
  .bank-details td:first-child { width: 100px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero h1 { font-size: 1.8rem; }
}
