/*
Theme Name: Sara Simplifies Storefront
Author: Sara Simplifies
Description: A focused, mobile-first link storefront with editable profile, sections, cards, images, copy, prices, and links.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sara-simplifies-storefront
Tags: featured-images, one-column, theme-options
*/

:root {
  --ss-page: #feebff;
  --ss-page-accent: #ffcdef;
  --ss-hot-pink: #fe66b1;
  --ss-coral: #ff6a69;
  --ss-white: #ffffff;
  --ss-ink: #161616;
  --ss-shadow: 0 9px 22px rgba(79, 29, 70, 0.13);
  --ss-radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ss-page);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ss-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 205, 239, 0.78), transparent 24rem),
    linear-gradient(180deg, #fff8ff 0%, var(--ss-page) 35%, #fff3ff 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: #000;
  background: #fff;
  font-weight: 700;
}

.ss-site {
  min-height: 100vh;
}

.ss-shell {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 18px 17px 96px;
}

.ss-profile,
.ss-card {
  overflow: hidden;
  box-shadow: var(--ss-shadow);
}

.ss-profile {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 238px;
  border-radius: var(--ss-radius);
  color: var(--ss-white);
  background: var(--ss-hot-pink);
}

.ss-profile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

.ss-profile__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 14px 15px;
}

.ss-profile__name {
  margin: 0 0 20px;
  font-size: clamp(27px, 8vw, 31px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ss-profile__tagline {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  white-space: pre-line;
}

.ss-socials {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.ss-social {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.ss-social:hover,
.ss-social:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.ss-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ss-section-title {
  width: fit-content;
  max-width: 90%;
  margin: 38px auto 22px;
  padding: 12px 25px;
  border-radius: 999px;
  color: #fff;
  background: var(--ss-hot-pink);
  box-shadow: 0 6px 14px rgba(254, 102, 177, 0.18);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.ss-cards {
  display: grid;
  gap: 16px;
}

.ss-card {
  display: grid;
  grid-template-columns: 40% 60%;
  height: 230px;
  min-height: 230px;
  border-radius: var(--ss-radius);
  color: #fff;
  background: var(--ss-coral);
}

.ss-card__media {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.ss-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ss-card__image--empty {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.88);
}

.ss-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px 14px 15px;
}

.ss-card__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.08;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ss-card__description {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ss-card__price {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
}

.ss-card__old-price {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}

.ss-card__button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 10px 13px;
  border: 0;
  border-radius: 11px;
  color: #161616;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ss-card__button:hover,
.ss-card__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(73, 24, 46, 0.16);
}

.ss-card__arrow {
  position: relative;
  width: 17px;
  height: 12px;
  flex: 0 0 17px;
}

.ss-card__arrow::before {
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  content: "";
}

.ss-card__arrow::after {
  position: absolute;
  top: 1px;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.ss-privacy {
  display: block;
  width: fit-content;
  margin: 37px auto 0;
  padding: 9px 21px;
  border-radius: 999px;
  color: var(--ss-hot-pink);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.ss-footer-bar {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px max(20px, env(safe-area-inset-right)) calc(11px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  color: #29235c;
  background: rgba(240, 239, 255, 0.96);
  box-shadow: 0 -5px 18px rgba(85, 68, 142, 0.08);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.ss-footer-bar__brand,
.ss-footer-bar__link {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ss-footer-bar__dot {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #5b62ff;
  font-size: 11px;
}

.ss-footer-bar__link {
  color: #5b4ed4;
  text-decoration: none;
}

.ss-standard-content {
  width: min(100% - 32px, 760px);
  min-height: calc(100vh - 100px);
  margin: 30px auto;
  padding: clamp(22px, 5vw, 44px);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ss-shadow);
}

.ss-standard-content h1 {
  margin-top: 0;
}

@media (min-width: 720px) {
  .ss-shell {
    padding-top: 34px;
  }
}

@media (max-width: 340px) {
  .ss-shell {
    padding-right: 11px;
    padding-left: 11px;
  }

  .ss-card__content {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ss-card__title {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
