.tj-page{font-family:Tajawal,Cairo,Arial,sans-serif;background:#fff;color:#050505;padding:18px 0 30px}.tj-breadcrumb{max-width:1320px;margin:0 auto 12px;font-size:13px;text-align:right}.tj-product-shell{max-width:1320px;margin:0 auto;display:grid;grid-template-columns:360px minmax(520px,1fr) 135px;gap:14px;direction:ltr;align-items:start}.tj-info-card{direction:rtl;background:#fffdf8;border:1px solid #d6a63d;border-radius:8px;padding:12px;box-shadow:0 2px 8px rgba(0,0,0,.06);order:1}.tj-main-image-wrap{order:2;border:2px solid #111;border-radius:4px;background:#fff;display:flex;align-items:center;justify-content:center;min-height:600px;overflow:hidden}.tj-thumbs{order:3;display:flex;flex-direction:column;gap:10px}.tj-title{font-size:32px;line-height:1.1;margin:0 0 14px;text-align:center;font-weight:900}.tj-title-line{height:1px;background:#d8c39d;margin:0 0 14px}.tj-section-title{font-size:18px;color:#e30012;text-align:center;margin:0 0 14px;font-weight:900}.tj-spec-table,.tj-size-table{width:100%;border-collapse:collapse;table-layout:fixed}.tj-spec-table th,.tj-spec-table td{border-bottom:1px solid #dac9ad;padding:8px 6px;text-align:center;font-size:15px;font-weight:800}.tj-spec-table th{border-left:1px solid #dac9ad}.tj-price-title{background:#e30012;color:#fff;font-size:17px;font-weight:900;text-align:center;padding:8px;border-radius:7px 7px 0 0;margin-top:10px}.tj-size-table{border:1px solid #111;border-radius:0 0 7px 7px;overflow:hidden}.tj-size-table th{background:#071321;color:#fff;padding:8px 5px;font-size:13px;text-align:center}.tj-size-table td{padding:10px 5px;border:1px solid #ddd;text-align:center;vertical-align:middle;font-weight:800;font-size:13px}.tj-size-table tr.is-selected{background:#eefde8}.tj-price{color:#e30012!important;font-size:17px!important}.tj-size-table input{width:16px;height:16px;accent-color:#159447}.tj-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border-radius:7px;color:#fff!important;text-decoration:none!important;font-weight:900;margin-top:10px;min-height:48px;font-size:18px}.tj-whatsapp{background:linear-gradient(#25c664,#0c8f39)}.tj-youtube{background:linear-gradient(#f20b17,#c9000b)}.tj-wa-icon{width:28px;height:28px;border:2px solid #fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1}.tj-yt-icon{background:#fff;color:#e30012;border-radius:6px;width:34px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:17px}.tj-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:8px}.tj-action{background:#090909;color:#fff;border:0;border-radius:5px;min-height:34px;font-size:12px;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px}.tj-heart{color:#e60012;font-size:22px;line-height:1}.tuhfa-fav-btn.active .tj-heart,.tuhfa-fav-btn.is-active .tj-heart{filter:drop-shadow(0 0 3px rgba(255,0,0,.4))}.tj-notes{border:1px solid #d6a63d;background:#fffaf0;border-radius:7px;margin-top:10px;padding:12px;text-align:right;font-size:13px;line-height:1.8}.tj-notes strong{display:block;text-align:center;margin-bottom:6px}.tj-main-image{max-width:100%;width:100%;height:auto;display:block}.tj-thumb{border:1px solid #d8a12e;border-radius:5px;background:#fff;padding:0;overflow:hidden;cursor:pointer;transition:.2s}.tj-thumb:hover{transform:scale(1.03);box-shadow:0 3px 10px rgba(0,0,0,.18)}.tj-thumb img{width:100%;height:110px;object-fit:cover;display:block}.tj-more{background:#0a0a0a;color:#fff;border:0;border-radius:5px;min-height:35px;font-weight:900;cursor:pointer}.tj-services{max-width:1320px;margin:28px auto 0;display:grid;grid-template-columns:repeat(5,1fr);background:#050505;color:#fff;border-top:2px solid #d6a63d;border-bottom:2px solid #d6a63d}.tj-services div{text-align:center;padding:22px 10px;border-left:1px solid #4a3a1d;font-weight:800}.woocommerce div.product form.cart,.woocommerce-tabs,.related.products,.product_meta{display:none!important}@media(max-width:1050px){.tj-product-shell{grid-template-columns:1fr;direction:rtl;padding:0 12px}.tj-info-card,.tj-main-image-wrap,.tj-thumbs{order:initial}.tj-thumbs{flex-direction:row;overflow:auto}.tj-thumb{min-width:90px}.tj-main-image-wrap{min-height:300px}.tj-services{grid-template-columns:1fr 1fr;margin-left:12px;margin-right:12px}}@media print{header,footer,.tj-thumbs,.tj-actions,.tj-youtube,.tj-whatsapp,.tj-services,.tj-breadcrumb{display:none!important}.tj-product-shell{display:block}.tj-info-card{box-shadow:none}.tj-main-image-wrap{border:none}}


/* Final icon and title polish */
.tj-section-title{font-size:26px!important;line-height:1.25!important;margin:12px 0 18px!important;color:#e30012!important;font-weight:900!important;}
.tj-title-line{margin-bottom:12px!important;}
.tj-btn{position:relative;}
.tj-wa-icon{width:34px!important;height:34px!important;border:2px solid #fff!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#18b957!important;box-shadow:0 0 0 2px rgba(255,255,255,.18) inset!important;}
.tj-wa-icon svg{width:24px!important;height:24px!important;display:block!important;fill:#fff!important;}
.tj-yt-icon{background:#fff!important;color:#e30012!important;border-radius:7px!important;width:42px!important;height:30px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 1px 2px rgba(0,0,0,.18)!important;}
.tj-yt-icon svg{width:30px!important;height:22px!important;display:block!important;}
.tj-yt-icon svg path:first-child{fill:#ff0000!important;}
.tj-yt-icon svg path:last-child{fill:#fff!important;}
.tj-heart{color:#e60012!important;font-size:24px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.tj-action{align-items:center!important;}
.tj-size-table td,.tj-size-table th{vertical-align:middle!important;text-align:center!important;}


/* v1.1.1: يعمل داخل قالب WooCommerce الأساسي بدون هيدر/فوتر مخصص */
body.single-product .tj-inside-theme{clear:both;width:100%;max-width:none;box-sizing:border-box;background:#fff;padding:14px 0 28px;overflow:hidden;}
body.single-product .tj-product-shell{box-sizing:border-box;direction:rtl;display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start;max-width:1180px;width:100%;margin:0 auto;padding:0 14px;}
body.single-product .tj-main-image-wrap{order:1;display:block;min-height:0!important;height:auto!important;border:2px solid #111;border-radius:7px;background:#fff;overflow:hidden;padding:0;}
body.single-product .tj-main-image{width:100%;height:auto;display:block;max-width:100%;}
body.single-product .tj-info-card{order:2;box-sizing:border-box;width:100%;}
body.single-product .tj-thumbs{display:flex!important;flex-direction:row!important;gap:10px;overflow-x:auto;padding:10px;background:#fff;border-top:1px solid #e3d2af;scroll-snap-type:x mandatory;}
body.single-product .tj-thumb{flex:0 0 92px;width:92px;height:92px;border:2px solid #d6a63d;background:#fff;border-radius:8px;scroll-snap-align:start;}
body.single-product .tj-thumb.is-active{box-shadow:0 0 0 2px #111 inset;}
body.single-product .tj-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
body.single-product .woocommerce-product-gallery,
body.single-product .summary.entry-summary,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .up-sells,
body.single-product .product_meta{display:none!important;}
body.single-product .tj-actions{grid-template-columns:1fr;gap:8px;}
body.single-product .tj-action{min-height:44px;font-size:15px;border-radius:7px;}
body.single-product .tuhfa-fav-btn{background:#111;}
body.single-product .tuhfa-fav-btn.is-active{background:#8b0000;}
body.single-product .tj-services{max-width:1180px;width:auto;margin:24px auto 0;}
@media(max-width:800px){
  body.single-product .tj-inside-theme{padding-top:10px;}
  body.single-product .tj-breadcrumb{padding:0 14px;margin-bottom:10px;font-size:14px;}
  body.single-product .tj-product-shell{display:flex!important;flex-direction:column!important;gap:12px;padding:0 10px;}
  body.single-product .tj-main-image-wrap{order:1!important;width:100%;}
  body.single-product .tj-thumbs{order:2!important;}
  body.single-product .tj-info-card{order:3!important;width:100%;padding:12px 10px;}
  body.single-product .tj-title{font-size:30px!important;}
  body.single-product .tj-section-title{font-size:26px!important;}
  body.single-product .tj-services{grid-template-columns:1fr;margin:18px 10px 0;}
}

/* v1.1.2: أزرار أجمل + مزامنة شكل المفضلة */
body.single-product .tj-btn{min-height:56px!important;border-radius:12px!important;font-size:19px!important;letter-spacing:0!important;box-shadow:0 5px 13px rgba(0,0,0,.16)!important;transition:transform .14s ease, filter .14s ease, box-shadow .14s ease!important;}
body.single-product .tj-btn:active, body.single-product .tj-action:active{transform:scale(.985)!important;}
body.single-product .tj-whatsapp{background:linear-gradient(180deg,#25D366 0%,#128C4A 100%)!important;border:1px solid rgba(255,255,255,.22)!important;}
body.single-product .tj-youtube{background:linear-gradient(180deg,#ff1d1d 0%,#c40000 100%)!important;border:1px solid rgba(255,255,255,.18)!important;}
body.single-product .tj-wa-icon{width:38px!important;height:38px!important;background:#10ad4d!important;border:2px solid #fff!important;border-radius:50%!important;box-shadow:0 1px 4px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.15)!important;}
body.single-product .tj-wa-icon svg{width:27px!important;height:27px!important;fill:#fff!important;}
body.single-product .tj-yt-icon{width:44px!important;height:32px!important;border-radius:9px!important;background:#fff!important;box-shadow:0 1px 4px rgba(0,0,0,.2)!important;}
body.single-product .tj-yt-icon svg{width:32px!important;height:23px!important;}
body.single-product .tj-actions{gap:9px!important;margin-top:11px!important;}
body.single-product .tj-action{min-height:48px!important;border-radius:12px!important;font-size:15px!important;box-shadow:0 4px 10px rgba(0,0,0,.13)!important;transition:transform .14s ease, background .14s ease, color .14s ease, border-color .14s ease!important;}
body.single-product .tj-favorite-action{background:#fffaf0!important;color:#141414!important;border:1.5px solid #d6a63d!important;}
body.single-product .tj-favorite-action .tj-heart{font-size:24px!important;color:#b40013!important;margin-inline-start:2px;}
body.single-product .tj-favorite-action.is-active,
body.single-product .tj-favorite-action.active{background:linear-gradient(180deg,#fff7df 0%,#f4d37f 100%)!important;color:#111!important;border-color:#c99324!important;}
body.single-product .tj-favorite-action.is-active .tj-heart,
body.single-product .tj-favorite-action.active .tj-heart{animation:tjHeartPop .34s ease;color:#e60012!important;}
@keyframes tjHeartPop{0%{transform:scale(.82)}55%{transform:scale(1.25)}100%{transform:scale(1)}}
body.single-product .tj-share, body.single-product .tj-print{background:#090909!important;color:#fff!important;border:1px solid #242424!important;}
@media(max-width:800px){body.single-product .tj-btn{min-height:54px!important;font-size:18px!important;}body.single-product .tj-action{min-height:48px!important;font-size:15px!important;}}

/* v2.0.0 — unified related products + duplicate theme output cleanup */
body.tj-product-builder-active .wp-block-post-title,
body.tj-product-builder-active .wp-block-post-terms,
body.tj-product-builder-active .wp-block-woocommerce-related-products,
body.tj-product-builder-active .wp-block-woocommerce-product-collection[data-collection*="related"],
body.tj-product-builder-active .related.products,
body.tj-product-builder-active .woocommerce-tabs,
body.tj-product-builder-active .summary.entry-summary {
  display:none!important;
}

/* keep the builder's own breadcrumb visible */
body.tj-product-builder-active .tj-page .tj-breadcrumb,
body.tj-product-builder-active .tj-page .woocommerce-breadcrumb {display:block!important;}

.tj-related-section{--tj-gold:#d6a530;--tj-ink:#171717;margin:34px auto 10px;padding:28px 0 10px;max-width:1500px;border-top:1px solid #dfd8ca;direction:rtl}
.tj-related-heading{text-align:right;margin-bottom:22px}
.tj-related-heading h2{margin:0;font:800 clamp(28px,2.7vw,42px)/1.25 inherit;color:#171717}
.tj-related-mark{display:flex;align-items:center;width:170px;margin:12px 0 0 auto}
.tj-related-mark span{height:2px;flex:1;background:linear-gradient(90deg,transparent,var(--tj-gold))}
.tj-related-mark span:last-child{background:linear-gradient(90deg,var(--tj-gold),transparent)}
.tj-related-mark b{width:13px;height:13px;border-radius:50%;background:var(--tj-gold);margin:0 8px}
.tj-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.tj-related-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border:1.5px solid rgba(214,165,48,.92);border-radius:17px;box-shadow:0 7px 22px rgba(61,43,9,.06);transition:transform .22s ease,box-shadow .22s ease}
.tj-related-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(111,75,8,.14)}
.tj-related-logo{position:absolute;z-index:3;top:10px;right:11px;width:66px;height:28px;display:flex;align-items:center;justify-content:center;opacity:.8;pointer-events:none}
.tj-related-logo img{display:block;width:100%;height:100%;object-fit:contain}
.tj-related-fav{position:absolute;z-index:4;top:10px;left:10px;width:41px;height:41px;min-width:41px;padding:0;border:1px solid rgba(214,165,48,.85);border-radius:12px;background:#fff;box-shadow:0 4px 12px rgba(35,25,7,.08);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.tj-related-fav:hover{transform:translateY(-1px) scale(1.04);border-color:#b87d0b;background:#fffdf8;box-shadow:0 7px 16px rgba(91,61,9,.14)}
.tj-related-fav:active{transform:scale(.93)}
.tj-related-fav svg{width:23px;height:23px;overflow:visible}
.tj-related-fav svg path{fill:transparent;stroke:#171717;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;transform-origin:center;transition:fill .2s ease,stroke .2s ease,transform .2s ease}
.tj-related-fav.active svg path,.tj-related-fav.is-added svg path{fill:#e30622;stroke:#e30622;animation:tjRelatedHeart .34s ease}
@keyframes tjRelatedHeart{0%{transform:scale(.72)}55%{transform:scale(1.22)}78%{transform:scale(.94)}100%{transform:scale(1)}}
.tj-related-image{height:260px;display:flex;align-items:center;justify-content:center;padding:26px 14px 6px;box-sizing:border-box;overflow:hidden;border-bottom:1px solid rgba(214,165,48,.88);background:#fff}
.tj-related-image img{width:112%;height:112%;max-width:none;object-fit:contain;transition:transform .32s ease}
.tj-related-card:hover .tj-related-image img{transform:scale(1.045)}
.tj-related-body{padding:13px 13px 14px;text-align:center;display:flex;flex-direction:column;flex:1}
.tj-related-body h3{margin:0 0 4px;font-size:16px;line-height:1.4;font-weight:800;min-height:44px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tj-related-body h3 a{color:#171717;text-decoration:none}
.tj-related-sku{font-size:12.5px;color:#777;margin-bottom:8px;min-height:18px}
.tj-related-meta{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-height:34px}
.tj-related-price{display:inline-flex;align-items:center;gap:5px;color:#e00018;font-size:14px;font-weight:800;white-space:nowrap}
.tj-related-price small{color:#444;font-size:12px;font-weight:500}
.tj-related-price strong{color:#e00018;font-size:18px;line-height:1}
.tj-related-price.request{font-size:13px}
.tj-related-options{background:#111;color:#d6a530;border:1px solid #d6a530;border-radius:9px;padding:5px 8px;font-size:12px;font-weight:800}
.tj-related-swatches{display:flex;justify-content:center;gap:9px;margin:10px 0 12px}
.tj-related-swatches span{width:17px;height:17px;border-radius:50%;border:2px solid #d8a52e;box-shadow:0 0 0 2px #fff}
.tj-related-swatches .gold{background:#d5a329}.tj-related-swatches .light{background:#f4e2ae}
.tj-related-view{height:47px;margin-top:auto;border:1.5px solid #d6a530;border-radius:9px;background:linear-gradient(135deg,#111,#242424);color:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:18px;font-size:16px;font-weight:800;transition:.2s}
.tj-related-view b{color:#d6a530;font-size:20px;font-weight:400}
.tj-related-view:hover{background:linear-gradient(135deg,#d9aa39,#b47a0f);color:#111;box-shadow:0 8px 18px rgba(181,122,15,.24)}
.tj-related-view:hover b{color:#111}

/* Integrated table-fix rules */
body.single-product .tj-size-table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
body.single-product .tj-size-table th,body.single-product .tj-size-table td{padding:8px 5px!important;font-size:14px!important;line-height:1.25!important;text-align:center!important;vertical-align:middle!important}
body.single-product .tj-size-table th:nth-child(1),body.single-product .tj-size-table td:nth-child(1){width:15%!important}
body.single-product .tj-size-table th:nth-child(2),body.single-product .tj-size-table td:nth-child(2){width:60%!important;font-size:13px!important;white-space:nowrap!important}
body.single-product .tj-size-table th:nth-child(3),body.single-product .tj-size-table td:nth-child(3){width:25%!important;font-size:14px!important}
body.single-product .tj-size-table td:nth-child(3){font-weight:800!important}

@media(max-width:1180px){.tj-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tj-related-image{height:250px}}
@media(max-width:700px){
  .tj-related-section{margin-top:24px;padding-top:22px}
  .tj-related-grid{grid-template-columns:1fr;gap:14px}
  .tj-related-image{height:255px}
  .tj-related-heading h2{font-size:28px}
  body.single-product .tj-size-table th,body.single-product .tj-size-table td{font-size:12px!important;padding:7px 3px!important}
  body.single-product .tj-size-table th:nth-child(2),body.single-product .tj-size-table td:nth-child(2){font-size:11px!important}
}

/* v2.1.0 — remove the duplicate lower breadcrumb and add a related-products carousel */
body.single-product > .woocommerce-breadcrumb,
body.single-product .site-main > .woocommerce-breadcrumb,
body.single-product .wp-site-blocks > .woocommerce-breadcrumb,
body.single-product .tj-related-section ~ .woocommerce-breadcrumb,
body.single-product .tj-related-section + .woocommerce-breadcrumb{display:none!important}
body.single-product .tj-breadcrumb .woocommerce-breadcrumb{display:block!important}

.tj-related-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.tj-related-heading-row .tj-related-heading{margin:0}
.tj-related-nav{display:flex;gap:9px;direction:ltr;flex:0 0 auto}
.tj-related-arrow{width:44px;height:44px;border:1px solid #d6a530;border-radius:12px;background:#fff;color:#111;font-size:30px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px rgba(35,25,7,.07);transition:.2s}
.tj-related-arrow:hover{background:#111;color:#d6a530;transform:translateY(-1px)}
.tj-related-arrow:disabled{opacity:.35;cursor:not-allowed;transform:none}
.tj-related-viewport{overflow:hidden;width:100%}
.tj-related-grid{display:flex!important;grid-template-columns:none!important;gap:18px!important;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 1px 10px}
.tj-related-grid::-webkit-scrollbar{display:none}
.tj-related-grid .tj-related-card{direction:rtl;flex:0 0 calc((100% - 54px)/4);scroll-snap-align:start;min-width:0}
@media(max-width:1050px){.tj-related-grid .tj-related-card{flex-basis:calc((100% - 18px)/2)}}
@media(max-width:700px){
 .tj-related-heading-row{align-items:center}
 .tj-related-nav{gap:6px}
 .tj-related-arrow{width:39px;height:39px;border-radius:10px;font-size:27px}
 .tj-related-grid .tj-related-card{flex-basis:88%}
}

/* v2.2.1 — place carousel arrows inside the related-products section */
.tj-related-section{position:relative}
.tj-related-heading-row{display:block!important;margin-bottom:18px!important}
.tj-related-nav{position:absolute!important;inset:0;pointer-events:none;z-index:8}
.tj-related-arrow{position:absolute!important;top:54%;transform:translateY(-50%);pointer-events:auto;z-index:9;background:#fff!important;color:#111!important;border:1px solid #d6a530!important;box-shadow:0 5px 16px rgba(35,25,7,.13)!important}
.tj-related-arrow:hover{background:#111!important;color:#d6a530!important;transform:translateY(-50%) scale(1.04)!important}
.tj-related-prev{left:10px!important}
.tj-related-next{right:10px!important}
.tj-related-viewport{position:relative;padding-inline:0}
@media(max-width:767px){
  .tj-related-arrow{top:58%;width:38px!important;height:38px!important;font-size:25px!important}
  .tj-related-prev{left:6px!important}.tj-related-next{right:6px!important}
}

/* v2.2.2 — related-products title only: match archive category heading */
body.single-product .tj-related-heading h2,
body.single-product #tj-related-title{
  font-family:"Cairo","Tajawal","Noto Kufi Arabic",Tahoma,Arial,sans-serif!important;
  font-size:clamp(40px,4vw,60px)!important;
  font-weight:900!important;
  line-height:1.22!important;
  letter-spacing:0!important;
  color:#111!important;
  margin:0!important;
}
@media(max-width:720px){
  body.single-product .tj-related-heading h2,
  body.single-product #tj-related-title{
    font-size:36px!important;
    line-height:1.28!important;
  }
}
