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

:root {
  --primary: #C87D31;
  --primary-dark: #a86825;
  --primary-light: #E5A84B;
  --bg-dark: #FFFFFF;
  --bg-card: #F8F8F8;
  --bg-light: #FFFFFF;
  --text-dark: #242021;
  --text-light: #242021;
  --text-muted: rgba(36, 32, 33, 0.6);
  --border: rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #C87D31, #E5A84B);
  --whatsapp: #25D366;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--primary);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.cart-icon {
  width: 20px;
  height: 20px;
}

.cart-count {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.btn-signin {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-signin:hover {
  background: var(--primary-dark);
}

.user-dropdown {
  position: relative;
}

.user-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.user-btn:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

.user-icon {
  width: 20px;
  height: 20px;
  color: var(--text-dark);
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.user-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.user-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.user-menu-item:hover {
  background: var(--bg-card);
}

.user-menu-logout {
  color: #dc3545;
  border-top: 1px solid var(--border);
}

.mobile-signout {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: inherit;
  padding: 1rem 1.5rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 125, 49, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background: #1da851;
}

.hero {
  position: relative;
  min-height: 70vh;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(200, 125, 49, 0.08) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(229, 168, 75, 0.08) 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero-headline {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  min-width: 220px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .hero {
    min-height: 60vh;
  }
  
  .hero-headline {
    font-size: 3rem;
  }
  
  .hero-subheadline {
    font-size: 1.25rem;
  }
  
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
  
  .btn-lg {
    min-width: auto;
    padding: 1rem 2.5rem;
  }
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-card);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.product-link {
  display: block;
  flex: 1;
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

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

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-placeholder svg {
  width: 48px;
  height: 48px;
}

.product-placeholder.large svg {
  width: 120px;
  height: 120px;
}

.badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-new {
  background: var(--primary);
  color: white;
}

.badge-offer {
  background: #e53935;
  color: white;
  top: auto;
  bottom: 0.5rem;
}

.badge-discount {
  background: #2e7d32;
  color: white;
}

.badge-out-of-stock {
  background: #616161;
  color: white;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.85em;
  margin-right: 0.5rem;
}

.price-discounted {
  color: #2e7d32;
  font-weight: 700;
}

.price-savings {
  display: inline-block;
  background: #2e7d32;
  color: white;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-weight: 500;
}

.product-info {
  padding: 0.75rem;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.price-enquiry {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-cta {
  padding: 0 0.75rem 0.75rem;
}

.product-cta .btn {
  width: 100%;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.category-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.shop-page {
  padding: 1.5rem 0 3rem;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.shop-header h1 {
  font-size: 1.5rem;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-toggle svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .filter-toggle {
    display: none;
  }
}

.shop-layout {
  display: flex;
  gap: 2rem;
}

.filter-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 200;
  padding: 1rem;
  overflow-y: auto;
}

.filter-panel.open {
  display: block;
}

@media (min-width: 768px) {
  .filter-panel {
    display: block;
    position: static;
    width: 240px;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
  }
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.filter-group select,
.filter-group input[type="number"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.price-inputs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.price-inputs input {
  flex: 1;
  width: 100%;
}

.filter-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.filter-actions .btn {
  flex: 1;
}

.products-section {
  flex: 1;
  min-width: 0;
}

.no-products {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.no-products p {
  margin-bottom: 1rem;
}

.product-page {
  padding: 1.5rem 0 3rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .current {
  color: var(--text-light);
}

.product-detail {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

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

.main-image .badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.thumbnail-list {
  display: flex;
  gap: 0.5rem;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
}

.thumbnail.active {
  border-color: var(--primary);
}

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

.product-content .product-category {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-content .product-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.product-price.large {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.product-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.qty-btn:last-child {
  border-radius: 0 6px 6px 0;
}

.quantity-selector input {
  width: 60px;
  height: 40px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  color: var(--text-light);
  font-size: 1rem;
}

.quantity-selector input:focus {
  outline: none;
}

.enquiry-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-meta {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-meta p {
  margin-bottom: 0.25rem;
}

.product-meta strong {
  color: var(--text-light);
}

.cart-page {
  padding: 2rem 0 4rem;
}

.cart-page h1 {
  margin-bottom: 2rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-empty p {
  margin-bottom: 1.5rem;
}

.cart-items {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cart-items {
    grid-template-columns: 2fr 1fr;
  }
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dark);
  border-radius: 4px;
  cursor: pointer;
}

.cart-item-qty span {
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.cart-item-remove:hover {
  color: #e53935;
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: none;
  margin-bottom: 1rem;
}

.cart-summary .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.cart-summary .btn:last-child {
  margin-bottom: 0;
}

.checkout-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
}

.footer {
  background: var(--bg-card);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 32px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.footer-links a,
.footer-contact a {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary);
}

.whatsapp-link {
  color: var(--whatsapp) !important;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.error-content {
  text-align: center;
}

.error-content h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.error-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Product Documents Download Section */
.product-documents {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.product-documents h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.document-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.document-icon {
  flex-shrink: 0;
  color: #c00;
}

.document-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.document-title {
  font-weight: 500;
  color: var(--text-dark);
}

.document-type {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-icon {
  flex-shrink: 0;
  color: var(--primary);
}

.document-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.document-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.document-actions .btn svg {
  flex-shrink: 0;
}
