/* ==========================================================
   עיצוב האתר - Classic Luxury Theme
   צבעים: שחור עמוק, זהב עתיק, שמנת
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Heebo:wght@300;400;500;600;700;800&display=swap');

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

:root {
    /* === Classic Luxury Palette === */
    --black:        #1a1a1a;
    --black-soft:   #2c2c2c;
    --gold:         #b8923f;
    --gold-bright:  #d4af37;
    --gold-light:   #e8d4a0;
    --cream:        #faf6ed;
    --cream-deep:   #f0e9d8;
    --white:        #ffffff;
    --warm-white:   #fdfbf6;
    --text:         #1a1a1a;
    --text-soft:    #4a4a4a;
    --muted:        #8a8175;
    --border:       #e0d8c8;
    --border-dark:  #c9bfa9;
    --error:        #b8453d;
    --success:      #5a7a3d;
    --shadow-sm:    0 2px 6px rgba(26, 26, 26, 0.06);
    --shadow-md:    0 6px 20px rgba(26, 26, 26, 0.08);
    --shadow-lg:    0 16px 48px rgba(26, 26, 26, 0.14);
    --radius-sm:    2px;
    --radius:       4px;
    --radius-lg:    6px;
    --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-serif: "Playfair Display", "Cormorant Garamond", "David Libre", Georgia, serif;
    --font-sans:  "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.02em;
}

.logo:hover {
    color: var(--gold);
}

.logo-icon {
    font-size: 26px;
    color: var(--gold);
}

.search-form {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 480px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--gold);
    background: var(--white);
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
}

.search-form input:focus {
    outline: none;
}

.search-form input::placeholder {
    color: var(--muted);
}

.search-form button {
    padding: 12px 24px;
    background: var(--black);
    color: var(--cream);
    border: none;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--gold);
    color: var(--black);
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-badge {
    padding: 8px 16px;
    background: var(--black);
    color: var(--gold-light);
    border-radius: var(--radius);
    font-size: 13px;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.admin-badge:hover {
    background: var(--gold);
    color: var(--black);
}

.muted-link {
    color: var(--muted);
    font-size: 14px;
    transition: var(--transition);
}

.muted-link:hover {
    color: var(--gold);
}

/* ==========================================================
   MAIN
   ========================================================== */
main.container {
    flex: 1;
    padding-top: 48px;
    padding-bottom: 80px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 32px;
    color: var(--black);
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 1px;
    background: var(--gold);
}

.section-subtitle {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 40px;
    margin-top: -16px;
    font-weight: 400;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    background: var(--black);
    color: var(--cream);
    padding: 48px 0 32px;
    margin-top: auto;
}

.site-footer p {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.04em;
}

/* ==========================================================
   FLASH MESSAGES
   ========================================================== */
.flash-container {
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 0 32px;
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-weight: 500;
    border-right: 4px solid;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.flash-success {
    border-color: var(--success);
    color: var(--success);
}

.flash-error {
    border-color: var(--error);
    color: var(--error);
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.button,
button.button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--black);
    color: var(--cream);
    border: 1px solid var(--black);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.4;
}

.button:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.button-secondary {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.button-secondary:hover {
    background: var(--black);
    color: var(--cream);
}

.button-gold {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.button-gold:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
}

.button-small {
    padding: 8px 16px;
    font-size: 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    display: inline-block;
    margin: 2px;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.button-small:hover {
    background: var(--black);
    color: var(--cream);
    border-color: var(--black);
}

.button-small.button-secondary {
    background: transparent;
}

/* ==========================================================
   BREADCRUMB
   ========================================================== */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--black);
    font-weight: 500;
}

/* ==========================================================
   HOME PAGE - Hero & Categories
   ========================================================== */
.hero {
    text-align: center;
    padding: 64px 0 48px;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border);
    margin: -48px -32px 64px;
    padding-left: 32px;
    padding-right: 32px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--black);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto 32px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 32px;
}

.hero-stat {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-stat strong {
    color: var(--gold);
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--black);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

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

.category-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--black);
}

.category-count {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ==========================================================
   PRODUCT GRID (CATEGORY PAGE / SEARCH)
   ========================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: var(--black);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--cream-deep);
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--cream-deep);
    color: var(--muted);
    font-size: 48px;
}

.product-image-placeholder.large {
    height: 480px;
    font-size: 80px;
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-price {
    font-size: 16px;
    color: var(--gold);
    font-weight: 600;
    margin-top: auto;
    letter-spacing: 0.02em;
}

.product-card-category {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

/* ==========================================================
   PRODUCT DETAIL PAGE
   ========================================================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 16px;
    align-items: start;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.product-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

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

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--black);
    transition: var(--transition);
    z-index: 5;
}

.gallery-arrow:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.gallery-arrow.prev {
    right: 16px;
}

.gallery-arrow.next {
    left: 16px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gallery-thumb {
    aspect-ratio: 1;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    padding: 0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

.gallery-thumb:hover {
    border-color: var(--gold-light);
}

.gallery-thumb.active {
    border-color: var(--gold);
}

.product-info {
    padding-top: 8px;
}

.product-info .product-category {
    display: inline-block;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    font-weight: 500;
}

.product-info h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--black);
    line-height: 1.2;
}

.product-info .price {
    font-size: 28px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    font-family: var(--font-serif);
}

.product-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 24px 0;
}

.product-description {
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 32px;
    white-space: pre-line;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.buy-button {
    display: block;
    padding: 18px 32px;
    background: var(--black);
    color: var(--cream);
    border: 1px solid var(--black);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    width: 100%;
    cursor: pointer;
    text-decoration: none;
}

.buy-button:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.buy-button-disabled {
    background: var(--cream-deep);
    color: var(--muted);
    border-color: var(--border);
    cursor: not-allowed;
}

.buy-button-disabled:hover {
    background: var(--cream-deep);
    color: var(--muted);
    border-color: var(--border);
}

/* ==========================================================
   PURCHASE INFO BLOCK (הסבר רכישה)
   ========================================================== */
.purchase-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 24px;
    position: relative;
}

.purchase-info::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    border-radius: var(--radius) 0 0 var(--radius);
}

.purchase-info-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.purchase-info-title::before {
    content: "ⓘ";
    color: var(--gold);
    font-size: 24px;
}

.purchase-info-body {
    color: var(--text-soft);
    line-height: 1.85;
    font-size: 15px;
    /* שומר על שורות חדשות + רווחים שהאדמין הקליד, ועוטף שורות ארוכות */
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    /* RTL: וודא שהטקסט מיושר לימין גם אם יש תווים ניטרליים בהתחלה */
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.purchase-info-body p {
    margin-bottom: 12px;
}

.purchase-info-body p:last-child {
    margin-bottom: 0;
}

.purchase-info-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.purchase-info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 14px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.purchase-info-list li::before {
    content: "✓";
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

.purchase-info-list li:last-child {
    border-bottom: none;
}

/* ==========================================================
   ADMIN - LOGIN
   ========================================================== */
.admin-login-box {
    max-width: 440px;
    margin: 64px auto;
    padding: 48px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.admin-login-box h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 12px;
}

.admin-login-box .muted {
    margin-bottom: 32px;
}

/* ==========================================================
   ADMIN - DASHBOARD
   ========================================================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

.stat-card.stat-good::before {
    background: var(--success);
}

.stat-card.stat-warn::before {
    background: var(--error);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 600;
    color: var(--black);
    line-height: 1;
}

.stat-card.stat-good .stat-num {
    color: var(--success);
}

.stat-card.stat-warn .stat-num {
    color: var(--error);
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-progress {
    margin-top: 8px;
    height: 4px;
    background: var(--cream-deep);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold));
    border-radius: var(--radius-sm);
    transition: width 0.6s ease;
}

.stat-percent {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.admin-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.admin-search {
    flex: 1;
    min-width: 240px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--cream);
    font-family: inherit;
    font-size: 14px;
}

.admin-search:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}

.admin-table {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-collapse: collapse;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table thead {
    background: var(--black);
}

.admin-table th {
    padding: 16px;
    text-align: right;
    font-weight: 500;
    color: var(--gold-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--black);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--cream);
}

.admin-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.status-good {
    color: var(--success);
    font-weight: 500;
    font-size: 13px;
}

.status-warn {
    color: var(--error);
    font-weight: 500;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}

.empty-state p {
    font-size: 18px;
    font-family: var(--font-serif);
    font-style: italic;
}

/* ==========================================================
   ADMIN - EDIT PRODUCT
   ========================================================== */

/* באנר סשן עבודה על קטגוריה */
.work-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    margin: 16px 0 24px;
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    color: var(--cream);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-right: 4px solid var(--gold);
    flex-wrap: wrap;
}

.work-banner-text {
    font-size: 15px;
}

.work-banner-cat {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--gold-bright);
    margin-right: 8px;
    font-weight: 600;
}

.work-banner-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
}

.work-banner-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-bright);
    font-family: 'Playfair Display', serif;
}

.work-banner-exit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.work-banner-exit:hover {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 700px) {
    .work-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: right;
    }
    .work-banner-stats {
        justify-content: center;
    }
}

/* ==========================================================
   AFFILIATE SOURCE - מקור הקישור (ידני vs סקריפט)
   ========================================================== */

/* רצועה של chips מעל הדשבורד */
.source-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin: 16px 0 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.source-stats-label {
    font-size: 14px;
    color: var(--text-soft);
    margin-left: 6px;
    font-weight: 500;
}

.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.18s ease;
    cursor: pointer;
}

.source-chip strong {
    font-weight: 700;
}

.source-chip.source-manual {
    background: #f3eaf6;
    color: #6b3fa0;
    border-color: #d9c2e8;
}
.source-chip.source-manual:hover,
.source-chip.source-manual.active {
    background: #6b3fa0;
    color: #fff;
    border-color: #6b3fa0;
}

.source-chip.source-script {
    background: #fff4d9;
    color: #9c6b1a;
    border-color: #f0d990;
}
.source-chip.source-script:hover,
.source-chip.source-script.active {
    background: #b8923f;
    color: #fff;
    border-color: #b8923f;
}

.source-chip.source-unknown {
    background: #f0f0f0;
    color: #666;
    border-color: #d4d4d4;
}
.source-chip.source-unknown:hover,
.source-chip.source-unknown.active {
    background: #666;
    color: #fff;
    border-color: #666;
}

.source-chip-clear {
    font-size: 13px;
    color: var(--text-soft);
    text-decoration: none;
    padding: 6px 10px;
}
.source-chip-clear:hover {
    color: var(--black);
    text-decoration: underline;
}

/* תגיות בטבלה (פנימי בעמודה "מקור") */
.source-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.source-tag.source-manual {
    background: #f3eaf6;
    color: #6b3fa0;
}
.source-tag.source-script {
    background: #fff4d9;
    color: #9c6b1a;
}
.source-tag.source-unknown {
    background: #f0f0f0;
    color: #666;
}

/* באנר ליד שדה ה-affiliate בטופס העריכה */
.source-indicator {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.55;
    border-right: 4px solid;
}
.source-indicator-manual {
    background: #f3eaf6;
    color: #4d2c75;
    border-right-color: #6b3fa0;
}
.source-indicator-script {
    background: #fff4d9;
    color: #6b4a13;
    border-right-color: #b8923f;
}
.source-indicator-unknown {
    background: #f0f0f0;
    color: #4a4a4a;
    border-right-color: #888;
}
.source-indicator small {
    display: block;
    margin-top: 4px;
    opacity: 0.8;
    font-size: 12.5px;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .admin-edit-grid {
        grid-template-columns: 1fr;
    }
}

.admin-edit-image {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.admin-edit-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.admin-product-info-box {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.admin-product-info-box p {
    margin-bottom: 8px;
    font-size: 13px;
}

.admin-product-info-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   ADMIN - FORM
   ========================================================== */
.admin-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.form-row {
    margin-bottom: 24px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="url"],
.form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--cream);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
    line-height: 1.6;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-sans);
}

.form-row small.muted {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 400;
}

.form-affiliate {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-deep) 100%);
    border: 1px solid var(--gold-light);
    padding: 20px;
    border-radius: var(--radius);
    border-right: 4px solid var(--gold);
}

.form-affiliate label {
    color: var(--gold);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ==========================================================
   GENERIC HELPERS
   ========================================================== */
.muted {
    color: var(--muted);
    font-size: 14px;
}

.muted-link {
    color: var(--muted);
    text-decoration: none;
}

.muted-link:hover {
    color: var(--gold);
}

/* ==========================================================
   404 / EMPTY
   ========================================================== */
.error-page {
    text-align: center;
    padding: 96px 20px;
}

.error-page h1 {
    font-family: var(--font-serif);
    font-size: 84px;
    color: var(--gold);
    margin-bottom: 16px;
}

.error-page p {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 32px;
}

/* ==========================================================
   ANALYTICS — דף סטטיסטיקת כניסות
   ========================================================== */
.analytics-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.analytics-tab {
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-soft);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.analytics-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.analytics-tab.active {
    background: var(--black);
    color: var(--gold-light);
    border-color: var(--black);
}

.analytics-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.analytics-h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--black);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Bar chart בנוי על flex pure-CSS — אין צורך ב-JS */
.bar-chart {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 240px;
    overflow-x: auto;
    padding: 12px 8px 0;
    -webkit-overflow-scrolling: touch;
}

.bar-col {
    flex: 1;
    min-width: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: help;
}

.bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.bar-value {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 4px;
    height: 14px;
    line-height: 14px;
    font-weight: 500;
}

.bar {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
    border-radius: 2px 2px 0 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bar-col:hover .bar {
    background: var(--black);
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.bar-label {
    font-size: 10px;
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
    direction: ltr;
    white-space: nowrap;
}

/* בנייד — גלילה אופקית, שמירה על קריאות */
@media (max-width: 768px) {
    .bar-chart {
        height: 180px;
    }
    .bar-col {
        min-width: 18px;
    }
    .bar-label {
        font-size: 9px;
    }
    .analytics-section {
        padding: 16px;
    }
    .analytics-h2 {
        font-size: 18px;
    }
}

/* ==========================================================
   HAMBURGER + SIDE NAV (תפריט קטגוריות צדדי)
   ========================================================== */
.nav-toggle {
    display: flex;             /* מוצג גם בדסקטופ וגם במובייל — גישה מהירה לתפריט */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 4px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle:hover {
    border-color: var(--gold);
}
.nav-toggle:hover span {
    background: var(--gold);
}

/* אנימציית X כשהתפריט פתוח */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.side-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}
.side-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-nav {
    position: fixed;
    top: 0;
    right: -360px;             /* מוסתר בצד ימין כי RTL */
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.side-nav.open {
    right: 0;
}

/* קישורים גדולים וקריאים יותר בתפריט */
.side-nav-link {
    font-size: 16px !important;
    padding: 16px 24px !important;
}
.side-nav-link span:first-child {
    font-size: 20px;
    flex-shrink: 0;
}

.side-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--black);
    color: var(--cream);
    flex-shrink: 0;
}

.side-nav-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 0.02em;
}

.side-nav-close {
    background: transparent;
    border: none;
    color: var(--cream);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}
.side-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

.side-nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}

.side-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    color: var(--text);
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease, color 0.2s ease, padding-right 0.2s ease;
    gap: 12px;
}
.side-nav-link:hover,
.side-nav-link:active {
    background: var(--cream);
    color: var(--gold);
    padding-right: 28px;
}

.side-nav-home {
    background: var(--cream);
    font-weight: 500;
    border-bottom: 2px solid var(--gold);
}

.side-nav-cat-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-nav-cat-count {
    background: var(--cream-deep);
    color: var(--text-soft);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.side-nav-link:hover .side-nav-cat-count {
    background: var(--gold);
    color: var(--white);
}

.side-nav-empty {
    padding: 24px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

/* ==========================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .hero-title {
        font-size: 44px;
    }
}

/* ==========================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* HEADER במובייל — שורה אחת קומפקטית */
    .site-header {
        padding: 14px 0;
    }
    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
    }
    .nav-toggle {
        display: flex;
    }
    .logo {
        font-size: 18px;
        gap: 6px;
        justify-self: center;
    }
    .logo-icon {
        font-size: 22px;
    }
    .logo span:not(.logo-icon) {
        display: none;          /* רק האייקון בכותרת המובייל לחיסכון במקום */
    }

    /* טופס חיפוש קופץ לשורה שנייה ברוחב מלא — בולט וגדול לנוחות */
    .search-form {
        grid-column: 1 / -1;
        order: 2;
        max-width: 100%;
        margin-top: 12px;
        border-width: 2px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
    .search-form input {
        font-size: 16px;        /* 16px+ מונע auto-zoom ב-iOS */
        padding: 14px 16px;     /* גבוה יותר → קליק קל באצבע */
        font-weight: 500;
    }
    .search-form button {
        padding: 14px 24px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.08em;
    }

    /* קישורי אדמין — רק האייקון/כפתור הקטן */
    .admin-link {
        gap: 8px;
        justify-self: end;
    }
    .admin-link .muted-link {
        font-size: 12px;
    }
    .admin-badge {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* HERO מתכווץ */
    .hero {
        padding: 40px 16px 32px;
        margin: -32px -16px 40px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 15px;
    }

    main.container {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    /* גריד מוצרים — 2 בשורה במובייל */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 16px;
    }
    .product-card-body {
        padding: 12px;
    }
    .product-card-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .product-card-price {
        font-size: 14px;
    }
    .product-card-category {
        font-size: 10px;
    }

    /* גריד קטגוריות — 2 בשורה */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card {
        padding: 22px 14px;
    }
    .category-name {
        font-size: 17px;
    }

    /* דף מוצר */
    .product-info h1 {
        font-size: 24px;
    }
    .product-info .price {
        font-size: 22px;
        margin-bottom: 16px;
    }
    .buy-button {
        padding: 16px 24px;
        font-size: 14px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 8px;
    }
    .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .gallery-arrow.prev {
        right: 8px;
    }
    .gallery-arrow.next {
        left: 8px;
    }

    /* Purchase info */
    .purchase-info {
        padding: 20px 16px;
    }
    .purchase-info-title {
        font-size: 17px;
    }
    .purchase-info-body {
        font-size: 14px;
    }

    /* ADMIN — דשבורד וטבלה */
    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 18px;
    }
    .stat-num {
        font-size: 32px;
    }
    .admin-filter {
        padding: 12px;
        gap: 10px;
    }
    /* טבלת אדמין — scroll אופקי כדי לא לשבור את הלייאאוט */
    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    .admin-table {
        font-size: 13px;
        min-width: 720px;       /* שומר על הקריאות, גולל אופקית */
    }
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
    .admin-thumb {
        width: 44px;
        height: 44px;
    }

    /* ADMIN — טופס עריכה */
    .admin-form {
        padding: 20px 16px;
    }
    .form-row input,
    .form-row textarea {
        font-size: 16px;        /* מונע auto-zoom ב-iOS */
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .button,
    .form-actions button.button {
        width: 100%;
    }

    /* FLASH messages — רוחב מלא */
    .flash-container {
        padding: 0 16px;
    }

    /* FOOTER */
    .site-footer {
        padding: 32px 0 24px;
    }
    .site-footer p {
        font-size: 12px;
    }
}

/* ==========================================================
   RESPONSIVE — SMALL MOBILE (≤ 380px)
   ========================================================== */
@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;     /* מסכים ממש קטנים — מוצר אחד בשורה */
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   ADMIN - HEADER ROW (כותרת + כפתורי פעולה כמו "הגדרות אתר")
   ========================================================== */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================
   ADMIN - SETTINGS PAGE (עריכת טקסטים גלובליים)
   ========================================================== */
.admin-form-wide {
    max-width: 900px;
    margin: 0 auto;
}

.settings-intro {
    background: var(--cream);
    border: 1px solid var(--gold-light);
    border-right: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
}

.settings-intro p {
    margin: 0;
}

.settings-textarea {
    font-family: var(--font-sans);
    line-height: 1.7;
    min-height: 380px;
    /* טקסט בעברית — יישור לימין ושמירה על תווים מיוחדים */
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.settings-preview {
    background: var(--cream);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.settings-preview .purchase-info {
    margin-top: 0;
}

.settings-badge-default,
.settings-badge-custom {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

.settings-badge-default {
    background: rgba(0, 0, 0, 0.06);
    color: var(--muted);
}

.settings-badge-custom {
    background: rgba(184, 134, 11, 0.12);
    color: var(--gold);
}

/* ==========================================================
   FAVORITES — לב על כרטיסי מוצרים + עיצוב כפתור
   ========================================================== */

/* עוטף את הקארד כדי שנוכל למקם את כפתור הלב מעליו (absolute) */
.product-card-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-wrap .product-card {
    flex: 1;
}

/* הכפתור הקטן עם הלב — מופיע בפינה השמאלית-עליונה של הכרטיס */
.fav-btn {
    position: absolute;
    top: 8px;
    left: 8px;             /* RTL — שמאל מבחינה ויזואלית = "מתחיל" של הכרטיס */
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.fav-btn:hover {
    background: var(--white);
    transform: scale(1.08);
    border-color: var(--gold);
}

.fav-btn .fav-heart {
    font-size: 20px;
    line-height: 1;
    color: var(--muted);          /* לב לא-פעיל — אפור */
    transition: var(--transition);
    display: inline-block;
}

.fav-btn.is-fav {
    background: #fff0f0;
    border-color: #ffb3b3;
}
.fav-btn.is-fav .fav-heart {
    color: #e53935;               /* לב פעיל — אדום */
    transform: scale(1.1);
    animation: heart-pop 0.3s ease;
}

@keyframes heart-pop {
    0%   { transform: scale(0.6); }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1.1); }
}

/* גרסה גדולה — לכפתור בעמוד המוצר עצמו (ליד הכותרת) */
.fav-btn-large {
    position: static;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}
.fav-btn-large .fav-heart {
    font-size: 26px;
}

/* שורת הכותרת בעמוד המוצר — שם המוצר + לב צמוד */
.product-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}
.product-title-row h1 {
    flex: 1;
    margin: 0;
}

/* כותרת דף המועדפים — h1 + כפתור "נקה הכל" */
.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* מונה מועדפים בתפריט הצדדי */
.side-nav-fav-count {
    margin-right: auto;
    background: #e53935;
    color: #fff;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

/* קישורי "כל המוצרים" ו"מועדפים" בולטים יותר בתפריט */
.side-nav-special {
    background: var(--cream);
    font-weight: 500;
}

.side-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ==========================================================
   FLOATING CONTACT BUTTONS — WhatsApp + Telegram (פינה תחתונה)
   ========================================================== */
.floating-contact {
    position: fixed;
    bottom: 24px;
    left: 24px;        /* RTL — שמאל למטה לא חוסם תוכן ימני */
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.float-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 14px;
    border-radius: 999px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    direction: ltr;            /* האייקון בצד שמאל, הטקסט בצד ימין */
    line-height: 1;
}

.float-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.float-btn svg {
    flex: 0 0 auto;
}

.float-btn-label {
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
}

.float-whatsapp {
    background: #25D366;
}
.float-whatsapp:hover {
    background: #1ebe57;
}

.float-telegram {
    background: #229ED9;
}
.float-telegram:hover {
    background: #1c87ba;
}

/* במובייל — הכפתורים קטנים יותר ובלי טקסט */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 16px;
        left: 16px;
        gap: 10px;
    }
    .float-btn {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .float-btn-label {
        display: none;
    }
    .float-btn svg {
        width: 26px;
        height: 26px;
    }

    /* כפתור לב קטן יותר במובייל */
    .fav-btn {
        width: 34px;
        height: 34px;
        top: 6px;
        left: 6px;
    }
    .fav-btn .fav-heart {
        font-size: 18px;
    }

    /* === תפריט צד מלא-מסך במובייל לקריאות מקסימלית === */
    .side-nav {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
    }
    .side-nav-header {
        padding: 18px 20px;
    }
    .side-nav-title {
        font-size: 24px;        /* כותרת בולטת */
    }
    .side-nav-close {
        width: 44px;
        height: 44px;
        font-size: 36px;
    }
    .side-nav-link {
        font-size: 17px !important;
        padding: 18px 22px !important;
    }
    .side-nav-link span:first-child {
        font-size: 22px;
    }
    .side-nav-cat-count {
        font-size: 13px;
        padding: 4px 12px;
        min-width: 36px;
    }
}

/* ==========================================================
   PRODUCT PAGE — לב כ-overlay בפינת הגלריה (מובייל + דסקטופ)
   ========================================================== */
.product-gallery {
    position: relative;
}
.product-gallery .fav-btn-large {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .product-gallery .fav-btn-large {
        top: 10px;
        left: 10px;
        width: 44px;
        height: 44px;
    }
    .product-gallery .fav-btn-large .fav-heart {
        font-size: 22px;
    }
}

