/* ===== IBM — Shopee-Inspired Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #EE4D2D;
  --primary-dark: #D0381E;
  --primary-light: #FFF0EC;
  --primary-tint: #FB5533;
  --accent: #FF7337;
  --accent-light: #FFE8DE;
  --dark: #222222;
  --dark2: #555555;
  --light: #F5F5F5;
  --light2: #FAFAFA;
  --white: #FFFFFF;
  --gray: #757575;
  --gray-light: #F0F0F0;
  --gray-dark: #222222;
  --border: #F0F0F0;
  --success: #26AA99;
  --danger: #FF424F;
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --shadow: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-hover: 0 2px 10px rgba(0,0,0,0.12);
  --transition: all 0.15s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(-180deg, #F53D2D, #F63);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { height: 32px; width: auto; }
.logo-text {
  font-size: 1.4rem; font-weight: 700; color: var(--white);
  letter-spacing: -0.5px; text-transform: uppercase;
}

/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto; }
.nav-desktop a {
  padding: 6px 12px; font-weight: 400; font-size: 0.8rem;
  color: var(--white); position: relative;
}
.nav-desktop a:hover { color: rgba(255,255,255,0.85); }
.nav-desktop a.active { color: var(--white); font-weight: 500; }
.nav-desktop a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 2px; background: var(--white); border-radius: 1px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.user-icon-link {
  display: flex; align-items: center; padding: 8px; color: var(--white);
  border-radius: 50%; transition: var(--transition);
}
.user-icon-link:hover { background: rgba(255,255,255,0.15); }
.user-icon-link svg { width: 22px; height: 22px; fill: currentColor; }

/* Cart icon */
.cart-icon {
  position: relative; display: flex; align-items: center;
  padding: 8px; cursor: pointer; border-radius: 50%;
  transition: var(--transition);
}
.cart-icon:hover { background: rgba(255,255,255,0.15); }
.cart-icon svg { width: 24px; height: 24px; fill: var(--white); }
.cart-count {
  position: absolute; top: 2px; right: 0;
  background: var(--white); color: var(--primary);
  font-size: 0.6rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
}

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}

/* Mobile sidebar */
.mobile-sidebar {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: var(--white); z-index: 2000; padding: 60px 20px 20px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
}
.mobile-sidebar.open { right: 0; }
.mobile-sidebar a {
  display: block; padding: 14px 12px; font-size: 0.9rem;
  font-weight: 400; border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.mobile-sidebar a:hover { color: var(--primary); background: var(--primary-light); }
.sidebar-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.6rem; cursor: pointer;
  color: var(--gray); line-height: 1;
}
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(180deg, #F53D2D 0%, #F63 60%, #F5F5F5 60.1%, var(--light) 100%);
  padding: 32px 16px 0;
  color: var(--white);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; text-align: center;
  padding-bottom: 48px;
}
.hero h1 {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 12px; line-height: 1.2; color: #FFE8DE;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero .tagline {
  font-size: 1rem; margin-bottom: 12px; opacity: 0.95;
  font-weight: 400; line-height: 1.5; max-width: 640px; margin-left: auto; margin-right: auto;
}
.hero .desc {
  max-width: 560px; margin: 0 auto 24px; font-size: 0.85rem; opacity: 0.85;
  line-height: 1.6;
}
.hero-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTION COMMON ===== */
.section { padding: 40px 0; background: var(--light); }
.section-title {
  text-align: left; font-size: 1rem; font-weight: 700;
  margin-bottom: 8px; color: var(--dark); letter-spacing: -0.2px;
  position: relative; padding-left: 12px;
  text-transform: uppercase;
}
.section-title::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 4px; background: var(--primary); border-radius: 2px;
}
.section-subtitle {
  text-align: left; font-size: 0.82rem; color: var(--gray);
  margin-bottom: 16px; line-height: 1.5;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 100%;
}
.step-card {
  text-align: center; padding: 20px 16px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); position: relative;
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-hover);
}
.step-card img {
  width: 80px; height: 80px; object-fit: contain; margin: 0 auto 12px;
}
.step-num {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 0.72rem; font-weight: 700;
}
.step-card p { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }

/* ===== SERVICE BLOCKS (homepage) ===== */
.service-block {
  display: flex; align-items: center; gap: 24px;
  background: var(--white); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 12px;
}
.service-block.reverse { flex-direction: row-reverse; }
.service-img { flex: 0 0 200px; }
.service-img img { border-radius: var(--radius); width: 100%; }
.service-text { flex: 1; }
.service-label {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 3px 10px; border-radius: var(--radius-sm); font-size: 0.68rem; font-weight: 700;
  margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase;
}
.service-text h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 6px;
  letter-spacing: -0.2px; color: var(--dark);
}
.service-text p {
  font-size: 0.85rem; color: var(--gray); margin-bottom: 14px; line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 400; font-size: 0.85rem;
  transition: var(--transition); cursor: pointer; border: none;
  font-family: inherit; line-height: 1.2;
}
.btn-primary {
  background: var(--primary); color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-outline {
  border: 1px solid var(--primary); color: var(--primary); background: var(--white);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white {
  background: var(--white); color: var(--primary); font-weight: 500;
}
.btn-white:hover { background: var(--primary-light); }
.btn-ghost {
  background: rgba(255,255,255,0.2); color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.3); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--white); padding: 40px 0; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.testimonial-card {
  background: var(--white); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-hover); }
.stars { color: #F5A623; margin-bottom: 6px; font-size: 0.8rem; letter-spacing: 1px; }
.testimonial-card blockquote {
  font-size: 0.85rem; color: var(--dark);
  margin-bottom: 10px; line-height: 1.5; font-style: normal;
}
.testimonial-card .author {
  font-weight: 500; font-size: 0.78rem; color: var(--gray);
}

/* ===== PRODUCT GRID (listing pages) ===== */
.breadcrumb {
  padding: 14px 0; font-size: 0.75rem; color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

.page-header {
  background: var(--white); padding: 24px 16px; text-align: center;
  border-bottom: 2px solid var(--primary);
}
.page-header h1 {
  font-size: 1.3rem; font-weight: 700; color: var(--dark);
  letter-spacing: -0.2px; text-transform: uppercase;
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px; padding: 16px 0;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.product-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.product-card-img {
  height: 170px; display: flex; align-items: center; justify-content: center;
  background: var(--white); padding: 16px;
  border-bottom: 1px solid var(--border);
}
.product-card-img img { max-height: 130px; width: auto; object-fit: contain; }
.product-card-body { padding: 10px 12px 12px; }
.product-card-body h3 {
  font-size: 0.85rem; font-weight: 500; margin-bottom: 6px;
  color: var(--dark); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-body .price {
  color: var(--primary); font-weight: 500; font-size: 0.85rem; margin-bottom: 10px;
}
.product-card-body .btn {
  width: 100%; text-align: center; padding: 7px; font-size: 0.75rem;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: flex; gap: 24px; padding: 24px 0;
  background: var(--white);
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border);
}
.product-detail-img {
  flex: 0 0 360px; background: var(--white); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  border: 1px solid var(--border);
}
.product-detail-img img { max-width: 240px; }
.product-detail-info { flex: 1; }
.product-detail-info h1 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 6px;
  letter-spacing: -0.2px; color: var(--dark);
}
.product-detail-info .price-range {
  font-size: 1.1rem; color: var(--primary); font-weight: 500; margin-bottom: 16px;
}
.product-detail-info .description {
  font-size: 0.85rem; color: var(--gray); line-height: 1.6; margin-bottom: 20px;
}
.product-detail-info label {
  display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.85rem;
  color: var(--dark);
}
.product-detail-info select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem; font-family: inherit;
  margin-bottom: 16px; appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23757575' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat;
  cursor: pointer; transition: var(--transition); color: var(--dark);
}
.product-detail-info select:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 2px rgba(238,77,45,0.1);
}
.quantity-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.qty-label { font-weight: 500; font-size: 0.85rem; color: var(--dark); }
.qty-input {
  width: 70px; padding: 8px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit; transition: var(--transition);
}
.qty-input:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 2px rgba(238,77,45,0.1);
}
.add-to-cart {
  width: 100%; padding: 12px; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-meta {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--gray);
}
.product-meta span { margin-right: 20px; }

/* ===== CONTACT / FAQ ===== */
.faq-list { max-width: 100%; margin: 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 6px; overflow: hidden; transition: var(--transition);
  background: var(--white);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 500; font-size: 0.85rem;
  padding: 14px 16px; background: var(--white); color: var(--dark);
}
.faq-question .num {
  color: var(--primary); font-weight: 700; margin-right: 10px;
}
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  font-size: 0.82rem; color: var(--gray); line-height: 1.6;
  padding: 0 16px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 16px 14px; }
.faq-item.open { border-color: var(--primary); }
.faq-toggle {
  font-size: 1.2rem; font-weight: 300; color: var(--primary);
  transition: var(--transition);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.company-profile {
  max-width: 100%; margin-top: 24px;
  background: var(--white); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.company-profile h2 { font-size: 1.1rem; margin-bottom: 10px; color: var(--dark); }
.company-profile p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--white); color: var(--dark); padding: 32px 0 0;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo-text {
  color: var(--primary); font-size: 1.2rem; margin-bottom: 8px;
  font-weight: 700; text-transform: uppercase;
}
.footer-brand p {
  font-size: 0.78rem; color: var(--gray); line-height: 1.6;
}
.footer h4 {
  font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--dark);
}
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--gray); font-size: 0.78rem; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--gray); flex-wrap: wrap; gap: 8px;
}
.footer-bottom-nav a { color: var(--gray); margin-left: 16px; font-size: 0.72rem; }
.footer-bottom-nav a:hover { color: var(--primary); }

/* ===== AUTH (Login / Register) ===== */
.auth-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 880px; margin: 0 auto; padding: 24px 0;
}
.auth-box {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
}
.auth-box:hover { box-shadow: var(--shadow); }
.auth-box h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-weight: 500; font-size: 0.8rem; margin-bottom: 5px;
  color: var(--dark);
}
.form-group label .req { color: var(--danger); }
.form-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem; font-family: inherit;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 2px rgba(238,77,45,0.1);
}
.checkbox-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 0.8rem; color: var(--gray);
}
.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary);
}
.auth-link {
  display: inline-block; margin-top: 10px; font-size: 0.8rem;
  color: var(--primary);
}
.auth-link:hover { text-decoration: underline; }
.btn-auth {
  width: 100%; padding: 11px; font-size: 0.85rem; margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.auth-divider {
  text-align: center; margin: 16px 0; font-size: 0.75rem; color: var(--gray);
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 40%;
  height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.password-wrapper { position: relative; }
.password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray);
  font-size: 0.78rem; font-family: inherit;
}

/* ===== CART ===== */
.cart-wrapper { max-width: 1000px; margin: 0 auto; padding: 24px 0; }
.cart-empty {
  text-align: center; padding: 60px 20px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cart-empty-icon { font-size: 3.5rem; margin-bottom: 12px; opacity: 0.3; }
.cart-empty p { font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; background: var(--white); }
.cart-table th {
  text-align: left; padding: 12px 14px; font-weight: 500; font-size: 0.78rem;
  border-bottom: 1px solid var(--border); color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.5px; background: var(--light2);
}
.cart-table td {
  padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.cart-item-info { display: flex; align-items: center; gap: 12px; }
.cart-item-img {
  width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 6px;
  flex-shrink: 0; border: 1px solid var(--border);
}
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-name { font-weight: 500; font-size: 0.85rem; color: var(--dark); }
.cart-item-variant { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }
.cart-qty-controls {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.cart-qty-btn {
  width: 32px; height: 32px; border: none; background: var(--light);
  cursor: pointer; font-size: 0.95rem; font-weight: 500; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-qty-btn:hover { background: var(--primary); color: var(--white); }
.cart-qty-val {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 32px; padding: 0 8px;
  font-size: 0.9rem; font-weight: 500;
}
.cart-remove {
  background: none; border: none; color: var(--danger); cursor: pointer;
  font-size: 1.05rem; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.cart-remove:hover { background: var(--primary-light); }
.cart-price { font-weight: 500; white-space: nowrap; color: var(--primary); }

.cart-summary {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  max-width: 360px; margin-left: auto;
  border: 1px solid var(--border);
}
.cart-summary h3 {
  font-size: 0.9rem; font-weight: 700; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--dark);
}
.cart-summary-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 0.85rem; color: var(--dark);
}
.cart-summary-row.total {
  border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px;
  font-weight: 700; font-size: 1rem;
}
.cart-summary-row.total span:last-child { color: var(--primary); }
.btn-checkout { width: 100%; margin-top: 16px; padding: 12px; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== CHECKOUT ===== */
.checkout-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px;
  padding: 24px 0; align-items: start;
}
.checkout-billing, .checkout-order {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.checkout-billing h2, .checkout-order h2 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; color: var(--dark);
}
.checkout-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.checkout-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--primary-light); border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px;
  font-size: 0.82rem; color: var(--dark); line-height: 1.5;
}
.checkout-notice svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.checkout-order { position: sticky; top: 80px; }
.checkout-table { width: 100%; border-collapse: collapse; margin-bottom: 0; }
.checkout-table th {
  text-align: left; padding: 10px 0; font-weight: 500; font-size: 0.78rem;
  border-bottom: 1px solid var(--border); color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.checkout-table th:last-child { text-align: right; }
.checkout-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.checkout-product-name { font-weight: 500; color: var(--dark); }
.checkout-product-variant { color: var(--gray); font-size: 0.75rem; }
.checkout-price { text-align: right; font-weight: 500; white-space: nowrap; color: var(--primary); }
.checkout-subtotal-row td { padding: 12px 0; font-size: 0.85rem; }
.checkout-subtotal-row td:last-child { text-align: right; font-weight: 500; }
.checkout-total-row td {
  padding: 14px 0; font-size: 1rem; font-weight: 700;
  border-top: 1px solid var(--border); border-bottom: none;
  color: var(--dark);
}
.checkout-total-row td:last-child { text-align: right; color: var(--primary); }
.checkout-payment-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--primary-light); border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 16px;
  font-size: 0.78rem; color: var(--dark); line-height: 1.5;
}
.checkout-payment-notice svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.btn-place-order {
  width: 100%; margin-top: 16px; padding: 14px; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Toast notification */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  background: var(--dark); color: var(--white); padding: 12px 20px;
  border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 400;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s ease;
  border-left: 3px solid var(--primary);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Curve separator — hidden */
.curve-separator { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .service-block { flex-direction: column !important; gap: 16px; }
  .service-img { flex: none; max-width: 320px; }
  .product-detail { flex-direction: column; }
  .product-detail-img { flex: none; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .hero .tagline { font-size: 0.9rem; }
  .hero { padding: 24px 16px 0; }
  .hero-content { padding-bottom: 36px; }
  .steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom-nav a { margin: 0 8px; }
  .header-inner { padding: 0 12px; gap: 12px; }
  .section { padding: 24px 0; }
  .auth-grid { grid-template-columns: 1fr; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  .cart-summary { max-width: 100%; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-order { position: static; }
  .checkout-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 20px 12px 0; }
  .hero h1 { font-size: 1.4rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .product-card-body { padding: 8px; }
  .product-card-body h3 { font-size: 0.78rem; }
}

/* ===== QRIS PAYMENT MODAL ===== */
.qris-modal-backdrop {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.qris-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  width: 100%; max-width: 400px;
  overflow: hidden;
  animation: qrisSlideIn 0.25s ease;
}
@keyframes qrisSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.qris-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--primary); color: var(--white);
}
.qris-modal-header h3 {
  font-size: 1rem; font-weight: 700; color: var(--white);
}
.qris-modal-close {
  background: none; border: none; font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: var(--white); padding: 4px 8px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.qris-modal-close:hover { background: rgba(255,255,255,0.2); }
.qris-modal-body {
  padding: 20px; text-align: center;
}
#qrisCanvasWrap {
  display: inline-block;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: var(--white);
}
#qrisCanvasWrap img,
#qrisCanvasWrap canvas {
  display: block;
}
.qris-amount {
  font-size: 1.15rem; font-weight: 700; color: var(--primary);
  margin-bottom: 6px;
}
.qris-instruction {
  font-size: 0.78rem; color: var(--gray); line-height: 1.5;
  margin-bottom: 14px;
}
.qris-waiting {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 0.82rem; color: var(--dark);
  margin-bottom: 14px;
}
.qris-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: qrisSpin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes qrisSpin { to { transform: rotate(360deg); } }
.qris-paylink {
  font-size: 0.78rem; padding: 8px 18px; margin-bottom: 8px;
}
.qris-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.qris-success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary-light); margin-bottom: 14px;
}
@media (max-width: 480px) {
  .qris-modal { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .qris-modal-backdrop { align-items: flex-end; padding: 0; }
}

/* ===== Order Table ===== */
.order-table { width: 100%; border-collapse: collapse; background: var(--white); }
.order-table th {
  text-align: left; padding: 12px 14px; font-weight: 500; font-size: 0.78rem;
  border-bottom: 1px solid var(--border); color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.5px; background: var(--light2);
}
.order-table td {
  padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle;
  font-size: 0.85rem; color: var(--dark);
}
