/* Tiga Putra — Professional Store UI v3 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #f59e0b;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ---- Layout ---- */
.site-main {
  padding: 1.5rem 0 2rem;
  min-height: 60vh;
}

.container-tp {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---- Navbar ---- */
.navbar-store {
  background: var(--primary-dark) !important;
  padding: 0.6rem 0;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.navbar-store .navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff !important;
}

.navbar-store .navbar-brand i {
  color: var(--accent);
  margin-right: 6px;
}

.navbar-store .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
}

.navbar-store .nav-link:hover {
  color: #fff !important;
}

.navbar-store .btn-nav {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.navbar-store .btn-nav-cart {
  background: #fff;
  color: var(--primary-dark);
  border: none;
}

.navbar-store .btn-nav-cart:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.navbar-store .btn-nav-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.navbar-store .btn-nav-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.navbar-store .btn-nav-accent {
  background: var(--accent);
  color: #1c1917;
  border: none;
}

.navbar-store .cart-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  margin-left: 4px;
}

@media (max-width: 991px) {
  .navbar-store .navbar-nav-actions {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .navbar-store .btn-nav {
    display: block;
    width: 100%;
    margin: 0.25rem 0;
    text-align: center;
  }
}

/* ---- Page title ---- */
.page-head {
  margin-bottom: 1.5rem;
}

.page-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Cards ---- */
.card-tp {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.card-tp .card-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.15rem;
}

.card-tp .card-body {
  padding: 1.15rem;
}

/* ---- Buttons ---- */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
}

/* ---- Forms ---- */
.form-control,
.custom-select {
  border-radius: 8px;
  border-color: var(--border);
  font-size: 0.9rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* ---- Hero ---- */
.hero-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-banner h1 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-banner .lead {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.25rem;
}

.hero-banner .btn-light {
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  color: var(--primary-dark);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stat-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-stat-item i {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.section-head {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

@media (min-width: 768px) {
  .hero-banner h1 { font-size: 2rem; }
  .hero-banner { padding: 3rem 2rem; }
}

/* ---- Product grid ---- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-thumb {
  position: relative;
  background: #f1f5f9;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.product-code {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.25rem 0 0.5rem;
}

.stock-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.stock-tag.danger { background: #dc2626; }

/* ---- Filter box ---- */
.filter-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 1.5rem;
}

/* ---- Tables ---- */
.table-tp {
  margin: 0;
  font-size: 0.9rem;
}

.table-tp thead th {
  background: var(--bg);
  border-bottom: 2px solid var(--border) !important;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}

.table-tp td {
  vertical-align: middle !important;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cart-product-cell img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ---- Order list ---- */
.order-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.order-item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.order-item-body {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.order-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.order-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---- Tabs ---- */
.tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.tabs-scroll .nav-link {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  color: var(--muted);
}

.tabs-scroll .nav-link.active {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ---- Auth ---- */
.auth-wrap {
  max-width: 480px;
  margin: 1.25rem auto 0;
  padding: 0 0.75rem 1.5rem;
}

.auth-choose-wrap {
  max-width: 760px;
}

.auth-panel {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.auth-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.auth-badge {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.28));
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.auth-kicker {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.auth-title {
  margin: 0.2rem 0 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}

.auth-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.1rem 0 0.35rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

.auth-role-card {
  width: 100%;
  min-height: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}

.auth-role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.55);
}

.auth-role-card .card-body {
  padding: 1rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 0.55rem;
  width: 100%;
  min-height: 100%;
}

.auth-role-card .card-body > * {
  width: 100%;
}

.auth-role-card h6,
.auth-role-card p,
.auth-role-card .auth-role-list {
  text-align: left !important;
}

.auth-role-card .btn {
  align-self: stretch !important;
  width: 100%;
}

.auth-role-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.auth-role-icon-primary {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.auth-role-icon-secondary {
  background: rgba(107, 114, 128, 0.16);
  color: #4b5563;
}

.auth-role-list {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.45;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-role-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-role-list li::before {
  content: '';
}

.auth-role-list li + li {
  margin-top: 0;
}

.auth-role-card .btn {
  width: 100%;
  margin-top: auto;
}

.auth-footer-link {
  color: var(--primary);
  text-decoration: none;
}

.auth-footer-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.auth-wrap-wide {
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .auth-choose-wrap {
    max-width: 920px;
  }

  .auth-panel-header {
    padding: 1.3rem 1.35rem 1.15rem;
  }
}

@media (max-width: 767px) {
  .auth-wrap {
    padding: 0 0.5rem 1rem;
  }

  .auth-panel-header {
    padding: 1rem;
  }

  .auth-role-card .card-body {
    padding: 0.95rem;
  }
}

/* ---- Checkout ---- */
.checkout-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

@media (min-width: 992px) {
  .checkout-summary-sticky {
    position: sticky;
    top: 76px;
  }
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.checkout-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 2px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

#map, #map_profil {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  #map { height: 300px; }
}

/* ---- Footer ---- */
/* ---- Footer Premium Style ---- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
  position: relative;
}
.site-footer .footer-top {
  margin-bottom: 3rem;
}
.site-footer .brand {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-footer .brand i {
  color: #f59e0b;
}
.site-footer p.about-text {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.site-footer h5.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.site-footer h5.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #2563eb;
}

/* Contact column — right aligned */
.site-footer .contact-col {
  text-align: right;
}
.site-footer .contact-col h5.footer-title::after {
  left: auto;
  right: 0;
}
.site-footer .contact-col .contact-info-list li {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}
.site-footer .contact-col .contact-info-list li i {
  margin-top: 0.2rem;
}
.site-footer .contact-col .contact-info-list a {
  display: block;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li {
  margin-bottom: 0.75rem;
}
.site-footer .footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.site-footer .footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}
.site-footer .contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: #94a3b8;
}
.site-footer .contact-info-list li i {
  color: #2563eb;
  margin-top: 0.25rem;
}
.site-footer .payment-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.site-footer .payment-badge {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.site-footer .copy-section {
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer .copy-section a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer .copy-section a:hover {
  color: #ffffff;
}

/* ---- Alerts ---- */
.alert {
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ---- Responsive ---- */
@media (max-width: 575px) {
  .site-main { padding: 1rem 0; }
  .page-head h1 { font-size: 1.25rem; }
  .order-item-actions .btn { width: 100%; }
  .form-control { font-size: 16px; }
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* ---- Home Redesign Custom Styles ---- */
.hero-wrapper {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-size: 24px 24px, auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  margin-bottom: 2.5rem;
  padding: 4.5rem 3.5rem;
  color: #ffffff;
}
.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-wrapper h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-wrapper h1 .text-gradient {
  background: linear-gradient(to right, #38bdf8, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-wrapper h1 .text-gradient-alt {
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-wrapper .lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.hero-wrapper .lead strong {
  color: #ffffff;
  font-weight: 700;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #2563eb;
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transition: all 0.3s ease;
}
.btn-hero-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.feature-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.feature-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(37, 99, 235, 0.2);
}
.feature-icon-wrapper {
  background: #eff6ff;
  color: #2563eb;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.feature-item-card:hover .feature-icon-wrapper {
  background: #2563eb;
  color: #ffffff;
}
.feature-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
}
.feature-text p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Category Showcase */
.category-showcase-section {
  margin-bottom: 3.5rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  display: block;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #2563eb;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.category-card:hover::after {
  transform: scaleX(1);
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
}
.category-card-icon {
  font-size: 2.25rem;
  color: #2563eb;
  margin-bottom: 0.75rem;
}
.category-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}
.category-card span {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* Promo Banner Section */
.promo-banner-wrapper {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 20px;
  padding: 3rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}
.promo-text {
  max-width: 600px;
}
.promo-text h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.promo-text p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}
.promo-action {
  flex-shrink: 0;
}
.btn-promo {
  background: #ffffff;
  color: #2563eb !important;
  font-weight: 700;
  padding: 0.85rem 2.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}

/* Title & Section Improvements */
.home-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
}
.home-section-title h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  position: relative;
}
.home-section-title h3::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: #2563eb;
  border-radius: 99px;
}
.home-section-title a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}
.home-section-title a:hover {
  color: #1d4ed8;
}

/* Product Card Enhancements */
.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(37, 99, 235, 0.15);
}
.product-thumb {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.stock-tag {
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
.product-body h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2563eb;
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 2.5rem 1.5rem;
  }
  .hero-wrapper h1 {
    font-size: 2rem;
  }
  .promo-banner-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .btn-promo {
    width: 100%;
  }
}

/* ============================================
   PRODUCT DETAIL PAGE — Premium UI
   ============================================ */

/* Breadcrumb */
.detail-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
}
.detail-breadcrumb .breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.detail-breadcrumb .breadcrumb-item.active {
  color: var(--muted);
}
.detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--border);
}

/* Wrapper Card */
.detail-product-wrapper {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Image Panel */
.detail-image-panel {
  position: relative;
  background: linear-gradient(145deg, #f0f4ff 0%, #e8f0fe 100%);
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.detail-badges {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  z-index: 2;
}

.badge-detail {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-kategori {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.badge-jenis {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.detail-image-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-main-image {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.15));
  transition: transform 0.35s ease;
}
.detail-main-image:hover {
  transform: scale(1.04);
}

/* Info Panel */
.detail-info-panel {
  padding: 2.5rem 2.25rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-header { margin-bottom: 0.5rem; }

.detail-product-name {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.detail-product-code {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Price */
.detail-price-block {
  margin: 1rem 0 0.75rem;
}
.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stock Badge */
.detail-stock-block { margin-bottom: 0.5rem; }

.stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.stock-ready {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.stock-low {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
}
.stock-empty {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Divider */
.detail-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

/* Description */
.detail-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.detail-desc-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Feature Row */
.detail-features-row {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0 0.25rem;
  flex-wrap: wrap;
}
.detail-feature-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.detail-feature-item i { font-size: 0.8rem; }

/* Cart Row */
.detail-cart-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.detail-qty-wrapper { display: flex; flex-direction: column; gap: 0.4rem; }

.detail-qty-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  background: var(--primary-soft);
  border: none;
  color: var(--primary);
  width: 38px;
  height: 42px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--primary); color: #fff; }

.qty-input {
  border: none;
  outline: none;
  width: 52px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  flex: 1;
  justify-content: center;
}
.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  color: #fff;
}
.btn-add-cart:active { transform: translateY(0); }

/* Out of Stock */
.detail-out-of-stock {
  background: #fff4e6;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Back Link */
.detail-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: color 0.2s;
}
.detail-back-link:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive Detail */
@media (max-width: 768px) {
  .detail-image-panel {
    min-height: 280px;
    padding: 2rem 1.5rem;
  }
  .detail-info-panel {
    padding: 1.75rem 1.5rem 1.5rem;
  }
  .detail-product-name { font-size: 1.3rem; }
  .detail-price { font-size: 1.5rem; }
  .btn-add-cart { width: 100%; }
  .detail-cart-row { flex-direction: column; align-items: stretch; }
}

/* ============================================
   CART PAGE — Premium UI
   ============================================ */

/* Page Header */
.cart-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cart-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.cart-continue-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.cart-continue-link:hover { color: var(--primary); text-decoration: none; }

/* Empty Cart */
.cart-empty-wrapper {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
  padding: 5rem 2rem;
}
.cart-empty-icon {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 1.25rem;
}
.cart-empty-wrapper h4 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.cart-empty-wrapper p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.btn-cart-shop {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  padding: 0.7rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cart-shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
  color: #fff; text-decoration: none;
}

/* Layout */
.cart-layout-row { gap: 0; align-items: flex-start; }
.cart-items-col { padding-right: 1.25rem; }
.cart-summary-col { padding-left: 0.25rem; }

/* Items Wrapper */
.cart-items-wrapper {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Column Header */
.cart-items-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr 48px;
  padding: 0.85rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Item Row */
.cart-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr 48px;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: #fafbff; }

/* Product Cell */
.cart-item-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cart-item-img-wrap {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item-info { display: flex; flex-direction: column; gap: 0.2rem; }
.cart-item-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.3;
}
.cart-item-stock {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Price & Subtotal */
.cart-item-price {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.cart-item-subtotal strong {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
}

/* Qty Control */
.cart-qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  background: #fff;
}
.cart-qty-btn {
  background: var(--primary-soft);
  border: none;
  color: var(--primary);
  width: 30px;
  height: 34px;
  cursor: pointer;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cart-qty-btn:hover { background: var(--primary); color: #fff; }
.cart-qty-input {
  border: none;
  outline: none;
  width: 40px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  -moz-appearance: textfield;
  background: #fff;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Remove Button */
.cart-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #ef4444;
  background: #fee2e2;
  transition: background 0.2s, transform 0.2s;
  font-size: 0.8rem;
  text-decoration: none;
}
.cart-remove-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.1);
  text-decoration: none;
}

/* Update Row */
.cart-update-row {
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-start;
}
.btn-cart-update {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cart-update:hover { border-color: var(--primary); color: var(--primary); }

/* Order Summary Box */
.cart-summary-box {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.5rem;
  position: sticky;
  top: 80px;
}
.cart-summary-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.cart-summary-total {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.cart-total-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cart-summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.85rem 0;
}
.cart-summary-info {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1.25rem;
}
.cart-login-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Checkout Button */
.btn-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
}
.btn-cart-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  color: #fff; text-decoration: none;
}

/* Back to Shop Button */
.btn-cart-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #fff;
  color: var(--muted);
  border: 2px solid var(--border);
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cart-back:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* Responsive Cart */
@media (max-width: 991px) {
  .cart-items-col { padding-right: 0; margin-bottom: 1.25rem; }
  .cart-summary-col { padding-left: 0; }
  .cart-items-header { display: none; }
  .cart-item-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  .cart-item-product { grid-column: 1 / -1; }
  .cart-item-price::before { content: attr(data-label) ': '; font-weight: 600; color: var(--muted); font-size: 0.72rem; display: block; }
  .cart-item-subtotal::before { content: attr(data-label) ': '; font-weight: 600; color: var(--muted); font-size: 0.72rem; display: block; }
  .cart-item-remove { justify-self: end; align-self: end; }
  .cart-summary-box { position: static; }
}


