/* ===== TIBAT STORE - Laravel Edition ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root { --brand: #747474; --brand-dark: #5a5a5a; --red: #757575; --text: #222; --gray: #888; --bg: #fff; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Tajawal', sans-serif; direction: rtl; background: var(--bg); color: var(--text); }

/* ── Announcement Bar ── */
.announcement-bar {
    background: var(--brand); color: #fff; padding: 8px 16px;
    font-size: 14px; font-weight: 600; text-align: center; line-height: 1.4;
}

/* ── Header ── */
.header {
    background: #fff; border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 999;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; max-height: 56px;
}
.header-right { display: flex; align-items: center; }
.header-left { display: flex; align-items: center; gap: 14px; }
.logo { flex: 1; text-align: center; }
.logo img { max-height: 24px; width: auto; }
.hamburger {
    background: none; border: none; cursor: pointer; padding: 4px;
    display: flex; flex-direction: column; gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #333; border-radius: 2px; }
.search-icon { color: #333; display: flex; align-items: center; background: none; border: none; cursor: pointer; padding: 0; }
.cart-icon-wrap { position: relative; color: #757575; cursor: pointer; display: flex; align-items: center; }
.cart-badge {
    position: absolute; top: -6px; right: -6px; background: var(--brand);
    color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ── Search Bar ── */
.search-bar {
    background: #fff; padding: 10px 16px; border-bottom: 1px solid #eee;
}
.search-form { display: flex; gap: 8px; }
.search-input {
    flex: 1; border: 1.5px solid #ddd; border-radius: 8px; padding: 10px 14px;
    font-family: inherit; font-size: 14px; direction: rtl; text-align: right;
    outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: var(--brand); }
.search-submit {
    background: var(--brand); color: #fff; border: none; border-radius: 8px;
    padding: 10px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
    font-family: inherit;
}
.search-submit:hover { background: var(--brand-dark); }
.search-results {
    background: #fff; border-radius: 0 0 12px 12px; max-height: 350px; overflow-y: auto;
}
.search-results:empty { display: none; }
.search-result-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    text-decoration: none; color: var(--text); border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}
.search-result-item:hover { background: #fafafa; }
.search-result-item img { width: 45px; height: 45px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.search-result-info { flex: 1; direction: rtl; text-align: right; }
.search-result-name { font-size: 13px; font-weight: 600; line-height: 1.4; }
.search-result-price { font-size: 12px; color: var(--brand); font-weight: 700; }

/* ── Mobile Menu ── */
.menu-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 998;
}
.menu-overlay.open { display: block; }
.mobile-menu {
    display: none; position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
    background: #fff; z-index: 999; box-shadow: -4px 0 20px rgba(0,0,0,.15);
    padding: 20px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.menu-close { font-size: 28px; cursor: pointer; float: left; color: #333; background: none; border: none; }
.mobile-menu ul { list-style: none; margin-top: 40px; }
.mobile-menu li { border-bottom: 1px solid #f0f0f0; }
.mobile-menu li a { display: block; padding: 14px 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.mobile-menu li a:hover { color: var(--brand); }

/* ── Slider ── */
.slider { position: relative; width: 100%; max-height: 400px; overflow: hidden; }
.slider img { width: 100%; height: 400px; object-fit: cover; }
.slider-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3); text-align: center; padding: 20px;
}
.slider-overlay h1 {
    color: #fff; font-size: 28px; font-weight: 700; line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,.5); max-width: 600px;
}

/* ── Categories Ovals ── */
.categories-wrap { position: relative; }
.categories-section {
    display: flex; gap: 8px; padding: 12px 40px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    flex-wrap: nowrap;
}
.categories-section::-webkit-scrollbar { display: none; }
.cat-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.9); border: 1px solid #ddd; border-radius: 50%;
    width: 32px; height: 32px; font-size: 14px; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center; color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.cat-arrow:hover { background: #fff; border-color: var(--brand); }
.cat-arrow-right { right: 4px; }
.cat-arrow-left { left: 4px; }
.cat-oval {
    display: flex; align-items: center; justify-content: center;
    padding: 7px 16px; border-radius: 50px; white-space: nowrap;
    background: #fff; border: 1.5px solid #eee;
    text-decoration: none; transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cat-oval:hover { border-color: var(--brand); background: var(--brand); }
.cat-oval:hover span { color: #fff; }
.cat-oval span {
    font-size: 11px; font-weight: 600; color: var(--text);
    white-space: nowrap;
}

/* Keep pills for category page */
.categories-bar {
    display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }
.cat-pill {
    white-space: nowrap; padding: 7px 18px; border-radius: 20px;
    border: 1.5px solid #ddd; font-size: 13px; font-weight: 600;
    text-decoration: none; color: var(--text); background: #fff;
    transition: all .2s;
}
.cat-pill:hover, .cat-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Page Title ── */
.page-title-bar { padding: 16px; text-align: center; }
.page-title-bar h1 { font-size: 20px; color: var(--text); }

/* ══════════════════════════════════════
   PRODUCT GRID
   ══════════════════════════════════════ */
.products-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; padding: 12px;
}
.product-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: none; transition: box-shadow .2s, transform .2s;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); }
.product-img-wrap { overflow: hidden; border-radius: 16px 16px 0 0; }
.product-img-wrap img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; display: block; }
.product-info { padding: 10px 8px; text-align: center; }
.product-title {
    display: block; font-size: 13px; font-weight: 600; color: var(--text);
    text-decoration: none; line-height: 1.5; min-height: 38px;
    margin-top: 6px;
}
.product-price { margin: 6px 0; display: flex; justify-content: center; align-items: baseline; gap: 6px; }
.price-current { font-size: 15px; font-weight: 700; color: var(--text); }
.price-instead { font-size: 13px; color: #999; font-weight: 500; }
.price-old { font-size: 15px; color: #575757; text-decoration: line-through; }

.product-btns { display: flex; gap: 6px; margin-top: 6px; }
.btn-order {
    flex: 1; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
    text-decoration: none; text-align: center; display: flex; align-items: center; justify-content: center;
    background: #747474; color: #fff; transition: background .2s;
}
.btn-order:hover { background: #5a5a5a; }
.btn-cart {
    flex: 1; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
    text-decoration: none; text-align: center; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #868686; color: #fff; transition: background .2s; font-family: inherit;
}
.btn-cart:hover { background: #7a7a7a; }

/* ══════════════════════════════════════
   SINGLE PRODUCT PAGE
   ══════════════════════════════════════ */
.product-page { max-width: 700px; margin: 0 auto; padding: 20px 16px; }
.product-gallery { max-width: 500px; margin: 0 auto 20px; }
.gallery-main { position: relative; background: #F8F6F0; border-radius: 12px; }
.gallery-main img { width: 100%; border-radius: 12px; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.3); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: .3; transition: opacity .2s;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.gallery-arrow:hover { opacity: .7; }
.gallery-arrow-right { right: 10px; }
.gallery-arrow-left { left: 10px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.gallery-thumb {
    width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; transition: border-color .2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand); }

.product-details { text-align: right; max-width: 600px; margin: 0 auto; }
.product-page-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; text-align: right; direction: rtl; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-page-price { margin-bottom: 16px; display: flex; direction: rtl; align-items: center; gap: 8px; justify-content: flex-start; text-align: right; }
.product-page-price .price-label { font-size: 16px; font-weight: 700; color: var(--text); }
.product-page-price .price-values { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-page-price .price-current { font-size: 20px; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.product-page-price .price-current .price-cur { font-size: 14px; font-weight: 700; margin-inline-start: 4px; }
.product-page-price .price-instead { font-size: 13px; font-weight: 600; color: var(--gray); }
.product-page-price .price-old { font-size: 20px; font-weight: 700; color: #575757; text-decoration: line-through; line-height: 1.1; }
.product-page-price .price-old .price-cur { font-size: 14px; font-weight: 700; margin-inline-start: 4px; }
@media (max-width: 480px) {
    .product-page-title { font-size: 16px; }
    .product-page-price .price-current,
    .product-page-price .price-old { font-size: 18px; }
    .product-page-price .price-current .price-cur,
    .product-page-price .price-old .price-cur { font-size: 12px; }
}

/* Variants */
.variants-section { margin-bottom: 16px; }
.variant-group { margin-bottom: 12px; }
.variant-subgroup { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #eee; }
.variant-subgroup:last-of-type { border-bottom: none; }
.variant-subgroup .variant-label { color: var(--brand); font-size: 13px; }
.variant-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--text); text-align: center; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.variant-options-color { flex-wrap: wrap; justify-content: center; }
.variant-options-color .variant-btn { font-size: 13px; white-space: nowrap; }
.variant-btn {
    padding: 8px 16px; border: 1.5px solid #ddd; border-radius: 8px;
    background: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: inherit; color: var(--text); transition: all .2s;
}
.variant-btn:hover { border-color: #aaa; }
.variant-btn.active { background: #f5f5f5; color: var(--text); border-color: #999; box-shadow: inset 0 2px 4px rgba(0,0,0,.15); }
.order-variant-label { font-size: 12px; color: var(--brand); font-weight: 600; margin-top: 4px; }

/* Actions row */
.product-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; flex-wrap: nowrap; justify-content: center; }
.qty-label { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.btn-primary {
    flex: 1; height: 40px; border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
    background: #747474; color: #fff; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
}
.btn-primary:hover { background: #5a5a5a; }
.btn-secondary {
    flex: 1; height: 40px; border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
    background: #868686; color: #fff; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
}
.btn-secondary:hover { background: #7a7a7a; }
.btn-secondary.added { background: #5c5c5c !important; transition: background .3s; }

/* Quantity */
.qty-box {
    display: flex; align-items: stretch; border: 1.5px solid #ddd; border-radius: 8px;
    overflow: hidden; height: 40px; flex-shrink: 0; background: #fff;
}
.qty-input {
    width: 44px; text-align: center; border: none; font-size: 16px; font-weight: 700;
    height: 100%; -moz-appearance: textfield; font-family: inherit; background: #fff;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-arrows {
    display: flex; flex-direction: column; width: 28px; height: 100%;
    border-right: 1px solid #e5e5e5;
}
.qty-arrow {
    flex: 1; background: #fafafa; border: none; cursor: pointer; color: var(--brand);
    display: flex; align-items: center; justify-content: center; padding: 0;
    transition: background .15s, color .15s; user-select: none;
}
.qty-arrow + .qty-arrow { border-top: 1px solid #e5e5e5; }
.qty-arrow:hover { background: #f4f4f4; color: var(--brand-dark); }
.qty-arrow:active { background: #e4e4e4; }
.qty-arrow svg { display: block; }

/* Description */
.product-description { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; text-align: right; }
.product-description h3 { font-size: 16px; margin-bottom: 10px; color: var(--brand); text-align: center; }
.product-description h5:first-child { font-size: 22px; color: #747474; text-align: center; font-weight: 700; }
.product-description h5:first-child strong { color: inherit; font-size: inherit; }
.product-description p, .product-description li, .product-description ul,
.product-description div, .product-description h4 { text-align: right; direction: rtl; }

/* ══════════════════════════════════════
   ORDER FORM
   ══════════════════════════════════════ */
.order-section {
    background: #fff; border: 2px solid var(--brand); border-radius: 14px; padding: 24px;
    margin: 20px 0 0; max-width: 100%; direction: rtl; text-align: right;
}
.order-form-title { color: var(--brand); font-size: 20px; font-weight: 700; margin-bottom: 16px; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.order-product-summary {
    display: flex; gap: 12px; align-items: center; background: #fafafa;
    border-radius: 10px; padding: 12px; margin-bottom: 16px;
}
.order-product-summary img { width: 55px; height: 55px; object-fit: cover; border-radius: 8px; }
.order-price { color: var(--brand); font-weight: 700; font-size: 15px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 13px; color: #444; }
.req { color: var(--red); }
.form-group input, .form-group select, .form-group textarea {
    border: 1.5px solid #ddd; border-radius: 8px; padding: 10px 12px;
    font-family: inherit; font-size: 14px; direction: rtl; text-align: right;
    width: 100%; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); }

.order-totals { background: #f9f9f9; border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #666; border-bottom: 1px solid #eee; }
.total-row:last-child { border-bottom: none; }
.grand-total { font-size: 18px !important; font-weight: 700 !important; color: var(--brand) !important; padding-top: 8px; }

.form-error { background: #fef2f2; color: #5c5c5c; border-radius: 8px; padding: 12px; margin: 10px 0; text-align: center; font-weight: 600; }
.form-success { background: #f8f8f8; color: #474747; border-radius: 8px; padding: 16px; margin: 10px 0; text-align: center; font-weight: 700; font-size: 16px; }

.submit-btn {
    width: 100%; background: var(--brand); color: #fff; border: none; border-radius: 10px;
    padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 4px;
    font-family: inherit;
}
.submit-btn:hover { background: var(--brand-dark); }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; }

.trust-badges { display: flex; justify-content: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.trust-badges span { font-size: 11px; color: #777; font-weight: 600; background: #f5f5f5; padding: 5px 10px; border-radius: 16px; }

/* ── Static Pages ── */
.static-page {
    max-width: 700px; margin: 0 auto; padding: 24px 16px;
    direction: rtl; text-align: right; line-height: 1.8;
}
.static-page h1 { font-size: 24px; color: var(--brand); margin-bottom: 8px; }
.static-page .last-updated { font-size: 12px; color: #999; margin-bottom: 24px; }
.static-page h2 { font-size: 17px; color: var(--text); margin: 20px 0 8px; }
.static-page p { font-size: 14px; color: #555; margin-bottom: 12px; }
.static-page ul { padding-right: 20px; margin-bottom: 12px; }
.static-page li { font-size: 14px; color: #555; margin-bottom: 6px; }
.static-page a { color: var(--brand); }

/* ── Messenger ── */
.messenger-btn {
    position: fixed; bottom: 20px; right: 20px; z-index: 999;
    width: 45px; height: 45px; border-radius: 50%;
    background: #6a6a6a; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(106,106,106,4); animation: bounce 2s infinite;
    text-decoration: none;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Footer ── */
.footer {
    background: #fafafa; padding: 20px; text-align: center; border-top: 1px solid #eee;
}
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; }
.footer-social a { color: #aaa; display: flex; transition: color .2s; }
.footer-social a:hover { color: var(--brand); }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: #999; text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { font-size: 11px; color: #bbb; }

/* ══════════════════════════════════════
   CART PAGE
   ══════════════════════════════════════ */
.cart-page {
    max-width: 800px; margin: 0 auto; padding: 16px; direction: rtl; text-align: right;
}
.cart-title {
    font-size: 22px; font-weight: 700; color: var(--brand); text-align: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee;
}
.cart-empty {
    text-align: center; padding: 60px 20px; color: #999;
}
.cart-empty-icon { font-size: 60px; margin-bottom: 12px; }
.cart-empty p { font-size: 18px; font-weight: 600; }

.cart-items { margin-bottom: 20px; }
.cart-item {
    display: flex; gap: 12px; align-items: center; background: #fff;
    border-radius: 16px; padding: 12px; margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 1px solid #f0f0f0;
}
.cart-item-img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 12px; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--brand); font-weight: 600; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 4px; }

.cart-item-qty {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.cart-qty-btn {
    width: 32px; height: 32px; border: 1.5px solid #ddd; border-radius: 8px;
    background: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--text);
    font-family: inherit; transition: all .2s;
}
.cart-qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.cart-qty-value { font-size: 15px; font-weight: 700; min-width: 24px; text-align: center; }

.cart-item-total {
    font-size: 15px; font-weight: 700; color: var(--brand); white-space: nowrap; min-width: 70px; text-align: center;
}
.cart-item-remove {
    background: none; border: none; color: #ccc; font-size: 20px; cursor: pointer;
    padding: 4px; transition: color .2s; flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--red); }

.cart-order-section {
    background: #fff; border: 2px solid var(--brand); border-radius: 14px; padding: 24px;
    direction: rtl; text-align: right;
}

/* ══════════════════════════════════════
   THANK YOU PAGE
   ══════════════════════════════════════ */
.thankyou-page {
    max-width: 600px; margin: 0 auto; padding: 40px 16px; text-align: center; direction: rtl;
}
.thankyou-icon { font-size: 64px; margin-bottom: 16px; }
.thankyou-page h1 { font-size: 24px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.thankyou-order-number { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.thankyou-subtitle { font-size: 15px; color: #666; margin-bottom: 24px; }

.thankyou-summary {
    background: #fafafa; border-radius: 16px; padding: 20px; text-align: right; margin-bottom: 24px;
}
.thankyou-summary h3 { font-size: 16px; color: var(--brand); margin-bottom: 12px; font-weight: 700; }
.thankyou-item {
    display: flex; justify-content: space-between; gap: 8px; padding: 8px 0;
    font-size: 14px; border-bottom: 1px solid #eee;
}
.thankyou-item-name { flex: 1; font-weight: 600; }
.thankyou-totals { margin-top: 12px; }

.thankyou-btn {
    display: inline-block; padding: 14px 40px; text-decoration: none;
    border-radius: 10px; font-size: 16px; font-weight: 700;
    background: var(--brand); color: #fff; transition: background .2s;
}
.thankyou-btn:hover { background: var(--brand-dark); }

/* Upsell Box */
.upsell-box {
    background: linear-gradient(135deg, #f9f9f9, #fff); border: 2px solid var(--brand);
    border-radius: 16px; padding: 24px; margin-top: 20px; text-align: center;
}
.upsell-icon { font-size: 40px; margin-bottom: 8px; }
.upsell-box h3 { font-size: 17px; font-weight: 700; color: var(--brand); margin-bottom: 8px; line-height: 1.6; }
.upsell-subtitle { font-size: 13px; color: #666; margin-bottom: 16px; }
.upsell-progress {
    background: #eee; border-radius: 20px; height: 12px; overflow: hidden; margin-bottom: 8px;
}
.upsell-progress-bar {
    background: linear-gradient(90deg, var(--brand), #868686); height: 100%; border-radius: 20px;
    transition: width .5s ease;
}
.upsell-progress-labels {
    display: flex; justify-content: space-between; font-size: 11px; color: #999; margin-bottom: 16px;
}
.upsell-btn {
    display: inline-block; padding: 14px 32px; border-radius: 10px;
    font-size: 15px; font-weight: 700; text-decoration: none;
    background: #868686; color: #fff; transition: background .2s;
}
.upsell-btn:hover { background: #7a7a7a; }

/* Upsell banner on shop page */
.upsell-btns-area { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.upsell-confirm-btn {
    display: block; width: 100%; padding: 14px; border-radius: 10px;
    font-size: 15px; font-weight: 700; text-align: center; cursor: pointer;
    border: none; font-family: 'Tajawal', sans-serif; text-decoration: none;
}
.upsell-pay { background: var(--brand); color: #fff; }
.upsell-pay:hover { background: var(--brand-dark); }
.upsell-continue { background: #868686; color: #fff; }
.upsell-continue:hover { background: #7a7a7a; }
.upsell-free { background: #868686; color: #fff; font-size: 16px; }
.upsell-free:hover { background: #7a7a7a; }

.upsell-remaining-info {
    background: #f9f9f9; border: 1.5px solid var(--brand); border-radius: 10px;
    padding: 12px; text-align: center; font-size: 14px; color: var(--brand);
    margin: 10px 0; font-weight: 600;
}
.upsell-banner {
    background: #868686; color: #fff; padding: 10px 16px;
    text-align: center; font-size: 13px; font-weight: 600;
}

/* ══════════════════════════════════════
   ABOUT VALUES
   ══════════════════════════════════════ */
.about-values {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px;
}
.about-value-card {
    background: #fafafa; border-radius: 16px; padding: 20px; text-align: center;
    border: 1px solid #f0f0f0;
}
.about-value-icon { font-size: 32px; margin-bottom: 8px; }
.about-value-card h3 { font-size: 16px; color: var(--brand); margin-bottom: 6px; font-weight: 700; }
.about-value-card p { font-size: 13px; color: #666; line-height: 1.7; }

/* ══════════════════════════════════════
   RELATED PRODUCTS
   ══════════════════════════════════════ */
.related-products {
    max-width: 900px; margin: 20px auto; padding: 0 12px;
}
.related-products-title {
    font-size: 20px; font-weight: 700; color: var(--brand); text-align: center;
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #eee;
}
.related-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 991px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; }
    .product-img-wrap img { height: auto; }
    .product-title { font-size: 12px; min-height: 34px; }
    .product-page { padding: 10px; }
    .product-gallery { max-width: 100%; }
    .order-section { margin: 10px 0 0; }
    .slider img, .slider { max-height: 250px; }
    .slider img { height: 250px; }
    .slider-overlay h1 { font-size: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .order-section { margin: 10px 8px; padding: 16px 12px; }
    .product-actions { flex-wrap: nowrap; }
    .btn-primary, .btn-secondary { font-size: 12px; height: 38px; }
    .announcement-bar { font-size: 12px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .about-values { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .cart-order-section { padding: 16px 12px; }
}
@media (max-width: 480px) {
    .product-img-wrap img { height: auto; }
    .product-title { font-size: 11px; }
    .slider-overlay h1 { font-size: 17px; }
}

/* ── Sticky Order Bar (Mobile) ── */
.sticky-order-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; padding: 10px 16px; box-shadow: 0 -2px 10px rgba(0,0,0,.1);
    z-index: 998; justify-content: space-between; align-items: center;
}
.sticky-price { font-size: 18px; font-weight: 700; color: var(--brand); }
.sticky-order-btn {
    background: var(--brand); color: #fff; border: none; border-radius: 8px;
    padding: 10px 24px; font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: inherit;
}
@media (max-width: 768px) {
    .sticky-order-bar { display: flex; }
    .messenger-btn { bottom: 70px; }
}

/* ── Fullscreen Image Overlay ── */
.fullscreen-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.9);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.fullscreen-overlay img { max-width: 95%; max-height: 95%; object-fit: contain; border-radius: 8px; }
.fullscreen-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; }

/* ══════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════ */
.lp-container { max-width: 1100px; margin: 0 auto; padding: 20px 24px; }
.lp-product { display: flex; gap: 36px; }
.lp-gallery { flex: 1; position: sticky; top: 60px; align-self: flex-start; }
.lp-info { flex: 1; text-align: right; }
.lp-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; line-height: 1.5; color: var(--text); }

/* Features */
.lp-features { background: #f9f9f9; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.lp-feature { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: #444; font-weight: 500; }
.lp-feature-icon { color: #868686; font-weight: 700; font-size: 16px; flex-shrink: 0; }

/* ── Add-ons ── */
.lp-addons { margin: 20px 0; padding: 20px; background: linear-gradient(135deg, #f9f9f9, #fff); border: 2px solid var(--brand); border-radius: 14px; }
.lp-addons-title { font-size: 18px; font-weight: 700; color: var(--brand); margin-bottom: 14px; text-align: center; }

.lp-addon-card {
    display: flex; align-items: center; background: #fff;
    border: 2px solid #eee; border-radius: 12px; padding: 12px;
    margin-bottom: 10px; transition: all .2s; cursor: pointer;
}
.lp-addon-card:last-child { margin-bottom: 0; }
.lp-addon-card:hover { border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.lp-addon-card.selected { border-color: var(--brand); background: #f9f9f9; }

.lp-addon-label {
    display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer;
    -webkit-user-select: none; user-select: none;
}
.lp-addon-check { display: none; }
.lp-addon-checkbox-custom {
    width: 24px; height: 24px; border: 2px solid #ddd; border-radius: 6px;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: all .2s; background: #fff;
}
.lp-addon-check:checked + .lp-addon-checkbox-custom {
    background: var(--brand); border-color: var(--brand);
}
.lp-addon-check:checked + .lp-addon-checkbox-custom::after {
    content: '\2713'; color: #fff; font-size: 14px; font-weight: 700;
}

.lp-addon-img {
    width: 60px; height: 60px; object-fit: cover; border-radius: 10px;
    flex-shrink: 0; cursor: pointer; border: 1px solid #eee; transition: transform .2s;
}
.lp-addon-img:hover { transform: scale(1.05); }
.lp-addon-text { flex: 1; }
.lp-addon-name { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.lp-addon-price { display: block; font-size: 15px; font-weight: 700; color: var(--brand); }
.lp-addon-old-price { font-size: 12px; color: #bbb; text-decoration: line-through; font-weight: 500; margin-right: 4px; }

/* Add-ons summary in order form */
.lp-addons-summary { background: #f8f8f8; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.lp-addon-summary-item { display: flex; justify-content: space-between; font-size: 13px; color: #444; padding: 4px 0; font-weight: 600; }

/* Order section on landing page */
.lp-order-section { display: block !important; margin-top: 20px; }

/* ── Add-on Modal ── */
.lp-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 9999; align-items: center; justify-content: center; padding: 20px;
}
.lp-modal-overlay.open { display: flex; }
.lp-modal {
    background: #fff; border-radius: 16px; max-width: 500px; width: 100%;
    max-height: 85vh; overflow-y: auto; position: relative; padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.lp-modal-close {
    position: absolute; top: 12px; left: 12px; background: #f0f0f0;
    border: none; width: 36px; height: 36px; border-radius: 50%;
    font-size: 22px; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    color: #666; transition: all .2s;
}
.lp-modal-close:hover { background: #ddd; color: #333; }

.lp-modal-main-img { width: 100%; border-radius: 12px; margin-bottom: 12px; }
.lp-modal-gallery { margin-bottom: 12px; }
.lp-modal-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.lp-modal-thumb {
    width: 55px; height: 55px; object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 2px solid transparent; transition: border-color .2s;
}
.lp-modal-thumb:hover { border-color: var(--brand); }

.lp-modal-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lp-modal-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.lp-modal-lp-price {
    background: #f9f9f9; border: 1.5px solid var(--brand); border-radius: 8px;
    padding: 10px 14px; font-size: 15px; color: var(--brand); margin-bottom: 12px;
    text-align: center;
}
.lp-modal-lp-price strong { font-size: 17px; }
.lp-modal-desc { font-size: 13px; color: #555; line-height: 1.8; direction: rtl; text-align: right; }
.lp-modal-desc p, .lp-modal-desc li, .lp-modal-desc ul { text-align: right; direction: rtl; }

/* ── Landing Responsive ── */
@media (max-width: 768px) {
    .lp-container { padding: 10px; }
    .lp-product { flex-direction: column; gap: 16px; }
    .lp-gallery { position: static; }
    .lp-title { font-size: 20px; }
    .lp-addons { padding: 14px; margin: 14px 0; }
    .lp-addon-img { width: 50px; height: 50px; }
    .lp-addon-name { font-size: 13px; }
    .lp-addon-price { font-size: 14px; }
    .lp-modal { margin: 10px; padding: 16px; max-height: 90vh; }
    .lp-order-section { margin: 10px 0; padding: 16px 12px; }
}

/* Trust Strip */
.trust-strip {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
    margin: 16px 0; padding: 12px; background: #f8fdf9; border-radius: 10px;
    border: 1px solid #efefef;
}
.trust-strip span { font-size: 13px; font-weight: 600; color: #666666; display: flex; align-items: center; gap: 4px; }

/* Free Shipping Nudge */
.free-shipping-nudge {
    text-align: center; margin: 12px 0 16px; padding: 10px 20px;
    background: #fff; border-radius: 8px;
    border: 2px dashed var(--brand); cursor: pointer; transition: all .2s;
}
.free-shipping-nudge:hover { background: var(--brand); }
.free-shipping-nudge:hover span { color: #fff; }
.free-shipping-nudge:active { transform: scale(.98); }
.free-shipping-nudge span { font-size: 14px; font-weight: 700; color: var(--brand); transition: color .2s; }

/* We Care */
.we-care { font-size: 13px; color: #999; font-weight: 500; letter-spacing: 0.5px; }
.we-care small { font-size: 9px; vertical-align: middle; }

/* Free shipping msg */
.free-shipping-msg { text-align: center; margin-top: 6px; padding: 8px; background: #efefef; border-radius: 8px; }
.free-shipping-msg span { font-size: 13px; font-weight: 700; color: #5c5c5c; }
.shipping-strikethrough { text-decoration: line-through; color: #999 !important; }

@media (max-width: 768px) {
    .trust-strip { gap: 6px; padding: 8px 6px; }
    .trust-strip span { font-size: 10px; }
    .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
}

/* Cross-sell card (compact — matches baraa) */
.cross-sell-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    width: 100%;
    direction: rtl;
}
.cross-sell-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: zoom-in;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.cross-sell-img:hover {
    transform: scale(1.04);
    box-shadow: 0 3px 10px rgba(173,173,173,0.35);
}
.cross-sell-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #f4f4f4 100%);
    border: 2px dashed #adadad;
    border-radius: 8px;
    padding: 8px 16px;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s;
}
.cross-sell-card:hover {
    background: linear-gradient(135deg, #f4f4f4 0%, #ebebeb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(173,173,173,0.25);
}
.cross-sell-card.added {
    background: linear-gradient(135deg, #efefef 0%, #d9d9d9 100%);
    border-color: #868686;
}
.cross-sell-title {
    font-weight: 700;
    color: #545454;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    text-align: center;
}
.cross-sell-card.added .cross-sell-title { color: #5c5c5c; }
@media (max-width: 480px) {
    .cross-sell-title { font-size: 12px; white-space: normal; }
    .cross-sell-img { width: 48px; height: 48px; }
    .cross-sell-card { padding: 7px 10px; }
}

/* Cross-sell Modal */
.cs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: csFade 0.2s ease-out;
}
.cs-modal-overlay.open { display: flex; }
@keyframes csFade { from { opacity: 0; } to { opacity: 1; } }
.cs-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: csSlide 0.25s ease-out;
    direction: rtl;
}
@keyframes csSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cs-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cs-modal-close:hover { background: #f5f5f5; color: #424242; }
.cs-modal-gallery {
    padding: 16px 16px 0;
}
.cs-modal-gallery img { max-width: 100%; height: auto; display: block;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    background: #f5f5f5;
}
.cs-modal-body {
    padding: 16px;
}
.cs-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}
.cs-modal-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.cs-price-now {
    font-size: 26px;
    font-weight: 800;
    color: #adadad;
}
.cs-price-old {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
}
.cs-modal-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
    background: #fafafa;
    padding: 14px 16px;
    border-radius: 8px;
}
.cs-modal-desc h3 { font-size: 16px; color: #545454; margin: 0 0 10px; }
.cs-modal-desc ul { padding-right: 18px; margin: 8px 0; }
.cs-modal-desc li { margin: 4px 0; }
.cs-modal-desc p { margin: 6px 0; }
.cs-color-section { margin-bottom: 18px; }
.cs-color-label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.cs-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cs-color-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 22px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    color: #333;
    font-weight: 600;
}
.cs-color-btn:hover { border-color: #adadad; }
.cs-color-btn.active {
    background: #adadad;
    border-color: #adadad;
    color: #fff;
}
.cs-add-btn {
    width: 100%;
    background: linear-gradient(135deg, #adadad 0%, #9a9a9a 100%);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.cs-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(173,173,173,0.4);
}
.cs-add-btn.added {
    background: linear-gradient(135deg, #868686 0%, #6a6a6a 100%);
}
@media (max-width: 480px) {
    .cs-modal { max-width: 94vw; }
    .cs-modal-title { font-size: 17px; }
    .cs-price-now { font-size: 22px; }
}

/* Gift variant: image + text stacked */
.variant-options-gift { gap: 12px; flex-wrap: wrap; justify-content: center; }
.variant-btn-gift {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    width: 110px;
    min-height: 130px;
    text-align: center;
    line-height: 1.2;
    font-size: 12px;
    white-space: normal;
}
.variant-btn-gift .variant-gift-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    background: #fafafa;
}
.variant-btn-gift .variant-btn-text { display: block; }
@media (max-width: 480px) {
    .variant-btn-gift { width: 100px; min-height: 120px; }
    .variant-btn-gift .variant-gift-img { width: 76px; height: 76px; }
}

/* ── Top announcement bar (tagline) ── */
.topbar {
    background: #000;
    color: #fff;
    text-align: center;
    font-family: "Tajawal", sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 600;
    padding: 8px 16px;
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .topbar { font-size: 10px; letter-spacing: 3px; padding: 7px 12px; }
}

/* ── Slider mobile responsive ── */
@media (max-width: 768px) {
    .slider { max-height: none; }
    .slider img {
        height: auto;
        max-height: 70vh;
        object-fit: contain;
        background: #fff;
    }
}
@media (max-width: 480px) {
    .slider img { max-height: 60vh; }
}

/* ── Brand B&W override (final, wins by specificity) ── */
:root {
    --primary: #000;
    --primary-dark: #000;
    --accent: #000;
    --success: #000;
    --bg: #fff;
    --text: #1a1a1a;
    --border: #e5e5e5;
}
.btn-primary, .btn, .add-to-cart, .buy-now,
button[type="submit"], input[type="submit"] {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}
.btn-primary:hover, .btn:hover, .add-to-cart:hover, .buy-now:hover,
button[type="submit"]:hover {
    background: #333 !important;
    border-color: #333 !important;
}
.btn-outline, .btn-secondary {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}
.price, .sale-price, .product-price, .total {
    color: #000 !important;
}
.old-price, .original-price, .strike { color: #888 !important; }
.badge, .label, .tag { background: #000 !important; color: #fff !important; }
.badge-sale, .discount-badge { background: #000 !important; color: #fff !important; }
a { color: #000; }
a:hover { color: #555; }
.success, .alert-success, .text-success { color: #000 !important; }
.success, .alert-success { background: #f5f5f5 !important; border-color: #ccc !important; }
.cart-badge { background: #000 !important; color: #fff !important; }
.color-swatch.selected, .variant.selected, .size.selected,
.option.selected, [class*="selected"] {
    border-color: #000 !important;
    outline: 2px solid #000 !important;
}
.topbar { background: #000 !important; color: #fff !important; }
.footer { background: #000 !important; color: #fff !important; }
.footer a { color: #fff !important; }
.footer a:hover { color: #ccc !important; }
