/* ============================================================
   Simcha Spirits Recommender - Premium Brand Styles
   Matching simchaspirits.com design language
   Colors: #693404 (brown), #462303 (dark brown), #ffeed9 (cream),
           #f7943a (orange), #fe5252 (red accent)
   Font: Poppins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #ffeed9;
    min-height: 100vh;
    color: #462303;
    font-size: 14px;
    line-height: 1.6;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Header
   ============================================================ */
header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(105, 52, 4, 0.1);
}

.logo {
    max-height: 70px;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.sar-hamashka {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #c9a227 0%, #f7943a 50%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(201, 162, 39, 0.3);
}

.subtitle {
    color: #693404;
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* ============================================================
   Progress Bar - Premium Style
   ============================================================ */
.progress-bar {
    height: 6px;
    background: rgba(105, 52, 4, 0.12);
    border-radius: 30px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #693404 0%, #f7943a 100%);
    width: 20%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
}

.step-indicator {
    text-align: center;
    color: #693404;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Selection Status Bar */
.selection-status {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    min-height: 32px;
}

.selection-status:empty {
    display: none;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #462303;
    box-shadow: 0 2px 8px rgba(105, 52, 4, 0.08);
    animation: fadeIn 0.3s ease;
}

.status-tag .status-label {
    color: #693404;
    opacity: 0.6;
    font-weight: 400;
}

.status-tag .status-value {
    font-weight: 600;
    color: #693404;
}

.status-tag .status-icon {
    font-size: 1rem;
}

/* ============================================================
   Main Content
   ============================================================ */
main {
    flex: 1;
}

.step {
    animation: fadeIn 0.4s ease;
}

.step.hidden,
.hidden {
    display: none;
}

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

.step h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #462303;
    letter-spacing: -0.02em;
}

.hint {
    text-align: center;
    color: #693404;
    opacity: 0.65;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ============================================================
   Entry Mode Toggle (Browse vs Search) - Pill Style
   ============================================================ */
.entry-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 30px;
    padding: 5px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 12px rgba(105, 52, 4, 0.08);
}

.entry-mode-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: #693404;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.entry-mode-btn:hover:not(.active) {
    background: rgba(105, 52, 4, 0.05);
}

.entry-mode-btn.active {
    background: #693404;
    color: #ffeed9;
    box-shadow: 0 2px 8px rgba(105, 52, 4, 0.25);
}

/* ============================================================
   Category Grid - Premium Cards
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1rem;
    border: none;
    background: #fff;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 2px 12px rgba(105, 52, 4, 0.06);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #693404, #f7943a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(105, 52, 4, 0.12);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card.selected {
    background: #fff;
    box-shadow: 0 8px 30px rgba(105, 52, 4, 0.15);
    transform: translateY(-4px);
}

.category-card.selected::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    filter: grayscale(0);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: #462303;
    margin-bottom: 0.25rem;
}

.category-desc {
    font-size: 0.7rem;
    color: #693404;
    opacity: 0.6;
    line-height: 1.4;
}

/* ============================================================
   Search Mode - Premium Style
   ============================================================ */
.search-hint {
    text-align: center;
    color: #693404;
    opacity: 0.65;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.search-container {
    position: relative;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 30px;
    color: #462303;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(105, 52, 4, 0.08);
}

.search-input:focus {
    outline: none;
    border-color: #693404;
    box-shadow: 0 4px 20px rgba(105, 52, 4, 0.15);
}

.search-input::placeholder {
    color: #693404;
    opacity: 0.4;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(105, 52, 4, 0.2);
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(105, 52, 4, 0.06);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(247, 148, 58, 0.08);
}

.search-result-image {
    width: 48px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #faf6f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.search-result-title {
    font-weight: 500;
    color: #462303;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #693404;
    opacity: 0.6;
    margin-top: 0.15rem;
}

.search-result-category {
    text-transform: capitalize;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: #693404;
    opacity: 0.6;
}

/* Selected Product Card */
.selected-product {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(105, 52, 4, 0.1);
    border-left: 4px solid #693404;
}

.selected-product.hidden {
    display: none;
}

.selected-product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.selected-product-image {
    width: 70px;
    height: 85px;
    border-radius: 10px;
    overflow: hidden;
    background: #faf6f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.selected-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.selected-product-info {
    flex: 1;
}

.selected-product-title {
    font-weight: 600;
    color: #462303;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.selected-product-meta {
    font-size: 0.8rem;
    color: #693404;
    opacity: 0.65;
}

.selected-product-label {
    background: linear-gradient(135deg, rgba(105, 52, 4, 0.08) 0%, rgba(247, 148, 58, 0.08) 100%);
    color: #693404;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.clear-selection {
    display: block;
    width: 100%;
    margin-top: 0.875rem;
    padding: 0.6rem;
    border: 1px solid rgba(105, 52, 4, 0.15);
    background: transparent;
    color: #693404;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.clear-selection:hover {
    background: rgba(105, 52, 4, 0.05);
    border-color: #693404;
}

/* ============================================================
   Mode Selection - Premium Cards
   ============================================================ */
.mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 540px;
    margin: 1rem auto 0;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    border: none;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 2px 15px rgba(105, 52, 4, 0.06);
    position: relative;
    overflow: hidden;
}

.mode-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #693404, #f7943a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mode-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(105, 52, 4, 0.12);
}

.mode-btn:hover::after {
    transform: scaleX(1);
}

.mode-btn.selected {
    box-shadow: 0 12px 35px rgba(105, 52, 4, 0.15);
    transform: translateY(-5px);
}

.mode-btn.selected::after {
    transform: scaleX(1);
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.mode-btn:hover .mode-icon {
    transform: scale(1.15);
}

.mode-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #462303;
    margin-bottom: 0.5rem;
}

.mode-desc {
    font-size: 0.85rem;
    color: #693404;
    opacity: 0.65;
    line-height: 1.5;
}

/* ============================================================
   Guided Questions
   ============================================================ */
.question-progress {
    text-align: center;
    color: #693404;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.guided-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-width: 480px;
    margin: 0 auto;
}

.guided-option-btn {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border: none;
    background: #fff;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    box-shadow: 0 2px 10px rgba(105, 52, 4, 0.05);
    position: relative;
    overflow: hidden;
}

.guided-option-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #693404;
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.guided-option-btn:hover {
    box-shadow: 0 6px 20px rgba(105, 52, 4, 0.1);
    transform: translateX(4px);
}

.guided-option-btn:hover::before {
    transform: scaleY(1);
}

.guided-option-btn.selected {
    background: #fff;
    box-shadow: 0 6px 20px rgba(105, 52, 4, 0.12);
}

.guided-option-btn.selected::before {
    transform: scaleY(1);
    background: linear-gradient(180deg, #693404, #f7943a);
}

.guided-option-btn .option-label {
    font-size: 1rem;
    font-weight: 600;
    color: #462303;
}

.guided-option-btn .option-desc {
    font-size: 0.8rem;
    color: #693404;
    opacity: 0.6;
    margin-top: 0.25rem;
}

.guided-slider {
    max-width: 380px;
    margin: 2rem auto;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: #693404;
    opacity: 0.6;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.slider-value {
    text-align: center;
    color: #693404;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* ============================================================
   Connoisseur Mode
   ============================================================ */
.connoisseur-section {
    margin-bottom: 2.25rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(105, 52, 4, 0.05);
}

.connoisseur-section h3 {
    font-size: 1rem;
    color: #462303;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.connoisseur-section .hint {
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.8rem;
}

.note-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.note-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(105, 52, 4, 0.15);
    background: #faf8f5;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #693404;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
}

.note-tag:hover {
    border-color: #693404;
    background: #fff;
}

.note-tag.selected {
    border-color: #693404;
    background: #693404;
    color: #ffeed9;
    font-weight: 500;
}

.note-tag.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(105, 52, 4, 0.1);
    background: #e5e5e5;
    color: #999;
    text-decoration: line-through;
}

.note-tag.disabled:hover {
    border-color: rgba(105, 52, 4, 0.1);
    background: #e5e5e5;
}

.note-tag.matched {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    color: #1e8449;
    font-weight: 500;
}

.note-tag.core {
    border-color: rgba(105, 52, 4, 0.2);
    background: rgba(105, 52, 4, 0.05);
    color: #693404;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}

.note-tag.shared {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    color: #1e8449;
}

.note-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(105, 52, 4, 0.1);
    background: #faf8f5;
    border-radius: 30px;
    color: #462303;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
}

.note-input:focus {
    outline: none;
    border-color: #693404;
    background: #fff;
}

.note-input::placeholder {
    color: #693404;
    opacity: 0.4;
}

/* Sliders */
.slider-group {
    margin-bottom: 1.75rem;
}

.slider-group:last-child {
    margin-bottom: 0;
}

.slider-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #462303;
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.slider-group label .slider-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #693404;
    color: #ffeed9;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.slider-group .slider-labels {
    margin-bottom: 0.5rem;
}

.attribute-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(105, 52, 4, 0.12);
    border-radius: 30px;
    outline: none;
}

.attribute-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #693404;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(105, 52, 4, 0.3);
}

.attribute-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(105, 52, 4, 0.4);
}

.attribute-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #693404;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(105, 52, 4, 0.3);
}

/* ============================================================
   Budget Selection
   ============================================================ */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
}

.option-btn {
    padding: 1rem 1.75rem;
    border: 2px solid rgba(105, 52, 4, 0.12);
    background: #fff;
    color: #462303;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    min-width: 130px;
    box-shadow: 0 2px 8px rgba(105, 52, 4, 0.04);
}

.option-btn:hover {
    border-color: #693404;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(105, 52, 4, 0.1);
}

.option-btn.selected {
    border-color: #693404;
    background: #693404;
    color: #ffeed9;
    box-shadow: 0 4px 15px rgba(105, 52, 4, 0.2);
}

.budget-options {
    flex-direction: column;
    max-width: 280px;
    margin: 0 auto;
}

.budget-options .option-btn {
    width: 100%;
}

/* ============================================================
   Navigation
   ============================================================ */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(105, 52, 4, 0.1);
}

.nav-btn {
    padding: 0.875rem 2.25rem;
    border: 2px solid rgba(105, 52, 4, 0.2);
    background: transparent;
    color: #693404;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.25s ease;
}

.nav-btn:hover:not(:disabled) {
    border-color: #693404;
    background: rgba(105, 52, 4, 0.05);
}

.nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.nav-btn.primary {
    background: #693404;
    border-color: #693404;
    color: #ffeed9;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(105, 52, 4, 0.25);
}

.nav-btn.primary:hover:not(:disabled) {
    background: #462303;
    border-color: #462303;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 52, 4, 0.35);
}

/* ============================================================
   Results - Premium Style
   ============================================================ */
#results-summary {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #693404;
    font-size: 0.9rem;
}

/* Source Product Banner */
.source-product-banner {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(105, 52, 4, 0.06);
    border-left: 4px solid #693404;
}

.source-product-banner .banner-icon {
    font-size: 1.5rem;
}

.source-product-banner .banner-text {
    flex: 1;
}

.source-product-banner .banner-title {
    font-weight: 600;
    color: #462303;
    font-size: 0.95rem;
}

.source-product-banner .banner-subtitle {
    font-size: 0.8rem;
    color: #693404;
    opacity: 0.65;
    margin-top: 0.15rem;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 15px rgba(105, 52, 4, 0.06);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(105, 52, 4, 0.12);
    border-color: rgba(105, 52, 4, 0.08);
}

.product-card-content {
    display: flex;
    gap: 1.5rem;
}

.product-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.product-image {
    flex-shrink: 0;
    width: 110px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #faf8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #693404;
    opacity: 0.4;
    font-size: 0.75rem;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #462303;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.product-vendor {
    color: #693404;
    opacity: 0.55;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #693404;
    text-align: center;
    margin-top: 0.5rem;
}

/* Match & Similarity Badges */
.match-percentage,
.similarity-score {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #693404;
    color: #ffeed9;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.875rem;
}

.match-percentage .match-label,
.similarity-score .sim-label {
    font-weight: 400;
    opacity: 0.85;
}

.similarity-score {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
    color: #fff;
}

/* Notes sections */
.matched-notes,
.shared-notes-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.matched-label,
.notes-label,
.shared-notes-label {
    font-size: 0.75rem;
    color: #693404;
    opacity: 0.55;
    font-weight: 500;
    margin-right: 0.25rem;
}

.product-notes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.product-link {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: #693404;
    color: #ffeed9;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.product-link:hover {
    background: #462303;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 52, 4, 0.25);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.add-to-cart-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: #c9a227;
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.add-to-cart-btn:hover {
    background: #a8861f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Load More Button */
.load-more-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 0.5rem;
    background: transparent;
    border: 2px solid rgba(105, 52, 4, 0.2);
    color: #693404;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.load-more-btn:hover {
    background: #693404;
    border-color: #693404;
    color: #ffeed9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(105, 52, 4, 0.2);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3.5rem 2rem;
    color: #693404;
    background: #fff;
    border-radius: 16px;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: #462303;
    font-weight: 600;
}

.no-results p {
    opacity: 0.6;
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(105, 52, 4, 0.15);
    border-top-color: #693404;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: #693404;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ============================================================
   Mobile Responsive
   ============================================================ */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .logo {
        max-height: 55px;
    }

    .sar-hamashka {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .step h2 {
        font-size: 1.35rem;
    }

    .entry-mode-toggle {
        max-width: 100%;
    }

    .entry-mode-btn {
        font-size: 0.8rem;
        padding: 0.65rem 0.75rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-card {
        padding: 1.25rem 0.75rem;
    }

    .category-icon {
        font-size: 1.75rem;
    }

    .category-name {
        font-size: 0.9rem;
    }

    .mode-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mode-btn {
        padding: 1.5rem 1.25rem;
    }

    .connoisseur-section {
        padding: 1.25rem;
    }

    .product-card {
        padding: 1.25rem;
    }

    .product-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-image {
        width: 130px;
        height: 165px;
    }

    .product-header {
        flex-direction: column;
        gap: 0.35rem;
        align-items: center;
    }

    .product-vendor {
        text-align: center;
    }

    .matched-notes,
    .product-notes,
    .shared-notes-section {
        justify-content: center;
    }

    .match-percentage,
    .similarity-score {
        margin-left: auto;
        margin-right: auto;
    }

    .navigation {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   Scrollbar Styling
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(105, 52, 4, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(105, 52, 4, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(105, 52, 4, 0.35);
}
