/* style.css */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Arial,Helvetica,sans-serif;
background:#0f172a;
color:#fff;
transition:.25s;
}

body.light{
background:#f1f5f9;
color:#111827;
}

.app{
max-width:1450px;
margin:auto;
}

.topbar{
display:flex;
flex-direction:column;
align-items:flex-end;
gap:10px;
margin-bottom:18px;
text-align:right;
}

.topbar button{
width:180px;
text-align:right;
}

.topbar{
position:absolute;
top:20px;
right:20px;
}


.brand{
font-size:30px;
font-weight:900;
}


/* fullscreen mode */
.layout.fullscreen {
position: fixed;
inset: 0;
z-index: 9999;
background: inherit;
padding: 20px;
overflow: auto;
display: grid;
grid-template-columns: 430px 1fr;
}

.brand span{
color:#22c55e;
}



.layout{
display:grid;
grid-template-columns:430px 1fr;
gap:24px;
}

.panel{
background:#111827;
border:1px solid #1f2937;
border-radius:20px;
padding:24px;
box-shadow:0 10px 30px rgba(0,0,0,.25);
}

body.light .panel{
background:#fff;
border:1px solid #dbe3ea;
box-shadow:0 10px 20px rgba(0,0,0,.08);
}

label{
display:block;
margin-top:14px;
margin-bottom:8px;
font-weight:700;
font-size:14px;
}

input,
textarea{
width:100%;
padding:12px;
border:none;
border-radius:12px;
font-size:15px;
outline:none;
background:#1e293b;
color:#fff;
}

body.light input,
body.light textarea{
background:#eef2f7;
color:#111827;
}

textarea{
resize:vertical;
min-height:110px;
}

#output{
min-height:220px;
margin-top:12px;
font-family:monospace;
}

button{
border:none;
padding:13px 16px;
border-radius:12px;
font-weight:800;
cursor:pointer;
transition:.22s;
font-size:15px;
}

button:hover{
transform:translateY(-2px);
}

.btns{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px;
margin-top:18px;
}

.full-btn{
width:100%;
margin-top:12px;
}

#generate,
#saveBtn{
background:#22c55e;
color:#fff;
}

#generate:hover,
#saveBtn:hover{
background:#16a34a;
}

#clear{
background:#475569;
color:#fff;
}

#clear:hover{
background:#334155;
}

#copy,
#themeBtn,
#aiDescBtn{
background:#3b82f6;
color:#fff;
}

#copy:hover,
#themeBtn:hover,
#aiDescBtn:hover{
background:#2563eb;
}

.mini-row{
margin-top:10px;
}

#preview{
margin-top:12px;
margin-bottom:16px;
}

hr{
border:none;
height:1px;
background:#334155;
margin:20px 0;
}

body.light hr{
background:#dbe3ea;
}

/* product card */

.rw-product-card{
display:grid;
grid-template-columns:220px 1fr;
gap:18px;
padding:18px;
border-radius:18px;
background:#0b1220;
border:1px solid #1f2937;
}

body.light .rw-product-card{
background:#fff;
border:1px solid #dbe3ea;
}

.rw-product-card img{
width:100%;
height:220px;
object-fit:cover;
border-radius:14px;
background:#111;
}

.rw-info h3{
font-size:24px;
margin-bottom:10px;
}

.rw-info p{
line-height:1.55;
margin-bottom:12px;
opacity:.92;
}

.rw-price{
font-size:30px;
font-weight:900;
color:#22c55e;
margin-bottom:10px;
}

.rw-rating{
margin-bottom:14px;
font-weight:700;
}

.rw-buy{
display:inline-block;
padding:12px 18px;
background:#22c55e;
color:#fff;
text-decoration:none;
border-radius:12px;
font-weight:800;
}

.rw-buy:hover{
background:#16a34a;
}

/* saved */

.saved-item{
padding:14px;
border-radius:14px;
background:#0b1220;
border:1px solid #1f2937;
margin-bottom:12px;
}

body.light .saved-item{
background:#f8fafc;
border:1px solid #dbe3ea;
}

.saved-title{
font-weight:800;
margin-bottom:6px;
}

.saved-date{
font-size:13px;
opacity:.75;
margin-bottom:10px;
}

.saved-actions{
display:flex;
gap:8px;
flex-wrap:wrap;
}

.saved-actions button{
padding:8px 10px;
font-size:13px;
}

.empty-save{
opacity:.7;
padding:8px 0;
}

/* responsive */

@media(max-width:980px){

.layout{
grid-template-columns:1fr;
}

.rw-product-card{
grid-template-columns:1fr;
}

.rw-product-card img{
height:260px;
}

}

@media(max-width:600px){

body{
padding:0;
margin:0;
}

.app{
max-width:100%;
width:100%;
margin:0;
padding:0;
}

.layout{
grid-template-columns:1fr;
gap:0;
width:100%;
}

.panel{
padding:10px;
border-radius:0;
width:100%;
margin:0;
}

h1{
font-size:18px;
padding:8px 10px;
margin:0;
}

.topbar{
padding:10px;
margin:0;
width:100%;
}

input,
textarea,
button{
width:100%;
font-size:16px;
}

.rw-product-card{
grid-template-columns:1fr;
width:100%;
border-radius:0;
}

.rw-product-card img{
width:100%;
height:auto;
max-height:260px;
object-fit:cover;
}

}