/* Source: app/templates/pages/campaign_shop.html — Figma "Página de venta" (2514:1795) */

  .shop-main {
    width: min(1246px, calc(100% - 48px));
    margin: 0 auto;
  }

  /* Breadcrumb: y=146 (63 sota la nav), 12/300 #868686 uppercase */
  .shop-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 63px;
  }
  .shop-management-nav { display: flex; align-items: center; gap: 16px 41px; flex-wrap: wrap; }
  .shop-breadcrumb {
    overflow-wrap: anywhere;
    color: #868686;
    font-size: 12px;
    line-height: 16.8px;
    font-weight: 300;
    text-transform: uppercase;
  }
  .shop-breadcrumb a { color: #868686; text-decoration: none; }
  .shop-breadcrumb a:hover { color: #111; text-decoration: underline; }
  .shop-breadcrumb-sep { margin: 0 6px; }

  /* ===== Zona superior: galeria 608 | info 608 (gap 30) ===== */
  .shop-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    align-items: start;
    margin-top: 24px;
  }

  .shop-main-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f7f6f4;
  }
  .shop-main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .shop-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    margin-top: 22px;
  }
  .shop-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 1px solid transparent;
    background: #f7f6f4;
    overflow: hidden;
    cursor: pointer;
  }
  .shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .shop-thumb.is-active { border-color: #111; }

  /* ===== Columna d'informació ===== */
  .shop-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: min(608px, 44vw);
    padding-bottom: 34px;
  }
  .shop-title {
    margin: 0;
    color: #111;
    font-size: 42px;
    line-height: 52.5px;
    font-weight: 300;
    letter-spacing: -0.84px;
    overflow-wrap: anywhere;
  }
  .shop-desc {
    margin: 10px 0 0;
    color: #111;
    font-size: 15px;
    line-height: 22.5px;
    font-weight: 200;
    overflow-wrap: anywhere;
  }
  .shop-desc > :last-child { margin-bottom: 0; }

  /* Colors: label 13/400 + línia + swatches 30px (y=375/406/424) */
  .shop-state { margin: 12px 0 0; }
  .shop-preview-note { margin: 8px 0 0; color: #555; }
  .shop-info form { margin-top: 16px; }
  .shop-colors { margin-top: 32px; }
  .shop-field-label {
    padding-bottom: 11px;
    border-bottom: 1px solid #d1d1d1;
    color: #111;
    font-size: 13px;
    line-height: 19.5px;
    font-weight: 400;
    text-transform: uppercase;
  }
  .shop-swatches {
    display: flex;
    gap: 10px;
    margin-top: 18px;
  }
  .shop-swatch {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  }
  .shop-swatch.is-selected {
    outline: 2px solid #111;
    outline-offset: 3px;
  }

  /* Camps: columnes de 289 amb gap 30 (y=516) */
  .shop-fields {
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 24px;
    margin-top: 32px;
  }
  .shop-field { width: min(289px, 100%); }
  .shop-select {
    width: 100%;
    height: 50px;
    margin-top: 21px;
    padding: 0 44px 0 19px;
    border: 1px solid #d1d1d1;
    border-radius: 0;
    background: #fff;
    color: #868686;
    font-family: "Geologica", sans-serif;
    font-size: 13px;
    line-height: 19.5px;
    font-weight: 400;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("/static/img/figma/select-chevron.svg?v=20260804");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px 9px;
  }
  .shop-select:valid { color: #111; }

  /* Quantitat: cercles 50 + input 76x50 centrats a la columna */
  .shop-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
    margin-top: 21px;
  }
  .shop-qty-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #d1d1d1;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }
  .shop-qty-btn svg { width: 20px; height: 20px; }
  .shop-qty-btn:hover { border-color: #111; }
  .shop-qty-input {
    width: 76px;
    height: 50px;
    border: 1px solid #d3d3d3;
    border-radius: 0;
    text-align: center;
    color: #111;
    font-family: "Geologica", sans-serif;
    font-size: 15px;
    line-height: 22.5px;
    font-weight: 400;
  }
  .shop-qty-input:focus { outline: 0; border-color: #111; }

  /* Preu + Comprar (y=689/695) */
  .shop-buy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 26px;
  }
  .shop-price {
    color: #111;
    font-size: 42px;
    line-height: 63px;
    font-weight: 200;
  }
  .shop-buy-btn {
    width: 357px;
    height: 50px;
    border-radius: 100px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-size: 20px;
    line-height: 25px;
    font-weight: 400;
    letter-spacing: -0.2px;
    text-decoration: none;
  }
  .shop-buy-btn:hover { background: #000; color: #fff; }
  .shop-buy-btn img { width: 23.4px; height: 20px; }

  .shop-summary {
    display: grid;
    gap: 12px;
  }
  .shop-summary-row:not([hidden]) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .shop-summary-row > :last-child { text-align: end; }
  .shop-summary-total {
    border-top: 1px solid #d1d1d1;
    padding-top: 12px;
  }

  /* ===== Tabs centrades (y=997, línia a 1037) ===== */
  .shop-tabs-bar {
    width: var(--figma-full-bleed-width);
    margin-top: 104px;
    margin-left: var(--figma-full-bleed-offset);
    border-bottom: 1px solid #d1d1d1;
  }
  .shop-tabs {
    width: min(1246px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 49px;
  }
  .shop-tab {
    position: relative;
    display: inline-block;
    padding-bottom: 23px;
    color: #868686;
    font-size: 17px;
    line-height: 17px;
    font-weight: 400;
    text-decoration: none;
  }
  .shop-tab:hover { color: #111; }
  .shop-tab.is-active { color: #111; font-weight: 500; }
  .shop-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #111;
  }

  /* ===== Cos centrat (734px, h1 a +67 de la línia) ===== */
  .shop-body {
    width: min(734px, calc(100% - 48px));
    margin: 0 auto;
    padding: 67px 0 155px;
  }
  .shop-pane { display: none; }
  .shop-pane.is-active { display: block; }
  .shop-body .markdown {
    color: #111;
    font-size: 15px;
    line-height: 22.5px;
    font-weight: 200;
  }
  .shop-body .markdown p:has(+ p) { margin-bottom: 0; }
  .shop-body .markdown p + p { margin-top: 0; }
  .shop-body .markdown h1 {
    color: #111;
    font-size: 28px;
    line-height: 42px;
    font-weight: 200;
    letter-spacing: -0.56px;
  }
  .shop-body .markdown h2 {
    color: #111;
    font-size: 20px;
    line-height: 30px;
    font-weight: 300;
  }
  .shop-body .markdown img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    margin: 28px 0;
  }
  .shop-body .markdown iframe,
  .shop-body .markdown video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 40px auto;
    border: 0;
  }

  /* FAQ (mateix estil que la pestanya Preguntas del projecte) */
  .shop-accordion { display: flex; flex-direction: column; gap: 17.5px; max-width: 734px; }
  .shop-accordion-item { border-radius: 10px; background: #f6f5fe; overflow: hidden; }
  .shop-accordion-button {
    width: 100%;
    min-height: 56.5px;
    padding: 16px 20px;
    border: 0;
    background: transparent;
    color: #111;
    font-family: "Geologica", sans-serif;
    font-size: 17px;
    line-height: 20.4px;
    font-weight: 400;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
  }
  .shop-accordion-sign { font-size: 24px; line-height: 1; font-weight: 400; color: #111; }
  .shop-accordion-body {
    padding: 2px 20px 21px;
    max-width: 676px;
    color: #111;
    font-size: 15px;
    line-height: 22.5px;
    font-weight: 200;
  }

@media (max-width: 760px) {
  .shop-main, .shop-tabs, .shop-body { width: calc(100% - 32px); }
  .shop-header { margin-top: 28px; }
  .shop-management-nav { column-gap: 22px; }
  .shop-top { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .shop-info { min-height: 0; padding-bottom: 0; }
  .shop-title { font-size: 32px; line-height: 1.25; }
  .shop-thumb { width: 54px; height: 54px; }
  .shop-tabs-bar { margin-top: 44px; }
  .shop-body { padding: 32px 0 68px; }
}
