:root {
      --bg-color: #f0f7ff;
      --card-bg: #ffffff;
      --primary: #9dc2f8;
      --primary-hover: #7eb0f7;
      --primary-deep: #436bb5;
      --accent-mint: #cbf3f0;
      --accent-soft: #e8f2fe;
      --text-main: #334155;
      --text-muted: #64748b;
      --border-subtle: #dbeafe;
      --badge-blue: #d0e3ff;
      --shadow-card: 0 10px 25px rgba(157, 194, 248, 0.22);
      --shadow-lift: 0 16px 32px rgba(157, 194, 248, 0.38);
      --radius-lg: 24px;
      --radius-md: 16px;
      --radius-sm: 10px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: 'Nunito', sans-serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    h1, h2, h3, h4, .font-heading {
      font-family: 'Fredoka', sans-serif;
      color: var(--primary-deep);
      line-height: 1.25;
    }

    a { text-decoration: none; color: inherit; }
    button { font-family: inherit; cursor: pointer; }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      background-color: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 20px rgba(157, 194, 248, 0.22);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .logo {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--primary-deep);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.45rem;
      user-select: none;
    }

    .logo span.heart { color: #6495ed; font-size: 1.35rem; }

    .nav-links {
      display: flex;
      align-items: center;
      list-style: none;
      gap: 1.5rem;
    }

    .nav-links a {
      font-weight: 700;
      font-size: 0.98rem;
      color: var(--text-main);
      transition: color 0.2s ease;
      cursor: pointer;
      position: relative;
      padding: 0.3rem 0;
    }

    .nav-links a:hover,
    .nav-links a.active { color: var(--primary-deep); }

    .nav-links a.active::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 100%;
      height: 3px;
      background: var(--primary);
      border-radius: 4px;
    }

    .cart-nav-btn {
      background-color: var(--accent-mint);
      border: 1px solid rgba(157, 194, 248, 0.4);
      padding: 0.55rem 1.15rem;
      border-radius: 30px;
      font-weight: 800;
      color: var(--primary-deep);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    }

    .cart-nav-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 14px rgba(203, 243, 240, 0.8);
    }

    .cart-badge {
      background: var(--primary-deep);
      color: white;
      font-size: 0.75rem;
      padding: 0.15rem 0.55rem;
      border-radius: 12px;
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 1.8rem;
      color: var(--primary-deep);
    }

    .view-section {
      display: none;
      animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .view-section.active-view { display: block; }

    @keyframes fadeInView {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 2.2rem 1.5rem;
      width: 100%;
    }

    /* Hero */
    .hero {
      text-align: center;
      padding: 3.5rem 1.5rem 2.8rem 1.5rem;
      max-width: 820px;
      margin: 0 auto;
    }

    .hero-badge {
      display: inline-block;
      background-color: var(--badge-blue);
      color: var(--primary-deep);
      font-weight: 800;
      font-size: 0.85rem;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      margin-bottom: 1.1rem;
    }

    .hero h1 {
      font-size: 2.85rem;
      margin-bottom: 0.9rem;
      color: var(--primary-deep);
    }

    .hero p {
      font-size: 1.2rem;
      color: var(--text-muted);
      max-width: 680px;
      margin: 0 auto 1.8rem auto;
    }

    .hero-actions {
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .cta-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: var(--primary);
      color: white;
      padding: 0.85rem 2.1rem;
      border-radius: 30px;
      font-family: 'Fredoka', sans-serif;
      font-size: 1.05rem;
      font-weight: 600;
      border: 2px solid transparent;
      box-shadow: 0 5px 15px rgba(157, 194, 248, 0.45);
      transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .cta-btn:hover:not(:disabled) {
      background-color: var(--primary-hover);
      transform: translateY(-3px) scale(1.03);
      box-shadow: 0 10px 22px rgba(157, 194, 248, 0.55);
    }

    .cta-btn:disabled {
      background-color: #cbd5e1 !important;
      cursor: not-allowed !important;
      box-shadow: none !important;
      transform: none !important;
    }

    .cta-btn-outline {
      background-color: white;
      color: var(--primary-deep);
      border: 2px solid var(--primary);
      box-shadow: 0 4px 12px rgba(157, 194, 248, 0.15);
    }

    .cta-btn-outline:hover {
      background-color: var(--accent-soft);
      transform: translateY(-3px) scale(1.03);
    }

    .info-card {
      background: var(--card-bg);
      border-radius: var(--radius-lg);
      padding: 2.2rem;
      box-shadow: var(--shadow-card);
      border: 1px solid var(--border-subtle);
      margin-bottom: 2rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .card-tag {
      display: inline-block;
      background-color: var(--accent-soft);
      color: var(--primary-deep);
      font-size: 0.82rem;
      font-weight: 800;
      padding: 0.32rem 0.85rem;
      border-radius: 20px;
      margin-bottom: 0.8rem;
    }

    .callout-box {
      background-color: #f2f8ff;
      border-left: 4px solid var(--primary);
      padding: 1.15rem 1.4rem;
      border-radius: 0 16px 16px 0;
      margin: 1.2rem 0;
      font-weight: 600;
      color: #3b5788;
      line-height: 1.65;
    }

    .filter-tabs {
      display: flex;
      justify-content: center;
      gap: 0.8rem;
      margin-bottom: 2.2rem;
      flex-wrap: wrap;
    }

    .filter-pill {
      background: white;
      border: 1.5px solid var(--border-subtle);
      padding: 0.6rem 1.5rem;
      border-radius: 25px;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-main);
      transition: all 0.2s ease;
    }

    .filter-pill:hover,
    .filter-pill.active {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
      box-shadow: 0 4px 12px rgba(157, 194, 248, 0.4);
    }

    .product-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 2rem;
    }

    .product-card {
      background-color: var(--card-bg);
      border-radius: var(--radius-lg);
      padding: 1.6rem;
      box-shadow: var(--shadow-card);
      border: 2px solid transparent;
      display: flex;
      flex-direction: column;
      position: relative;
      transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: pointer;
    }

    .product-card:hover {
      transform: translateY(-8px) scale(1.02);
      border-color: rgba(157, 194, 248, 0.6);
      box-shadow: var(--shadow-lift), 0 0 16px rgba(203, 243, 240, 0.5);
    }

    .overlap-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      background-color: var(--badge-blue);
      color: var(--primary-deep);
      font-size: 0.75rem;
      font-weight: 800;
      padding: 0.3rem 0.8rem;
      border-radius: 14px;
      z-index: 2;
    }

    .overlap-badge.badge-sold-out {
      background-color: #fee2e2;
      color: #b91c1c;
    }

    .overlap-badge.badge-assist {
      background-color: var(--accent-mint);
      color: #1a5b57;
    }

    .card-img-wrap {
      font-size: 4.2rem;
      background-color: var(--accent-soft);
      border-radius: 20px;
      padding: 1.8rem 0;
      margin-bottom: 1.1rem;
      text-align: center;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      user-select: none;
    }

    .product-card:hover .card-img-wrap {
      transform: rotate(-4deg) scale(1.06);
    }

    .prod-category {
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: #5c8ae6;
      margin-bottom: 0.2rem;
    }

    .prod-title {
      font-size: 1.28rem;
      margin-bottom: 0.3rem;
    }

    .price {
      font-size: 1.35rem;
      font-weight: 800;
      color: #436bb5;
      margin-bottom: 0.6rem;
    }

    .card-desc {
      font-size: 0.95rem;
      color: var(--text-muted);
      margin-bottom: 1.2rem;
      flex-grow: 1;
    }

    .card-actions {
      display: flex;
      gap: 0.6rem;
      align-items: center;
    }

    .add-to-cart-btn {
      flex: 1;
      background-color: var(--primary);
      color: white;
      border: none;
      padding: 0.75rem 1.1rem;
      border-radius: var(--radius-md);
      font-size: 0.98rem;
      font-weight: 700;
      box-shadow: 0 4px 10px rgba(157, 194, 248, 0.35);
      transition: all 0.2s ease;
    }

    .add-to-cart-btn:hover:not(:disabled) {
      background-color: var(--primary-hover);
      transform: scale(1.03);
    }

    .add-to-cart-btn:disabled {
      background-color: #cbd5e1;
      cursor: not-allowed;
      box-shadow: none;
    }

    .details-view-btn {
      background-color: var(--accent-soft);
      border: none;
      padding: 0.75rem 1rem;
      border-radius: var(--radius-md);
      color: var(--primary-deep);
      font-weight: 700;
      transition: background 0.2s;
    }

    .details-view-btn:hover { background-color: #dbeafe; }

    /* Modals */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(30, 48, 77, 0.5);
      backdrop-filter: blur(5px);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 1.2rem;
    }

    .modal-overlay.active { display: flex; }

    .modal-box {
      background: white;
      border-radius: var(--radius-lg);
      padding: 2.4rem;
      max-width: 680px;
      width: 100%;
      position: relative;
      box-shadow: 0 24px 50px rgba(0,0,0,0.14);
      max-height: 92vh;
      overflow-y: auto;
      animation: modalSpring 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes modalSpring {
      from { transform: scale(0.9) translateY(12px); opacity: 0; }
      to { transform: scale(1) translateY(0); opacity: 1; }
    }

    .modal-close {
      position: absolute;
      top: 1.2rem;
      right: 1.4rem;
      background: #f1f5f9;
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 1.4rem;
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      z-index: 10;
    }

    .modal-close:hover { background: #e2e8f0; color: var(--text-main); }

    .gallery-stage {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 1.5rem;
    }

    .main-view-display {
      width: 100%;
      height: 220px;
      background-color: var(--accent-soft);
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      border: 1px solid var(--border-subtle);
    }

    .main-view-display .active-emoji { font-size: 5rem; }

    .main-view-display .angle-label {
      position: absolute;
      bottom: 12px;
      background: rgba(255, 255, 255, 0.85);
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.25rem 0.75rem;
      border-radius: 12px;
      color: var(--primary-deep);
    }

    .thumb-angles {
      display: flex;
      gap: 0.8rem;
      margin-top: 0.8rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .thumb-angle-btn {
      background: white;
      border: 2px solid var(--border-subtle);
      border-radius: 14px;
      padding: 0.5rem 0.8rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.2rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    .thumb-angle-btn.active, 
    .thumb-angle-btn:hover {
      border-color: var(--primary);
      background-color: #f8fbff;
      transform: translateY(-2px);
    }

    .thumb-angle-btn .thumb-icon { font-size: 1.6rem; }
    .thumb-angle-btn .thumb-name { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); }

    .specs-list {
      list-style: none;
      margin: 1rem 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.6rem;
    }

    .specs-list li {
      background: #f8fafc;
      padding: 0.5rem 0.8rem;
      border-radius: 10px;
      font-size: 0.88rem;
      color: var(--text-main);
    }

    .cart-list {
      list-style: none;
      margin: 1.2rem 0;
      max-height: 320px;
      overflow-y: auto;
    }

    .cart-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.9rem 0;
      border-bottom: 1px solid var(--border-subtle);
    }

    .cart-item-info {
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .cart-item-icon {
      font-size: 2rem;
      background: var(--accent-soft);
      padding: 0.4rem;
      border-radius: 12px;
    }

    .qty-controls {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .qty-btn {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid #cbd5e1;
      background: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
    }

    .remove-btn {
      background: none;
      border: none;
      color: #ef4444;
      font-size: 1.2rem;
      margin-left: 0.5rem;
      cursor: pointer;
    }

    .form-group { margin-bottom: 1.2rem; }
    .form-group label {
      display: block;
      font-weight: 700;
      font-size: 0.92rem;
      margin-bottom: 0.4rem;
    }

    .form-control {
      width: 100%;
      padding: 0.85rem 1rem;
      border-radius: var(--radius-md);
      border: 1.5px solid #cbd5e1;
      font-family: inherit;
      font-size: 0.98rem;
      outline: none;
    }

    .form-control:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(157, 194, 248, 0.35);
    }

    .error-box {
      background-color: #fef2f2;
      border: 1px solid #fecaca;
      color: #b91c1c;
      padding: 0.8rem 1rem;
      border-radius: var(--radius-sm);
      margin-bottom: 1rem;
      font-size: 0.9rem;
      display: none;
    }

    .cart-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(140%);
      background: #ffffff;
      border: 2px solid var(--primary);
      box-shadow: 0 14px 35px rgba(67, 107, 181, 0.26);
      border-radius: 50px;
      padding: 0.75rem 1.4rem;
      display: flex;
      align-items: center;
      gap: 1.2rem;
      z-index: 2000;
      opacity: 0;
      pointer-events: none;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
      max-width: 90vw;
    }

    .cart-toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .toast-content {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .toast-icon { font-size: 1.8rem; }
    .toast-text strong {
      display: block;
      font-family: 'Fredoka', sans-serif;
      color: var(--primary-deep);
      font-size: 1rem;
    }
    .toast-text span { font-size: 0.82rem; color: var(--text-muted); }

    .toast-cart-btn {
      background-color: var(--primary);
      color: white;
      border: none;
      padding: 0.5rem 1.1rem;
      border-radius: 20px;
      font-family: 'Fredoka', sans-serif;
      font-weight: 600;
      font-size: 0.9rem;
      cursor: pointer;
      white-space: nowrap;
    }

    footer {
      margin-top: auto;
      background: white;
      border-top: 1px solid var(--border-subtle);
      padding: 2.8rem 1.5rem;
      text-align: center;
      color: var(--text-muted);
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 1.8rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      font-weight: 700;
    }

    .footer-links a:hover { color: var(--primary-deep); cursor: pointer; }

    @media (max-width: 768px) {
      .navbar { padding: 0.9rem 1.2rem; }
      .menu-toggle { display: block; }
      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.6rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.06);
        gap: 1.2rem;
      }
      .nav-links.open { display: flex; }
      .hero h1 { font-size: 2.2rem; }
      .specs-list { grid-template-columns: 1fr; }
      .product-grid { grid-template-columns: 1fr; }
    }
.product-image { width:100%; height:180px; object-fit:contain; display:block; }
.detail-product-image { width:100%; height:100%; object-fit:contain; display:block; }
.thumb-image { width:54px; height:54px; object-fit:cover; border-radius:9px; }
.cart-mini-image { width:38px; height:38px; object-fit:cover; border-radius:8px; display:block; }
.main-view-display .active-emoji:has(.detail-product-image) { width:100%; height:100%; display:block; }

.navbar-logo {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

