@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --primary: #0077b6;
  --primary-dark: #005a87;
  --secondary: #ffb703;
  --accent: #fb8500;
  --bg: #f8f9fa;
  --text: #212529;
  --text-muted: #6c757d;
  --white: #ffffff;
  --border: #dee2e6;
  --success: #28a745;
  --radius: 12px;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "DM Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  color: var(--text);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
}
.promo-banner a {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* NAVBAR */
.navbar {
  background: var(--primary);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--secondary);
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.cart-btn {
  background: var(--secondary) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
}
.cart-btn:hover {
  background: var(--accent) !important;
  color: white !important;
}
.cart-count {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0096c7 0%, #0077b6 50%, #023e8a 100%);
  color: white;
  padding: 88px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(255, 183, 3, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.hero::after {
  content: "🌊";
  position: absolute;
  font-size: 200px;
  opacity: 0.05;
  bottom: -40px;
  right: 30px;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 183, 3, 0.2);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: var(--secondary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.12rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero {
  background: var(--secondary);
  color: var(--text);
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.btn-hero:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.btn-hero.outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-hero.outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-3px);
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1rem;
}

/* CATEGORIES GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: block;
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.category-card:hover::before {
  transform: scaleX(1);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  border-bottom-color: var(--primary);
}
.category-card .emoji {
  font-size: 3.8rem;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.category-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.category-card .count {
  display: inline-block;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-top: 12px;
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 24px;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}
.product-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.product-card:hover .product-img {
  transform: scale(1.04);
}
.product-img-wrap {
  overflow: hidden;
  position: relative;
}
.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.badge-new {
  background: #e3f9e5;
  color: #1a7a2e;
}
.badge-top {
  background: #e8f4fd;
  color: #0077b6;
}
.badge-sale {
  background: #fff3cd;
  color: #856404;
}
.badge-best {
  background: #fde8ef;
  color: #b91c45;
}
.product-name {
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 10px;
  flex: 1;
  line-height: 1.4;
}
.product-price {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.btn-cart {
  background: var(--primary);
  color: white;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-family: inherit;
}
.btn-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}
.btn-cart.added {
  background: var(--success);
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #0096c7 0%, #0077b6 100%);
  color: white;
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
}
.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.page-header p {
  opacity: 0.88;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* BREADCRUMB */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* BENEFITS */
.benefits-section {
  background: white;
  padding: 48px 24px;
  margin-top: 0;
}
.benefits-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.benefit-item {
  text-align: center;
}
.benefit-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 14px;
}
.benefit-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.benefit-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FEATURES BAR */
.features-bar {
  background: var(--primary-dark);
  color: white;
  padding: 14px 24px;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.feature-item {
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* CART PAGE */
.cart-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.cart-empty .emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 20px;
}
.cart-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
  font-family: "Playfair Display", serif;
}
.cart-empty p {
  margin-bottom: 24px;
}
.cart-empty .btn-hero {
  display: inline-block;
}

.cart-item {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}
.cart-item-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ade8f4, #0096c7);
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.cart-item-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.cart-item-price {
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
  font-size: 1.05rem;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-weight: 700;
  font-family: inherit;
}
.qty-btn:hover {
  background: var(--border);
}
.qty-val {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}
.remove-btn {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.remove-btn:hover {
  background: #ffebee;
  color: #dc3545;
}

.cart-summary {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.cart-total-row:last-of-type {
  border: none;
  margin-bottom: 20px;
}
.cart-grand-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-order {
  background: linear-gradient(135deg, var(--accent), #e07000);
  color: white;
  border: none;
  padding: 15px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.25s;
  margin-bottom: 10px;
  font-family: inherit;
}
.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 133, 0, 0.4);
}

.btn-clear {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-clear:hover {
  border-color: #dc3545;
  color: #dc3545;
}

/* ORDER FORM */
.order-form {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 24px;
  display: none;
}
.order-form h3 {
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.93rem;
  font-family: inherit;
  transition: border 0.2s;
  background: white;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}
.form-group textarea {
  min-height: 80px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.order-success {
  display: none;
  background: white;
  border-radius: var(--radius);
  padding: 64px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.order-success .emoji {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 18px;
}
.order-success h2 {
  color: var(--success);
  margin-bottom: 14px;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}
.order-success p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1a2638;
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  border-left: 4px solid var(--secondary);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* FOOTER */
footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.55);
  padding: 56px 24px 28px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 36px;
}
.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
}
.footer-logo span {
  color: var(--secondary);
}
.footer-col h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.footer-col p,
.footer-col a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-col a:hover {
  color: var(--secondary);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links li:not(:last-child):not(:first-child) {
    display: none;
  }
}
@media (max-width: 768px) {
  .nav-links li:not(:last-child) {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .product-img {
    height: 165px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .features-inner {
    gap: 18px;
  }
  .hero {
    padding: 60px 24px;
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .cart-item {
    flex-wrap: wrap;
  }
  .cart-item-thumb {
    width: 60px;
    height: 60px;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
}
