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

        body {
            
            background-color: white;
            color: #111111;
            overflow-x: hidden;
        }

        /* Pinterest-like container — full width, organic */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px 60px 24px;
        }

        /* ========== HEADER ========== */
       

        /* ========== SEARCH ========== */
        .search-container {
            position: relative;
            margin: 8px 10px 28px 10px;
            width: 100%;
            max-width: 780px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-box {
            display: flex;
            background: #efefef;
            border-radius: 48px;
            overflow: hidden;
            transition: all 0.2s ease;
            border: 1px solid transparent;
            box-shadow: none;
        }

        .search-box:focus-within {
            background: white;
            border-color: #cdcdcd;
            box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.1);
        }

        .search-input {
            flex: 1;
            border: none;
            padding: 14px 20px;
            font-size: 1rem;
            outline: none;
            background: transparent;
            color: #111;
            font-weight: 500;
        }

        .search-input::placeholder {
            color: #8e8e8e;
            font-weight: 400;
        }

        .search-button {
            background: transparent;
            border: none;
            color: #5e5e5e;
            padding: 0 22px;
            cursor: pointer;
            transition: color 0.2s;
            font-size: 1.2rem;
        }

        .search-button:hover {
            color: #e60023;
        }

        .search-info {
            font-size: 0.75rem;
            color: #767676;
            margin-top: 10px;
            text-align: center;
            font-weight: 400;
        }

        /* ========== DROPDOWN (Pinterest style) ========== */
        #searchResults {
            list-style: none;
            background: white;
            border-radius: 28px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
            max-height: 460px;
            overflow-y: auto;
            display: none;
            position: absolute;
            width: 100%;
            z-index: 1000;
            top: 70px;
            padding: 8px 0;
            border: 1px solid #efefef;
        }

        #searchResults li {
            padding: 12px 18px;
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
            transition: background 0.1s;
            border-bottom: 1px solid #f2f2f2;
        }

        #searchResults li:hover {
            background: #f8f8f8;
        }

        #searchResults li img {
            width: 48px;
            height: 48px;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }

        #searchResults li span {
            font-weight: 600;
            font-size: 0.95rem;
            color: #111;
        }

        /* match badges */
        .match-type {
            font-size: 0.68rem;
            padding: 2px 9px;
            border-radius: 40px;
            margin-left: 10px;
            font-weight: 700;
            letter-spacing: -0.2px;
        }
        .exact-match { background-color: #e60023; color: white; }
        .partial-match { background-color: #ffb3b3; color: #7a0010; }
        .fuzzy-match { background-color: #e9e9e9; color: #3a3a3a; }
        .phrase-match { background-color: #111111; color: white; }

        .no-results {
            padding: 24px 20px;
            text-align: center;
            color: #8a8a8a;
            font-weight: 500;
        }

        /* ========== MAIN RESULTS GRID — PIN MASONRY STYLE ========== */
        .results-container {
            background: transparent;
            box-shadow: none;
            border-radius: 0;
            padding: 0;
            margin-top: 24px;
            display: none;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 28px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e2e2e2;
        }

        .results-count {
            font-size: 1.2rem;
            font-weight: 700;
            color: #111;
            letter-spacing: -0.3px;
        }

        /* PIN GRID — exactly like Pinterest discover feed */
        #filteredResults {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 28px 20px;
        }

        /* each result card = a Pinterest pin */
        .result-item {
            display: flex;
            flex-direction: column;
            background: white;
            border-radius: 28px;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            border: 1px solid #f0f0f0;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
            cursor: pointer;
        }

        .result-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.02);
            border-color: #e2e2e2;
        }

        /* image — full bleed, top rounded */
        .result-item img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            margin: 0;
            border-radius: 28px 28px 0 0;
            background: #f5f5f5;
            transition: opacity 0.2s;
        }

        .result-info {
            padding: 16px 14px 20px 14px;
            background: white;
        }

        .result-name {
            font-size: 1.1rem;
            font-weight: 800;
            color: #111;
            margin-bottom: 8px;
            letter-spacing: -0.2px;
            line-height: 1.3;
        }

        .result-category {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #5e5e5e;
            text-transform: capitalize;
        }

        .result-price {
            font-weight: 800;
            color: #e60023;
            background: #fff0f0;
            padding: 4px 12px;
            border-radius: 40px;
            font-size: 0.8rem;
            display: inline-block;
            letter-spacing: -0.2px;
        }

        /* ========== SPONSORED / FEATURED SECTION (Pinterest vibe) ========== */
       

        /* ========== BOARDS / IDEAS FOR YOU (Pinterest discovery) ========== */
        .inspiration-grid {
            margin: 0px 0px;
        }

        

        .board-card {
            background: #fafafa;
            border-radius: 24px;
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            border: 1px solid #efefef;
        }

        .board-preview {
            display: flex;
            gap: 6px;
        }

        .board-preview span {
            background: #e2e2e2;
            border-radius: 18px;
            width: 48px;
            height: 48px;
            display: inline-block;
        }

        .board-title {
            font-weight: 800;
            font-size: 0.9rem;
        }

        .board-meta {
            font-size: 0.7rem;
            color: #767676;
        }

        .grid-ideas {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 10px;
        }

        /* ========== LOADING (Pinterest minimal) ========== */
        #loading-spinner {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.94);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            backdrop-filter: blur(6px);
        }

        .spinner {
            width: 48px;
            height: 48px;
            border: 4px solid #efefef;
            border-top: 4px solid #e60023;
            border-radius: 50%;
            animation: spin 0.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-text {
            margin-top: 12px;
            font-weight: 600;
            color: #111;
        }

        /* ========== TYPING EFFECT ========== */
        .search-input.typing {
            color: #e60023;
            font-weight: 600;
        }

        .typing-cursor {
            display: inline-block;
            width: 2px;
            height: 1.2em;
            background-color: #e60023;
            animation: blink 1s infinite;
            vertical-align: middle;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* ========== FOOTER ========== */
        

        /* Responsive tweaks */
        @media (max-width: 680px) {
            .container {
                padding: 10px;
            }
            #filteredResults {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 16px;
            }
            .result-item img {
                height: 170px;
            }
            .result-info {
                padding: 12px 12px 18px;
            }
            .result-name {
                font-size: 0.9rem;
            }
            .featured-row {
                flex-direction: column;
            }
        }

        /* Small extras */
        .result-category .result-price {
            background: transparent;
            padding: 0;
            color: #e60023;
            font-size: 0.8rem;
        }
        
        /* Bottom Navigation */
      .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: white;
      display: flex;
      justify-content: space-around;
      padding: 8px 0;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
      z-index: 1000;
      font-size: 0.8rem;
    }
    
    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: black;
    }
    
    .nav-item.active {
      color: #e60023;
    }
    
    .nav-item i {
      font-size: 1.7rem;
      margin-bottom: 3px;
    }
    </style>
    
    <style>              
    /* main card container - clean, no header extra elements */
    .slider-container {
      width: 100%;
      overflow: hidden;
      transition: all 0.2s ease;
    }

    /* slider stage - image with overlay */
    .slider-stage {
      position: relative;
      width: 100%;
      overflow: hidden;
      touch-action: pan-y pinch-zoom; /* allows vertical scroll, horizontal swipe handled by JS */
    }

    .slider-track {
      display: flex;
      transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      will-change: transform;
      cursor: grab;
      touch-action: pan-y pinch-zoom;
    }

    .slider-track:active {
      cursor: grabbing;
    }

    .slide {
      flex: 0 0 100%;
      position: relative;
    }

    /* Full slide link - makes entire slide clickable */
    .slide-link {
      display: block;
      text-decoration: none;
      color: inherit;
      cursor: pointer;
    }

    /* image wrapper - maintains aspect ratio */
    .image-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      background: #2a2a2a;
    }

    .image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      pointer-events: none;
    }

    /* black overlay with 20-30% opacity (exactly 25%) */
    .image-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.25);
      z-index: 1;
      pointer-events: none;
    }

    /* text content positioned over the image */
    .slide-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 2rem 2rem 2.5rem 2rem;
      z-index: 2;
      color: white;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
      pointer-events: none;
    }

    .slide-title {
      font-size: 2.2rem;
      font-weight: 700;
      
      letter-spacing: -0.3px;
      margin-bottom: 0.5rem;
      line-height: 1.2;
    }

    .slide-subtitle {
      font-size: 1rem;
      font-weight: 400;
      opacity: 0.9;
      letter-spacing: 1px;
      text-transform: uppercase;
      font-family: 'Segoe UI', system-ui;
    }

    /* navigation dots only */
    .dots-container {
      display: flex;
      justify-content: center;
      gap: 12px;
      padding: 10px 10px;
      background: black;
    }

    .dot {
      width: 8px;
      height: 8px;
      background: white;
      border-radius: 50%;
      transition: all 0.25s ease;
      cursor: pointer;
    }

    .dot.active {
      width: 28px;
      border-radius: 12px;
      background: white;
    }
    
    .footer {
        padding:10px 16px 16px 16px;
        background: black;
        color:white;
        margin-top:0px;
        margin-bottom:100px;
        text-align:left;
        height:200px;
    }
    
    .footer-title {
        font-size:1.5rem;
        font-weight:800;
    }
    
    .footer-subtitle {
        font-size:0.8rem;
        margin-top:20px;
    }

    /* responsive adjustments */
    @media (max-width: 650px) {
      .slide-title {
        font-size: 1.6rem;
      }
      .slide-subtitle {
        font-size: 0.8rem;
      }
      .slide-content {
        padding: 1.5rem 1.5rem 2rem;
      }
 @media (max-width: 480px) {
      .slide-title {
        font-size: 1.3rem;
      }
      .slide-subtitle {
        font-size: 0.7rem;
      }
      .slide-content {
        padding: 1rem 1.2rem 1.5rem;
      }
    }   }
