/* --- SHARK & SHARP THEME VARIABLES --- */
:root {
  --shark-prussian: #003153;
  /* Deep Blue Background */
  --shark-teal: #008080;
  /* Accent */
  --shark-silver: #C0C0C0;
  /* Borders & Subtext */
  --shark-ivory: #FFFFF0;
  /* Main Text */
  --shark-font-serif: "Playfair Display", "Times New Roman", serif;
  --shark-font-sans: "Helvetica Neue", Helvetica, sans-serif;
}

.md-storepicker {
  width: 100%;
  max-width: 800px;
  /* Optional: constrain width for elegance */
  margin: 0 auto;
  font-family: var(--shark-font-sans);
  color: var(--shark-prussian);
}

/* Header */
.md-storepicker-hd {
  margin-bottom: 20px;
  text-align: center;
}

.md-storepicker-title {
  margin: 0;
  font-family: var(--shark-font-serif);
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--shark-prussian);
}

.md-storepicker-stage {
  position: relative;
}

/* --- CARD STRUCTURE --- */
.md-sp-card {
  position: relative;
  width: 100%;
  aspect-ratio: unset;
  background: #000;
  border: 0 solid var(--shark-silver);
  overflow: hidden;
  /* NO RADIUS */
  border-radius: 0;
  /* Transitions for switching cards */
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 25vw;
}

/* --- IMAGE LAYER --- */
.md-sp-media {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.md-sp-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  /* Subtle zoom effect */
}

.md-sp-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #999;
  font-size: 12px;
  letter-spacing: 1px;
}

/* --- OVERLAY LAYER (The Reveal) --- */
.md-sp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 30px;

  /* DEFAULT STATE (IDLE): Hidden */
  opacity: 0;
  /* background: rgb(198 228 202);*/
  /* Prussian Blue with transparency */
  background-color: #D7CBB1;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Link Mask (Clickable area for the store link) */
.md-sp-link-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  /* Leave space for buttons */
  z-index: 1;
}

/* HOVER EFFECT (Desktop) */
.md-sp-card:hover .md-sp-overlay {
  opacity: 1;
}

.md-sp-card:hover .md-sp-img {
  transform: scale(1.05);
  /* Image slow zoom on hover */
}

/* --- CONTENT STYLING --- */

/* Top Metadata */
.md-sp-meta-top {
  text-align: right;
  border-bottom: 1px solid white;
  /* Faint silver line */
  padding-bottom: 10px;
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.md-sp-card:hover .md-sp-meta-top {
  transform: translateY(0);
}

.md-sp-like-display {
  font-family: var(--shark-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
}

/* Bottom Content */
.md-sp-content-bottom {
  position: relative;
  z-index: 2;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.md-sp-card:hover .md-sp-content-bottom {
  transform: translateY(0);
}

.md-sp-name {
  margin: 0 0 15px 0;
  font-family: var(--shark-font-serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--shark-ivory);
}

.md-sp-name a {
  color: inherit;
  text-decoration: none;
}

.md-sp-desc {
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 12px;
  padding: 0;
  color: var(--shark-ivory);
  font-family: Roboto, arial, sans-serif;
}

/* Actions (Buttons) */
.md-sp-actions {
  display: flex;
  gap: 0;
  /* Connected buttons or slight gap */
  border-top: 1px solid white;
  font-family: Roboto, arial, sans-serif;
}

.md-sp-likebtn,
.md-sp-skipbtn {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid white;
  /* Dividers */
  color: white;
  padding: 15px 0;
  font-family: var(--shark-font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
  /* Ensure sharp */
  text-align: right;
  padding-right: 0;
  font-family: Roboto, arial, sans-serif;
}

.md-sp-skipbtn {
  border-right: none;
}

.md-sp-likebtn:hover,
.md-sp-skipbtn:hover {
  background: unset;
  color: var(--shark-ivory);
  padding-right: 0;
}

.md-sp-likebtn.is-liked {
  background: var(--shark-teal);
  color: var(--shark-ivory);
  cursor: default;
}

.md-sp-likebtn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

/* --- ANIMATIONS (Card Switching) --- */
/* Replacing the "Bounce" with a "Fade/Slide" */

.md-sp-card.is-enter {
  opacity: 0;
  transform: scale(0.98);
  /* Slight zoom in */
}

.md-sp-card.is-exit {
  opacity: 0;
  transform: scale(1.02);
  /* Slight zoom out */
  pointer-events: none;
}

/* --- TOAST STATUS --- */
.md-sp-status {
  display: none;
  margin-top: 15px;
  padding: 8px 12px;
  background: var(--shark-prussian);
  color: var(--shark-ivory);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: center;
  border: 1px solid var(--shark-silver);
  opacity: 1;
  transition: opacity 0.3s;
}

.md-sp-status.is-hide {
  opacity: 0;
}

/* --- RESPONSIVE DESIGN (Mobile/Tablet) --- */
/* On devices that cannot hover, show overlay permanently */
@media (max-width: 767px) {
  .md-sp-card {
    min-height: 50vw;
    max-height: 50vw;
    aspect-ratio: 1;
  }
}

@media (hover: none),
(max-width: 768px) {
  .md-sp-card {}

  .md-sp-overlay {
    opacity: 1;
    /* Always visible */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 45%);
    padding: 14px;
  }

  .md-sp-meta-top {
    /* Hide top meta on mobile initially to keep it clean, or show small */
    display: none;
  }

  .md-sp-content-bottom {
    transform: translateY(0);
  }

  .md-sp-name {
    font-size: 16px;
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 0;
    text-align: center;
  }
  
  .md-sp-name a {
    font-size: inherit;
    line-height: inherit;
  }

  .md-sp-desc {
    font-size: 14px;
    text-align: center;
    display: none;
  }

  .md-sp-actions {
    border-top: none;
    padding: 0;
  }

  .md-sp-likebtn,
  .md-sp-skipbtn {
    border-color: white;
    color: white;
    padding: 0;
    font-size: 10px;
    letter-spacing: 0.05em;
    line-height: 1;
    text-align: center;
  }
}



@media (max-width: 1024px) {



  .md-sp-overlay {
    justify-content: flex-end;
  }
}


@media (min-width: 1024px) {
  .md-sp-card {
    aspect-ratio: unset;
    min-height: 25vw;
  }
}

@media (max-width: 480px) {
  .md-sp-desc {
    display: none;
  }

  .md-sp-actions {
    border-top: unset;
  }
}