/* =========================================================
   MiniStore Public Style - boutiques.kolchi99.com
   Files: index.php, boutique.php, product.php, login/register
   ========================================================= */
:root{
  --ms-primary:#ff6b00;
  --ms-primary-dark:#e85f00;
  --ms-secondary:#111827;
  --ms-muted:#6b7280;
  --ms-soft:#f6f7fb;
  --ms-white:#ffffff;
  --ms-border:#e5e7eb;
  --ms-success:#16a34a;
  --ms-danger:#dc2626;
  --ms-warning:#f59e0b;
  --ms-info:#2563eb;
  --ms-radius:18px;
  --ms-shadow:0 10px 28px rgba(17,24,39,.08);
  --ms-shadow-soft:0 6px 18px rgba(17,24,39,.06);
  --ms-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--ms-font);
  background:var(--ms-soft);
  color:var(--ms-secondary);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font-family:inherit}

.ms-container{width:min(1180px, calc(100% - 32px));margin:auto}
.ms-page{padding:28px 0 60px}
.ms-header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--ms-border);
}
.ms-header-inner{height:70px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.ms-brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:21px;color:var(--ms-secondary)}
.ms-brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--ms-primary),#ffb000);display:grid;place-items:center;color:white;font-weight:900;box-shadow:var(--ms-shadow-soft)}
.ms-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ms-nav a{font-size:14px;color:#374151;padding:9px 12px;border-radius:999px}
.ms-nav a:hover{background:#fff0e6;color:var(--ms-primary)}

.ms-hero{padding:45px 0 30px}
.ms-hero-box{
  overflow:hidden;
  border-radius:28px;
  background:linear-gradient(135deg,#111827 0%,#1f2937 50%,#ff6b00 120%);
  color:white;
  padding:44px;
  position:relative;
  box-shadow:var(--ms-shadow);
}
.ms-hero-box:after{content:"";position:absolute;width:260px;height:260px;border-radius:999px;background:rgba(255,255,255,.08);right:-70px;top:-80px}
.ms-hero h1{margin:0 0 12px;font-size:clamp(30px,5vw,56px);line-height:1.05;letter-spacing:-1.4px}
.ms-hero p{margin:0;max-width:680px;color:rgba(255,255,255,.82);font-size:17px}
.ms-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}

.ms-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:999px;padding:12px 18px;
  font-weight:800;cursor:pointer;transition:.18s ease;
  min-height:45px;
}
.ms-btn-primary{background:var(--ms-primary);color:white}
.ms-btn-primary:hover{background:var(--ms-primary-dark);transform:translateY(-1px)}
.ms-btn-dark{background:#111827;color:white}
.ms-btn-dark:hover{background:#000}
.ms-btn-light{background:white;color:#111827}
.ms-btn-light:hover{transform:translateY(-1px)}
.ms-btn-outline{background:white;border:1px solid var(--ms-border);color:#111827}
.ms-btn-outline:hover{border-color:var(--ms-primary);color:var(--ms-primary)}
.ms-btn-success{background:var(--ms-success);color:white}
.ms-btn-success:hover{filter:brightness(.95)}
.ms-btn-danger{background:var(--ms-danger);color:white}
.ms-btn-block{width:100%}
.ms-btn-sm{padding:8px 12px;min-height:36px;font-size:13px}

.ms-section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:26px 0 18px}
.ms-section-title h2{margin:0;font-size:26px;letter-spacing:-.5px}
.ms-section-title p{margin:4px 0 0;color:var(--ms-muted)}

.ms-grid{display:grid;gap:18px}
.ms-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ms-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ms-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.ms-card{
  background:white;border:1px solid var(--ms-border);border-radius:var(--ms-radius);
  box-shadow:var(--ms-shadow-soft);overflow:hidden;
}
.ms-card-body{padding:18px}
.ms-card:hover{box-shadow:var(--ms-shadow)}

.ms-store-card .ms-cover{height:135px;background:#e5e7eb;object-fit:cover;width:100%}
.ms-store-info{display:flex;gap:14px;align-items:center;margin-top:-34px;position:relative}
.ms-store-logo{width:68px;height:68px;border-radius:20px;border:4px solid white;background:white;object-fit:cover;box-shadow:var(--ms-shadow-soft)}
.ms-store-title{margin:0;font-size:18px;font-weight:900}
.ms-store-meta{margin:3px 0 0;color:var(--ms-muted);font-size:13px}

.ms-product-card .ms-product-img{height:210px;width:100%;object-fit:cover;background:#f3f4f6}
.ms-product-card h3{margin:0 0 8px;font-size:17px;line-height:1.25}
.ms-price{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 14px}
.ms-price-current{font-weight:900;color:var(--ms-primary);font-size:19px}
.ms-price-old{text-decoration:line-through;color:var(--ms-muted);font-size:14px}
.ms-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;background:#fff0e6;color:var(--ms-primary)}
.ms-badge-green{background:#dcfce7;color:#15803d}
.ms-badge-blue{background:#dbeafe;color:#1d4ed8}
.ms-badge-red{background:#fee2e2;color:#b91c1c}
.ms-badge-gray{background:#f3f4f6;color:#4b5563}

.ms-product-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:start}
.ms-product-main-img{background:white;border:1px solid var(--ms-border);border-radius:24px;overflow:hidden;box-shadow:var(--ms-shadow-soft)}
.ms-product-main-img img{width:100%;height:470px;object-fit:cover;background:#f3f4f6}
.ms-product-side{background:white;border:1px solid var(--ms-border);border-radius:24px;padding:24px;box-shadow:var(--ms-shadow-soft);position:sticky;top:90px}
.ms-product-side h1{margin:0 0 10px;font-size:31px;line-height:1.12;letter-spacing:-.7px}
.ms-description{color:#374151;white-space:pre-line}

.ms-form{display:grid;gap:12px}
.ms-field label{display:block;font-size:13px;font-weight:800;margin:0 0 6px;color:#374151}
.ms-input,.ms-textarea,.ms-select{
  width:100%;border:1px solid var(--ms-border);background:white;border-radius:14px;
  padding:12px 13px;outline:none;color:#111827;
}
.ms-input:focus,.ms-textarea:focus,.ms-select:focus{border-color:var(--ms-primary);box-shadow:0 0 0 4px rgba(255,107,0,.12)}
.ms-textarea{min-height:110px;resize:vertical}
.ms-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.ms-alert{padding:13px 15px;border-radius:15px;border:1px solid;margin:14px 0;background:white}
.ms-alert-success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.ms-alert-error{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.ms-alert-warning{border-color:#fde68a;background:#fffbeb;color:#92400e}
.ms-alert-info{border-color:#bfdbfe;background:#eff6ff;color:#1e40af}

.ms-auth-wrap{min-height:calc(100vh - 70px);display:grid;place-items:center;padding:40px 0}
.ms-auth-card{width:min(460px,100%);background:white;border:1px solid var(--ms-border);border-radius:28px;padding:28px;box-shadow:var(--ms-shadow)}
.ms-auth-card h1{margin:0 0 6px;font-size:28px}
.ms-auth-card p{margin:0 0 20px;color:var(--ms-muted)}

.ms-footer{border-top:1px solid var(--ms-border);padding:24px 0;color:var(--ms-muted);background:white;text-align:center;font-size:14px}
.ms-empty{background:white;border:1px dashed #cbd5e1;border-radius:22px;padding:34px;text-align:center;color:var(--ms-muted)}

@media(max-width:980px){
  .ms-grid-4{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ms-product-layout{grid-template-columns:1fr}
  .ms-product-side{position:relative;top:auto}
}
@media(max-width:760px){
  .ms-header-inner{height:auto;padding:12px 0;align-items:flex-start;flex-direction:column}
  .ms-hero-box{padding:30px 22px;border-radius:22px}
  .ms-grid-2,.ms-grid-3,.ms-grid-4{grid-template-columns:1fr}
  .ms-form-row{grid-template-columns:1fr}
  .ms-product-main-img img{height:330px}
  .ms-section-title{align-items:flex-start;flex-direction:column}
}
