/**
 * ParadermaPlus - Premium Custom Styles
 * Modern, luxurious, medical & clean design
 */

 :root {
    --primary: #118499;
    --secondary: #ffffff;
    --accent: #4CAF50;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --text: #1F2937;
    --success: #22C55E;
    --danger: #EF4444;
    --warning: #F59E0B;
}

/* Base */
body {
    font-family: 'Inter', system_ui, sans-serif;
    color: var(--text);
    background-color: var(--bg);
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', 'Inter', system_ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Premium Card Style */
.product-card, .category-card, .brand-card, .review-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #d1d5db;
}

.product-card .product-image {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card .quick-view-btn,
.product-card .add-to-cart-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .quick-view-btn,
.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Category Cards - Beautiful & Animated */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: all 0.4s ease;
}

.category-card:hover::before {
    background: linear-gradient(to bottom, rgba(0,150,136,0.2), rgba(0,150,136,0.5));
}

.category-card .category-content {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-content {
    transform: translateY(-4px);
}

.category-card .icon-wrapper {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Glassmorphism for modals / header on scroll */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

/* Premium Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #00796b;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(0 150 136 / 0.3);
}

.btn-primary:active {
    transform: scale(0.985);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* Rating Stars */
.star {
    color: #fbbf24;
}

/* Modern Form Inputs */
.input-modern {
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
}

.input-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 150, 136, 0.1);
    outline: none;
}

/* Smooth Animations */
.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideIn {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Cart Drawer */
#cart-drawer {
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: -10px 0 30px -15px rgb(0 0 0 / 0.2);
}

/* Product Detail Gallery */
.thumbnail {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Admin Dashboard Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Table Styles - Clean Admin */
.admin-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.admin-table tr:hover {
    background-color: #f8fafc;
}

/* Discount Badge */
.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgb(239 68 68 / 0.3);
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(135deg, #009688 0%, #00bcd4 100%);
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notification */
.toast {
    animation: toastPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastPop {
    0% { transform: scale(0.8) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Responsive Product Grid */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Beautiful Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Focus Visible for Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}



.marquee {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0%);
    }





}



    

/* ── Section shell ── */
.pdp-ingredients-section {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
  background: #080f14;          /* deep clinical dark */
  isolation: isolate;
}

/* ── Atmospheric background ── */
.pdp-ing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Scientific dot-grid */
.pdp-ing-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

/* Atmospheric color orbs */
.pdp-ing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
}
.pdp-ing-orb--1 {
  width: 600px; height: 600px;
  background: #118499;
  top: -120px; left: -100px;
}
.pdp-ing-orb--2 {
  width: 400px; height: 400px;
  background: #6C63FF;
  bottom: -80px; right: 10%;
}
.pdp-ing-orb--3 {
  width: 300px; height: 300px;
  background: #f59e0b;
  top: 40%; right: -60px;
  opacity: .1;
}

/* ── Section header ── */
.pdp-ing-header {
  text-align: center;
  margin-bottom: 56px;
}

.pdp-ing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.45);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pdp-ing-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #118499;
  display: inline-block;
}

.pdp-ing-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
}
.pdp-ing-title-accent {
  background: linear-gradient(135deg, #118499 0%, #4ecdc4 50%, #a8edea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pdp-ing-subtitle {
  color: rgba(255,255,255,.45);
  font-size: .95rem;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Masonry grid ── */
.pdp-ing-masonry {
  columns: 2;
  column-gap: 18px;
}
@media (min-width: 640px)  { .pdp-ing-masonry { columns: 3; } }
@media (min-width: 1024px) { .pdp-ing-masonry { columns: 4; } }
@media (min-width: 1400px) { .pdp-ing-masonry { columns: 4; column-gap: 22px; } }

/* ── Individual card ── */
.pdp-ing-card {
  --ing-from: #118499;
  --ing-to:   #0d6b7f;

  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 220px;
  padding: 26px 24px 20px;
  text-decoration: none;
  cursor: pointer;

  /* Glassmorphism base */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);

  /* Layered box shadow for depth */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 2px 4px rgba(0,0,0,.4),
    0 8px 32px rgba(0,0,0,.3);

  transition:
    transform .45s cubic-bezier(.34,1.56,.64,1),
    box-shadow .35s ease,
    background .35s ease;
}
@media (max-width: 640px) {
  .pdp-ing-masonry { column-gap: 12px; }
  .pdp-ing-card    { min-height: 180px; padding: 20px 16px 16px; border-radius: 18px; margin-bottom: 12px; }
}

/* Tall variant — 40% more height */
.pdp-ing-card--tall { min-height: 310px; }
@media (max-width: 640px) { .pdp-ing-card--tall { min-height: 220px; } }

/* Hover state */
.pdp-ing-card:hover {
  transform: translateY(-6px) scale(1.015);
  background: rgba(255,255,255,.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14) inset,
    0 4px 8px rgba(0,0,0,.5),
    0 20px 60px rgba(0,0,0,.4),
    0 0 40px -10px var(--ing-from);
}

/* Gradient orb that animates on hover */
.pdp-ing-card-orb {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ing-from), var(--ing-to));
  top: -60px; right: -60px;
  opacity: .22;
  filter: blur(40px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  z-index: 0;
}
.pdp-ing-card:hover .pdp-ing-card-orb {
  opacity: .4;
  transform: scale(1.3) translate(-10px, 10px);
}

/* Clinical line decorations */
.pdp-ing-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.pdp-ing-line {
  position: absolute;
  background: rgba(255,255,255,.045);
  transition: opacity .4s ease;
}
.pdp-ing-card:hover .pdp-ing-line { opacity: .7; }

.pdp-ing-line--h1 { height: 1px; width: 100%; top: 46px;  left: 0; }
.pdp-ing-line--h2 { height: 1px; width: 60%; bottom: 52px; right: 0; }
.pdp-ing-line--v1 { width: 1px;  height: 100%; right: 54px; top: 0; }

/* ── Molecule badge (top-left scientific pill) ── */
.pdp-ing-molecule {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--ing-from), var(--ing-to));
  border-radius: 100px;
  padding: 4px 10px 4px 6px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px -2px var(--ing-from);
}
.pdp-ing-molecule-abbr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
  backdrop-filter: blur(4px);
}
.pdp-ing-molecule-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

/* ── Card body ── */
.pdp-ing-card-body {
  position: relative;
  z-index: 2;
}
.pdp-ing-name {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .pdp-ing-name { font-size: 1rem; }
}
.pdp-ing-benefit {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-bottom: 6px;
}
.pdp-ing-desc {
  font-size: .72rem;
  color: rgba(255,255,255,.38);
  line-height: 1.6;
  display: none;           /* only shown on tall cards via next rule */
}
.pdp-ing-card--tall .pdp-ing-desc { display: block; }

/* ── CTA row ── */
.pdp-ing-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.pdp-ing-cta-text {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: color .3s ease;
}
.pdp-ing-cta-arrow {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.35);
  transition: color .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.pdp-ing-card:hover .pdp-ing-cta-text { color: rgba(255,255,255,.9); }
.pdp-ing-card:hover .pdp-ing-cta-arrow {
  color: #fff;
  transform: translateX(5px);
}

/* ── Corner reference number (clinical) ── */
.pdp-ing-ref {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: rgba(255,255,255,.12);
  font-family: 'Poppins', monospace;
  z-index: 2;
  transition: color .3s ease;
}
.pdp-ing-card:hover .pdp-ing-ref { color: rgba(255,255,255,.3); }

/* ── Scroll-reveal animation ── */
.pdp-ing-card {
  opacity: 0;
  transform: translateY(24px);
  animation: ingReveal .55s cubic-bezier(.23,1,.32,1) forwards;
}
@keyframes ingReveal {
  to { opacity: 1; transform: translateY(0); }
}
/* Stagger each card */
.pdp-ing-card:nth-child(1)  { animation-delay: .05s; }
.pdp-ing-card:nth-child(2)  { animation-delay: .10s; }
.pdp-ing-card:nth-child(3)  { animation-delay: .15s; }
.pdp-ing-card:nth-child(4)  { animation-delay: .20s; }
.pdp-ing-card:nth-child(5)  { animation-delay: .25s; }
.pdp-ing-card:nth-child(6)  { animation-delay: .30s; }
.pdp-ing-card:nth-child(7)  { animation-delay: .35s; }
.pdp-ing-card:nth-child(8)  { animation-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .pdp-ing-card { animation: none; opacity: 1; transform: none; }
}

/* ── Transition between dark section and surrounding light sections ── */
.pdp-ingredients-section::before,
.pdp-ingredients-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}
.pdp-ingredients-section::before {
  top: 0;
  background: linear-gradient(to bottom, #F8FAFC, transparent);
}
.pdp-ingredients-section::after {
  bottom: 0;
  background: linear-gradient(to top, #F8FAFC, transparent);
}




