/* Judaica Store Theme - עיצוב חנות יודאיקה */
/* White & Blue Solid Design with Smooth Animations */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'David', 'Noto Serif Hebrew', 'Georgia', serif;
    direction: rtl;
    background: #f8f9fc;
    color: #1a365d;
    min-height: 100vh;
    /*font-size: 16px;*/
    font-size: 26px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Header */
header {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    color: #2c5282;
    /*padding: 25px 0;*/
    border-bottom: 3px solid #3182ce;
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 40px;
    font-weight: 700;
    color: #2c5282;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(44, 82, 130, 0.1);
    animation: fadeInDown 0.6s ease-out;
}


header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #2c5282;
    letter-spacing: 1px;
    display: contents;
    text-shadow: 0 2px 4px rgba(44, 82, 130, 0.1);
    animation: fadeInDown 0.6s ease-out;
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1::before {
    content: '✡';
    margin-left: 15px;
    color: #3182ce;
    font-size: 28px;
    display: inline-block;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: #2c5282;
    text-decoration: none;
    font-size: 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

nav a:hover {
    color: #3182ce;
    background: rgba(49, 130, 206, 0.05);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #3182ce, #63b3ed);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    /*padding: 50px 0;*/
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    font-size: 42px;
    margin-bottom: 40px;
    color: #2c5282;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    border-radius: 2px;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto 0;
    /*margin: 0 auto 50px;*/
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box {
    width: 100%;
    padding: 18px 25px;
    font-size: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    direction: rtl;
    background: white;
    color: #1a365d;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.08);
}

.search-box:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.15);
    transform: translateY(-2px);
}

.search-box::placeholder {
    color: #a0aec0;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #cbd5e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(49, 130, 206, 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: -12px;
    padding-top: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 25px;
    text-decoration: none;
    color: #1a365d;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.search-result-item:hover,
.search-result-active {
    background: linear-gradient(to left, rgba(49, 130, 206, 0.05), transparent);
    transform: translateX(-5px);
}

.search-result-image {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #cbd5e0;
}

.search-result-image .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    border-radius: 8px;
    border: 2px solid #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #718096;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #1a365d;
}

.search-result-name strong {
    color: #3182ce;
}

.search-result-category {
    font-size: 13px;
    color: #718096;
}

.search-result-price {
    font-weight: bold;
    font-size: 18px;
    color: #3182ce;
    flex-shrink: 0;
}

.search-no-results {
    padding: 25px;
    text-align: center;
    color: #718096;
}

/* Product Variant Selection */
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 26px;
}

.variant-option {
    position: relative;
    cursor: pointer;
}

.variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.variant-option span {
    display: block;
    padding: 14px 26px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    font-size: 24px;
    font-weight: 600;
    color: #2c5282;
}

.variant-option input[type="radio"]:checked + span {
    background: linear-gradient(135deg, #2c5282, #3182ce);
    border-color: #2c5282;
    color: white;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    transform: translateY(-2px);
}

.variant-option input[type="radio"]:checked + span small {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.variant-option:hover span {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.15);
}

.product-page .form-group {
    margin-bottom: 28px;
}

.product-page .form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: #2c5282;
    font-weight: 600;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
    color: #1a365d;
    overflow: hidden;
    border: 2px solid transparent;
    
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(49, 130, 206, 0.2);
    border-color: #3182ce;
    background: #2c528233;
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-no-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #3182ce;
}

.category-card h3 {
    font-size: 26px;
    color: #2c5282;
    margin: 22px 0 12px;
    font-weight: 700;
    padding: 0 20px;
}

.category-card p {
    font-size: 26px;
    color: #718096;
    margin: 0 0 22px 0;
    padding: 0 20px;
}

/* Products Grid */
.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 35px;
    display: flex;
    gap: 18px;
    align-items: center;
    box-shadow: 0 2px 12px rgba(49, 130, 206, 0.08);
    border: 2px solid #e2e8f0;
}

.filter-bar label {
    font-weight: 600;
    color: #2c5282;
}

.filter-bar select {
    padding: 10px 18px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: #1a365d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-bar select:focus {
    outline: none;
    border-color: #3182ce;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
    color: #1a365d;
    display: block;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(49, 130, 206, 0.2);
    border-color: #3182ce;
}

.product-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c5282;
    font-weight: 700;
}

.product-price {
    font-size: 30px;
    font-weight: bold;
    color: #3182ce;
    margin: 10px 0;
}

.product-details {
    font-size: 15px;
    color: #718096;
    margin-top: 10px;
}

/* Product Page */
.product-page {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(49, 130, 206, 0.12);
    border: 2px solid #e2e8f0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}

.product-image-large {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(49, 130, 206, 0.15);
    transition: transform 0.3s ease;
}

.product-image-large:hover {
    transform: scale(1.02);
}

.product-description {
    font-size: 20px;
    line-height: 1.8;
    color: #2d3748;
    margin: 22px 0;
}

.product-meta {
    margin: 22px 0;
}

.product-meta p {
    font-size: 20px;
    margin: 11px 0;
    color: #2d3748;
}

.product-meta strong {
    color: #2c5282;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, #3182ce, #4299e1);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #38a169, #48bb78);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.btn-large {
    padding: 17px 40px;
    font-size: 17px;
}

/* Cart Page */
.cart-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.1);
    border: 2px solid #e2e8f0;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: linear-gradient(135deg, #3182ce, #4299e1);
    color: white;
    padding: 18px;
    text-align: right;
    font-weight: 600;
}

.cart-table td {
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item-image {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.15);
}

.quantity-input {
    width: 65px;
    padding: 8px;
    text-align: center;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #3182ce;
}

.cart-total {
    background: white;
    padding: 35px;
    border-radius: 16px;
    margin-top: 35px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.1);
    border: 2px solid #e2e8f0;
}

.cart-total h3 {
    font-size: 26px;
    color: #2c5282;
    margin-bottom: 22px;
    font-weight: 700;
}

.cart-total #act_btn{
    display: flex;
    gap: 15px;
    margin-top: 30px;    
}

.cart-total .total-price {
    font-size: 40px;
    color: #3182ce;
    font-weight: bold;
}

/* Admin Styles */
.admin-container {
    max-width: 600px;
    margin: 100px auto;
}

.login-form, .admin-form {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(49, 130, 206, 0.15);
    border: 2px solid #e2e8f0;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c5282;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    font-size: 14px;
    background-color: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.1);
    margin-top: 25px;
    border: 2px solid #e2e8f0;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: linear-gradient(135deg, #3182ce, #4299e1);
    color: white;
    padding: 18px;
    text-align: right;
    font-weight: 600;
}

.admin-table td {
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.alert {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 22px;
    border: 2px solid;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-color: #9ae6b4;
}

.alert-error {
    background: #fff5f5;
    color: #742a2a;
    border-color: #fc8181;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #ffffff, #f7fafc);
    color: #2c5282;
    text-align: center;
    padding: 25px 0;
    margin-top: 55px;
    box-shadow: 0 -4px 20px rgba(49, 130, 206, 0.1);
    border-top: 3px solid #3182ce;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.1);
    border: 2px solid #e2e8f0;
}

.empty-state h3 {
    font-size: 26px;
    color: #2c5282;
    margin-bottom: 22px;
    font-weight: 700;
}




#sizePricingContainer{
    padding: 10px !important;     
}

small{
    font-size: 20px !important;  
}



/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #edf2f7;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3182ce, #4299e1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2c5282, #3182ce);
}

/* Responsive */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 12px;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 30px;
    }
}

/* תיקון טבלת סל קניות למובייל */
@media (max-width: 768px) {
    /* הסתרת הטבלה הרגילה */
    .cart-table table {
        display: block;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody {
        display: block;
    }
    
    .cart-table tr {
        display: block;
        margin-bottom: 20px;
        border: 2px solid #ecf0f1;
        border-radius: 10px;
        padding: 15px;
        background: white;
    }
    
    .cart-table td {
        display: block;
        text-align: right !important;
        padding: 8px 0;
        border: none;
    }
    
    /* הוספת תווית לכל שדה */
    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #2c3e50;
        display: inline-block;
        margin-left: 10px;
    }
    
    /* תמונת מוצר במובייל */
    .cart-item-image {
        width: 100%;
        height: auto;
        max-width: 150px;
        margin: 10px auto;
        display: block;
    }
    
    /* טופס כמות */
    .cart-table form {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-top: 10px;
    }
    
    .quantity-input {
        flex: 1;
        max-width: 80px;
    }
    
    /* כפתורים */
    .cart-table .btn {
        padding: 10px 15px;
        font-size: 14px;
        width: auto;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-actions .btn {
        width: 100%;
    }
    
    /* סכום כולל */
    .cart-total {
        padding: 20px;
        text-align: center;
    }
    
    .cart-total #act_btn{
        display: block;
        margin: 10px;    
    }
    
    .cart-total #act_btn button{
        width: 100%;   
        margin: 10px 0;
    }


    .cart-total h3 {
        font-size: 22px;
    }
    
    .cart-total .total-price {
        font-size: 28px;
    }
}











/* Menu toggle - hidden on desktop */
.menu-toggle {
    display: none;
}

.menu-close {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    /* Header */
    header .container {
        position: relative;
    }
    
    header h2 {
        font-size: 14px;
        margin: 5px 0 0 0;
    }
    
    /* כפתור תפריט */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid #2c5282;
        color: #2c5282;
        font-size: 24px;
        width: 45px;
        height: 45px;
        border-radius: 5px;
        cursor: pointer;
        z-index: 1001;
    }
    
    /* תפריט ניווט */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #2c3e50;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: 18px 15px;
        font-size: 18px;
        color: white;
    }
    
    /* כפתור סגירה */
    .menu-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 36px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        line-height: 1;
    }
    
    /* רקע כהה */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
}







/* תפריט נפתח לקטגוריות */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 100;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 15px;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* תפריט נפתח במובייל */
@media (max-width: 768px) {
    .nav-dropdown {
        position: relative;
    }
    
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu a {
        padding: 15px 15px 15px 30px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
}





