/* ValeVi Shop - extra.css (mobile-first, no librerie) */

:root {
  --accent: #428BCA;
  --text: #333;
  --muted: #777;
  --border: #e5e5e5;
  --bg-soft: #f7f7f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

.decorative {
  font-family: 'Shadows Into Light', cursive;
  font-weight: 400;
  letter-spacing: .5px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo img { height: 70px; width: auto; }
.main-nav { flex: 1 1 100%; order: 3; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.main-nav a { color: var(--text); font-weight: 600; font-size: .9rem; }

.search-form {
  display: flex;
  gap: .25rem;
  flex: 1 1 100%;
  order: 4;
}
.search-form input {
  flex: 1;
  padding: .4rem .6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}
.search-form button {
  padding: .4rem .8rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

.cart-link { font-weight: 600; color: var(--text); }
.lang-switch { font-size: .85rem; color: var(--muted); }
.lang-switch strong { color: var(--accent); }

/* Flash */
.flash {
  max-width: 1200px;
  margin: .75rem auto;
  padding: .6rem 1rem;
  background: #eaf4fb;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

/* Main */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.page-intro { text-align: center; padding: 1.5rem 0; }
.page-intro h1 { font-size: 2rem; }
.page-intro p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); }

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 2rem;
}
.cat-tile {
  display: block;
  padding: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
}
.cat-tile:hover { border-color: var(--accent); text-decoration: none; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  background: #fff;
}
.product-card-img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
}
.product-card-title { margin: 0; font-size: 1rem; }
.product-card-title a { color: var(--text); }
.product-card-price { margin: 0; font-weight: 600; }
.product-card-price small { color: var(--muted); font-weight: 300; font-size: .75rem; margin-left: .25rem; }
.made-to-order { color: var(--muted); font-size: .85rem; font-style: italic; margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: center;
}
.btn:hover { background: #357ab0; text-decoration: none; }
.btn-secondary {
  background: #fff;
  color: var(--accent);
}
.btn-secondary:hover { background: #eaf4fb; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: 6px;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.gallery-thumbs .thumb {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-thumbs .thumb.is-active { border-color: var(--accent); }
.gallery-thumbs .thumb img { width: 70px; height: 70px; object-fit: cover; }

.product-info h1 { margin-top: 0; }
.product-price { font-size: 1.3rem; font-weight: 600; }
.product-price small { color: var(--muted); font-weight: 300; font-size: .8rem; margin-left: .25rem; }

.product-info form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1rem 0;
}
.product-info label { font-weight: 600; font-size: .9rem; }
.product-info select,
.product-info input[type="number"] {
  padding: .5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  max-width: 100%;
}
.product-info input[type="number"] { max-width: 100px; }

.product-desc { color: var(--text); }
.product-desc p { margin: 0 0 .75rem; }

/* Pagination */
.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #333;
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 4px;
  transition: transform .25s ease;
  z-index: 1000;
  max-width: 90%;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.site-footer .decorative { font-size: 1.4rem; color: var(--text); margin-bottom: .5rem; }
.site-footer a { color: var(--accent); }

/* Tablet */
@media (min-width: 640px) {
  .header-inner { flex-wrap: nowrap; }
  .main-nav { flex: 1 1 auto; order: 0; }
  .search-form { flex: 0 1 240px; order: 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr 1fr; }
}

/* Desktop */
@media (min-width: 960px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .site-main { padding: 2rem 1rem; }
}
</｜｜DSML｜｜ parameter>

/* checkout/carrello */
/* ValeVi Shop — stili aggiuntivi (mobile-first) */

:root {
    --accent: #428BCA;
    --accent-dark: #2f6f9f;
    --gray-100: #f7f7f7;
    --gray-200: #ececec;
    --gray-400: #b5b5b5;
    --gray-600: #6b6b6b;
    --gray-800: #333;
    --radius: 6px;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: .7rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    background: #fff;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { border-color: var(--gray-400); color: var(--gray-800); }
.btn-secondary:hover { background: var(--gray-200); color: var(--gray-800); }

/* Form */
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; margin-bottom: .3rem; color: var(--gray-800); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea {
    padding: .6rem .7rem;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    font: inherit;
    background: #fff;
    color: var(--gray-800);
}
.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.field-checkbox { flex-direction: row; align-items: flex-start; gap: .5rem; }
.field-checkbox label { font-weight: 400; }
.form-error { color: #c0392b; font-size: .9rem; margin-top: .25rem; }
.form-error-general {
    padding: .8rem 1rem;
    border: 1px solid #c0392b;
    background: #fdecea;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Carrello */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.cart-table th,
.cart-table td {
    padding: .6rem .4rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    vertical-align: middle;
}
.cart-table thead th {
    font-size: .85rem;
    text-transform: uppercase;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}
.cart-product { display: flex; align-items: center; gap: .7rem; }
.cart-product img { border-radius: var(--radius); object-fit: cover; }
.cart-product-info { display: flex; flex-direction: column; gap: .15rem; }
.cart-product-info a { color: var(--gray-800); text-decoration: none; font-weight: 600; }
.cart-product-info a:hover { color: var(--accent); }
.variant-label { font-size: .85rem; color: var(--gray-600); }
.made-to-order {
    font-size: .8rem;
    color: var(--accent-dark);
    background: var(--gray-100);
    padding: .15rem .4rem;
    border-radius: var(--radius);
    align-self: flex-start;
}
.cart-table input[type="number"] {
    width: 4.5rem;
    padding: .4rem;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    font: inherit;
}
.cart-actions { margin-bottom: 1.5rem; }

.cart-summary,
.checkout-summary {
    background: var(--gray-100);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
}
.cart-summary dl,
.checkout-summary dl,
.order-totals {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .4rem 1rem;
    margin: 0 0 1rem;
}
.cart-summary dt,
.checkout-summary dt,
.order-totals dt { color: var(--gray-600); }
.cart-summary dd,
.checkout-summary dd,
.order-totals dd { margin: 0; text-align: right; font-weight: 600; }
.cart-summary .total,
.checkout-summary .total,
.order-totals .total {
    border-top: 1px solid var(--gray-400);
    padding-top: .5rem;
    font-size: 1.1rem;
    color: var(--gray-800);
}
.vat-note { font-size: .8rem; color: var(--gray-600); margin: 0 0 1rem; }

/* Checkout */
.checkout-form { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.checkout-section {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.2rem 1.2rem;
    margin: 0 0 1rem;
}
.checkout-section legend {
    padding: 0 .4rem;
    font-size: 1.2rem;
    color: var(--accent-dark);
}
.pay-option {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.pay-option:last-child { border-bottom: 0; }
.pay-option input[type="radio"] { margin-top: .3rem; }
.pay-option label { display: flex; flex-direction: column; gap: .15rem; cursor: pointer; }
.pay-desc { font-size: .9rem; color: var(--gray-600); }
.pay-note { font-size: .85rem; color: var(--accent-dark); }
.summary-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    border-bottom: 1px solid var(--gray-400);
    padding-bottom: .6rem;
}
.summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .25rem 0;
    font-size: .95rem;
}
.summary-name { color: var(--gray-800); }
.summary-price { font-weight: 600; white-space: nowrap; }
.checkout-paypal { max-width: 480px; }
#pp-error { min-height: 1.2em; }

/* Ordine */
.order-ref {
    font-size: 1.1rem;
    padding: .8rem 1rem;
    background: var(--gray-100);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.order-table th,
.order-table td {
    padding: .5rem .4rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}
.order-table thead th {
    font-size: .85rem;
    text-transform: uppercase;
    color: var(--gray-600);
}
.order-payment ul { padding-left: 1.2rem; }
.order-payment li { margin-bottom: .3rem; }

/* Pagina statica */
.page-body { max-width: 70ch; line-height: 1.6; color: var(--gray-800); }
.page-body h2, .page-body h3 { color: var(--gray-800); }
.page-body a { color: var(--accent); }

/* 404 */
.page-404 { text-align: center; padding: 2rem 0; }

/* Tablet e desktop */
@media (min-width: 720px) {
    .field-row { grid-template-columns: repeat(3, 1fr); }
    .checkout-form { grid-template-columns: 2fr 1fr; align-items: start; }
    .checkout-summary { position: sticky; top: 1rem; }
    .cart-summary { max-width: 420px; margin-left: auto; }
}

@media (min-width: 1024px) {
    .checkout-form { grid-template-columns: 3fr 1.2fr; }
}
</｜｜DSML｜｜ parameter>
