:root {
  --soko-ink: #111827;
  --soko-muted: #6b7280;
  --soko-line: #e5e7eb;
  --soko-soft: #f8fafc;
  --soko-whatsapp: #16a34a;
  --soko-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
  --soko-shadow-hover: 0 18px 46px rgba(17, 24, 39, 0.13);
}

body {
  color: var(--soko-ink);
  background: #fff;
  text-rendering: optimizeLegibility;
}

.site-header {
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08);
}

.site-header .logo-col,
.site-footer .footer-logo {
  max-width: 150px;
}

.site-header input[type="text"],
.site-header input[type="search"] {
  min-height: 44px;
  border-color: var(--soko-line);
}

.main-nav a {
  position: relative;
}

.main-nav a::before {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary-color);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.btn-primary,
.btn-outline,
.sokowhats-add-button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary,
.sokowhats-add-button {
  box-shadow: 0 8px 18px rgba(248, 121, 108, 0.22);
}

.btn-primary:hover,
.sokowhats-add-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(248, 121, 108, 0.28);
}

.sokowhats-home-hero {
  background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--soko-soft) 100%);
}

.sokowhats-hero-slider,
.sokowhats-offer-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--soko-shadow);
}

.sokowhats-hero-slider .swiper-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.68) 42%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.sokowhats-hero-slider .swiper-slide > div {
  min-height: 420px;
}

.sokowhats-hero-slider h2 {
  max-width: 560px;
  color: var(--soko-ink) !important;
  line-height: 1.04;
}

.sokowhats-hero-slider p {
  color: #374151 !important;
  font-size: 1rem;
  line-height: 1.7;
}

.sokowhats-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 11px;
  color: var(--soko-whatsapp);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 999px;
}

.sokowhats-offer-card img {
  transition: transform 300ms ease;
}

.sokowhats-offer-card:hover img {
  transform: scale(1.03);
}

.sokowhats-product-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07) !important;
}

.sokowhats-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--soko-shadow-hover) !important;
}

.sokowhats-product-body {
  min-height: 214px;
}

.sokowhats-product-media {
  overflow: hidden;
  background: var(--soko-soft);
}

.sokowhats-product-media .product-image {
  aspect-ratio: 1 / 1;
  height: auto !important;
  min-height: 220px;
  transition: transform 280ms ease;
}

.sokowhats-product-card:hover .product-image {
  transform: scale(1.035);
}

.sokowhats-product-badge {
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.sokowhats-product-badge-stock {
  z-index: 2;
}

.sokowhats-product-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sokowhats-product-category {
  color: var(--soko-muted) !important;
  font-weight: 800;
}

.sokowhats-product-title {
  min-height: 44px;
  color: var(--soko-ink);
  line-height: 1.35;
}

.sokowhats-product-title a:hover {
  color: var(--primary-color);
}

.sokowhats-product-description {
  min-height: 40px;
  line-height: 1.45;
}

.sokowhats-product-footer {
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.sokowhats-product-price {
  white-space: nowrap;
}

.sokowhats-price-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sokowhats-price-block .line-through {
  margin-left: 0 !important;
}

.sokowhats-add-button {
  min-width: 106px;
  white-space: nowrap;
}

.sokowhats-add-button-disabled,
.sokowhats-add-button-disabled:hover {
  color: #6b7280;
  background: #f3f4f6;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.sokowhats-service-card {
  min-height: 118px;
  border-color: rgba(17, 24, 39, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.site-footer {
  background: #111827 !important;
}

.sokowhats-footer {
  color: #f9fafb;
}

.sokowhats-footer-grid {
  align-items: start;
}

.sokowhats-footer-brand,
.sokowhats-footer-column {
  min-width: 0;
}

.sokowhats-footer .footer-logo img {
  max-width: 148px;
  height: auto;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
}

.sokowhats-footer p {
  line-height: 1.65;
}

.sokowhats-footer h3,
.sokowhats-footer h4 {
  color: #fff;
  letter-spacing: 0;
}

.sokowhats-footer ul a {
  display: inline-flex;
  padding: 3px 0;
  transition: color 160ms ease, transform 160ms ease;
}

.sokowhats-footer ul a:hover {
  color: #fff;
  transform: translateX(2px);
}

.sokowhats-footer-newsletter form {
  max-width: 360px;
}

.sokowhats-footer-newsletter input {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sokowhats-footer-newsletter button {
  min-width: 48px;
}

.cart-panel {
  max-width: 420px;
}

.cart-panel .btn-primary,
.cart-panel .btn-outline {
  width: 100%;
}

@media (max-width: 1023px) {
  .sokowhats-hero-slider .swiper-slide > div {
    min-height: 340px;
  }

  .sokowhats-offer-card {
    height: 260px !important;
  }
}

@media (max-width: 767px) {
  .site-header .logo-col {
    max-width: 128px;
  }

  .sokowhats-hero-slider h2 {
    font-size: 2rem;
  }

  .sokowhats-hero-slider .swiper-slide > div {
    min-height: 310px;
  }

  .sokowhats-hero-slider .swiper-slide::after {
    background: rgba(255, 255, 255, 0.82);
  }

  .sokowhats-product-media .product-image {
    min-height: 180px;
  }

  .sokowhats-product-body {
    min-height: 0;
  }

  .sokowhats-product-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sokowhats-add-button {
    width: 100%;
  }

  .sokowhats-footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }

  .sokowhats-footer-grid {
    gap: 28px;
  }

  .sokowhats-footer-brand,
  .sokowhats-footer-column {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sokowhats-footer-column:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .sokowhats-footer .footer-logo {
    margin-bottom: 14px;
  }

  .sokowhats-footer h3,
  .sokowhats-footer h4 {
    margin-bottom: 12px;
    font-size: 1.15rem;
  }

  .sokowhats-footer ul {
    display: grid;
    gap: 4px;
  }

  .sokowhats-footer-newsletter form {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .sokowhats-product-media .product-image {
    min-height: 160px;
  }

  .sokowhats-product-title {
    min-height: auto;
  }
}

.sokowhats-page-hero {
  overflow: hidden;
  background: #111827 !important;
}

.sokowhats-page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.52));
  pointer-events: none;
}

.sokowhats-page-hero > div {
  position: relative;
  z-index: 1;
}

.sokowhats-page-hero img {
  opacity: 0.22 !important;
}

.sokowhats-page-hero h1 {
  color: #fff;
  letter-spacing: 0;
}

.sokowhats-page-hero p,
.sokowhats-page-hero a {
  color: rgba(255, 255, 255, 0.82);
}

.sokowhats-page-hero a:hover {
  color: #fff;
}

.sokowhats-filter-panel,
.sokowhats-cart-table-card,
.sokowhats-cart-summary,
.sokowhats-checkout-card,
.sokowhats-product-buy-box,
.sokowhats-main-image {
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: var(--soko-shadow) !important;
}

.sokowhats-filter-panel {
  padding: 20px !important;
}

.sokowhats-filter-form label,
.sokowhats-checkout-card label {
  color: var(--soko-ink);
  font-weight: 700;
}

.sokowhats-filter-form input,
.sokowhats-filter-form select,
.sokowhats-checkout-card input,
.sokowhats-checkout-card select,
.sokowhats-checkout-card textarea,
.sokowhats-product-actions input,
.sokowhats-cart-table input {
  min-height: 44px;
  border-color: var(--soko-line) !important;
  border-radius: 8px !important;
  background-color: #fff;
}

.sokowhats-filter-form input:focus,
.sokowhats-filter-form select:focus,
.sokowhats-checkout-card input:focus,
.sokowhats-checkout-card select:focus,
.sokowhats-checkout-card textarea:focus,
.sokowhats-product-actions input:focus,
.sokowhats-cart-table input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(248, 121, 108, 0.14);
}

.sokowhats-filter-actions {
  align-items: stretch;
}

.sokowhats-reset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}

.sokowhats-results-bar {
  padding: 0 2px;
}

.sokowhats-results-bar p {
  color: var(--soko-muted);
  font-weight: 700;
}

.sokowhats-product-grid {
  align-items: stretch;
}

.sokowhats-empty-state {
  max-width: 620px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  box-shadow: var(--soko-shadow);
}

.sokowhats-product-detail {
  align-items: start;
}

.sokowhats-main-image {
  background: var(--soko-soft);
}

.sokowhats-main-image img {
  display: block;
}

.sokowhats-thumb-list img {
  border-radius: 8px !important;
  background: var(--soko-soft);
}

.sokowhats-product-buy-box {
  padding: 26px;
  background: #fff;
}

.sokowhats-product-buy-box h1 {
  color: var(--soko-ink);
  line-height: 1.16;
}

.sokowhats-vendor-line {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 10px;
  color: #374151 !important;
  background: var(--soko-soft);
  border: 1px solid var(--soko-line);
  border-radius: 999px;
}

.sokowhats-price-row {
  padding: 16px 0;
  border-top: 1px solid var(--soko-line);
  border-bottom: 1px solid var(--soko-line);
}

.sokowhats-price-row span:first-child {
  font-size: 2rem;
}

.sokowhats-product-copy {
  color: #4b5563;
  line-height: 1.75;
}

.sokowhats-product-actions {
  padding-top: 2px;
}

.sokowhats-product-actions > div {
  min-height: 48px;
  border-color: var(--soko-line) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.sokowhats-product-actions button[type="button"] {
  min-width: 42px;
}

.sokowhats-installment-box {
  border-radius: 8px !important;
}

.sokowhats-share-actions button,
.sokowhats-contact-actions a {
  min-height: 42px;
  border-radius: 8px !important;
  font-weight: 700;
}

.sokowhats-similar-products h2 {
  color: var(--soko-ink);
}

.sokowhats-cart-table-card {
  overflow-x: auto;
}

.sokowhats-cart-table {
  min-width: 720px;
}

.sokowhats-cart-table thead {
  background: var(--soko-soft);
}

.sokowhats-cart-row:last-child {
  border-bottom: 0;
}

.sokowhats-cart-row img {
  border-radius: 8px !important;
}

.sokowhats-cart-stock-note {
  margin-top: 6px;
  color: var(--soko-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.sokowhats-cart-actions {
  flex-wrap: wrap;
  align-items: center;
}

.sokowhats-cart-summary {
  background: #fff;
}

.sokowhats-cart-summary h3 {
  color: var(--soko-ink);
}

.sokowhats-checkout-card {
  position: relative;
  overflow: hidden;
}

.sokowhats-checkout-card::before {
  display: block;
  width: calc(100% + 4rem);
  height: 5px;
  margin: -2rem -2rem 24px;
  content: "";
  background: linear-gradient(90deg, var(--primary-color), var(--soko-whatsapp));
}

.sokowhats-checkout-step h2 {
  color: var(--soko-ink);
}

.sokowhats-checkout-step > h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soko-line);
}

.sokowhats-checkout-card #btn-no {
  min-height: 48px;
  color: var(--soko-ink);
  font-weight: 800;
  background: #fff;
  border-color: var(--soko-line) !important;
  border-radius: 8px !important;
}

.sokowhats-checkout-card #btn-no:hover {
  color: var(--primary-color);
  border-color: var(--primary-color) !important;
  background: rgba(248, 121, 108, 0.06);
}

.sokowhats-checkout-card #btn-back {
  border-radius: 8px;
  text-decoration: none;
}

.sokowhats-checkout-card .rounded-lg.border {
  border-color: rgba(17, 24, 39, 0.09) !important;
}

.sokowhats-checkout-card #checkout-form > .rounded-lg.border {
  padding: 18px !important;
  background: var(--soko-soft) !important;
}

.sokowhats-checkout-card #checkout-form > .rounded-lg.border > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--soko-ink);
  font-size: 0.92rem;
}

.sokowhats-checkout-card #checkout-form > .rounded-lg.border > h3::before {
  display: inline-flex;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--soko-whatsapp);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.1);
}

.sokowhats-checkout-card label.flex.gap-3.rounded-lg,
.sokowhats-checkout-card #independent-driver-options label,
.sokowhats-checkout-card #third-party-pickup-fields {
  border-color: var(--soko-line) !important;
  border-radius: 8px !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sokowhats-checkout-card label.flex.gap-3.rounded-lg:hover,
.sokowhats-checkout-card #independent-driver-options label:hover {
  border-color: rgba(248, 121, 108, 0.7) !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
  transform: translateY(-1px);
}

.sokowhats-checkout-card label.flex.gap-3.rounded-lg:has(input:checked),
.sokowhats-checkout-card #independent-driver-options label:has(input:checked) {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(248, 121, 108, 0.12);
}

.sokowhats-checkout-card input[type="radio"] {
  min-height: auto;
  border-radius: 999px !important;
}

.sokowhats-checkout-card #independent-driver-options,
.sokowhats-checkout-card #third-party-pickup-fields {
  background: #fff !important;
}

.sokowhats-checkout-card #delivery-geolocation-block {
  padding: 12px 14px;
  background: rgba(248, 121, 108, 0.06);
  border: 1px solid rgba(248, 121, 108, 0.16);
  border-radius: 8px;
}

.sokowhats-checkout-card #btn-geolocation {
  min-height: 36px;
  font-weight: 800;
}

.sokowhats-checkout-card #fulfillment-summary-label,
.sokowhats-checkout-card #delivery-fee-display {
  color: var(--soko-ink);
  font-weight: 800;
}

.sokowhats-checkout-card #checkout-form button[type="submit"] {
  min-height: 50px;
}

.sokowhats-checkout-card #checkout-form button[type="submit"] + p {
  color: var(--soko-muted);
}

@media (max-width: 767px) {
  .sokowhats-page-hero {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .sokowhats-filter-panel,
  .sokowhats-product-buy-box,
  .sokowhats-checkout-card,
  .sokowhats-cart-summary {
    padding: 18px !important;
  }

  .sokowhats-product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sokowhats-product-actions .btn-primary {
    width: 100%;
  }

  .sokowhats-price-row span:first-child {
    font-size: 1.7rem;
  }

  .sokowhats-cart-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sokowhats-cart-table-card {
    padding: 0 !important;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .sokowhats-cart-table,
  .sokowhats-cart-table thead,
  .sokowhats-cart-table tbody,
  .sokowhats-cart-table tr,
  .sokowhats-cart-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .sokowhats-cart-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 14px;
  }

  .sokowhats-cart-table thead {
    display: none;
  }

  .sokowhats-cart-row {
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    border-radius: 8px;
    box-shadow: var(--soko-shadow);
  }

  .sokowhats-cart-row td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0 !important;
    color: var(--soko-ink);
    text-align: right !important;
    border-bottom: 1px solid var(--soko-line);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  .sokowhats-cart-row td:last-child {
    border-bottom: 0;
  }

  .sokowhats-cart-row td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--soko-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .sokowhats-cart-row .sokowhats-cart-product-cell {
    display: block;
    text-align: left !important;
  }

  .sokowhats-cart-row .sokowhats-cart-product-cell::before {
    display: none;
  }

  .sokowhats-cart-row .sokowhats-cart-product-cell > div {
    align-items: center;
  }

  .sokowhats-cart-row img {
    width: 76px;
    height: 76px;
  }

  .sokowhats-cart-row h4 {
    color: var(--soko-ink);
    font-size: 1rem;
    line-height: 1.35;
  }

  .sokowhats-cart-row input[type="number"] {
    width: 76px !important;
  }

  .sokowhats-cart-actions .btn-outline,
  .sokowhats-cart-actions form,
  .sokowhats-cart-actions button {
    width: 100%;
  }

  .sokowhats-checkout-card::before {
    width: calc(100% + 36px);
    margin: -18px -18px 20px;
  }

  .sokowhats-checkout-step > h2 {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .sokowhats-checkout-card #checkout-form > .rounded-lg.border {
    padding: 14px !important;
  }

  .sokowhats-checkout-card label.flex.gap-3.rounded-lg {
    align-items: flex-start;
  }

  .sokowhats-checkout-card #delivery-geolocation-block {
    display: grid;
    grid-template-columns: 1fr;
  }
}
