﻿/* ===== OTR BANNER ===== */
    .trans-toggle {
        display: flex;
        background: #f1f5f9;
        border-radius: 6px;
        padding: 2px;
        gap: 2px;
    }
    .trans-toggle .trans-btn {
        font-size: 10px;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 4px;
        cursor: pointer;
        color: #64748b;
        transition: all 0.2s;
    }
    .trans-toggle .trans-btn.active {
        background: #ffffff;
        color: #0f172a;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    /* Lightbox Styles */
    .lightbox-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }
    .lightbox-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }
    .lightbox-content-wrapper {
      position: relative;
      max-width: 90%;
      max-height: 90%;
    }
    .lightbox-content-wrapper img {
      max-width: 100%;
      max-height: 80vh;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
      object-fit: contain;
    }
    .lightbox-close {
      position: absolute;
      top: -40px;
      right: 0;
      color: #fff;
      font-size: 32px;
      font-weight: bold;
      cursor: pointer;
      text-shadow: 0 2px 4px rgba(0,0,0,0.5);
      transition: color 0.2s;
    }
    .lightbox-close:hover {
      color: var(--primary-red);
    }

    .otr-banner {
      background: linear-gradient(135deg, #b5091f 0%, var(--primary-red) 60%, #d42036 100%);
      border-radius: 20px;
      padding: 18px 20px;
      color: white;
      margin-bottom: 18px;
      box-shadow: var(--shadow-red);
      position: relative;
      overflow: hidden;
    }

    .otr-banner::before {
      content: '';
      position: absolute;
      top: -40px;
      right: -30px;
      width: 140px;
      height: 140px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    }

    .otr-banner h3 {
      color: white;
      margin: 0 0 4px;
      font-size: 15px;
      font-weight: 800;
      letter-spacing: -0.3px;
    }

    .otr-banner p {
      font-size: 11px;
      opacity: 0.85;
      margin: 0;
      font-weight: 500;
      line-height: 1.4;
    }

    .otr-banner-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .otr-banner-icon {
      width: 44px;
      height: 44px;
      background: rgba(255, 255, 255, 0.18);
      border-radius: 13px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    /* ===== SEARCH & FILTER ===== */
    .search-wrap {
      position: relative;
      margin-bottom: 10px;
    }

    .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 13px;
      pointer-events: none;
    }

    .search-input {
      width: 100%;
      padding: 13px 14px 13px 40px;
      border-radius: 14px;
      border: 1.5px solid var(--border-color);
      font-size: 13px;
      font-weight: 500;
      background: white;
      outline: none;
      transition: var(--transition);
      color: var(--text-dark);
    }

    .search-input:focus {
      border-color: var(--accent-blue);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    }

    /* Paket filter tabs (scroll horizontal) */
    .paket-tabs {
      display: flex;
      gap: 7px;
      overflow-x: auto;
      padding-bottom: 2px;
      margin-bottom: 16px;
      scrollbar-width: none;
    }

    .paket-tabs::-webkit-scrollbar {
      display: none;
    }

    .paket-tab {
      flex-shrink: 0;
      padding: 7px 16px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: var(--transition-spring);
      border: 1.5px solid var(--border-color);
      background: white;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .paket-tab.active {
      background: var(--primary-blue);
      color: white;
      border-color: var(--primary-blue);
      box-shadow: var(--shadow-blue);
    }

    .paket-tab:active {
      transform: scale(0.95);
    }

    /* ===== KATEGORI SECTION HEADER ===== */
    .kat-section {
      margin-bottom: 20px;
    }

    .kat-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 4px;
      margin-bottom: 12px;
      border-bottom: 2px solid var(--primary-red);
    }

    .kat-header-icon {
      width: 30px;
      height: 30px;
      background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      color: white;
      flex-shrink: 0;
    }

    .kat-header-title {
      font-size: 14px;
      font-weight: 900;
      color: var(--primary-red);
      letter-spacing: -0.2px;
      flex: 1;
    }

    .kat-header-count {
      font-size: 11px;
      font-weight: 700;
      background: rgba(232, 25, 44, 0.08);
      color: var(--primary-red);
      padding: 3px 10px;
      border-radius: 999px;
    }

    /* ===== MODEL ACCORDION CARD ===== */
    .model-card {
      background: white;
      border: 1px solid var(--border-color);
      border-radius: 18px;
      margin-bottom: 12px;
      overflow: hidden;
      box-shadow: var(--shadow-xs);
      transition: var(--transition);
      animation: float-up 0.4s var(--ease-out) both;
    }

    /* Model header — clickable to expand */
    .model-header {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      cursor: pointer;
      user-select: none;
      transition: background 0.2s;
      position: relative;
    }

    .model-header:active {
      background: #f8fafc;
    }

    .model-thumb {
      width: 72px;
      height: 54px;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid var(--border-color);
      object-fit: contain;
      flex-shrink: 0;
      padding: 4px;
    }

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

    .model-name {
      font-size: 15px;
      font-weight: 900;
      color: var(--text-dark);
      letter-spacing: -0.3px;
      margin-bottom: 3px;
    }

    .model-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .model-price-start {
      font-size: 12px;
      font-weight: 800;
      color: var(--primary-red);
    }

    .model-varian-count {
      font-size: 10px;
      font-weight: 700;
      background: #f1f5f9;
      color: var(--text-muted);
      padding: 2px 8px;
      border-radius: 999px;
    }

    .model-chevron {
      font-size: 13px;
      color: var(--text-muted);
      transition: transform 0.3s var(--ease);
      flex-shrink: 0;
    }

    .model-card.expanded .model-chevron {
      transform: rotate(180deg);
    }

    .model-card.expanded .model-header {
      background: #f8fafc;
    }

    /* ===== VARIANT LIST (paket/tipe) ===== */
    .varian-list {
      display: none;
      border-top: 1px solid var(--border-color);
      padding: 12px 14px;
      background: #f8fafc;
    }

    .model-card.expanded .varian-list {
      display: block;
    }

    .varian-item {
      display: flex;
      align-items: center;
      padding: 12px 16px;
      border-radius: 14px;
      border: 1.5px solid var(--border-color);
      background: white;
      margin-bottom: 8px;
      gap: 12px;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .varian-item:last-child {
      margin-bottom: 0;
    }

    .varian-item.clickable-varian {
      cursor: pointer;
    }

    .varian-item.clickable-varian:hover {
      border-color: #cbd5e1;
      background-color: #f1f5f9;
      transform: translateY(-1px);
      box-shadow: var(--shadow-sm);
    }

    /* Selected state */
    .varian-item.clickable-varian.selected-varian {
      background-color: #f0fdf4 !important;
      border-color: #10b981 !important;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1) !important;
      transform: translateY(-1px);
    }

    /* Radio Indicator column */
    .varian-radio-col {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .varian-radio-indicator {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid #cbd5e1;
      display: flex;
      align-items: center;
      justify-content: center;
      background: white;
      transition: all 0.2s ease;
    }

    .varian-radio-indicator::after {
      content: '';
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: transparent;
      transition: all 0.2s ease;
    }

    .selected-varian .varian-radio-indicator {
      border-color: #10b981;
      background: #f0fdf4;
    }

    .selected-varian .varian-radio-indicator::after {
      background: #10b981;
    }

    /* Left layout */
    .varian-left {
      flex: 1;
      min-width: 0;
    }

    .varian-paket-name {
      font-size: 13px;
      font-weight: 800;
      color: var(--text-dark);
      margin-bottom: 4px;
      letter-spacing: -0.2px;
    }

    .varian-badges {
      display: flex;
      gap: 5px;
      flex-wrap: wrap;
    }

    .varian-badge {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 999px;
    }

    .badge-mt {
      background: #e0f2fe;
      color: #0369a1;
    }

    .badge-at {
      background: #dcfce7;
      color: #15803d;
    }

    .badge-tipe {
      background: #fef3c7;
      color: #b45309;
      text-transform: capitalize;
    }

    /* Right price layout */
    .varian-price-wrap {
      text-align: right;
      flex-shrink: 0;
    }

    .varian-price-label {
      font-size: 9px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.4px;
      display: block;
      margin-bottom: 2px;
    }

    .varian-price-val {
      font-size: 13px;
      font-weight: 800;
      color: var(--primary-red);
    }

    .selected-varian .varian-price-val {
      color: #15803d;
      font-weight: 900;
    }

    /* ===== EMPTY & ERROR STATES ===== */
    .empty-state {
      text-align: center;
      padding: 36px 20px;
      color: var(--text-muted);
    }

    .empty-state i {
      font-size: 40px;
      opacity: 0.3;
      margin-bottom: 12px;
      display: block;
    }

    .empty-state p {
      font-size: 13px;
      font-weight: 600;
      margin: 0;
    }

    /* ===== TOTALBADGE ===== */
    .result-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
    }

    /* ===== SKELETON loader ===== */
    .skeleton {
      background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 12px;
    }

    /* ===== INFO MODAL ===== */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      z-index: 10000;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
      pointer-events: all;
    }

    .modal-sheet {
      background: white;
      border-radius: 24px 24px 0 0;
      padding: 24px 20px 40px;
      width: 100%;
      max-width: 480px;
      transform: translateY(100%);
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
      max-height: 85vh;
      overflow-y: auto;
      box-sizing: border-box;
    }

    .modal-overlay.active .modal-sheet {
      transform: translateY(0);
    }

    .modal-handle {
      width: 40px;
      height: 4px;
      background: #e2e8f0;
      border-radius: 4px;
      margin: 0 auto 20px;
    }

    .modal-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--text-dark);
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .modal-title i {
      color: var(--primary-red);
      font-size: 18px;
    }

    .info-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 24px;
    }

    .info-item {
      display: flex;
      gap: 12px;
      background: #f8fafc;
      padding: 14px;
      border-radius: 14px;
      border: 1px solid var(--border-color);
      align-items: flex-start;
    }

    .info-icon {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: white;
      flex-shrink: 0;
    }

    .icon-reguler { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
    .icon-lux { background: linear-gradient(135deg, #eab308, #ca8a04); }
    .icon-prime { background: linear-gradient(135deg, #a855f7, #7e22ce); }
    .icon-ntco { background: linear-gradient(135deg, #64748b, #475569); }

    .info-content {
      flex: 1;
    }

    .info-name {
      font-size: 13px;
      font-weight: 800;
      color: var(--text-dark);
      margin-bottom: 3px;
    }

    .info-desc {
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.4;
      font-weight: 500;
    }

    .btn-close-modal {
      width: 100%;
      padding: 14px;
      border-radius: 14px;
      border: none;
      background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
      font-size: 14px;
      font-weight: 700;
      color: white;
      cursor: pointer;
      box-shadow: var(--shadow-red);
      transition: transform 0.2s;
    }

    .btn-close-modal:active {
      transform: scale(0.98);
    }

    /* Selection is now handled at row level */
