/* ══════════════════════════════════════════════════════════════
   PornhubStars — Midnight Velvet Design System
   Core tokens, reset, typography, animations, utilities
   ══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --midnight:     #0D0015;
    --velvet:       #1A0A2E;
    --plum:         #2D1B4E;
    --orchid:       #8B5CF6;
    --orchid-glow:  #A78BFA;
    --orchid-dim:   #6D3FC4;
    --rose:         #F43F8E;
    --rose-glow:    #FF6BA8;
    --blush:        #FBD5E5;
    --champagne:    #F5E6D3;
    --cream:        #FAF5FF;
    --mist:         #C4B5D9;
    --smoke:        #6B5B8D;
    --ember:        #EF4444;
    --sage:         #10B981;
    --amber:        #F59E0B;
    --border:       #3D2A5C;
    --border-light: #4E3870;

    --glass-bg:     rgba(26, 10, 46, 0.75);
    --glass-blur:   blur(16px);

    --shadow-xs:    0 1px 3px rgba(0,0,0,0.2);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:    0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg:    0 16px 48px rgba(0,0,0,0.5);
    --shadow-orchid:0 0 20px rgba(139,92,246,0.25);
    --shadow-rose:  0 0 20px rgba(244,63,142,0.2);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition:    all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;

    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    24px;
    --radius-pill:  100px;
    --radius-round: 50%;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 72px;
    --announcement-height: 36px;
    --max-width: 1400px;
}

/* ─── CSS Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--midnight);
    color: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul, ol { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-size: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb { background: var(--plum); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orchid); }

/* Horizontal Carousels Custom Scrollbar */
.product-carousel,
.recommendations {
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) rgba(13, 0, 21, 0.6);
}
.product-carousel::-webkit-scrollbar,
.recommendations::-webkit-scrollbar {
    height: 8px;
}
.product-carousel::-webkit-scrollbar-track,
.recommendations::-webkit-scrollbar-track {
    background: rgba(13, 0, 21, 0.6);
    border-radius: 10px;
}
.product-carousel::-webkit-scrollbar-thumb,
.recommendations::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
    border: 2px solid rgba(13, 0, 21, 0.6);
}
.product-carousel::-webkit-scrollbar-thumb:hover,
.recommendations::-webkit-scrollbar-thumb:hover {
    background: var(--orchid);
}

/* ─── Selection ─── */
::selection { background: rgba(139,92,246,0.3); color: var(--cream); }

/* ─── Keyframe Animations ─── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseOrchid {
    0% { box-shadow: 0 0 0 0 rgba(139,92,246,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(139,92,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ─── Scroll Animation Classes ─── */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

[data-animate="fade-in"] { transform: none; }
[data-animate="slide-left"] { transform: translateX(40px); }
[data-animate="slide-right"] { transform: translateX(-40px); }
[data-animate="scale-in"] { transform: scale(0.92); }

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ─── Utility Classes ─── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section { padding: 80px 0; }
.section--sm { padding: 40px 0; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-orchid { color: var(--orchid); }
.text-rose { color: var(--rose); }
.text-mist { color: var(--mist); }
.text-smoke { color: var(--smoke); }
.text-sage { color: var(--sage); }
.text-champagne { color: var(--champagne); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

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

.gradient-text {
    background: linear-gradient(135deg, var(--cream) 0%, var(--orchid-glow) 50%, var(--rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.display-heading {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── Loading Spinner ─── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--plum);
    border-top-color: var(--orchid);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* ─── Hidden State ─── */
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   PornhubStars — Premium Feature Extensions (Aesthetic Styling)
   ══════════════════════════════════════════════════════════════ */

/* ─── 1. Discreet Mode & Blur Controls ─── */
body.discreet-mode-active img:not(.no-blur),
body.discreet-mode-active .blog-card__image {
    filter: blur(28px) grayscale(90%) brightness(0.6) !important;
    transition: filter 0.4s var(--ease-out-expo), opacity 0.4s ease !important;
}

body.discreet-mode-active .product-card__image::after,
body.discreet-mode-active .product-detail__info + div::after,
body.discreet-mode-active .category-card::after {
    content: "🔒 Discreet Blur Active";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 0, 21, 0.9);
    color: var(--blush);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

/* Hover to reveal image in discreet mode */
body.discreet-mode-active .product-card:hover img,
body.discreet-mode-active .product-detail__info + div:hover img,
body.discreet-mode-active .category-card:hover img {
    filter: blur(0px) grayscale(0%) brightness(1) !important;
}

body.discreet-mode-active .product-card:hover .product-card__image::after,
body.discreet-mode-active .product-detail__info + div:hover::after,
body.discreet-mode-active .category-card:hover::after {
    display: none !important;
}

/* Floating Quick Exit Button */

    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    right: auto !important;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 99999 !important;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-out-expo);
}


    background: rgba(239, 68, 68, 0.8);
    color: #fff;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
}


    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: bold;
    font-family: inherit;
}

/* ─── 2. Compare Drawer & Comparison Tool ─── */
.compare-drawer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(26, 10, 46, 0.95);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99998 !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.compare-drawer.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}




.compare-drawer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.compare-drawer__header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--cream);
    margin: 0 0 4px;
}

.compare-drawer__items {
    display: flex;
    gap: 16px;
    flex: 1;
    overflow-x: auto;
    padding: 4px 0;
}

.compare-drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(13, 0, 21, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    min-width: 200px;
    max-width: 250px;
    position: relative;
}

.compare-drawer__item-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--plum);
    flex-shrink: 0;
}

.compare-drawer__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-drawer__item-info {
    flex: 1;
    overflow: hidden;
}

.compare-drawer__item-info h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--cream);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-drawer__item-info span {
    font-size: 11px;
    color: var(--orchid-glow);
    font-weight: 700;
}

.compare-drawer__item-remove {
    background: none;
    border: none;
    color: var(--smoke);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
}

.compare-drawer__item-remove:hover {
    color: var(--rose);
}

.compare-drawer__actions {
    display: flex;
    gap: 12px;
}

/* Compare View */
.compare-container {
    max-width: var(--max-width);
    margin: 40px auto 80px;
    padding: 0 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    background: rgba(26, 10, 46, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.compare-table th, 
.compare-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-table th {
    background: rgba(15, 6, 28, 0.9);
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--mist);
    width: 20%;
    background: #0d0416 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    left: 0;
    z-index: 11;
}

.compare-table th:first-child {
    z-index: 12;
}

.compare-table tr:hover {
    background: rgba(139, 92, 246, 0.02);
}

/* ─── 3. Wellness Quiz ─── */
.quiz-container {
    max-width: 800px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.quiz-card {
    background: rgba(26, 10, 46, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
    margin-bottom: 32px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orchid), var(--rose));
    transition: width 0.4s var(--ease-out-expo);
}

.quiz-question {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 24px;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 600px) {
    .quiz-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quiz-option-card {
    background: rgba(13, 0, 21, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.quiz-option-card:hover {
    border-color: var(--orchid);
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: var(--shadow-orchid);
}

.quiz-option-card.selected {
    border-color: var(--rose);
    background: rgba(244, 63, 142, 0.05);
    box-shadow: var(--shadow-rose);
}

.quiz-option-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cream);
    margin: 0;
}

.quiz-option-card p {
    font-size: 13px;
    color: var(--mist);
    margin: 0;
    line-height: 1.4;
}

/* ─── 4. Live Order Tracker ─── */
.tracker-container {
    max-width: 700px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.tracker-card {
    background: rgba(26, 10, 46, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.timeline {
    position: relative;
    padding-left: 32px;
    margin-top: 32px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 7px;
    width: 2px;
    height: calc(100% - 24px);
    background: var(--border-light);
}

.timeline-step {
    position: relative;
    padding-bottom: 28px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-round);
    background: var(--midnight);
    border: 3px solid var(--border-light);
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-dot {
    background: var(--sage);
    border-color: var(--sage);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-step.active .timeline-dot {
    background: var(--orchid);
    border-color: var(--orchid);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--cream);
    margin: 0;
}

.timeline-content p {
    font-size: 13px;
    color: var(--mist);
    margin: 0;
    line-height: 1.4;
}

.timeline-time {
    font-size: 11px;
    color: var(--smoke);
    font-weight: 500;
}

/* ─── 5. Ambient Visual Glows & Header ─── */
.ambient-glow-sphere {
    position: fixed;
    width: 35vw;
    height: 35vw;
    border-radius: var(--radius-round);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(244, 63, 142, 0.03) 50%, rgba(0, 0, 0, 0) 100%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.ambient-glow-sphere--1 {
    top: -15vh;
    left: -10vw;
}

.ambient-glow-sphere--2 {
    bottom: -15vh;
    right: -10vw;
}

.header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(13, 0, 21, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0015;
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 99px;
    border: 2px solid #0d0015;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 63, 142, 0.5);
}

/* Responsive Packaging Steps Grid */
.packaging-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
}
@media (min-width: 768px) {
    .packaging-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.packaging-step-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}
.packaging-step-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(139,92,246,0.15);
}

/* Responsive adjustments for tracker input */
.tracker-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 500px) {
    .tracker-input-group {
        flex-direction: column;
    }
    .tracker-input-group button {
        width: 100%;
    }
}

.tracker-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
@media (max-width: 500px) {
    .tracker-header-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
    }
    .tracker-header-box div {
        text-align: left !important;
    }
}

/* Quiz Results Product Action Panel */
.quiz-action-panel {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.quiz-action-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
}
@media (max-width: 650px) {
    .quiz-action-panel {
        width: 100% !important;
        align-items: flex-start !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 16px;
        margin-top: 8px;
    }
    .quiz-action-buttons {
        flex-direction: row !important;
        width: 100% !important;
        gap: 12px;
    }
    .quiz-action-buttons a, .quiz-action-buttons button {
        flex: 1;
        text-align: center;
        padding: 10px 0 !important;
    }
}

/* Quiz Footer Buttons Group */
.quiz-footer-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.quiz-footer-buttons .btn {
    border-radius: 30px;
    padding: 16px 32px;
    font-size: 14px;
    white-space: nowrap;
}
@media (max-width: 500px) {
    .quiz-footer-buttons {
        gap: 8px;
    }
    .quiz-footer-buttons .btn {
        flex: 1;
        padding: 12px 8px;
        font-size: 12px;
        text-align: center;
        min-width: 0;
    }
}

