/* ==========================================================================
   CATEGORIES - Extracted from style.css
   Contains: Categories bar, pills, circles, floating categories, grid utilities
   ========================================================================== */

/* ==========================================================================
   CATEGORIES BAR - סרגל קטגוריות
   ========================================================================== */
/* Old categories bar - kept for reference */
.categories-bar {
    background: var(--bg-white);
    padding: 10px 0 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Colorful Pills Categories - כפתורים מלבניים צבעוניים
   ========================================================================== */

.categories-pills-section {
    background: #ffffff;
    padding: 15px 0 25px;
}

.categories-pills-inline {
    margin-top: 6px;
    padding: 8px 0 12px;
    background: #ffffff;
    position: relative;
}

.categories-title {
    display: none;
}

.categories-pills-section .pills-grid,
#categoryFilter.pills-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    margin: 0 auto;
}

.category-text-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

/* קטגוריות טקסט פשוט עם הפרדות */
.category-text-item {
    text-align: center;
    font-size: 0.875rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px 16px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    background: transparent;
    font-weight: 400;
}

.category-text-item span {
    position: relative;
}

/* הפרדה אנכית - קו משני הצדדים */
.category-text-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #dee2e6;
}

.category-text-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #dee2e6;
}

/* הפרדה אופקית בין שורות */
.category-text-item:nth-child(n+4) {
    border-top: 1px solid #f1f3f5;
}

/* אפקט hover */
.category-text-item:hover {
    color: #667eea;
    background: #f8f9fa;
}

/* מצב פעיל - ללא רקע צבעוני */
.category-text-item.active {
    font-weight: 700;
    color: #667eea;
    background: transparent;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #1a1a2e;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a2e;
    background: #ffffff;
    white-space: nowrap;
}

.pill-btn:hover {
    background: #f5f5f5;
}

.pill-btn:active {
    transform: scale(0.98);
}

.pill-btn.active {
    background: #1a1a2e;
    color: #ffffff;
}

.pill-btn-name {
    white-space: nowrap;
}

/* Responsive - Categories */
@media (max-width: 380px) {
    .categories-pills-inline {
        padding: 6px 0 10px;
    }
    
    .categories-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    #categoryFilter.pills-grid {
        padding: 0 !important;
    }
    
    .category-text-item {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

@media (max-width: 360px) {
    .category-text-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        font-size: 0.72rem;
        padding: 8px 4px;
    }
    
    /* במצב 3 עמודות - כל הקטגוריות מקבלות קווים */
    .category-text-item::before,
    .category-text-item::after {
        display: block;
    }
    
    .pill-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}

@media (min-width: 400px) {
    .categories-pills-inline {
        padding: 10px 0 14px;
    }
    
    .categories-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    #categoryFilter.pills-grid {
        padding: 0 !important;
        max-width: 100%;
    }
    
    .category-text-item {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

.categories-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.categories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

/* מרכוז קטגוריות במסכים גדולים */
@media (min-width: 992px) {
    .categories-bar {
        padding: 24px 0;
    }
    
    .categories-bar .container {
        max-width: var(--container-max-width);
        padding: 0 var(--spacing-desktop);
    }
    
    .categories-scroll {
        justify-content: center;
        gap: 24px;
        padding: 8px 0;
        overflow-x: visible;
    }
    
    .category-circle-image {
        width: 80px;
        height: 80px;
    }
    
    .category-circle-text {
        font-size: 0.85rem;
    }
}

@media (min-width: 1200px) {
    .categories-scroll {
        gap: 32px;
    }
    
    .category-circle-image {
        width: 88px;
        height: 88px;
    }
}

/* עיגולי קטגוריות */
.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-circle-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-circle-icon i {
    font-size: 28px;
    transition: all 0.3s ease;
}

/* עיגולי קטגוריות עם תמונות */
.category-circle-image {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-circle-image.fallback-icon {
    background: #f1f5f9;
}

.category-circle-image.fallback-icon i {
    font-size: 24px;
}

.category-circle:hover .category-circle-image {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #6366f1;
}

.category-circle:hover .category-circle-image img {
    transform: scale(1.1);
}

.category-circle.active .category-circle-image {
    border-color: #6366f1;
    border-width: 3px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.category-circle-name {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.category-circle:hover .category-circle-icon {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.category-circle:hover .category-circle-name {
    color: #1e293b;
}

/* קטגוריה פעילה */
.category-circle.active .category-circle-icon {
    border-color: currentColor;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-circle.active .category-circle-name {
    color: #1e293b;
    font-weight: 700;
}

/* רספונסיבי - קטגוריות */
@media (max-width: 576px) {
    .category-circle-icon {
        width: 64px;
        height: 64px;
    }
    
    .category-circle-icon i {
        font-size: 24px;
    }
    
    .category-circle-image {
        width: 68px;
        height: 68px;
    }
    
    .category-circle-name {
        font-size: 11px;
        max-width: 72px;
    }
    
    .categories-scroll {
        gap: 14px;
    }
}

/* מסכים קטנים מאוד */
@media (max-width: 350px) {
    .category-circle-icon {
        width: 56px;
        height: 56px;
    }
    
    .category-circle-icon i {
        font-size: 20px;
    }
    
    .category-circle-image {
        width: 58px;
        height: 58px;
    }
    
    .category-circle-name {
        font-size: 10px;
        max-width: 60px;
    }
    
    .categories-scroll {
        gap: 10px;
        padding: 8px 0 8px 12px;
    }
    
    .categories-bar {
        padding: 12px 0;
    }
}

/* תמיכה ב-Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .gift-finder-hero {
        min-height: auto;
        padding: 16px;
    }
    
    .gift-finder-text {
        margin-bottom: 12px;
    }
    
    .notch-bar-wrapper {
        height: 60px;
    }
    
    .mobile-modal-content {
        min-height: auto;
    }
    
    .mobile-modal-image {
        aspect-ratio: 16 / 9;
        max-height: 50vh;
    }
}

/* מרווח לאזור המוצרים */
.products-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* רקע אזור המוצרים */
.products-main {
    background: none;
}


/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #f8f8f8;
    border-radius: 10px;
    font-size: 0.85rem;
}

.breadcrumb-home {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b8963a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-home:hover {
    color: #96792e;
}

.breadcrumb-home i {
    font-size: 0.95rem;
}

.breadcrumb-divider {
    color: #ddd;
}

.breadcrumb-change {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-change:hover {
    color: #555;
}

.breadcrumb-change i {
    font-size: 0.85rem;
}

.breadcrumb-separator {
    color: #ccc;
    font-size: 0.7rem;
}

.breadcrumb-current {
    color: #666;
    font-weight: 600;
}

/* כותרת קטגוריה */
.category-header {
    text-align: center;
    margin-bottom: 20px;
}

.category-crown {
    text-align: center;
    margin-bottom: 0;
}

.category-crown i {
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        #c4888b 0%,
        #c4888b 40%,
        #e8b4b6 50%,
        #c4888b 60%,
        #c4888b 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: crownShimmer 2.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(196, 136, 139, 0.3));
}

.category-title-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2b2218;
    text-align: center;
    margin: 0 0 4px;
    padding: 0;
    letter-spacing: 0.2px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    border: none;
    background: none;
    position: relative;
    padding-bottom: 14px;
}

.category-title-display::before {
    content: attr(data-en);
    display: block;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    font-weight: 500;
    color: #c4888b;
    margin-bottom: 6px;
}

.category-title-display::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent 0%, #c4888b 50%, transparent 100%);
}

.category-subtitle-display {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 8px;
    display: none;
}

/* Skeleton Loading */
.skeleton-card {
    box-shadow: none !important;
    border-color: rgba(15, 23, 42, 0.04) !important;
}

.skeleton-box,
.skeleton-line {
    background: linear-gradient(90deg, rgba(148,163,184,0.12) 25%, rgba(148,163,184,0.22) 37%, rgba(148,163,184,0.12) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-box {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.skeleton-line {
    height: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* מודל עגלה - קומפקטי וממורכז */
#cartModal .modal-dialog {
    margin: auto !important;
    max-width: 340px !important;
    width: 90% !important;
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.show {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.cart-header-title i {
    color: #b8963a;
    font-size: 1.2rem;
}

.cart-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    background: #eee;
    color: #555;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-clear-btn {
    border: none;
    background: none;
    color: #aaa;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.cart-clear-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Clear Cart Popup */
.clear-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.clear-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.clear-cart-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    z-index: 1101;
    text-align: center;
    width: 280px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.clear-cart-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.clear-cart-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.2rem;
}

.clear-cart-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}

.clear-cart-actions {
    display: flex;
    gap: 10px;
}

.clear-cart-btn-confirm {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clear-cart-btn-confirm:hover {
    background: #b91c1c;
}

.clear-cart-btn-cancel {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-cart-btn-cancel:hover {
    background: #f5f5f5;
}

.cart-drawer-body {
    flex: 1;
    background: #fafafa;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}

#cartItemsContainer {
    padding: 12px;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin: 0 0 4px;
}

.cart-empty span {
    font-size: 0.85rem;
    color: #999;
}

.cart-drawer-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.cart-total-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.cart-total-shipping-note {
    font-size: 0.75rem;
    color: #888;
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #128C7E;
    border: 2px solid #128C7E;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-checkout-btn:hover {
    background: #128C7E;
    color: #fff;
}

.cart-checkout-btn:active {
    transform: scale(0.98);
}

.cart-checkout-btn i {
    font-size: 1.2rem;
}

.cart-checkout-note {
    width: 100%;
    text-align: center;
    font-size: 0.7625rem;
    font-weight: 500;
    color: #5c697a;
    margin: 4px 0 0 0;
    padding: 2px 10px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Shipping Section - Simple Row Style */
.cart-shipping-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e0e0e0;
}

.cart-shipping-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.cart-shipping-row-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 6px;
    margin: 0 -4px;
    padding-right: 4px;
    padding-left: 4px;
}

.cart-shipping-row-option:hover {
    background: #f5f5f5;
}

.cart-shipping-row-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #128C7E;
    cursor: pointer;
    flex-shrink: 0;
}

.cart-shipping-row-label {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.cart-shipping-row-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.cart-shipping-row-price.free {
    color: #128C7E;
}

/* Shipping Popup - Minimalist Centered */
.shipping-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shipping-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.shipping-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 16px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.shipping-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.shipping-popup-header {
    padding: 20px 20px 16px;
    text-align: center;
    position: relative;
}

.shipping-popup-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 4px;
}

.shipping-popup-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}

.shipping-popup-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.shipping-popup-close:hover {
    color: #333;
}

.shipping-popup-options {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-popup-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
}

.shipping-popup-option:hover {
    background: #fafafa;
}

.shipping-popup-option:has(input:checked) {
    border-color: rgba(69, 161, 103, 1);
    background: #fff;
}

.shipping-popup-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.shipping-popup-option input[type="radio"]:checked {
    background: #fff;
    border-color: rgba(69, 161, 103, 1);
}

.shipping-popup-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: rgba(69, 161, 103, 1);
    border-radius: 50%;
}

.shipping-popup-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.shipping-popup-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.shipping-popup-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.shipping-popup-text small {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

.shipping-popup-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    margin-top: 2px;
}

.shipping-popup-price.free {
    color: #333;
}

.shipping-see-more {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.shipping-see-more:hover {
    color: #000;
}

.shipping-extra-details {
    display: none;
    font-size: 0.7rem;
    color: #666;
    margin-top: 6px;
    margin-right: -70px;
    margin-left: -14px;
    padding: 8px 10px;
    background: #f8f8f8;
    border-radius: 6px;
    line-height: 1.5;
    text-align: right;
    width: calc(100% + 84px);
}

.shipping-extra-details.show {
    display: block;
}

.shipping-popup-agreement {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
}

.shipping-agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.shipping-agreement-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.shipping-agreement-label input[type="checkbox"]:checked {
    background: #fff;
    border-color: #dc2626;
}

.shipping-agreement-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dc2626;
    font-size: 14px;
    font-weight: bold;
}

.shipping-agreement-label a {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 500;
}

.shipping-agreement-label a:hover {
    color: #b91c1c;
}

.shipping-popup-footer {
    padding: 12px 20px 20px;
}

.shipping-popup-continue:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.shipping-popup-continue:disabled:hover {
    background: #ccc;
}

.shipping-popup-continue {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(69, 161, 103, 1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
}

.shipping-popup-continue:hover {
    background: rgba(59, 141, 90, 1);
}

.shipping-popup-continue:active {
    transform: scale(0.98);
}

.shipping-popup-continue i {
    font-size: 1.1rem;
}

/* Standalone Quantity Controls */
.qty-controls-standalone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qty-label {
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    margin: 0;
}

/* Total Price Section */
.mobile-modal-total-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #000000;
    display: flex;
    justify-content: flex-end;
}

/* Cart Shipping Info */
.cart-shipping-info {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 8px;
    line-height: 1.5;
}

/* Cart Totals Section */
.cart-totals-section {
    margin-bottom: 14px;
}

.cart-subtotal-row,
.cart-shipping-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    padding: 6px 0;
}

.cart-shipping-row {
    color: #059669;
    border-top: 1px dashed #e5e7eb;
    padding-top: 8px;
    margin-top: 4px;
}

.cart-shipping-price {
    font-weight: 600;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    margin-top: 6px;
}

/* Cart Item Styling */
.cart-item-row {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.cart-item-row:last-child {
    margin-bottom: 0;
}

/* כפתורי ערוך/מחק טקסט */
.cart-item-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
    white-space: nowrap;
}

.cart-item-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: #3b82f6;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cart-item-link-btn:hover {
    color: #1d4ed8;
}

.cart-item-link-delete {
    color: #94a3b8;
}

.cart-item-link-delete:hover {
    color: #dc2626;
}

.cart-item-link-sep {
    color: #d1d5db;
    font-size: 0.75rem;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.3;
}

.cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.cart-option-tag {
    font-size: 0.7rem;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.cart-shipping-tag {
    background: #fef2f2;
    color: #dc2626;
}

.cart-pickup-tag {
    background: #f0fdf4;
    color: #16a34a;
}

.cart-item-unit-price {
    font-size: 0.75rem;
    color: #999;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.cart-qty-btn:active {
    transform: scale(0.95);
}

.cart-qty-btn-remove {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.cart-qty-btn-remove:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.cart-qty-num {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    color: #222;
}

.cart-qty-input {
    width: 45px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    background: #fff;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cart-item-total {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin-top: 8px;
}

/* Skeleton Loading */
.skeleton-card {
    box-shadow: none !important;
    border-color: rgba(15, 23, 42, 0.04) !important;
}

.skeleton-box,
.skeleton-line {
    background: linear-gradient(90deg, rgba(148,163,184,0.12) 25%, rgba(148,163,184,0.22) 37%, rgba(148,163,184,0.12) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-box {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.skeleton-line {
    height: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* גריד מוצרים מותאם - 2 במובייל, 5 בדסקטופ */
/* Bootstrap כבר מטפל ב-col-6, אבל משאירים "נגיעה" רק למובייל כדי לא לדרוס תצוגות רחבות */
@media (max-width: 575.98px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-fifth {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
