*{box-sizing:border-box}body{margin:0;font:15px "Segoe UI",Arial,sans-serif;color:#17243b;background:#f5f7fa}a{color:#173d70;text-decoration:none}header{height:72px;background:#172943;color:white;display:flex;align-items:center;padding:0 3%;justify-content:space-between}.brand{font-size:23px;font-weight:800;color:white}.headright{display:flex;gap:18px;align-items:center}.summary{font-weight:700}.cart{background:#f2b72b;color:#17243b;padding:14px 20px;font-weight:800}nav{background:white;padding:12px 3%;display:flex;gap:28px;border-bottom:1px solid #ddd}main{max-width:1400px;margin:auto;padding:28px}footer{text-align:center;padding:35px;color:#748094}.categories,.admincards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}.category,.admincards a{background:white;padding:25px;border:1px solid #dde3ea;display:flex;flex-direction:column;gap:8px}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px}.product{background:white;border:1px solid #dce2e8;padding:12px;display:flex;flex-direction:column;gap:10px}.product img{width:100%;height:270px;object-fit:contain;background:#f2eadf}.productrow{display:flex;justify-content:space-between;gap:10px}.productrow form{text-align:right}.qty{display:flex;gap:4px;align-items:center;margin-top:7px}.qty input{width:62px;text-align:center;font-size:15px;padding:6px 2px;appearance:textfield;-moz-appearance:textfield}.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.qty button{width:30px}.panel{background:white;border:1px solid #dde3ea;padding:24px;margin:15px 0}.narrow{max-width:600px;margin:35px auto}label{display:block;font-weight:600;margin:10px 0 5px}input,select,textarea,button{font:inherit;padding:9px;border:1px solid #bfc8d2}input,textarea,select{max-width:100%}form>input,form>textarea{width:100%}button,.btn{background:#1f6feb;color:white;border:0;padding:10px 16px;cursor:pointer;display:inline-block}.danger{background:#a33}.cartlist{display:flex;flex-direction:column;gap:12px}.cartitem{display:grid;grid-template-columns:110px 1.3fr 1fr .6fr 1fr auto;align-items:center;gap:16px;background:white;border:1px solid #ddd;padding:10px}.cartitem img{width:100px;height:100px;object-fit:contain}.badge{font-weight:700}.checkout{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:18px}.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}.gallery img{width:100%;max-height:650px;object-fit:contain;background:white}.table{background:white;border:1px solid #ddd}.tr{display:grid;grid-template-columns:1.2fr 1.4fr .7fr 1.4fr;gap:12px;padding:12px;border-bottom:1px solid #eee;align-items:center}.th{font-weight:800;background:#e7e5df}.inline{display:flex;gap:8px;margin:8px 0}.inline input{width:auto}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px}.success{color:#287a3d}.error{color:#a22}.notice{color:#8b6200}.empty{background:white;padding:30px}.small .product img{height:170px}@media(max-width:800px){
header{height:auto;min-height:92px;padding:14px 16px;align-items:flex-start;gap:10px}
.brand{font-size:20px;line-height:1.15;max-width:58%}
.headright{flex-direction:column;align-items:flex-end;gap:8px}
.summary{font-size:12px;line-height:1.25;text-align:right}
.cart{padding:10px 14px;min-width:105px;text-align:center}
nav{overflow-x:auto;gap:24px;padding:12px 16px;white-space:nowrap}
main{padding:22px 14px}
.cartlist{gap:14px}
.cartitem{
 display:grid;
 grid-template-columns:92px minmax(0,1fr) auto;
 grid-template-areas:
   "image code code"
   "image category size"
   "qty qty remove";
 gap:10px 12px;
 padding:12px;
 align-items:center
}
.cartitem>*{min-width:0}
.cartitem img{grid-area:image;width:92px;height:112px;object-fit:contain;align-self:start}
.cartitem strong{grid-area:code;display:block;overflow-wrap:anywhere;word-break:break-word;line-height:1.25}
.cartitem>span:not(.badge){grid-area:category}
.cartitem .badge{grid-area:size;justify-self:end}
.cartitem .qty{grid-area:qty;margin-top:2px;justify-self:start}
.cartitem .qty input{width:64px;height:44px}
.cartitem .qty button{width:44px;height:44px;padding:0}
.cartitem .danger{grid-area:remove;justify-self:end;width:auto;min-width:72px;height:44px;padding:8px 16px}
.checkout{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;align-items:stretch}
.checkout strong{grid-column:1/-1}
.checkout button,.checkout .btn{width:100%;min-height:52px;text-align:center;display:flex;align-items:center;justify-content:center}
.productrow{flex-direction:column}
.formgrid{grid-template-columns:1fr}
.tr{grid-template-columns:1fr 1fr}
}
@media(max-width:430px){
.brand{font-size:18px;max-width:56%}
.cartitem{grid-template-columns:84px minmax(0,1fr) auto}
.cartitem img{width:84px;height:104px}
}
.product-code a{color:inherit;text-decoration:none}.product-code a:hover{text-decoration:underline}.cartpic{display:block}.cartitem strong a{color:inherit;text-decoration:none}.cartitem strong a:hover{text-decoration:underline}

/* V3.11 açık vitrin + bayi girişi */
.hero-public{background:#fff;border:1px solid #dce2ea;padding:24px;margin-bottom:24px}
.hero-public h1{margin-top:0}
.headright{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dealername{font-weight:700}
.btn.secondary{background:#fff;color:#17345d;border:1px solid #b9c5d6}
.login-top{white-space:nowrap}
@media(max-width:700px){header{gap:10px;align-items:flex-start}.headright{justify-content:flex-end}.hero-public{padding:16px}}

.dealer-table .tr{grid-template-columns:2fr 1.1fr .7fr 1fr 1fr 2.2fr}.dealer-table small{display:block;margin-top:5px;color:#667085}.actions{display:flex;gap:6px;flex-wrap:wrap}.danger{background:#b42318!important}.error{padding:10px;background:#fee4e2;color:#912018}.admincards>div{background:#fff;border:1px solid #dce2ea;padding:16px;display:flex;flex-direction:column;gap:6px}
@media(max-width:900px){.dealer-table .th{display:none}.dealer-table .tr{display:flex;flex-direction:column;gap:8px}.actions{margin-top:5px}}

/* V3.15 Mobil Siparis Detayi */
.order-number{overflow-wrap:anywhere;word-break:break-word}
.order-product-list{display:flex;flex-direction:column;gap:14px}
.order-product-card{background:#fff;border:1px solid #dce2ea;padding:14px;display:grid;grid-template-columns:130px minmax(0,1fr);gap:18px;align-items:center}
.order-product-image img{width:130px;height:130px;object-fit:cover;display:block}
.order-product-info{min-width:0;display:flex;flex-direction:column;gap:10px}
.order-product-code{display:block;overflow-wrap:anywhere;word-break:break-word;font-size:17px;line-height:1.3}
.order-category{color:#475467}
.order-meta,.order-price{display:flex;gap:22px;flex-wrap:wrap}
.order-price{padding-top:9px;border-top:1px solid #eaecf0}
.order-total-box{margin-top:18px;background:#fff;border:2px solid #173a63;padding:18px;display:flex;gap:35px;align-items:end;flex-wrap:wrap}
.order-total-box div{display:flex;flex-direction:column;gap:4px}.order-total-box strong{font-size:20px}.order-total-box small{font-weight:700}
@media(max-width:700px){
 .order-detail{padding-bottom:24px}
 .order-number{font-size:28px;line-height:1.15;margin:18px 0}
 .order-product-card{grid-template-columns:105px minmax(0,1fr);gap:13px;padding:12px}
 .order-product-image img{width:105px;height:105px}
 .order-product-code{font-size:15px}
 .order-meta,.order-price{gap:6px;flex-direction:column}
 .order-category{font-size:14px}
 .order-total-box{display:block;padding:15px}
 .order-total-box div{margin-bottom:12px}.order-total-box strong{font-size:22px}.order-total-box small{display:block;margin-top:5px}
 nav,.nav{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
}

.admin-table .tr{grid-template-columns:1.5fr 1.5fr .7fr 1.4fr}.admin-table small{display:block;margin-top:5px;color:#667085}
@media(max-width:800px){.admin-table .th{display:none}.admin-table .tr{display:flex;flex-direction:column;gap:8px}}


/* V3.21 Canli Ziyaretciler */
.muted{color:#667085}.presence-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#18a957;margin-right:6px;box-shadow:0 0 0 3px rgba(24,169,87,.12)}
.live-summary{display:flex;align-items:center;gap:24px;background:#fff;border:1px solid #d7e2ef;padding:18px 20px;margin:0 0 22px;box-shadow:0 2px 8px rgba(23,41,67,.05)}
.live-summary:hover{border-color:#8fb1d8}.live-title{font-size:18px;font-weight:800;color:#172943}.live-summary small{display:block;color:#667085;margin-top:4px}.live-summary-numbers{display:grid;grid-template-columns:auto auto auto auto auto auto;align-items:baseline;gap:5px 8px;margin-left:auto}.live-summary-numbers strong{font-size:24px;color:#172943}.live-summary-numbers span{color:#667085;margin-right:12px}.live-open{font-weight:700;white-space:nowrap}
.live-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.live-head h1{margin-bottom:4px}.live-stats{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:14px;margin:18px 0}.live-stat{background:#fff;border:1px solid #dce2ea;padding:18px;display:flex;flex-direction:column;gap:5px}.live-stat span{font-weight:700;color:#475467}.live-stat strong{font-size:32px;line-height:1;color:#172943}.live-stat small{color:#667085}.live-panel{padding:0;overflow:hidden}.live-table-head{display:flex;justify-content:space-between;gap:15px;padding:16px 18px;background:#f8fafc;border-bottom:1px solid #e4e7ec}.live-table-head span{color:#667085}.live-row{display:grid;grid-template-columns:120px minmax(170px,1.2fr) minmax(220px,1.7fr) 90px 100px;gap:12px;padding:13px 18px;border-bottom:1px solid #eef1f4;align-items:center}.live-th{font-weight:800;background:#f2f4f7}.live-row:last-child{border-bottom:0}
@media(max-width:900px){.live-stats{grid-template-columns:repeat(2,minmax(140px,1fr))}.live-summary{align-items:flex-start;flex-direction:column}.live-summary-numbers{margin-left:0;grid-template-columns:auto auto auto auto auto auto}.live-row{grid-template-columns:1fr 1fr;gap:6px 12px}.live-th{display:none}.live-row span:nth-child(3){grid-column:1/-1}.live-row span:nth-child(3):before{content:'Sayfa: ';font-weight:700}.live-row span:nth-child(4):before{content:'Sepet: ';font-weight:700}.live-row span:nth-child(5):before{content:'Son: ';font-weight:700}}
@media(max-width:600px){.live-stats{grid-template-columns:1fr 1fr}.live-summary-numbers{grid-template-columns:auto 1fr}.live-summary-numbers span{margin-right:0}.live-head{flex-direction:column}.live-row{grid-template-columns:1fr}.live-row span:nth-child(3){grid-column:auto}}

/* V3.22 TR / EN / AR */
.language-switch{display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.12);padding:4px;border-radius:5px;direction:ltr}
.language-switch a{color:#fff;padding:6px 9px;border-radius:4px;font-weight:800;font-size:12px}
.language-switch a.active{background:#f2b72b;color:#17243b}
html[dir="rtl"] body{direction:rtl}
html[dir="rtl"] .product-card,html[dir="rtl"] .panel,html[dir="rtl"] .category,html[dir="rtl"] .cartitem,html[dir="rtl"] .order-product-info{text-align:right}
html[dir="rtl"] .qtyctrl,html[dir="rtl"] .qty{direction:ltr}
html[dir="rtl"] .language-switch{direction:ltr}
@media(max-width:800px){.language-switch a{padding:5px 7px}.headright{gap:6px}}


/* V3.26 Kategori kartlarinda ilk urun gorseli */
.category-with-thumb{min-height:108px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;overflow:hidden}
.category-with-thumb .category-copy{min-width:0;display:flex;flex-direction:column;gap:8px;flex:1}
.category-with-thumb .category-copy strong{line-height:1.25;overflow-wrap:anywhere}
.category-with-thumb .category-thumb{width:80px;height:80px;flex:0 0 80px;display:flex;align-items:center;justify-content:center;background:#f6f3ed;border:1px solid #e4e7ec;overflow:hidden}
.category-with-thumb .category-thumb img{width:100%;height:100%;display:block;object-fit:contain}
@media(max-width:700px){.category-with-thumb{min-height:94px;padding:14px 15px;gap:12px}.category-with-thumb .category-thumb{width:66px;height:66px;flex-basis:66px}.category-with-thumb .category-copy strong{font-size:14px}}
html[dir="rtl"] .category-with-thumb{flex-direction:row-reverse}

/* V3.32 - Yönetim paneli Yedek Al kartı */
.admincards>.admin-backup-card{margin:0;padding:0;border:0;background:transparent}
.admincards>.admin-backup-card input[type=hidden]{display:none}
.admincards>.admin-backup-card button{width:100%;height:100%;min-height:126px;background:#fff;color:#173d70;border:1px solid #dde3ea;padding:25px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;cursor:pointer}
.admincards>.admin-backup-card button strong{color:#0b2f63}
.admincards>.admin-backup-card button span{color:#173d70;font-weight:400;line-height:1.45}
.admincards>.admin-backup-card button:hover{background:#f8fbff;border-color:#b8c8da}
