/* =========================================================
   .NET store additions (checkout, accounts, real photos)
   Loaded after site.css (the design prototype's style.css)
   ========================================================= */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.narrow { max-width: 860px; }
.flash { max-width: var(--max); margin: 14px auto 0; background: #eef5e6; color: var(--green-dark); border: 1px solid #cfe2bb; border-radius: 8px; padding: 10px 16px; font-size: .9rem; }
.flash--warn { background: #fbf1e6; color: #8a4b12; border-color: #ecd3b4; }
.draft-note { background: #fbf1e6; color: #8a4b12; border-radius: 6px; padding: 6px 12px; font-size: .8rem; display: inline-block; }
.prose { padding: 24px 0 64px; }
.prose h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose a { text-decoration: underline; }

/* Home hero: animated weaver film (images/neelvaa-weaver.svg) as full-width background.
   The film's own captions sit bottom-left, so the copy stays in the upper-left over a navy fade. */
.hero-film { position: relative; overflow: hidden; background: #160e08; height: clamp(520px, 56.25vw, 86vh); }
.hero-film__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-film::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,33,77,.9) 0%, rgba(18,33,77,.72) 34%, rgba(18,33,77,.25) 56%, rgba(18,33,77,0) 70%); }
.hero-film::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; z-index: 2; background: var(--ikat) repeat-x center / auto 100%; }
.hero-film .hero-copy { position: relative; z-index: 1; max-width: calc(560px + max(20px, (100vw - var(--max)) / 2 + 20px)); height: 100%;
  padding: clamp(36px, 6vw, 72px) 32px 60px max(20px, calc((100vw - var(--max)) / 2 + 20px)); justify-content: flex-start; }
.hero-film h1 { color: var(--cream); }
.hero-film .eyebrow { color: #a9d37a; }
.hero-film .tagline { color: #c9e3a8; }
.hero-film .hero-copy p { color: #dfe4f1; }
.hero-film .divider span { box-shadow: 0 0 0 3px var(--navy-dark), 0 0 0 5px var(--green); background: var(--cream); }
.hero-film .btn--outline { color: var(--cream); border-color: var(--cream); }
.hero-film .btn--outline:hover { background: var(--cream); color: var(--navy); }
.hero-film .btn:not(.btn--outline) { background: var(--green); border-color: var(--green); }
.hero-film .btn:not(.btn--outline):hover { background: var(--green-dark); border-color: var(--green-dark); }
@media (min-width: 901px) and (max-width: 1180px) {
  /* Shorter hero here: drop the long intro so the buttons stay above the film's bottom-left caption. */
  .hero-film .hero-copy p:not(.tagline) { display: none; }
}
@media (max-width: 900px) {
  .hero-film .btn:not(.btn--outline) { background: var(--navy); border-color: var(--navy); }
  /* Phones/tablets: film on top at its natural 16:9, copy below on cream (like the prototype's mobile hero). */
  .hero-film { height: auto; background: var(--ivory); display: flex; flex-direction: column; }
  .hero-film__bg { position: static; aspect-ratio: 16 / 9; height: auto; object-position: center; order: 0; }
  .hero-film::after { display: none; }
  .hero-film::before { position: static; display: block; order: 1; flex: 0 0 auto; }
  .hero-film .hero-copy { order: 2; max-width: none; height: auto; padding: 32px 20px 40px; }
  .hero-film h1 { color: var(--navy); }
  .hero-film .eyebrow { color: var(--green); }
  .hero-film .tagline { color: var(--green-dark); }
  .hero-film .hero-copy p { color: var(--muted); }
  .hero-film .divider span { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--green); background: var(--navy); }
  .hero-film .btn--outline { color: var(--navy); border-color: var(--navy); }
}

/* Real photos (when uploaded) share the placeholder geometry */
.photo { display: block; overflow: hidden; background: var(--line); }
.photo img, .main-image img, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-media .photo { aspect-ratio: 3 / 4; }
.main-image img { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.thumb img { aspect-ratio: 3 / 4; }
.bag-item .photo { aspect-ratio: 3 / 4; border-radius: 6px; }
.weaver-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid #a9d37a; }
.woven-by .weaver-photo { width: 76px; height: 76px; margin: 0; flex-shrink: 0; border-width: 2px; }
.sold-out { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: var(--ink); color: #fff; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.wish--static { position: static; border: 1px solid var(--line); width: 48px; height: 48px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; flex-shrink: 0; }
.review-grid--two { grid-template-columns: 1fr 1fr; }

/* Drawer content wrapper (filled from /cart/drawer) */
.drawer-content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bag-page .drawer-body { padding: 0; overflow: visible; }
.bag-page .drawer-foot { padding: 18px 0 64px; border-top: none; max-width: 420px; margin-left: auto; }
.bag-item h4 a:hover { color: var(--navy); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }

/* Shop filters as a real form */
.clear-link { color: var(--green-dark); font-size: .8rem; text-decoration: underline; }
.swatch-label { display: inline-flex !important; padding: 0 !important; }
.swatch-label input:focus-visible + .swatch { outline: 2px solid var(--green); outline-offset: 2px; }

/* Review form */
.review-form { display: grid; gap: 10px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; max-width: 560px; }
.review-form textarea, .review-form input:not([type]) { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--cream); }
.rating-input { border: none; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; flex-wrap: wrap; }
.rating-input legend { font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; }
.rating-input label { font-size: 1.7rem; color: var(--line); cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.rating-input input:focus-visible + label { outline: 2px solid var(--green); }

/* Panels & forms */
.panel { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
fieldset.panel { margin: 0 0 20px; min-width: 0; }
.panel legend { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; padding: 0 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(27,47,107,.12); }
.field-error, .form-errors { color: var(--danger); font-size: .82rem; }
.form-errors ul { margin: 0 0 12px; padding-left: 18px; }
.validation-summary-valid { display: none; }
.input-validation-error { border-color: var(--danger) !important; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.check-label input { accent-color: var(--navy); width: 16px; height: 16px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 64px; }
.order-summary { position: sticky; top: 100px; }
.order-summary h3 { margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.summary-line small { color: var(--muted); }
.summary-line .free { color: var(--green-dark); font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; color: var(--navy); font-size: 1.2rem; padding: 12px 0 4px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 10px; cursor: pointer; background: #fff; }
.pay-option:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.pay-option input { margin-top: 4px; accent-color: var(--navy); }
.pay-option small { display: block; color: var(--muted); }
.secure-note { font-size: .75rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.secure-note a { text-decoration: underline; }
.dev-note { background: #fbf1e6; border: 1px dashed #d9a066; border-radius: 8px; padding: 12px 16px; font-size: .85rem; text-align: left; margin: 14px 0; }

/* Orders */
.confirmation { text-align: center; margin-top: 28px; }
.confirmation h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.order-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.status-pill { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: #eef5e6; color: var(--green-dark); white-space: nowrap; }
.status-awaitingpayment { background: #fbf1e6; color: #8a4b12; }
.status-cancelled { background: #f6e3e2; color: var(--danger); }
.status-shipped, .status-packed { background: #e6ebf7; color: var(--navy); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 6px 0 18px; }
.progress li { position: relative; text-align: center; font-size: .75rem; color: var(--muted); padding-top: 26px; }
.progress li::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--line); z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::after { display: none; }
.progress li.done { color: var(--green-dark); font-weight: 600; }
.progress li.done::before, .progress li.done::after { background: var(--green); }
.tracking { background: #e6ebf7; border-radius: 8px; padding: 10px 14px; font-size: .88rem; }
.account-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* Auth */
.auth { max-width: 480px; padding: 40px 20px 64px; }
.auth h1 { font-size: 1.8rem; }
.auth-logo { width: 72px; border-radius: 50%; margin-bottom: 12px; }

@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .review-grid--two { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
}

/* Real photos inside the round category tiles and occasion tiles on the home page */
.weave-tile .ph img, .occasion .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
