﻿:root {
    --glass-bg: rgba(255,255,255,0.55);
    --glass-border: rgba(255,255,255,0.7);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    --glass-dark: rgba(0,0,0,0.55);
    --radius-pill: 100px;
    --radius-card: 24px;
    --radius-sm: 14px;
    --black: #0a0a0a;
    --off-white: #f7f6f3;
    --muted: #8a8a8a;
    --border: rgba(0,0,0,0.08);
  }

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

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    color: var(--black);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
  }

  .glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }

  .navbar-ios { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0; }
  .navbar-inner {
    margin: 12px 20px;
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(247,246,243,0.72);
    backdrop-filter: blur(28px) saturate(2);
    -webkit-backdrop-filter: blur(28px) saturate(2);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 2px 20px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.95);
  }
  .nav-logo { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; letter-spacing: -0.3px; color: var(--black); text-decoration: none; }
  .nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
  .nav-links a { font-size: 13.5px; font-weight: 400; color: var(--muted); text-decoration: none; letter-spacing: 0.2px; transition: color 0.2s; }
  .nav-links a:hover { color: var(--black); }
  .nav-links a.active { color: var(--black); font-weight: 600; }
  .nav-actions { display: flex; gap: 12px; align-items: center; }
  .btn-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.07); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; text-decoration: none; color: var(--black); }
  .btn-icon:hover { background: rgba(0,0,0,0.1); color: var(--black); }
  .cart-badge { position: relative; display: inline-flex; }
  .cart-badge::after { content: '3'; position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; background: var(--black); color: white; border-radius: 50%; font-size: 9px; font-weight: 500; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--off-white); }

  .hero-title { font-family: 'Playfair Display', serif; font-size: clamp(40px, 6vw, 72px); font-weight: 400; line-height: 1.1; letter-spacing: -1.5px; color: var(--black); margin-bottom: 24px; }
  .hero-title em { font-style: italic; font-weight: 400; color: var(--muted); }
  .hero-desc { font-size: 16px; color: var(--muted); font-weight: 300; max-width: 500px; margin-bottom: 40px; }

  .section-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }

  .btn-pill-dark { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: var(--radius-pill); background: var(--black); color: white; font-size: 14px; text-decoration: none; transition: all 0.25s; border: none; }
  .btn-pill-dark:hover { background: #222; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); color: white; }
  .btn-pill-light { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: var(--radius-pill); background: transparent; color: var(--black); font-size: 14px; text-decoration: none; border: 1px solid rgba(0,0,0,0.15); }

  .product-card { border-radius: var(--radius-card); overflow: hidden; background: white; border: 1px solid var(--border); transition: all 0.35s ease; cursor: pointer; }
  .product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.1); }
  .product-img-wrap { aspect-ratio: 4 / 5; background: #e8e6e0; display: flex; align-items: flex-start; justify-content: center; font-size: 64px; position: relative; }
  .product-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(180px, 14vw, 240px);
    gap: 12px;
    align-items: stretch;
  }
  .product-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 18px;
    background: #e8e6e0;
    border: 1px solid rgba(0,0,0,0.08);
  }
  .product-thumb.active {
    border-color: var(--black);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  .product-info { padding: 20px; }
  .product-name { font-family: 'Playfair Display', serif; font-size: 17px; margin-bottom: 4px; }
  .product-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
  .product-footer { display: flex; justify-content: space-between; align-items: center; }
  .product-price { font-weight: 500; }
  .btn-add-cart { width: 32px; height: 32px; border-radius: 50%; background: var(--black); border: none; color: white; display: flex; align-items: center; justify-content: center; }

  .filter-pill { padding: 8px 20px; border-radius: var(--radius-pill); font-size: 13px; border: 1px solid rgba(0,0,0,0.1); background: transparent; cursor: pointer; transition: 0.2s; }
  .filter-pill.active { background: var(--black); color: white; border-color: var(--black); }

  .fade-up { animation: fadeUp 0.8s ease forwards; opacity: 0; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }

  .footer { background: var(--black); color: white; padding: 80px 0 40px; }
  .footer-logo { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 400; margin-bottom: 16px; }
  .footer-desc { font-size: 14px; color: rgba(255,255,255,0.35); font-weight: 300; line-height: 1.7; max-width: 260px; margin-bottom: 32px; }
  .footer-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; font-weight: 500; }
  .footer-links { list-style: none; padding: 0; }
  .footer-links li { margin-bottom: 12px; }
  .footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; font-weight: 300; transition: color 0.2s; }
  .footer-links a:hover { color: white; }
  .footer-bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: space-between; }
  .footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); font-weight: 300; }
  .footer-socials { display: flex; gap: 12px; }
  .social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: all 0.2s; }
  .social-btn:hover { background: rgba(255,255,255,0.14); color: white; }

  @media (max-width: 768px) { .nav-links { display: none; } .footer-bottom { flex-direction: column; gap: 20px; text-align: center; } }

  .product-detail-section { padding: 140px 0 100px; }
  .main-product-image {
    height: 600px;
    width: 100%;
    object-fit: contain;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 160px;
    background: #e8e6e0;
  }
  .detail-sticky { top: 120px; }
  .detail-title,
  .related-title { font-size: 48px; }
  .detail-price { font-weight: 400; }
  .rating-label { font-size: 10px; }
  .related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
