/*
Theme Name: Sunny Skin Beauty
Theme URI: https://sunnyskinbeauty.com
Author: Sunny Skin Beauty
Description: Ocean-inspired WooCommerce theme for a Philippine beauty retailer.
Version: 1.8.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: sunny-skin-beauty
*/

:root {
  --ssb-ink: #171817;
  --ssb-paper: #fffdf9;
  --ssb-mist: #effaf7;
  --ssb-sea: #0e9ca1;
  --ssb-deep: #075d67;
  --ssb-coral: #ed607b;
  --ssb-gold: #cba24d;
  --ssb-line: rgba(23, 24, 23, 0.14);
  --ssb-muted: #5c6664;
  --ssb-radius: 8px;
  --ssb-shadow: 0 18px 50px rgba(3, 57, 63, 0.15);
  --ssb-container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ssb-ink);
  background: var(--ssb-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.admin-bar .ssb-header { top: 32px; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

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

.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: #fff;
  z-index: 999;
}

.ssb-container {
  width: min(var(--ssb-container), calc(100% - 40px));
  margin-inline: auto;
}

.ssb-announcement {
  padding: 8px 16px;
  color: #fff;
  background: var(--ssb-deep);
  font-size: 13px;
  text-align: center;
}

.ssb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ssb-line);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(16px);
}

.ssb-header__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.ssb-brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  font-size: 21px;
  font-weight: 850;
  white-space: nowrap;
}

.custom-logo { max-height: 44px; width: auto; }
.ssb-brand span { color: var(--ssb-gold); font-style: italic; }

.ssb-nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ssb-nav a { font-size: 14px; font-weight: 700; }
.ssb-nav a:hover { color: var(--ssb-sea); }

.ssb-header__actions { display: flex; gap: 10px; align-items: center; }

.ssb-account-link {
  min-height: 42px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ssb-line);
  border-radius: var(--ssb-radius);
  color: var(--ssb-ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ssb-account-link--primary { color: #fff; border-color: var(--ssb-ink); background: var(--ssb-ink); }
.ssb-account-link:hover { border-color: var(--ssb-sea); color: var(--ssb-sea); }
.ssb-account-link--primary:hover { color: #fff; border-color: var(--ssb-sea); background: var(--ssb-sea); }

.ssb-icon-button,
.ssb-menu-button {
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ssb-line);
  border-radius: var(--ssb-radius);
  color: var(--ssb-ink);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.ssb-menu-button { display: none; }

.ssb-support-link {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--ssb-radius);
  color: #fff;
  background: var(--ssb-ink);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ssb-mobile-nav { display: none; padding: 0 0 18px; }
.ssb-mobile-nav.is-open { display: block; }
.ssb-mobile-nav ul { margin: 0; padding: 0; list-style: none; }
.ssb-mobile-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--ssb-line); }

.ssb-ocean {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: transparent;
  isolation: isolate;
}

.ssb-ocean::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/images/sunny-beach-effect.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.62) 74%, transparent 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.62) 74%, transparent 84%, transparent 100%);
  content: "";
}

.ssb-shore {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.ssb-shore__wash,
.ssb-shore__foam {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/sunny-beach-effect.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.ssb-shore__wash {
  -webkit-mask-image: linear-gradient(180deg, transparent 26%, rgba(0, 0, 0, 0.58) 34%, #000 44%, rgba(0, 0, 0, 0.42) 55%, transparent 65%);
  mask-image: linear-gradient(180deg, transparent 26%, rgba(0, 0, 0, 0.58) 34%, #000 44%, rgba(0, 0, 0, 0.42) 55%, transparent 65%);
  animation: ssb-shore-push 7.4s cubic-bezier(0.42, 0, 0.28, 1) infinite;
}

.ssb-shore__foam--back {
  -webkit-mask-image: linear-gradient(180deg, transparent 29%, rgba(0, 0, 0, 0.78) 36%, #000 46%, transparent 57%);
  mask-image: linear-gradient(180deg, transparent 29%, rgba(0, 0, 0, 0.78) 36%, #000 46%, transparent 57%);
  filter: brightness(1.12) contrast(1.03) saturate(0.82);
  animation: ssb-foam-back 9.2s cubic-bezier(0.42, 0, 0.28, 1) -2.3s infinite;
}

.ssb-shore__foam--front {
  -webkit-mask-image: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.88) 41%, #000 49%, rgba(0, 0, 0, 0.58) 57%, transparent 66%);
  mask-image: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.88) 41%, #000 49%, rgba(0, 0, 0, 0.58) 57%, transparent 66%);
  filter: brightness(1.18) contrast(1.04) saturate(0.76);
  animation: ssb-foam-front 6.8s cubic-bezier(0.42, 0, 0.22, 1) -0.9s infinite;
}

@keyframes ssb-shore-push {
  0%, 100% { transform: translate3d(0, 12px, 0) scale(1.008); opacity: 0.2; }
  48% { transform: translate3d(0, -28px, 0) scale(1.018); opacity: 0.48; }
  72% { transform: translate3d(0, -20px, 0) scale(1.014); opacity: 0.38; }
}

@keyframes ssb-foam-back {
  0%, 100% { transform: translate3d(0, 8px, 0) scale(1.006); opacity: 0.25; }
  52% { transform: translate3d(0, -24px, 0) scale(1.016); opacity: 0.55; }
}

@keyframes ssb-foam-front {
  0%, 100% { transform: translate3d(0, 11px, 0) scale(1.007); opacity: 0.38; }
  48% { transform: translate3d(0, -38px, 0) scale(1.02); opacity: 0.72; }
  72% { transform: translate3d(0, -29px, 0) scale(1.016); opacity: 0.6; }
}

.ssb-hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 104px);
  display: flex;
  align-items: center;
  padding: 44px 0 76px;
}

.ssb-hero__content { width: 100%; text-align: center; }

.ssb-eyebrow {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid rgba(23, 24, 23, 0.12);
  border-radius: 999px;
  color: var(--ssb-ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ssb-hero h1 {
  margin: 22px auto 12px;
  max-width: 1050px;
  color: var(--ssb-ink);
  font-size: clamp(58px, 10vw, 138px);
  line-height: 0.86;
  letter-spacing: 0;
}

.ssb-hero h1 em {
  display: block;
  color: var(--ssb-gold);
  font-weight: 500;
}

.ssb-hero__copy {
  box-sizing: border-box;
  width: min(720px, 100%);
  margin: 30px auto 0;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--ssb-radius);
  color: #163a3d;
  background: rgba(237, 255, 252, 0.74);
  font-size: 18px;
  backdrop-filter: blur(8px);
}

.ssb-button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.ssb-button,
.button,
button.button,
input.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ssb-ink) !important;
  border-radius: var(--ssb-radius) !important;
  color: #fff !important;
  background: var(--ssb-ink) !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.ssb-button--light { color: var(--ssb-ink) !important; background: rgba(255, 255, 255, 0.82) !important; }

.ssb-sea-content {
  position: relative;
  padding: 76px 0 92px;
  color: #fff;
  background: linear-gradient(180deg, rgba(4, 113, 122, 0.08), rgba(3, 73, 84, 0.34));
}

.ssb-home-water {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: transparent;
}

.ssb-section { padding: 74px 0; }
.ssb-section--paper { background: var(--ssb-paper); }
.ssb-section--mist { background: var(--ssb-mist); }
.ssb-home-water .ssb-section { position: relative; z-index: 1; }
.ssb-home-water .ssb-section--paper,
.ssb-home-water .ssb-section--mist { background: transparent; }
.ssb-home-water .ssb-section h2 { color: #fff; text-shadow: 0 2px 18px rgba(1, 54, 61, 0.32); }
.ssb-home-water .ssb-section__heading > p { color: rgba(255, 255, 255, 0.84); }

.ssb-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.ssb-kicker { margin: 0 0 8px; color: var(--ssb-coral); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.ssb-section h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.04; }
.ssb-section__heading > p { max-width: 580px; margin: 0; color: var(--ssb-muted); }

.ssb-recommended { padding-top: 86px; }

.ssb-deals {
  border: 0;
  background: transparent;
}

.ssb-payment-support {
  padding-bottom: 96px;
  background: transparent;
}

.ssb-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
}

.ssb-empty-state {
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.82);
}

.ssb-deal-controls { display: flex; gap: 8px; }

.ssb-rail-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--ssb-radius);
  color: #fff;
  background: rgba(3, 58, 68, 0.38);
  cursor: pointer;
  font-size: 20px;
}

.ssb-rail-button:hover,
.ssb-rail-button:focus-visible { color: var(--ssb-ink); background: #fff; }

.ssb-deal-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 278px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 255, 255, 0.64) rgba(2, 48, 59, 0.18);
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.ssb-deal-rail .ssb-product-card { scroll-snap-align: start; }

.ssb-trust-grid,
.ssb-category-grid,
.ssb-product-grid,
.ssb-footer__grid { display: grid; gap: 18px; }

.ssb-trust-grid { grid-template-columns: repeat(4, 1fr); }
.ssb-category-grid { grid-template-columns: repeat(4, 1fr); }
.ssb-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ssb-trust-item,
.ssb-category-card,
.ssb-product-card,
.ssb-panel {
  border: 1px solid var(--ssb-line);
  border-radius: var(--ssb-radius);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 10px 30px rgba(3, 57, 63, 0.07);
  backdrop-filter: blur(9px);
}

.ssb-trust-item { padding: 20px; }
.ssb-trust-item,
.ssb-category-card,
.ssb-product-card { color: var(--ssb-ink); }
.ssb-trust-item strong { display: block; margin-bottom: 6px; }
.ssb-trust-item span { color: var(--ssb-muted); font-size: 14px; }

.ssb-category-card {
  min-height: 230px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.9)),
    var(--tile, #f7b2bf);
}

.ssb-category-card:nth-child(2) { --tile: #a8d8d0; }
.ssb-category-card:nth-child(3) { --tile: #f1d17f; }
.ssb-category-card:nth-child(4) { --tile: #bfd3eb; }
.ssb-category-card h3 { margin: 0 0 5px; font-size: 21px; }
.ssb-category-card p { margin: 0; color: var(--ssb-muted); }

.ssb-product-card { overflow: hidden; }
.ssb-product-card__media { position: relative; aspect-ratio: 1 / 1.08; overflow: hidden; background: #e4f3ef; }
.ssb-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.ssb-product-card:hover img { transform: scale(1.035); }
.ssb-product-card__body { padding: 16px; }
.ssb-product-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.ssb-product-card .price { color: var(--ssb-deep); font-weight: 850; }

.ssb-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 4px;
  color: #fff;
  background: var(--ssb-coral);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ssb-deal-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 10px;
}

.ssb-deal-price del { color: #7a817f; font-size: 13px; }
.ssb-deal-price ins { color: #b51f4a; font-size: 18px; font-weight: 850; text-decoration: none; }
.ssb-product-card--recommended .ssb-product-card__body { min-height: 76px; }

.ssb-panel { padding: 26px; }

.ssb-main {
  min-height: 55vh;
  overflow: hidden;
  background-color: #07949a;
  background-image: url("assets/images/sunny-water-effect.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.ssb-content { padding: 54px 0; }

.woocommerce .products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 14px; border: 1px solid var(--ssb-line); border-radius: var(--ssb-radius); background: #fff; }
.woocommerce ul.products li.product img { border-radius: 6px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr); gap: 42px; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: auto !important; float: none !important; }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells,
.ssb-product-details { grid-column: 1 / -1; }
.ssb-product-introduction-title {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}
.ssb-product-details {
  margin-top: 28px;
  padding-top: 34px;
  border-top: 1px solid var(--ssb-line);
}
.ssb-product-details > h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 38px); }
.ssb-product-details__content { max-width: 840px; font-size: 16px; line-height: 1.75; }
.ssb-product-detail-gallery { display: grid; gap: 18px; margin-top: 30px; }
.ssb-product-detail-gallery figure { margin: 0; overflow: hidden; border-radius: var(--ssb-radius); }
.ssb-product-detail-gallery img { display: block; width: 100%; height: auto; }
.ssb-recipient-order-address { max-width: 640px; }
.ssb-recipient-order-address address { min-height: 0; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ssb-line);
  border-radius: var(--ssb-radius);
  background: #fff;
}

.ssb-footer { padding: 52px 0; color: #fff; background: #13383c; }
.home .ssb-footer {
  background: linear-gradient(180deg, #0a7480, #052f3b);
}
.ssb-footer__grid { grid-template-columns: 1.3fr 0.8fr 0.8fr; }
.ssb-footer h2, .ssb-footer h3 { margin-top: 0; }
.ssb-footer p, .ssb-footer a { color: rgba(255,255,255,0.74); }
.ssb-footer a { display: block; margin: 8px 0; }

@media (max-width: 920px) {
  .ssb-nav, .ssb-support-link { display: none; }
  .ssb-menu-button { display: inline-grid; }
  .ssb-header__inner { grid-template-columns: 1fr auto; }
  .ssb-header__actions { justify-content: end; }
  .ssb-trust-grid, .ssb-category-grid, .ssb-product-grid,
  .woocommerce .products { grid-template-columns: repeat(2, 1fr) !important; }
  .ssb-footer__grid, .woocommerce div.product { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body.admin-bar .ssb-header { top: 46px; }
  .ssb-container { width: min(var(--ssb-container), calc(100% - 24px)); }
  .ssb-announcement { font-size: 12px; }
  .ssb-header__inner { min-height: 62px; gap: 8px; }
  .ssb-header__actions { gap: 5px; }
  .ssb-brand { font-size: 15px; }
  .ssb-account-link { min-height: 36px; padding: 7px 6px; font-size: 10px; }
  .ssb-menu-button { min-width: 36px; width: 36px; height: 36px; padding: 0; }
  .ssb-hero { min-height: 690px; padding-top: 34px; align-items: start; }
  .ssb-hero h1 { margin-top: 34px; font-size: 52px; }
  .ssb-hero__copy { font-size: 16px; }
  .ssb-section { padding: 52px 0; }
  .ssb-section__heading { display: block; }
  .ssb-section__heading > p { margin-top: 14px; }
	.ssb-deal-controls { margin-top: 18px; }
	.ssb-deal-rail { grid-auto-columns: minmax(210px, 82vw); }
  .ssb-trust-grid, .ssb-category-grid, .ssb-product-grid,
  .woocommerce .products { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ssb-shore__wash,
  .ssb-shore__foam { animation: none; }
}
