/* style.css - ValeVi Shop */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&family=Shadows+Into+Light&display=swap');

:root{
  --border:#D6D4D4;
  --text:#515151;
  --muted:#999999;
  --bg-soft:#F6F6F6;
  --accent:#428BCA;
  --accent-dark:#2f6d9e;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:'Open Sans',Arial,sans-serif;
  font-weight:300;
  font-size:15px;
  line-height:1.5;
  color:var(--text);
  background:#fff;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{font-weight:600;color:var(--text);margin:0 0 .6em}
h1{font-size:1.5rem}
h2{font-size:1.2rem}
.decorative{
  font-family:'Shadows Into Light',cursive;
  font-weight:400;
  color:var(--accent);
}

/* Header */
.site-header{
  border-bottom:1px solid var(--border);
  background:#fff;
}
.header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.logo img{
  height:70px;
  width:auto;
}
.search-form{
  flex:1 1 220px;
  display:flex;
  min-width:180px;
}
.search-form input[type="search"]{
  flex:1;
  padding:8px 10px;
  border:1px solid var(--border);
  border-right:none;
  border-radius:3px 0 0 3px;
  font-family:inherit;
  font-size:.95rem;
  color:var(--text);
  background:#fff;
}
.search-form input[type="search"]:focus{
  outline:none;
  border-color:var(--accent);
}
.search-form button{
  padding:8px 14px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  border-radius:0 3px 3px 0;
  cursor:pointer;
  font-family:inherit;
  font-weight:600;
  font-size:.9rem;
}
.search-form button:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.cart-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:3px;
  background:var(--bg-soft);
  color:var(--text);
  font-weight:600;
  font-size:.9rem;
}
.cart-link:hover{background:#eee;text-decoration:none}
#cart-count{
  background:var(--accent);
  color:#fff;
  border-radius:10px;
  padding:1px 8px;
  font-size:.8rem;
  min-width:20px;
  text-align:center;
}

/* Menu */
.main-nav{
  background:var(--bg-soft);
  border-bottom:1px solid var(--border);
}
.main-nav ul{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.main-nav a{
  display:block;
  padding:10px 12px;
  color:var(--text);
  font-weight:600;
  font-size:.9rem;
}
.main-nav a:hover{
  color:var(--accent);
  text-decoration:none;
}

/* Main */
main{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px 48px;
}
.page-intro{
  text-align:center;
  margin-bottom:28px;
}
.page-intro p{
  color:var(--muted);
  max-width:640px;
  margin:0 auto;
}

/* Product grid */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
  list-style:none;
  padding:0;
  margin:0;
}
.product-card{
  border:1px solid var(--border);
  border-radius:3px;
  background:#fff;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transition:box-shadow .2s;
}
.product-card:hover{box-shadow:0 2px 8px rgba(0,0,0,.08)}
.product-card .thumb{
  aspect-ratio:1/1;
  background:var(--bg-soft);
  overflow:hidden;
}
.product-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-card .info{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.product-card .name{
  font-weight:600;
  font-size:.95rem;
  color:var(--text);
  margin:0;
}
.product-card .name a{color:inherit}
.product-card .name a:hover{color:var(--accent);text-decoration:none}
.product-card .price{
  font-weight:600;
  color:var(--text);
  font-size:1.05rem;
}
.product-card .price small{
  display:block;
  font-weight:300;
  color:var(--muted);
  font-size:.75rem;
}
.product-card .shipping{
  color:var(--muted);
  font-size:.8rem;
}
.product-card .btn-add{
  margin-top:auto;
  padding:9px 12px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  border-radius:3px;
  font-family:inherit;
  font-weight:600;
  font-size:.85rem;
  cursor:pointer;
}
.product-card .btn-add:hover{background:var(--accent-dark);border-color:var(--accent-dark)}

/* Product page */
.product-detail{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
.product-detail .gallery{
  border:1px solid var(--border);
  border-radius:3px;
  background:var(--bg-soft);
  aspect-ratio:1/1;
  overflow:hidden;
}
.product-detail .gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-detail .details h1{margin-top:0}
.product-detail .price-lg{
  font-size:1.6rem;
  font-weight:600;
  color:var(--text);
  margin:8px 0 4px;
}
.product-detail .tax{
  color:var(--muted);
  font-size:.85rem;
  margin-bottom:12px;
}
.product-detail .shipping-info{
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:3px;
  padding:10px 12px;
  font-size:.9rem;
  color:var(--text);
  margin:16px 0;
}
.product-detail .btn-add-lg{
  width:100%;
  padding:14px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  border-radius:3px;
  font-family:inherit;
  font-weight:600;
  font-size:1rem;
  cursor:pointer;
}
.product-detail .btn-add-lg:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.product-detail .description{
  margin-top:20px;
  color:var(--text);
}
.product-detail .description h2{font-size:1.05rem}

.breadcrumb{
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:16px;
}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--accent)}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  background:var(--bg-soft);
  padding:24px 16px;
  text-align:center;
  color:var(--muted);
  font-size:.85rem;
}

/* Responsive */
@media (min-width:640px){
  h1{font-size:1.9rem}
  .product-detail{grid-template-columns:1fr 1fr;gap:32px}
}
@media (min-width:900px){
  .header-inner{padding:16px 24px}
  main{padding:32px 24px 64px}
}
