/* ============ FRONT LAYOUT ============ */
.ggg-wrap {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.ggg-title { text-align:center; margin-bottom:16px; font-weight:700; }
.ggg-blocks { display:flex; flex-direction:column; gap:18px; }
.ggg-block {
  border:1px solid #e6e9ef;
  background:#fff;
  border-radius:14px;
  padding:14px;
  box-shadow:0 2px 6px rgba(0,0,0,.03);
}
.ggg-block-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.ggg-block-head>span{font-weight:600;}
.ggg-remove-block{background:transparent;border:none;color:#64748b;cursor:pointer;}
.ggg-remove-block:hover{background:#f1f5f9;}

.ggg-cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.ggg-cat-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;cursor:pointer;transition:box-shadow .2s;}
.ggg-cat-tile:hover{box-shadow:0 8px 18px rgba(0,0,0,.06);}
.ggg-cat-tile.ggg-active{background:#ecfdf5;border-color:#22c55e;}
.ggg-cat-thumb img{width:72px;height:72px;object-fit:cover;border-radius:12px;}
.ggg-cat-name{font-weight:600;}
.ggg-form-area{border:1px solid #e5e7eb;background:#f9fafb;border-radius:12px;padding:16px;margin-top:14px;}
.ggg-label{display:block;font-size:14px;margin:10px 0 6px;color:#111827;}
.ggg-select{width:100%;padding:12px;border-radius:10px;border:1px solid #d1d5db;background:#fff;font-size:14px;margin-bottom:8px;}
.ggg-actions{margin:12px 0 8px;}
.ggg-link-btn{border:none;background:transparent;color:#0ea5e9;cursor:pointer;font-weight:700;}
.ggg-btn{width:100%;padding:12px;border-radius:10px;border:none;background:#22c55e;color:#fff;font-weight:700;cursor:pointer;}
.ggg-btn:hover{background:#16a34a;}
.ggg-price{margin-top:12px;}
.ggg-err{color:#b91c1c;}

@media(max-width:900px){.ggg-cats{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:640px){.ggg-cats{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* ============ FINAL LAYOUT ============ */
#ggg-final-layout{max-width:720px;margin:40px auto;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}
.ggg-success{text-align:center;background:#d1fae5;border:2px solid #22c55e;border-radius:10px;padding:25px;color:#065f46;margin-bottom:25px;}
.ggg-success h2{font-size:32px;font-weight:800;margin:5px 0;}
.ggg-form-section{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:25px;box-shadow:0 2px 8px rgba(0,0,0,.05);margin-bottom:25px;}
.ggg-form-section h3{font-size:18px;font-weight:700;text-align:center;margin-bottom:15px;color:#0f172a;}
.ggg-summary{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;padding:20px;}
.ggg-summary h4{font-weight:700;margin-bottom:12px;}
.ggg-summary ul{list-style:none;padding:0;margin:0;}
.ggg-summary li{display:flex;justify-content:space-between;margin-bottom:6px;}
.ggg-total-line{border-top:2px solid #22c55e;margin-top:10px;padding-top:10px;display:flex;justify-content:space-between;font-weight:700;}
.ggg-device-image img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  border: 1px solid #ddd;
  object-fit: cover;
  transition: transform .2s;
}
.ggg-device-image img:hover {
  transform: scale(1.05);
}

