/**
 * Storefront Beauty — final polish layer (desktop + mobile)
 * Attractive cards, header, sections, footer, animations
 */

/* ── Global polish ── */
body.pd-layout {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.pd-layout .page-wrapper {
  overflow-x: hidden;
}

/* ── Desktop header ── */
@media (min-width: 992px) {
  body.pd-layout .pd-site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 #e8f5e9, 0 8px 32px rgba(17, 24, 39, 0.06);
    transition: box-shadow 0.25s ease;
  }

  body.pd-layout .pd-topstrip {
    background: #1B5E20;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
  }

  body.pd-layout .pd-topstrip a {
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s;
  }

  body.pd-layout .pd-topstrip a:hover {
    color: #A5D6A7;
  }

  body.pd-layout .pd-savings-bar {
    background: linear-gradient(90deg, #145214, #2E7D32 40%, #388E3C 60%, #145214);
    font-size: 0.875rem;
    padding: 10px 16px;
    letter-spacing: 0.02em;
  }

  body.pd-layout .pd-savings-bar strong {
    color: #C8E6C9;
  }

  body.pd-layout .pd-header-main {
    padding: 14px 0;
    gap: 24px;
    grid-template-columns: 1fr minmax(300px, 580px) 1fr;
  }

  body.pd-layout .pd-header-search {
    justify-self: center;
    width: 100%;
    max-width: 580px;
  }

  body.pd-layout .pd-header-actions {
    justify-self: end;
  }

  body.pd-layout .pd-header-logo img {
    height: 52px;
    transition: transform 0.25s ease;
  }

  body.pd-layout .pd-header-logo:hover img {
    transform: scale(1.03);
  }

  body.pd-layout .pd-header-search .search-box {
    border-radius: 999px;
    border: 2px solid #e8f5e9;
    background: #fafafa;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  body.pd-layout .pd-header-search .search-box:focus-within {
    border-color: #66BB6A;
    box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.15);
  }

  body.pd-layout .pd-header-search .search-box input {
    padding: 14px 20px;
    font-size: 0.9375rem;
  }

  body.pd-layout .pd-header-search .search-box button {
    width: 52px;
    background: linear-gradient(135deg, #66BB6A, #2E7D32);
    border-radius: 0;
    transition: filter 0.2s;
  }

  body.pd-layout .pd-header-search .search-box button:hover {
    filter: brightness(1.08);
  }

  body.pd-layout .pd-header-pill {
    border-radius: 999px;
    border: 1.5px solid #e8f5e9;
    background: #fff;
    padding: 10px 18px;
    transition: all 0.2s ease;
  }

  body.pd-layout .pd-header-pill:hover {
    border-color: #66BB6A;
    background: #f1f8e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.12);
  }

  body.pd-layout .pd-header-pill.pd-cart-pill {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    border-color: transparent;
    color: #fff;
  }

  body.pd-layout .pd-header-pill.pd-cart-pill:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
  }

  body.pd-layout .pd-cat-ribbon-wrap {
    background: linear-gradient(180deg, #fff 0%, #f9fbf7 100%);
    border-bottom: 1px solid #e8f5e9;
  }

  body.pd-layout .pd-cat-ribbon-item {
    transition: transform 0.2s ease;
  }

  body.pd-layout .pd-cat-ribbon-item:hover {
    transform: translateY(-2px);
  }
}

/* ── Product cards (all pages) ── */
body.pd-layout .sp-premium-card {
  border-radius: 16px;
  border: 1px solid #e8f0e8;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.2s;
}

body.pd-layout .sp-premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(46, 125, 50, 0.12);
  border-color: rgba(102, 187, 106, 0.45);
}

body.pd-layout .sp-premium-card-media {
  border-radius: 16px 16px 0 0;
}

body.pd-layout .sp-premium-card-photo {
  object-fit: cover;
  padding: 0;
  transition: transform 0.4s ease;
}

body.pd-layout .sp-premium-card:hover .sp-premium-card-photo {
  transform: scale(1.06);
}

body.pd-layout .sp-premium-badge.sale {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 999px;
  padding: 4px 10px;
}

body.pd-layout .sp-premium-badge.benefit {
  background: #e8f5e9;
  color: #1B5E20;
  border-color: #c8e6c9;
  border-radius: 999px;
}

body.pd-layout .sp-premium-price {
  color: #1B5E20;
  font-size: 1.125rem;
}

body.pd-layout .sp-premium-add {
  background: linear-gradient(135deg, #43A047, #2E7D32);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

body.pd-layout .sp-premium-add:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
  transform: translateY(-2px);
}

body.pd-layout .sp-beauty-grid {
  gap: 20px;
}

@media (min-width: 1200px) {
  body.pd-layout .sp-beauty-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  body.pd-layout .sp-beauty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Category circles (desktop) ── */
body.pd-layout .sp-beauty-cat-grid .sp-cat-circle {
  transition: transform 0.25s ease;
}

body.pd-layout .sp-beauty-cat-grid .sp-cat-circle:hover {
  transform: translateY(-4px);
}

body.pd-layout .sp-beauty-cat-grid .sp-cat-circle-img {
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
  border: 3px solid #fff;
  transition: box-shadow 0.25s ease;
}

body.pd-layout .sp-beauty-cat-grid .sp-cat-circle:hover .sp-cat-circle-img {
  box-shadow: 0 12px 32px rgba(46, 125, 50, 0.2);
}

/* ── Footer — dark green, full contrast ── */
body.pd-layout .site-footer.jp-foot.pd-footer {
  background: linear-gradient(180deg, #1B5E20 0%, #0D3D12 100%) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-top: none !important;
  margin-top: 48px;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  body.pd-layout .site-footer.jp-foot.pd-footer {
    padding-bottom: 24px;
  }
}

body.pd-layout .pd-footer .jp-foot-inner {
  padding: 0 16px;
}

body.pd-layout .pd-footer-features {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 24px 0;
}

body.pd-layout .pd-footer-feature i {
  background: rgba(255, 255, 255, 0.12);
  color: #A5D6A7;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.pd-layout .pd-footer-feature strong {
  color: rgba(255, 255, 255, 0.95);
}

body.pd-layout .pd-footer-main {
  padding: 36px 0 28px;
}

body.pd-layout .pd-footer-col h4 {
  color: #fff;
  border-bottom-color: #66BB6A;
}

body.pd-layout .pd-footer-col ul a,
body.pd-layout .pd-footer-col a {
  color: rgba(255, 255, 255, 0.82);
}

body.pd-layout .pd-footer-col ul a:hover,
body.pd-layout .pd-footer-col a:hover {
  color: #C8E6C9;
}

body.pd-layout .pd-footer-contact-line {
  color: rgba(255, 255, 255, 0.85);
}

body.pd-layout .pd-footer-contact-line i {
  color: #81C784;
}

body.pd-layout .pd-footer-contact-line a {
  color: #fff;
}

body.pd-layout .pd-footer-contact-line span {
  color: rgba(255, 255, 255, 0.85);
}

body.pd-layout .pd-footer-col p,
body.pd-layout .pd-footer-desc {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.875rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

body.pd-layout .pd-footer-app-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.pd-layout .pd-footer-app-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

body.pd-layout .pd-footer-app-btn.pd-footer-app-btn-alt {
  background: rgba(0, 0, 0, 0.25);
}

body.pd-layout .pd-footer-loc-chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

body.pd-layout .pd-footer-pay-row span {
  color: rgba(255, 255, 255, 0.55);
}

body.pd-layout .pd-footer-pay-icons i {
  color: rgba(255, 255, 255, 0.7);
}

body.pd-layout .pd-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  padding: 20px 0;
}

body.pd-layout .pd-footer-bottom strong {
  color: #fff;
}

body.pd-layout .pd-footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}

body.pd-layout .pd-footer-bottom a:hover {
  color: #C8E6C9;
}

body.pd-layout .pd-footer .jp-foot-soc {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.pd-layout .pd-footer .jp-foot-soc:hover {
  background: #66BB6A;
  border-color: #66BB6A;
  color: #fff;
}

body.pd-layout .pd-footer .jp-foot-soc-wa:hover {
  background: #25D366;
  border-color: #25D366;
}

body.pd-layout .pd-footer .jp-foot-soc {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

body.pd-layout .pd-footer .jp-foot-soc:hover {
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  body.pd-layout .pd-footer-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 20px 0;
  }

  body.pd-layout .pd-footer-feature strong {
    font-size: 0.625rem;
  }

  body.pd-layout .pd-footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 20px;
  }

  body.pd-layout .pd-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 575px) {
  body.pd-layout .pd-footer-features {
    grid-template-columns: repeat(2, 1fr);
  }

  body.pd-layout .pd-footer-feature i {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

/* ── Mobile polish ── */
@media (max-width: 991px) {
  body.pd-layout .sp-mobile-chrome {
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
  }

  body.pd-layout .sp-mobile-searchbar {
    border-color: #e8f5e9;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.06);
  }

  body.pd-layout .sp-cat-rail-photo {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  body.pd-layout .sp-cat-rail-item:active .sp-cat-rail-photo {
    transform: scale(0.94);
  }

  body.pd-layout .sp-premium-card {
    border-radius: 18px;
  }

  body.pd-layout .sp-premium-card-photo {
    object-fit: cover;
    padding: 0;
  }

  body.pd-layout .sp-premium-add {
    min-height: 44px;
    font-size: 0.7rem;
  }

  body.pd-layout .sp-mock-bottom-nav.sanju-bottom-nav {
    box-shadow: 0 -8px 32px rgba(17, 24, 39, 0.1) !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.pd-layout .sp-premium-card,
  body.pd-layout .sp-premium-card-photo,
  body.pd-layout .hp-kit-banner {
    transition: none;
  }
}
