/* WordPress + responsive additions for the landing homepage (front-page.php).
   Kept separate from nike-style.css (the design file) so that file can be
   swapped for a newer copy of the design without losing these. */

/* Admin bar: keep the sticky header below it when logged in. */
.admin-bar .sky-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sky-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sky-header { top: 0; } }

.sky-dropdown--single { grid-template-columns: 1fr; min-width: 240px; }
.sky-lp-sub { font-size: 11px; opacity: .75; }
.sky-btn-icon { text-decoration: none; }
.sky-dropdown { left: -12px; }
.sky-nav > ul > li:nth-child(2) .sky-dropdown { left: -120px; }

/* Athlete cards: centred under the heading when they all fit; still a
   swipeable row (starting at the left edge) when they don't. */
.worn-carousel-track { margin-inline: auto; }
.worn-carousel-controls { max-width: var(--container); margin-inline: auto; justify-content: center; }

/* Media never overflows */
.sky-lp video, .sky-lp img { max-width: 100%; }
body.sky-lp { overflow-x: clip; }

/* Tablet: tighter nav before it collapses */
@media (max-width: 1200px) {
	.sky-nav ul { gap: 22px; }
	.sky-header-bar, .nike-topstrip-inner, .container { padding-inline: 24px; }
}
@media (max-width: 1024px) {
	.nike-topstrip-track .nike-topstrip-item:nth-child(n+2) { display: none; }
}

/* Phones */
@media (max-width: 600px) {
	.sky-header-bar { padding-inline: 14px; gap: 10px; }
	.sky-header-actions { gap: 6px; }
	.sky-btn-icon { width: 36px; height: 36px; }
	.btn-sky-design { height: 34px; padding: 0 12px; font-size: 10.5px; }
	.sky-logo { gap: 8px; }
	.sky-logo-img { width: 34px; height: 34px; }
	.sky-logo-wordmark { font-size: 21px; }
	.sky-search-panel { padding: 12px 14px; }
	.filter-tab { white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 11px; }
	.container { padding-inline: 16px; }
	.sky-athletes { padding: 56px 0 48px; }
	.sky-products { padding: 48px 0 48px; }
	.worn-carousel-container { padding: 4px 16px 18px; }
	.worn-card { width: 78vw; max-width: 300px; }
	.worn-carousel-controls { padding-right: 16px; }
	.sky-footer { padding: 56px 0 28px; }
	.skye-newsletter-form { flex-direction: column; align-items: stretch; }
	.btn-skye-join { width: 100%; }
	.skye-email-input { flex: none; width: 100%; }
	.skye-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
	.footer-brand-summary { grid-column: 1 / -1; }
	.footer-legal-links { flex-wrap: wrap; }
	.sky-modal-backdrop { padding: 12px; align-items: flex-end; }
	.sky-modal-dialog { max-height: 92vh; overflow-y: auto; }
	.sky-modal-info { padding: 22px 20px; }
	.modal-product-name { font-size: 26px; padding-right: 30px; }
	.video-modal-backdrop { padding: 12px; }
}
@media (max-width: 380px) {
	.sky-header .sky-logo-wordmark { display: none; }
	.btn-sky-design { padding: 0 10px; }
}

/* Touch screens have no hover: show quick-view/wishlist and keep the front image. */
@media (hover: none) {
	.sky-card-wishlist-btn { opacity: 1; transform: none; }
	.sky-quick-btn { opacity: 1; transform: translate(-50%, 0); }
	.product-card:hover { transform: none; }
	.product-card:hover .sky-product-img--front { opacity: 1; transform: none; }
	.product-card:hover .sky-product-img--back { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sky-slide, .sky-hero-center-box { transition: none; animation: none; }
}


/* Collection cards: "Design now" never wraps its own words; when the card is
   too narrow for price + button on one line, the button goes under the
   price, full width. */
.sky-lp .sky-product-body{container-type:inline-size;}
.sky-lp .sky-product-bottom-row{flex-wrap:wrap;gap:10px 12px;}
.sky-lp .sky-product-price{min-width:0;}
.sky-lp .btn-sky-card-design{white-space:nowrap;flex:none;justify-content:center;}
@container (max-width: 340px){
  /*.sky-lp .sky-product-bottom-row{flex-direction:column;align-items:stretch;}*/
  .sky-lp .btn-sky-card-design{width:100%;padding:11px 16px;}
}

/* ==========================================================================
   Homepage Quick View — full product details in the popup
   ========================================================================== */
.sky-qv .sky-modal-dialog {
	max-width: 1000px;
	max-height: min(90vh, 760px);
	border: 0;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(4, 14, 73, .28);
	animation: sky-qv-in .28s cubic-bezier(.16, 1, .3, 1);
}
@keyframes sky-qv-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sky-qv .sky-modal-close { top: 14px; right: 14px; width: 40px; height: 40px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.sky-qv .sky-modal-grid { grid-template-columns: 1.02fr 1fr; height: 100%; max-height: inherit; }

/* Pictures */
.sky-qv .sky-modal-media {
	aspect-ratio: auto;
	max-height: none;
	background: #f3f3f1;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
}
.sky-qv-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sky-qv .sky-modal-media img#quickModalImg {
	width: 100%;
	height: 100%;
	max-height: calc(min(90vh, 760px) - 140px);
	object-fit: contain;
	transition: opacity .2s ease;
}
.sky-qv-badge {
	position: absolute; top: 0; left: 0; z-index: 2;
	padding: 6px 12px; border-radius: 999px;
	background: #040e49; color: #fdc502;
	font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.sky-qv-badge[hidden] { display: none; }
.sky-qv-nav {
	position: absolute; top: 50%; z-index: 2;
	width: 40px; height: 40px; margin-top: -20px;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: #fff; color: #111;
	box-shadow: 0 4px 14px rgba(0,0,0,.12); cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.sky-qv-nav:hover { background: #111; color: #fff; }
.sky-qv-nav[hidden] { display: none; }
.sky-qv-nav--prev { left: 0; }
.sky-qv-nav--next { right: 0; }
.sky-qv-thumbs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sky-qv-thumbs[hidden] { display: none; }
.sky-qv-thumb {
	width: 58px; height: 72px; padding: 0;
	border: 2px solid transparent; border-radius: 10px; overflow: hidden;
	background: #fff; cursor: pointer; opacity: .7;
	transition: border-color .15s ease, opacity .15s ease;
}
.sky-qv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sky-qv-thumb:hover { opacity: 1; }
.sky-qv-thumb.is-active { border-color: #111; opacity: 1; }

/* Details */
.sky-qv .sky-modal-info {
	padding: 40px 36px 0;
	overflow-y: auto;
	min-height: 0;
	max-height: min(90vh, 760px);
	overscroll-behavior: contain;
}
.sky-qv .modal-product-cat { color: #6b6b70; margin-bottom: 8px; padding-right: 48px; }
.sky-qv .modal-product-name { font-size: 38px; line-height: 1; margin-bottom: 12px; padding-right: 40px; }
.sky-qv-pricerow { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.sky-qv .modal-product-price { margin: 0; font-size: 22px; font-weight: 800; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.sky-qv .modal-product-price .sky-price-prefix,
.sky-qv .modal-product-price small { font-size: 12px; font-weight: 600; color: #6b6b70; text-transform: uppercase; letter-spacing: .06em; }
.sky-qv .modal-product-desc { font-size: 14px; line-height: 1.7; color: #55555a; margin: 0 0 22px; }
.sky-qv .modal-product-desc[hidden] { display: none; }

.sky-qv-block { padding: 18px 0; border-top: 1px solid #ececec; }
.sky-qv-block[hidden] { display: none; }
.sky-qv-label { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #111; }

.sky-qv-colourways { display: flex; flex-wrap: wrap; gap: 8px; }
.sky-qv-cw {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 12px 5px 6px; border: 1px solid #e6e6e6; border-radius: 999px;
	background: #fff; font-size: 12.5px; font-weight: 600; color: #111;
}
.sky-qv-cw__dots { display: inline-flex; }
.sky-qv-cw__dots i {
	display: block; width: 20px; height: 20px; margin-left: -6px;
	border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.sky-qv-cw__dots i:first-child { margin-left: 0; }

.sky-qv-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.sky-qv-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.4; color: #222; }
.sky-qv-check {
	flex: none; width: 20px; height: 20px; margin-top: -1px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #fdc502; color: #040e49;
}

.sky-qv-perks {
	list-style: none; margin: 4px 0 0; padding: 14px 16px;
	display: grid; gap: 10px;
	border-radius: 14px; background: #f6f6f4;
}
.sky-qv-perks[hidden] { display: none; }
.sky-qv-perk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #222; line-height: 1.4; }
.sky-qv-perk__icon { flex: none; display: inline-flex; color: #040e49; }
.sky-qv-perk--tag { font-weight: 700; color: #040e49; }

.sky-qv-actions {
	position: sticky; bottom: 0; z-index: 3;
	margin-top: 22px; padding: 16px 0 24px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 18px);
}
.sky-qv .modal-add-cart-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; min-height: 56px; margin: 0;
	background: #111; color: #fff;
	font-size: 13px; letter-spacing: .1em;
	transition: background .2s ease, transform .2s ease;
}
.sky-qv .modal-add-cart-btn:hover { background: #040e49; }
.sky-qv .modal-add-cart-btn svg { transition: transform .2s ease; }
.sky-qv .modal-add-cart-btn:hover svg { transform: translateX(4px); color: #fdc502; }
.sky-qv-note { margin: 10px 0 0; font-size: 12px; color: #77777c; text-align: center; }
.sky-qv-note[hidden] { display: none; }

/* Phones: a bottom sheet; pictures on top, details scroll, button stays in view */
@media (max-width: 767px) {
	.sky-qv.sky-modal-backdrop { padding: 0; align-items: flex-end; }
	.sky-qv .sky-modal-dialog {
		max-height: 92vh; border-radius: 22px 22px 0 0;
		overflow-y: auto; overscroll-behavior: contain;
		animation-name: sky-qv-up;
	}
	@keyframes sky-qv-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
	.sky-qv .sky-modal-grid { grid-template-columns: 1fr; max-height: none; }
	.sky-qv .sky-modal-media { padding: 16px 16px 12px; gap: 10px; }
	.sky-qv .sky-modal-media img#quickModalImg { height: 42vh; max-height: 42vh; }
	.sky-qv-thumb { width: 46px; height: 56px; border-radius: 8px; }
	.sky-qv .sky-modal-info { padding: 22px 20px 0; max-height: none; overflow: visible; }
	.sky-qv .modal-product-name { font-size: 30px; }
	.sky-qv-features { grid-template-columns: 1fr; }
	.sky-qv-actions { padding: 14px 0 calc(18px + env(safe-area-inset-bottom)); }
}


/* Homepage FAQ: "View all FAQs" button under the first 5 questions */
.faq-view-all-wrap { display:flex; justify-content:center; margin-top:32px; }
.faq-view-all {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; border-radius:999px;
  background:#101828; color:#fff; font-weight:600; font-size:15px;
  text-decoration:none; transition:background .2s ease, transform .2s ease;
}
.faq-view-all:hover { background:#000; color:#fff; transform:translateY(-1px); }
@media (max-width:768px) { .faq-view-all-wrap { margin-top:24px; } .faq-view-all { width:100%; justify-content:center; } }

/* Category bar under the homepage banner */
.sky-hero-cats { background: #111; border-top: 1px solid #1f1f1f; padding: 14px 0; }
.sky-hero-cats-track { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.sky-hero-cats-track::-webkit-scrollbar { display: none; }
.sky-hero-cat { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid #3a3a3a; border-radius: 6px; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.sky-hero-cat:hover, .sky-hero-cat:focus-visible { background: #FADB4C; border-color: #FADB4C; color: #0A0A0A; }
@media (min-width: 900px) {
  .sky-hero-cats { padding: 16px 0; }
  .sky-hero-cats-track { justify-content: center; flex-wrap: wrap; overflow: visible; padding: 0 40px; gap: 12px; }
  .sky-hero-cat { min-height: 52px; padding: 0 34px; font-size: 15px; }
}

/* Homepage banner: no dark overlay on the pictures/videos */
.sky-hero .sky-slide-scrim, .sky-hero .sky-slide .sky-slide-scrim { background: none !important; opacity: 0 !important; }
.sky-hero .sky-hero-headline, .sky-hero .sky-hero-lead, .sky-hero .sky-hero-subtext { text-shadow: 0 2px 14px rgba(0,0,0,.45); }

/* Phones: spotlight videos fill the full width (no white gap on the right, no black side bars) */
@media (max-width: 768px) {
  .sky-twin-videos-grid { max-width: none; width: 100%; }
  .sky-video-card { width: 100%; aspect-ratio: 9 / 16; max-height: none; }
  .sky-video-card-video { object-fit: cover; }
}

/* Homepage: every section heading is centred and uses the same style
   (small heading + big title + optional line of text). */
.sky-spot-head, .sky-faq-section .faq-center-head { text-align: center; }
.sky-spot-head .sky-spot-text, .sky-reviews-lead { margin-left: auto; margin-right: auto; }
.sky-faq-section .faq-center-head { max-width: 760px; margin: 0 auto 36px; }
.sky-faq-section .faq-main-title.nike-section-title { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 56px); font-weight: 700; line-height: .95; letter-spacing: .02em; text-transform: uppercase; color: var(--c-headings); margin-bottom: 14px; }
.sky-faq-section .faq-main-subtitle { margin-bottom: 36px; }
.sky-faq-section .faq-pills-bar { justify-content: center; }
.sky-products-head-top, .sky-athletes-head { position: relative; justify-content: center; text-align: center; }
.sky-products-head-top > div:first-child, .sky-athletes-title-col { flex: 0 1 auto; }
.sky-products-head-top .collection-carousel-controls, .sky-athletes-head .sky-athletes-actions { position: absolute; right: 0; bottom: 8px; }
.sky-filter-tabs { justify-content: center; }
.sky-reviews-head { flex-direction: column; align-items: center; text-align: center; }
@media (max-width: 768px) {
  .sky-products-head-top .collection-carousel-controls, .sky-athletes-head .sky-athletes-actions { display: none; }
  .sky-filter-tabs { justify-content: flex-start; }
}

/* Reviews: cards fit the width exactly (no half-cut card at the edge) */
.sky-reviews-slider-track { width: 100%; }
.sky-reviews-slider-track .review-card { width: auto; flex: 0 0 calc((100% - 60px) / 4); }
@media (max-width: 1100px) { .sky-reviews-slider-track .review-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 860px) { .sky-reviews-slider-track .review-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .sky-reviews-slider-track .review-card { flex-basis: 86%; } }
.sky-reviews-head-actions { justify-content: center; flex-wrap: wrap; }

/* Phones: long category names wrap onto two lines in the category bar */
@media (max-width: 768px) {
  .sky-hero-cats-track { align-items: stretch; }
  .sky-hero-cat { white-space: normal; max-width: 150px; min-width: 104px; padding: 8px 16px; line-height: 1.2; text-align: center; font-size: 12px; }
}
