/*GENERAL*/
:root {
    --color-haolam-lightblue: #019cde;
    --color-haolam-red: #dc0714;
    --color-haolam-darkblue: #00275c;
    --color-text: #4f4e4e;

    --color-ok-dark:#008013;
    --color-ok-light:#7eb341;
    --color-ok-extra-light:#eafcc9;
    --color-fail-dark:#b12424;
    --color-fail-light:#fad1cf;
    --color-fail-extra-light:#ffebf1;

    --color-neutral-light:#f5f7fa;
    --color-neutral-medium:#dbe2ed;
    --color-neutral-dark:#4a5568;

    --font-awesome:'Font Awesome 7 Pro';
    
    /* Special offer page variables */
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #0b3b50;
    --card-bg: #ffffff;
    --light-bg: #e8f4f8;
    --accent: #039cdb;
    --muted: #6b7280;
    --success: #059669;
    --radius: 16px;
    --max-width: 920px;
    --gap: 18px;
    }

.mobile_only{display:none}
@media screen and (max-width: 676px) {
    .mobile_only{display:initial}
}

/*NORMALIZE*/
*{box-sizing:border-box; margin: 0; padding: 0;}
a.skip-main{position: absolute; top: 0px; left: 50%; margin-left: -55px; padding: 2px 4px; opacity: 0; font: normal 12px arial;  background-color: white;}
a.skip-main:focus {opacity: 1;z-index: 999;}
body{font-family: Assistant !important; color: var(--color-haolam-darkblue);font-size:20px;}
UL, LI {margin: 0px;padding: 0px;list-style: none;}

.err_msg, .error{color: var(--color-fail-dark); background-color: var(--color-fail-extra-light);}
.ok_msg, .success{color: var(--color-ok-dark);background-color: var(--color-ok-extra-light);}
.centered{margin:auto; text-align:center;display: flex; justify-content: center; align-items:center}


/*HEADER*/
#header_strip {position: absolute;top: 0;left: 0;right: 0;height: 50px; background: var(--color-haolam-darkblue);}
.header {position: relative; margin-top:50px; width: 100%;  min-height: 90px;background-color: rgba(255,255,255,1);}
.centeredContent{max-width: 1200px;margin: 0px auto; padding: 0px 40px;}
.headerRow {display: flex;  justify-content: center;  align-items: center; padding:12px 0; border-bottom:1px solid lightgrey}
.headerLogo {text-align:center}
.headerLogo a {text-decoration: none; color: var(--color-haolam-lightblue); font-weight:bold;font-size:22px;line-height:20px}
.headerLogo img {width: 190px;}
.logo_mishne img{width:62px}

/*ELEMENTS*/
.btn{text-decoration:none;display:inline-block;white-space:nowrap;border-radius:20px; font-size:20px; line-height:22px;padding:8px 20px; cursor: pointer}
.btn_main{background-color: var(--color-haolam-darkblue); color:white; }
.btn_main:hover{background-color: var(--color-haolam-lightblue)}
.shaded_card {border-radius: 23px;background-color: white;-webkit-box-shadow: 1px 3px 6px 3px rgba(0,0,0,0.57); box-shadow: 1px 3px 6px 3px rgba(0,0,0,0.57);}
.shade_down {box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 2px 9px 1px rgba(0, 0, 0, 0.12), 0 6px 2px -2px rgba(0, 0, 0, 0.2);}
.highlight{background: linear-gradient( rgba(255, 249, 91, 0.9), rgba(255, 249, 91, 0.2) ); padding: 0.1em 0.2em; border-radius: 0.15em;  box-shadow: inset 0 -0.1em 0 rgba(0,0,0,0.05);}
.flex_wrapper{display: flex; justify-content: space-around; align-items: baseline;}

.text_msg {position:relative; margin:20px auto 10px;background-color:var(--msg-bg-color); border:1px solid var(--msg-border-color); border-right-width:32px; padding:5px 10px; line-height:23px; font-size:15px; border-radius:8px}
.text_msg:before{position:absolute; font-family:var(--fa-family-classic); content: var(--msg-icon-glyph); color:var(--msg-icon-color); right:-23px}
.text_msg.ok_msg{--msg-bg-color: var(--color-ok-extra-light); --msg-border-color: var(--color-ok-light); --msg-icon-color:white; --msg-icon-glyph: "\f058"}
.text_msg.warn_msg{--msg-bg-color: var(--color-fail-extra-light); --msg-border-color: var(--color-fail-light);--msg-icon-color:var(--color-fail-dark);--msg-icon-glyph: "\f071"}
.text_msg.sys_msg{--msg-bg-color: var(--color-neutral-light); --msg-border-color: var(--color-neutral-medium);--msg-icon-color:var(--color-neutral-dark); --msg-icon-glyph: "\f05a"}


/*CONTENT*/
#content_body{padding:7px}

/* SPECIAL OFFER PAGE STYLES */
.page {min-height: 100%;display: flex;align-items: center;justify-content: center;padding: 28px;gap: var(--gap);}
.card {width: 100%;max-width: var(--max-width);display: grid;grid-template-columns: 1fr 250px;gap: 24px;background: var(--card-bg);border-radius: var(--radius);box-shadow: 0 12px 30px rgba(2,6,23,0.45);overflow: hidden;direction: rtl;}
.card-right {padding: 0 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center;}
.card-left {background: linear-gradient(180deg, var(--color-haolam-darkblue), var(--color-haolam-lightblue));padding: 22px;color: white;display: flex;flex-direction: column;gap: 14px;justify-content: center;}
.page h1 {font-size: 26px; line-height: 1.05; color: var(--color-haolam-darkblue);}
.subtitle {color: var(--muted); font-size: 17px; line-height: 1.5;}
.offer-meta {display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap;}
.badge {background: var(--light-bg); color: #0b1220; padding: 3px 12px; border-radius: 15px; font-size: 13px;}
.product {margin-top: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;}
.product img, .product_img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    background: #f3f4f6;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--muted);
}

.product-info {display: flex; flex-direction: column; gap: 6px;}
.product-info .title {font-size: 22px; font-weight: 700; color: var(--color-haolam-darkblue);}
.price-row {display: flex; align-items: baseline; gap: 12px; margin-top: 12px; flex-wrap: wrap;}
.original-price {font-size: 15px; color: var(--muted); text-decoration: line-through;}
.special-price {font-size: 32px; font-weight: 900; color: var(--accent);}
.small-note {color: var(--muted); font-size: 13px; margin-top: 6px;}
.cta-area {margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end;}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 32px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(2,6,23,0.45);
    white-space: nowrap;
}

.cta:active, .cta:hover {transform: translateY(1px); box-shadow: 0 1px 10px rgba(2,6,23,0.45);}
.secondary {background: transparent; border: 1px solid #d3d3d3; color: #0b1220; padding: 12px 16px; border-radius: 32px; font-size: 14px; text-decoration: none;}
.secondary:hover {border-color: var(--color-haolam-darkblue);}
.secondary:hover i {font-weight: bold !important;}
.countdown {background: rgba(255,255,255,0.06); padding: 12px; border-radius: 10px; font-weight: 700; font-size: 20px; text-align: center;}
.fineprint {font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.4;}
.fineprint a {font-weight: bold; color: white;}
.customer {font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 600;}
.legal {margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.72); line-height: 1.4;}
.page .muted {color: var(--muted);}

/* Responsive breakpoints for special offer */
@media (max-width: 680px) {
    .page h1 {margin: 0;}
    #content_body {padding: 0;}
    .page {padding: 0;}
    .card {grid-template-columns: 1fr; padding-bottom: 18px; box-shadow: none; display: flex; flex-direction: column; position: relative;}
    .card-right {flex: 1; overflow-y: scroll; padding: 0 28px; padding-bottom: 160px; min-height: 0;}
    .card-right-inner {border-radius: 10px; padding: 10px 30px;}
    .cta-area {justify-content: space-between;}
    .product-info {gap: 0;}
    .product-info .title {display: none;}
    .card-left {position: fixed; bottom: 23px; width: 100vw; height: 140px;}
    .price-row {margin: 0; gap: 6px;}
}

@media (max-width: 420px) {
    .card-right-inner {padding: 0;}
}

/* CART */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    animation: slideInOverlay 0.3s ease-out;
}

@keyframes slideInOverlay {from {opacity: 0;} to {opacity: 1;}}

.cart-modal {
    background: white;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUpCart 0.4s ease-out;
}

@keyframes slideUpCart {from {transform: translateY(100%);} to {transform: translateY(0);}}

.cart-header {display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #e5e5e5; direction: rtl;}
.cart-header h2 {margin: 0; font-size: 20px; color: var(--color-haolam-darkblue);}
.cart-close {background: none; border: none; font-size: 28px; cursor: pointer; color: var(--muted); padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;}
.cart-close:hover {color: var(--color-haolam-darkblue);}
.cart-items {flex: 1; padding: 16px; overflow-y: auto;}
.cart-item {display: flex; gap: 12px; padding: 12px; background: #f9f9f9; border-radius: 10px; margin-bottom: 12px; direction: rtl; align-items: center;}
.cart-item-image {width: 60px; height: 60px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;}
.cart-item-image img {width: 100%; height: 100%; object-fit: contain;}
.cart-item-info {flex: 1; display: flex; flex-direction: column; gap: 4px;}
.cart-item-title {font-weight: 600; color: var(--color-haolam-darkblue); font-size: 14px;}
.cart-item-type {font-size: 12px; color: var(--muted);}
.cart-item-price {font-weight: 700; color: var(--accent); font-size: 16px;}
.cart-footer {padding: 16px; border-top: 1px solid #e5e5e5; direction: rtl;}
.cart-summary {margin-bottom: 12px;}
.summary-row {display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; color: var(--color-haolam-darkblue);}
.total-price {color: var(--accent); font-size: 20px;}

/* Cart Icon Button */
.cart-icon-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(3, 156, 219, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.cart-icon-btn:hover {transform: scale(1.1); box-shadow: 0 6px 16px rgba(3, 156, 219, 0.6);}
.cart-icon-btn:active {transform: scale(0.95);}
.cart-icon-btn.show {display: flex;}
.cart-badge {position: absolute; top: -8px; right: -8px; background: #ff4444; color: white; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; border: 2px solid white;}

@media (max-width: 680px) {
    .cart-modal {max-width: 100%; border-radius: 20px 20px 0 0;}
    .cart-icon-btn {bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 20px;}
}
