/*
 * Meryem El Rhazali — Digital Products / SEO Resources
 * PAGE STYLESHEET | products.css
 * Colors: navy #031025, electric cyan #53E8F5
 * Requires shared style.css, loaded before this file.
 * Images: assets/*.webp. Product images use object-fit: contain.
 * Layout: 3 + 2 desktop, 2 columns tablet, 1 column mobile.
 */

:root {
  --shop-cyan: #53e8f5;
  --shop-blue: #167de2;
}

.shop-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 40%,rgba(24,120,221,.28),transparent 51%),linear-gradient(110deg,rgba(2,13,29,.97),rgba(4,22,47,.8)),url("assets/bg-network.webp") center/cover;
  border-bottom: 1px solid rgba(83,232,245,.2);
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 36px;
  min-height: 600px;
  padding-block: 52px 28px;
}

.shop-hero-text {
  position: relative;
  z-index: 2;
}

.shop-hero h1 {
  font-size: clamp(3.25rem,5.85vw,6.1rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  margin: 22px 0 21px;
}

.shop-hero .lead {
  max-width: 635px;
  color: #c5d8e8;
  font-size: 1.11rem;
}

.shop-points {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.shop-points span {
  padding: 8px 14px;
  border: 1px solid rgba(83,232,245,.22);
  border-radius: 30px;
  background: rgba(83,232,245,.05);
  color: #bde8ef;
  font-size: .78rem;
  font-weight: 700;
}

.shop-hero-visual {
  position: relative;
  height: 490px;
  max-width: 590px;
  width: 100%;
  isolation: isolate;
}

.shop-halo {
  position: absolute;
  inset: 6% 5% 5% 4%;
  background: radial-gradient(circle,rgba(22,126,210,.25),transparent 62%);
  border: 1px solid rgba(83,232,245,.09);
  border-radius: 50%;
  filter: drop-shadow(0 0 35px rgba(83,232,245,.05));
}

.shop-book {
  position: absolute;
  display: block;
  object-fit: contain;
  height: auto;
  box-shadow: 0 28px 30px rgba(0,0,0,.29);
  border-radius: 7px;
  transition: transform .3s ease;
  aspect-ratio: 1122/1402;
}

.shop-book-one {
  width: 37%;
  left: 1%;
  top: 20%;
  transform: rotate(-11deg);
}

.shop-book-two {
  width: 47%;
  left: 27%;
  top: 0;
  z-index: 2;
  transform: rotate(0deg);
}

.shop-book-three {
  width: 38%;
  right: 0;
  top: 17%;
  transform: rotate(10deg);
}

.shop-book-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #b7ecf3;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .09em;
  text-shadow: 0 3px 10px #00162f;
}

.shop-collection {
  background: linear-gradient(180deg,#031126,#061930 90%);
}

.shop-intro {
  max-width: 810px;
}

.shop-intro h2 {
  margin: 17px 0;
}

.shop-intro p {
  font-size: 1.06rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 40px 0 10px;
}

.shop-filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.shop-filter {
  border: 1px solid rgba(83,232,245,.28);
  background: rgba(14,48,81,.57);
  color: #e0f0fa;
  border-radius: 999px;
  padding: 11px 17px;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s,color .2s;
}

.shop-filter span {
  font-size: .71rem;
  margin-left: 5px;
  opacity: .85;
}

.shop-filter.selected,.shop-filter:hover {
  background: var(--shop-cyan);
  color: #041b33;
  border-color: var(--shop-cyan);
}

.shop-filter:focus-visible,.shop-search input:focus-visible,.catalog-card a:focus-visible {
  outline: 3px solid var(--shop-cyan);
  outline-offset: 3px;
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 255px;
  padding: 7px 12px;
  border: 1px solid rgba(83,232,245,.32);
  border-radius: 12px;
  background: #061c36;
  color: #53e8f5;
}

.shop-search input {
  width: 100%;
  border: 0;
  background: none;
  color: #ecfcff;
  outline: none;
  min-height: 32px;
}

.shop-search input::placeholder {
  color: #9ab2c5;
}

.shop-count {
  font-size: .83rem;
  color: #aac9d9;
  margin: 11px 0 17px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 21px;
}

.catalog-card {
  min-width: 0;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(148deg,#0a2544,#06162d);
  border: 1px solid rgba(83,232,245,.27);
  box-shadow: 0 14px 46px rgba(0,0,0,.15);
  transition: border-color .25s,transform .25s,box-shadow .25s;
}

.catalog-card:hover {
  border-color: rgba(83,232,245,.67);
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0,0,0,.3);
}

.catalog-card[hidden] {
  display: none !important;
}

.catalog-card:nth-child(4) {
  grid-column: 2/span 2;
}

.catalog-card:nth-child(5) {
  grid-column: 4/span 2;
}

.catalog-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 388px;
  padding: 23px 21px 8px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 53%,rgba(26,116,190,.29),transparent 67%),linear-gradient(160deg,#081a31,#061328);
}

.catalog-cover:after {
  content: "";
  position: absolute;
  inset: auto 15% 0;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(83,232,245,.42),transparent);
}

.catalog-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 358px;
  aspect-ratio: 1122/1402;
  object-fit: contain;
  filter: drop-shadow(0 22px 16px rgba(0,0,0,.19));
  transition: transform .3s;
}

.catalog-card:hover .catalog-cover img {
  transform: scale(1.045);
}

.cover-badge {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  border: 1px solid rgba(83,232,245,.4);
  padding: 6px 10px;
  background: rgba(2,17,36,.89);
  color: #c8faff;
  font-size: .64rem;
  letter-spacing: .09em;
  font-weight: 800;
  border-radius: 7px;
}

.catalog-copy {
  padding: 23px 23px 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-category {
  color: #53e8f5;
  font-size: .68rem;
  letter-spacing: .13em;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-copy h3 {
  font-size: 1.52rem;
  letter-spacing: -.035em;
  margin: 10px 0 10px;
  line-height: 1.16;
}

.catalog-copy p {
  font-size: .87rem;
  line-height: 1.65;
  color: #c5d6e6;
  margin: 0 0 16px;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.catalog-chips span {
  font-size: .67rem;
  color: #b7dee7;
  background: rgba(83,232,245,.048);
  border: 1px solid rgba(83,232,245,.15);
  padding: 5px 8px;
  border-radius: 6px;
}

.catalog-action {
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid rgba(83,232,245,.13);
}

.catalog-action .btn {
  min-height: 45px;
  width: 100%;
  justify-content: center;
}

.catalog-action small {
  display: block;
  text-align: center;
  margin-top: 9px;
  font-size: .69rem;
  color: #a8c3d4;
}

.shop-none {
  padding: 30px;
  text-align: center;
  border: 1px dashed rgba(83,232,245,.35);
  border-radius: 14px;
  margin-top: 18px;
}

.shop-listing-note {
  margin: 24px 0 0;
  font-size: .79rem;
  border: 1px solid rgba(83,232,245,.16);
  border-radius: 12px;
  padding: 15px 18px;
  color: #adc8d9;
  background: rgba(83,232,245,.032);
}

.shop-choice {
  border-block: 1px solid rgba(83,232,245,.1);
  background: linear-gradient(130deg,#061c36,#04152e);
}

.shop-choice-head {
  max-width: 750px;
}

.shop-choice-head h2 {
  margin: 18px 0 25px;
}

.shop-choices {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.shop-choices a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px;
  border: 1px solid rgba(83,232,245,.23);
  border-radius: 15px;
  background: rgba(9,41,73,.8);
}

.shop-choices a:hover {
  border-color: #53e8f5;
}

.shop-choices a>span:last-child {
  margin-left: auto;
  color: #53e8f5;
  font-size: 1.25rem;
}

.shop-choices strong,.shop-choices small {
  display: block;
}

.shop-choices strong {
  font-size: .89rem;
  line-height: 1.4;
}

.shop-choices small {
  font-size: .77rem;
  color: #aac5d7;
  margin-top: 6px;
  line-height: 1.5;
}

.shop-choice-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(83,232,245,.11);
  color: #53e8f5;
  border-radius: 11px;
  border: 1px solid rgba(83,232,245,.3);
  font-weight: 800;
}

.shop-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(83,232,245,.33);
  border-radius: 19px;
  padding: 36px 39px;
  background: linear-gradient(110deg,#082e51,#041c36 70%);
}

.shop-final-cta h2 {
  font-size: clamp(2rem,3.7vw,3.5rem);
  margin: 13px 0;
}

.shop-final-cta p {
  max-width: 630px;
  margin: 0;
}

.shop-final-cta .btn-row {
  margin-top: 0;
}

.shop-cta-section {
  padding-top: 66px;
  padding-bottom: 84px;
}

.sr-only {
  position: absolute !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  height: 1px !important;
  width: 1px !important;
  padding: 0 !important;
  border: 0 !important;
}

@media (max-width:1150px) {
  .shop-hero-grid {
    gap: 0;
  }

  .shop-hero-visual {
    height: 420px;
  }

  .catalog-cover {
    height: 335px;
  }

  .catalog-cover img {
    max-height: 305px;
  }

  .shop-final-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width:950px) {
  .shop-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 58px;
  }

  .shop-hero-visual {
    height: 430px;
    margin: 0 auto;
  }

  .shop-hero h1 {
    max-width: 760px;
  }

  .shop-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .catalog-card,.catalog-card:nth-child(4),.catalog-card:nth-child(5) {
    grid-column: auto;
  }

  .shop-choices {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {
  .shop-hero h1 {
    font-size: clamp(2.85rem,10vw,4rem);
  }

  .shop-hero-visual {
    height: 345px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .catalog-cover {
    height: 390px;
  }

  .catalog-cover img {
    max-height: 365px;
  }

  .shop-search {
    width: 100%;
  }

  .shop-toolbar {
    margin-top: 26px;
  }

  .shop-filters {
    gap: 7px;
  }

  .shop-filter {
    font-size: .77rem;
    padding: 9px 12px;
  }

  .shop-final-cta {
    padding: 27px 23px;
  }

  .shop-book-caption {
    font-size: .62rem;
  }

  .shop-choice {
    padding-block: 69px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .catalog-card,.catalog-cover img,.shop-book {
    transition: none !important;
  }

  .catalog-card:hover,.catalog-card:hover .catalog-cover img {
    transform: none !important;
  }
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  background: #53e8f5;
  color: #04162b;
  padding: 12px 17px;
  border-radius: 8px;
  font-weight: 800;
}

.shop-hero-text {
  min-width: 0;
}

.shop-hero-visual {
  margin-inline: auto;
}

.shop-book {
  object-fit: contain;
}

.catalog-cover {
  isolation: isolate;
}

.catalog-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 340px);
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: auto;
}

.catalog-copy h3 {
  text-wrap: balance;
}

.catalog-copy p {
  text-wrap: pretty;
}

.shop-choices a {
  transition: border-color .2s ease, background-color .2s ease;
}

.shop-choices a:hover {
  background: rgba(83,232,245,.09);
}

@media (max-width: 950px) {
  .shop-hero-visual {
    width: min(100%, 590px);
  }

  .catalog-cover img {
    max-width: min(100%, 340px);
  }
}

@media (max-width: 640px) {
  .shop-hero-grid {
    padding-block: 40px 28px;
  }

  .shop-hero-visual {
    height: 330px;
  }

  .shop-hero h1 {
    font-size: clamp(2.65rem, 10vw, 4rem);
  }

  .shop-book-caption {
    white-space: normal;
    text-align: center;
    width: 100%;
  }

  .catalog-card {
    width: 100%;
    max-width: 520px;
    justify-self: center;
  }

  .catalog-cover {
    height: 360px;
    padding: 22px 20px 9px;
  }

  .catalog-cover img {
    max-width: 100%;
    max-height: 330px;
  }

  .catalog-copy {
    padding: 23px 20px 24px;
  }
}

@media (max-width: 370px) {
  .catalog-cover {
    height: 295px;
  }

  .catalog-cover img {
    max-height: 269px;
  }

  .shop-hero-visual {
    height: 270px;
  }
}

/* Keep navigation inside the viewport on small laptops and tablets.
   The shared stylesheet normally switches to its hamburger menu at 800px;
   the longer Products navigation needs that switch at 950px. */
@media (min-width: 801px) and (max-width: 950px) {
  .site-header .nav-inner { min-height: 73px; }
  .site-header .menu-button { display: block; margin-left: auto; }
  .site-header .nav-cta { display: none; }
  .site-header .site-nav {
    position: absolute;
    top: 72px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #051a32;
    border: 1px solid rgba(111,218,255,.17);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,.5);
  }
  .site-header .site-nav.open { display: flex; }
  .site-header .site-nav a { padding: 12px 14px; }
  .site-header .site-nav a.active::after { bottom: 0; }
}
