*{box-sizing:border-box}
body{margin:0;background:#f6f6f6;color:#222;font-family:Cairo,sans-serif}
a{text-decoration:none;color:inherit}

/* HEADER */
.site-header{width:100%;height:110px;display:flex;justify-content:center;align-items:center;padding:5px 15px}
.header-content{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;max-width:700px}
.header-logo{width:180px;height:100px;margin-top:10px;object-fit:contain;flex-shrink:0}
.header-text{position:relative;flex:1;height:50px;display:flex;align-items:center;justify-content:center;margin-top:15px}
.fade-text{position:absolute;width:100%;margin:0;padding:0 5px;opacity:0;font-size:16px;font-weight:700;line-height:1.3;text-align:center;animation:fadeInOut 4s infinite}
.p1{animation-delay:0s}.p2{animation-delay:2s}
@keyframes fadeInOut{0%{opacity:0}10%{opacity:1}40%{opacity:1}50%{opacity:0}100%{opacity:0}}

/* SEARCH */
.search{position:relative;width:100%;max-width:500px;margin:0 auto}
.search input{width:100%;height:40px;border:1px solid #ddd;border-radius:7px;padding:0 42px 0 12px;font-size:13px;background:#fff;outline:none}
.search input:focus{border-color:#bbb;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.search button{position:absolute;right:4px;top:4px;width:32px;height:32px;border:0;border-radius:5px;background:#d90000;color:#fff;font-size:13px;cursor:pointer}
#searchResults{position:absolute;top:46px;left:0;right:0;background:#fff;border:1px solid #ddd;border-radius:7px;box-shadow:0 6px 18px rgba(0,0,0,.12);z-index:9999;display:none;overflow:hidden;max-height:320px;overflow-y:auto}
.search-result{display:flex;align-items:center;gap:8px;padding:7px;border-bottom:1px solid #eee;cursor:pointer;background:#fff}
.search-result:last-child{border-bottom:none}
.search-result:hover{background:#f8f8f8}
.search-result img{width:45px;height:45px;object-fit:contain;border-radius:5px;border:1px solid #eee;flex-shrink:0}
.search-result-info{flex:1;text-align:right}
.search-result-name{font-weight:700;font-size:12px;color:#222}
.search-result-price{color:#d90000;font-weight:800;font-size:11px;margin-top:1px}
.search-no-result,.search-loading{padding:10px;text-align:center;color:#777;font-size:12px}

/* PRODUCT */
.product{background:#fff;margin:30px auto;padding:25px;border-radius:10px;box-shadow:0 2px 15px #0000000b}
.gallery{position:sticky;top:15px}
.main-img{height:420px;border:1px solid #eee;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#fff}
.main-img img{max-width:100%;max-height:100%;object-fit:contain}
.thumbs{display:flex;gap:8px;margin-top:10px}
.thumb{width:70px;height:70px;padding:4px;background:#fff;border:1px solid #ddd;border-radius:6px;cursor:pointer}
.thumb.active{border:2px solid #d90000}
.thumb img{width:100%;height:100%;object-fit:contain}
.brand{color:#d90000;font-weight:800;font-size:14px}
h1{font-size:29px;font-weight:800;margin:6px 0 5px}
.ref,.reviews{color:#777;font-size:13px}
.price-box{border-top:1px solid #eee;border-bottom:1px solid #eee;padding:17px 0;margin:15px 0}
.price{font-size:30px;font-weight:800;color:#d90000}
.stock{color:#00c317;font-weight:700;font-size:14px;margin-bottom:15px}

/* QUANTITY */
.quantity{display:flex;width:135px;height:43px;border:1px solid #ddd;border-radius:6px;overflow:hidden;margin-bottom:12px}
.quantity button{width:40px;border:0;background:#f2f2f2;font-size:20px;cursor:pointer}
.quantity button:hover{background:#e5e5e5}
.quantity input{width:55px;border:0;text-align:center;font-weight:700;background:#fff}

/* ORDER FORM */
.form-section{max-width:760px;margin:20px auto;background:#fff;color:#222;padding:20px 15px;border:1px solid #eee;box-shadow:0 4px 18px rgba(0,0,0,.08);font-size:13px;border-radius:10px}
.form-section h2{font-size:21px;margin-bottom:15px;color:#111;font-weight:700;border-right:4px solid #d90000;padding-right:10px}
.form-section input,.form-section select{width:100%;padding:11px;margin-bottom:10px;border:1px solid #ddd;border-radius:7px;font-family:inherit;font-size:14px;background:#fff;color:#222;direction:rtl}
.form-section input:focus,.form-section select:focus{outline:none;border-color:#d90000;box-shadow:0 0 0 2px rgba(217,0,0,.08)}
.delivery{display:flex;gap:10px;margin:10px 0}
.delivery label{flex:1;background:#f8f8f8;color:#222;padding:10px;border:1px solid #ddd;border-radius:7px;cursor:pointer;text-align:center;transition:.2s}
.delivery label:has(input:checked){border-color:#d90000;background:#fff5f5;box-shadow:0 0 0 1px #d90000}
.delivery input{width:auto;margin:0 5px}
.delivery .price{font-size:14px;color:#d90000}
#totalBox{display:block;background:#111;color:#fff;padding:12px;border-radius:7px;margin:10px 0;font-size:15px;font-weight:700;text-align:center}
#totalPrice{color:#FFD700;font-size:18px}
.form-section .btn-warning{background:#FFD700;border-color:#FFD700;color:#111}
.form-section .btn-warning:hover{background:#e6c200;border-color:#e6c200}

/* FEATURES */
.features{border-top:1px solid #eee;margin-top:20px;padding-top:17px}
.feature{display:flex;gap:10px;align-items:center;margin:12px 0;font-size:13px}
.feature i{color:#d90000;font-size:20px}

/* DETAILS */
.details{background:#fff;border-radius:10px;padding:25px;margin-bottom:30px}
.tabs{display:flex;border-bottom:1px solid #ddd;margin-bottom:20px}
.tab{background:none;border:0;padding:11px 20px;font-family:inherit;font-weight:700;color:#777}
.tab.active{color:#d90000;border-bottom:3px solid #d90000}
.description{font-size:14px;line-height:2;color:#444}
.description h2{font-size:21px;color:#222}
.description h3{font-size:18px;color:#222;margin-top:20px}
.specs{width:100%;border-collapse:collapse}
.specs td{padding:10px;border-bottom:1px solid #eee}
.specs td:first-child{font-weight:700;width:40%}

/* FOOTER */
footer{background:#111;color:#aaa;padding:35px 0 15px;font-size:13px;text-align:center}
footer h4{color:#fff;font-size:17px}
footer .row{justify-content:center}
footer .col-md-4{text-align:center}
.footer-bottom{border-top:1px solid #333;margin-top:20px;padding-top:15px;text-align:center}

/* MOBILE */
@media(max-width:576px){

.site-header{height:60px;padding:0 10px}
.header-content{gap:2px;max-width:100%}
.header-logo{width:120px;height:45px;margin:0;padding-left:10px}
.header-text{height:32px;margin-top:2px}
.fade-text{font-size:9px;line-height:1.1;padding:0}

.container{padding-left:8px;padding-right:8px}

/* MOBILE SEARCH */
.search{max-width:100%;padding:0 5px;margin:0 0 7px}
.search input{height:36px;font-size:11px;padding-right:38px}
.search button{width:28px;height:28px;top:4px;right:9px;font-size:11px}
#searchResults{top:40px;max-height:280px;border-radius:7px}
.search-result{padding:5px;gap:7px}
.search-result img{width:40px;height:40px}
.search-result-name,.search-result-price{font-size:10px}
.search-no-result,.search-loading{padding:8px;font-size:10px}

.product{margin:7px 0 10px;padding:9px;border-radius:6px}
.product .row{--bs-gutter-x:0;--bs-gutter-y:0}
.gallery{position:static}
.main-img{height:220px;width:100%;border-radius:6px}
.main-img img{width:100%;height:100%;object-fit:contain}
.thumbs{justify-content:center;gap:4px;margin-top:5px}
.thumb{width:48px;height:48px;padding:3px}
.brand{margin-top:12px;font-size:11px}
h1{font-size:18px;line-height:1.35;margin:2px 0 3px}
.ref,.reviews{font-size:10px}
.price-box{padding:8px 0;margin:7px 0}
.price{font-size:22px}
.stock{font-size:11px;margin-bottom:7px}

.quantity{width:110px;height:35px;margin:5px 0 8px}
.quantity button{width:33px;font-size:17px}
.quantity input{width:44px}

.form-section{width:100%;margin:12px 0;padding:15px 10px;font-size:11px}
.form-section h2{font-size:17px;margin-bottom:12px}
.form-section input,.form-section select{font-size:12px;padding:9px}
.delivery{gap:6px}
.delivery label{padding:8px 4px;font-size:11px}
#totalBox{font-size:12px;padding:9px}
#totalPrice{font-size:15px}

.features{margin-top:10px;padding-top:7px}
.feature{gap:6px;margin:7px 0;font-size:10px}
.feature i{font-size:16px}

.details{padding:10px 9px;margin-bottom:10px;border-radius:6px}
.tabs{margin-bottom:10px}
.tab{padding:7px 9px;font-size:11px}
.description{font-size:11px;line-height:1.7}
.description h2{font-size:16px}
.description h3{font-size:14px;margin-top:14px}
.specs{font-size:10px}
.specs td{padding:6px 5px}
.specs td:first-child{width:42%}

footer{padding:18px 8px 10px;font-size:10px}
footer h4{font-size:14px}
footer .col-md-4{margin-bottom:12px}
.footer-bottom{margin-top:12px;padding-top:10px;text-align:center}

}