/**
 * Digital Product Store — Storefront CSS
 * Customer-facing design system
 *
 * @package DPS
 * @since 1.1.0
 */

/* ============================================
   Design Tokens
   ============================================ */
:root {
    /* Brand */
    --dps-primary: #2563eb;
    --dps-primary-hover: #1d4ed8;
    --dps-primary-light: #dbeafe;
    --dps-primary-dark: #1e40af;

    --dps-accent: #059669;
    --dps-accent-hover: #047857;
    --dps-accent-light: #d1fae5;

    --dps-warning: #d97706;
    --dps-warning-light: #fef3c7;
    --dps-danger: #dc2626;

    /* Neutrals */
    --dps-bg: #ffffff;
    --dps-bg-alt: #f8fafc;
    --dps-bg-dark: #0f172a;
    --dps-bg-dark-alt: #1e293b;

    --dps-border: #e2e8f0;
    --dps-border-strong: #cbd5e1;

    --dps-text: #0f172a;
    --dps-text-secondary: #475569;
    --dps-text-muted: #94a3b8;
    --dps-text-inverse: #f8fafc;

    /* Spacing */
    --dps-space-xs: 4px;
    --dps-space-sm: 8px;
    --dps-space-md: 16px;
    --dps-space-lg: 24px;
    --dps-space-xl: 32px;
    --dps-space-2xl: 48px;
    --dps-space-3xl: 64px;
    --dps-space-4xl: 96px;

    /* Typography */
    --dps-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --dps-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --dps-text-xs: 0.75rem;
    --dps-text-sm: 0.875rem;
    --dps-text-base: 1rem;
    --dps-text-lg: 1.125rem;
    --dps-text-xl: 1.25rem;
    --dps-text-2xl: 1.5rem;
    --dps-text-3xl: 1.875rem;
    --dps-text-4xl: 2.25rem;
    --dps-text-5xl: 3rem;

    /* Borders */
    --dps-radius-sm: 4px;
    --dps-radius-md: 8px;
    --dps-radius-lg: 12px;
    --dps-radius-xl: 16px;
    --dps-radius-full: 9999px;

    /* Shadows */
    --dps-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --dps-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --dps-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --dps-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    /* Transitions */
    --dps-transition: 150ms ease;
    --dps-transition-slow: 300ms ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.dps-page {
    font-family: var(--dps-font);
    color: var(--dps-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dps-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.dps-page a {
    color: var(--dps-primary);
    text-decoration: none;
    transition: color var(--dps-transition);
}

.dps-page a:hover {
    color: var(--dps-primary-hover);
}

/* ============================================
   Typography
   ============================================ */
.dps-heading-xl {
    font-size: var(--dps-text-5xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dps-heading-lg {
    font-size: var(--dps-text-4xl);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.dps-heading-md {
    font-size: var(--dps-text-3xl);
    font-weight: 700;
    line-height: 1.25;
}

.dps-heading-sm {
    font-size: var(--dps-text-2xl);
    font-weight: 600;
    line-height: 1.3;
}

.dps-heading-xs {
    font-size: var(--dps-text-xl);
    font-weight: 600;
    line-height: 1.4;
}

.dps-subtitle {
    font-size: var(--dps-text-lg);
    color: var(--dps-text-secondary);
    line-height: 1.7;
}

/* ============================================
   Layout
   ============================================ */
.dps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--dps-space-lg);
}

.dps-container--narrow {
    max-width: 800px;
}

.dps-section {
    padding: var(--dps-space-4xl) 0;
}

.dps-section--alt {
    background: var(--dps-bg-alt);
}

.dps-section--dark {
    background: var(--dps-bg-dark);
    color: var(--dps-text-inverse);
}

.dps-section--dark .dps-subtitle {
    color: var(--dps-text-muted);
}

/* ============================================
   Buttons
   ============================================ */
.dps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--dps-space-sm);
    padding: 14px 28px;
    font-size: var(--dps-text-base);
    font-weight: 600;
    font-family: var(--dps-font);
    border: 2px solid transparent;
    border-radius: var(--dps-radius-md);
    cursor: pointer;
    transition: all var(--dps-transition);
    text-decoration: none;
    line-height: 1.4;
}

.dps-btn--primary {
    background: var(--dps-primary);
    color: #fff;
    border-color: var(--dps-primary);
}

.dps-btn--primary:hover {
    background: var(--dps-primary-hover);
    border-color: var(--dps-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--dps-shadow-lg);
}

.dps-btn--accent {
    background: var(--dps-accent);
    color: #fff;
    border-color: var(--dps-accent);
}

.dps-btn--accent:hover {
    background: var(--dps-accent-hover);
    border-color: var(--dps-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--dps-shadow-lg);
}

.dps-btn--outline {
    background: transparent;
    color: var(--dps-primary);
    border-color: var(--dps-primary);
}

.dps-btn--outline:hover {
    background: var(--dps-primary);
    color: #fff;
}

.dps-btn--lg {
    padding: 18px 36px;
    font-size: var(--dps-text-lg);
}

.dps-btn--sm {
    padding: 10px 20px;
    font-size: var(--dps-text-sm);
}

.dps-btn--full {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.dps-hero {
    padding: var(--dps-space-4xl) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--dps-bg) 0%, var(--dps-primary-light) 100%);
}

.dps-hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--dps-accent-light);
    color: var(--dps-accent);
    font-size: var(--dps-text-sm);
    font-weight: 600;
    border-radius: var(--dps-radius-full);
    margin-bottom: var(--dps-space-lg);
}

.dps-hero__title {
    margin-bottom: var(--dps-space-lg);
}

.dps-hero__subtitle {
    max-width: 640px;
    margin: 0 auto var(--dps-space-xl);
}

.dps-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dps-space-md);
    justify-content: center;
    margin-bottom: var(--dps-space-2xl);
}

.dps-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dps-space-xl);
    justify-content: center;
    font-size: var(--dps-text-sm);
    color: var(--dps-text-secondary);
}

.dps-hero__proof-item {
    display: flex;
    align-items: center;
    gap: var(--dps-space-xs);
}

/* ============================================
   Features / What's Inside
   ============================================ */
.dps-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--dps-space-lg);
}

.dps-feature-card {
    padding: var(--dps-space-xl);
    background: var(--dps-bg);
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    transition: all var(--dps-transition);
}

.dps-feature-card:hover {
    border-color: var(--dps-primary);
    box-shadow: var(--dps-shadow-md);
    transform: translateY(-2px);
}

.dps-feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dps-primary-light);
    color: var(--dps-primary);
    border-radius: var(--dps-radius-md);
    font-size: 24px;
    margin-bottom: var(--dps-space-md);
}

.dps-feature-card__title {
    font-size: var(--dps-text-lg);
    font-weight: 600;
    margin-bottom: var(--dps-space-sm);
}

.dps-feature-card__desc {
    font-size: var(--dps-text-sm);
    color: var(--dps-text-secondary);
    line-height: 1.7;
}

/* ============================================
   Stats / Numbers
   ============================================ */
.dps-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--dps-space-xl);
    text-align: center;
}

.dps-stat__number {
    font-size: var(--dps-text-4xl);
    font-weight: 800;
    color: var(--dps-primary);
    line-height: 1;
    margin-bottom: var(--dps-space-xs);
}

.dps-stat__label {
    font-size: var(--dps-text-sm);
    color: var(--dps-text-secondary);
}

/* ============================================
   How It Works
   ============================================ */
.dps-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--dps-space-xl);
    counter-reset: step-counter;
}

.dps-step {
    text-align: center;
    position: relative;
    counter-increment: step-counter;
}

.dps-step__number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dps-primary);
    color: #fff;
    font-size: var(--dps-text-xl);
    font-weight: 700;
    border-radius: var(--dps-radius-full);
    margin: 0 auto var(--dps-space-md);
}

.dps-step__title {
    font-size: var(--dps-text-lg);
    font-weight: 600;
    margin-bottom: var(--dps-space-sm);
}

.dps-step__desc {
    font-size: var(--dps-text-sm);
    color: var(--dps-text-secondary);
    line-height: 1.7;
}

/* ============================================
   Niche Grid
   ============================================ */
.dps-niches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--dps-space-md);
}

.dps-niche-tag {
    display: flex;
    align-items: center;
    gap: var(--dps-space-sm);
    padding: 12px 16px;
    background: var(--dps-bg);
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-md);
    font-size: var(--dps-text-sm);
    font-weight: 500;
    transition: all var(--dps-transition);
}

.dps-niche-tag:hover {
    border-color: var(--dps-primary);
    background: var(--dps-primary-light);
}

.dps-niche-tag__icon {
    font-size: 18px;
}

/* ============================================
   Testimonial / Social Proof
   ============================================ */
.dps-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--dps-space-lg);
}

.dps-proof-card {
    padding: var(--dps-space-xl);
    background: var(--dps-bg);
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
}

.dps-proof-card__text {
    font-size: var(--dps-text-base);
    line-height: 1.7;
    margin-bottom: var(--dps-space-md);
    font-style: italic;
}

.dps-proof-card__author {
    font-size: var(--dps-text-sm);
    font-weight: 600;
}

.dps-proof-card__role {
    font-size: var(--dps-text-xs);
    color: var(--dps-text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.dps-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.dps-faq-item {
    border-bottom: 1px solid var(--dps-border);
}

.dps-faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--dps-space-lg) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--dps-text-lg);
    font-weight: 600;
    font-family: var(--dps-font);
    color: var(--dps-text);
    text-align: left;
}

.dps-faq-item__question:hover {
    color: var(--dps-primary);
}

.dps-faq-item__icon {
    font-size: 20px;
    transition: transform var(--dps-transition);
    flex-shrink: 0;
    margin-left: var(--dps-space-md);
}

.dps-faq-item.open .dps-faq-item__icon {
    transform: rotate(45deg);
}

.dps-faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dps-transition-slow), padding var(--dps-transition-slow);
}

.dps-faq-item.open .dps-faq-item__answer {
    max-height: 500px;
    padding-bottom: var(--dps-space-lg);
}

.dps-faq-item__answer p {
    font-size: var(--dps-text-base);
    color: var(--dps-text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.dps-cta-section {
    text-align: center;
    padding: var(--dps-space-4xl) 0;
    background: linear-gradient(135deg, var(--dps-primary-dark) 0%, var(--dps-primary) 100%);
    color: #fff;
}

.dps-cta-section .dps-subtitle {
    color: rgba(255,255,255,0.8);
}

.dps-cta-section .dps-btn--primary {
    background: #fff;
    color: var(--dps-primary);
    border-color: #fff;
}

.dps-cta-section .dps-btn--primary:hover {
    background: var(--dps-bg-alt);
    color: var(--dps-primary-hover);
}

/* ============================================
   Footer
   ============================================ */
.dps-footer {
    padding: var(--dps-space-2xl) 0;
    background: var(--dps-bg-dark);
    color: var(--dps-text-muted);
    text-align: center;
    font-size: var(--dps-text-sm);
}

.dps-footer a {
    color: var(--dps-text-inverse);
}

.dps-footer a:hover {
    color: var(--dps-primary-light);
}

.dps-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dps-space-lg);
    justify-content: center;
    margin-bottom: var(--dps-space-md);
}

/* ============================================
   Badge / Tag
   ============================================ */
.dps-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--dps-text-xs);
    font-weight: 600;
    border-radius: var(--dps-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dps-badge--new {
    background: var(--dps-accent-light);
    color: var(--dps-accent);
}

.dps-badge--hot {
    background: #fee2e2;
    color: var(--dps-danger);
}

/* ============================================
   Price / Amount
   ============================================ */
.dps-price {
    font-size: var(--dps-text-4xl);
    font-weight: 800;
    color: var(--dps-text);
}

.dps-price__currency {
    font-size: var(--dps-text-xl);
    vertical-align: super;
    font-weight: 600;
}

.dps-price__note {
    font-size: var(--dps-text-sm);
    color: var(--dps-text-muted);
    font-weight: 400;
}

/* ============================================
   Guarantee Box
   ============================================ */
.dps-guarantee {
    display: flex;
    align-items: flex-start;
    gap: var(--dps-space-lg);
    padding: var(--dps-space-xl);
    background: var(--dps-accent-light);
    border: 1px solid var(--dps-accent);
    border-radius: var(--dps-radius-lg);
}

.dps-guarantee__icon {
    font-size: 32px;
    flex-shrink: 0;
}

.dps-guarantee__title {
    font-size: var(--dps-text-lg);
    font-weight: 600;
    margin-bottom: var(--dps-space-xs);
}

.dps-guarantee__text {
    font-size: var(--dps-text-sm);
    color: var(--dps-text-secondary);
    line-height: 1.7;
}

/* ============================================
   Product Summary
   ============================================ */
.dps-product-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--dps-space-2xl);
    align-items: center;
}

.dps-product-summary__list {
    list-style: none;
    padding: 0;
}

.dps-product-summary__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--dps-space-sm);
    padding: var(--dps-space-sm) 0;
    font-size: var(--dps-text-base);
}

.dps-product-summary__list li::before {
    content: "\2713";
    color: var(--dps-accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   Sticky CTA (Mobile)
   ============================================ */
.dps-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--dps-space-md);
    background: var(--dps-bg);
    border-top: 1px solid var(--dps-border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .dps-heading-xl {
        font-size: var(--dps-text-3xl);
    }

    .dps-heading-lg {
        font-size: var(--dps-text-2xl);
    }

    .dps-section {
        padding: var(--dps-space-2xl) 0;
    }

    .dps-hero {
        padding: var(--dps-space-2xl) 0;
    }

    .dps-product-summary {
        grid-template-columns: 1fr;
    }

    .dps-sticky-cta {
        display: block;
    }

    .dps-features {
        grid-template-columns: 1fr;
    }

    .dps-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dps-niches {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dps-heading-xl {
        font-size: var(--dps-text-2xl);
    }

    .dps-hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .dps-btn--lg {
        width: 100%;
    }

    .dps-stats {
        grid-template-columns: 1fr;
    }

    .dps-niches {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Site Header
   ============================================ */
.dps-site-header {
    background: #fff;
    border-bottom: 1px solid var(--dps-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.dps-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.dps-site-header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.dps-site-header__brand .custom-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.dps-site-header__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dps-text);
    letter-spacing: -0.02em;
}

.dps-site-header__nav {
    display: flex;
    align-items: center;
}

.dps-site-header__menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.dps-site-header__menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dps-text-secondary);
    text-decoration: none;
    border-radius: var(--dps-radius-md);
    transition: all var(--dps-transition);
}

.dps-site-header__menu a:hover,
.dps-site-header__menu .current-menu-item a {
    color: var(--dps-primary);
    background: var(--dps-primary-light);
}

/* Hamburger */
.dps-site-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.dps-hamburger,
.dps-hamburger::before,
.dps-hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dps-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.dps-hamburger {
    position: relative;
}

.dps-hamburger::before,
.dps-hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.dps-hamburger::before { top: -7px; }
.dps-hamburger::after { top: 7px; }

.dps-site-header__toggle[aria-expanded="true"] .dps-hamburger {
    background: transparent;
}

.dps-site-header__toggle[aria-expanded="true"] .dps-hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.dps-site-header__toggle[aria-expanded="true"] .dps-hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   WooCommerce Pages — Layout Fixes
   ============================================ */

/* General WC container alignment */
.woocommerce .dps-container,
.dps-page .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--dps-space-lg);
}

/* ============================================
   Single Product Page — Colorful & Engaging
   ============================================ */
.dps-page .woocommerce div.product {
    padding: var(--dps-space-2xl) 0;
}

/* Image section — rounded with subtle shadow */
.dps-page .woocommerce div.product div.images {
    border-radius: var(--dps-radius-xl);
    overflow: hidden;
    box-shadow: var(--dps-shadow-lg);
    border: 3px solid #f1f5f9;
}

.dps-page .woocommerce div.product div.images img {
    display: block;
    width: 100%;
    transition: transform 0.4s ease;
}

.dps-page .woocommerce div.product div.images:hover img {
    transform: scale(1.02);
}

/* Summary section */
.dps-page .woocommerce div.product div.summary {
    padding: 0 0 0 var(--dps-space-xl);
}

/* Product title — bold, dark */
.dps-page .woocommerce div.product .product_title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dps-text);
    margin-bottom: var(--dps-space-sm);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Short description — styled as highlight box */
.dps-page .woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 1rem;
    color: var(--dps-text-secondary);
    line-height: 1.7;
    padding: var(--dps-space-md) var(--dps-space-lg);
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border-left: 4px solid var(--dps-primary);
    border-radius: 0 var(--dps-radius-md) var(--dps-radius-md) 0;
    margin-bottom: var(--dps-space-lg);
}

/* Price — large, colorful */
.dps-page .woocommerce div.product p.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dps-accent);
    margin-bottom: var(--dps-space-lg);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dps-page .woocommerce div.product p.price del {
    font-size: 1.1rem;
    color: var(--dps-text-muted);
    font-weight: 400;
}

.dps-page .woocommerce div.product p.price ins {
    text-decoration: none;
    color: var(--dps-danger);
}

/* Add to cart form */
.dps-page .woocommerce div.product form.cart {
    margin-bottom: var(--dps-space-xl);
    padding: var(--dps-space-lg);
    background: var(--dps-bg-alt);
    border-radius: var(--dps-radius-lg);
    border: 1px solid var(--dps-border);
}

.dps-page .woocommerce div.product form.cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--dps-border);
    border-radius: var(--dps-radius-md);
    overflow: hidden;
    background: #fff;
}

.dps-page .woocommerce div.product form.cart .quantity .qty {
    width: 56px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
}

.dps-page .woocommerce div.product form.cart .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--dps-accent), #10b981);
    color: #fff;
    border: none;
    border-radius: var(--dps-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.dps-page .woocommerce div.product form.cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669, #047857);
}

/* SKU / Categories / Tags meta */
.dps-page .woocommerce div.product .product_meta {
    font-size: 0.8125rem;
    color: var(--dps-text-muted);
    margin-top: var(--dps-space-lg);
    padding-top: var(--dps-space-md);
    border-top: 1px solid var(--dps-border);
}

.dps-page .woocommerce div.product .product_meta span {
    display: block;
    margin-bottom: 4px;
}

.dps-page .woocommerce div.product .product_meta a {
    color: var(--dps-primary);
    text-decoration: none;
}

.dps-page .woocommerce div.product .product_meta a:hover {
    text-decoration: underline;
}

/* ============================================
   Trust Badges — Below Add to Cart
   ============================================ */
.dps-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dps-space-md);
    margin-top: var(--dps-space-xl);
    padding-top: var(--dps-space-lg);
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid var(--dps-border);
    /* Theme-proofing: never float, overlap, or get squeezed into theme columns */
    position: static;
    clear: both;
    width: 100%;
    max-width: 100%;
    float: none;
    box-sizing: border-box;
}

.dps-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: var(--dps-radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #065f46;
}

.dps-trust-badge__icon {
    font-size: 16px;
}

/* ============================================
   Product Tabs — Colorful & Modern
   ============================================ */
.dps-page .woocommerce div.product .woocommerce-tabs {
    margin-top: var(--dps-space-2xl);
}

.dps-page .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    list-style: none;
    margin: 0 0 var(--dps-space-xl);
    background: var(--dps-bg-alt);
    border-radius: var(--dps-radius-lg);
    border: 1px solid var(--dps-border);
}

.dps-page .woocommerce div.product .woocommerce-tabs ul.tabs::before,
.dps-page .woocommerce div.product .woocommerce-tabs ul.tabs::after {
    display: none;
}

.dps-page .woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: var(--dps-radius-md);
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.dps-page .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dps-text-secondary);
    text-decoration: none;
    border-radius: var(--dps-radius-md);
    transition: all 0.2s ease;
}

.dps-page .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #fff;
    border-radius: var(--dps-radius-md);
    box-shadow: var(--dps-shadow-sm);
}

.dps-page .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--dps-primary);
}

.dps-page .woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
    color: var(--dps-primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Tab panels */
.dps-page .woocommerce div.product .woocommerce-tabs .panel {
    margin: 0;
    padding: var(--dps-space-xl);
    background: #fff;
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    box-shadow: var(--dps-shadow-sm);
    animation: dps-tab-fade 0.3s ease;
}

@keyframes dps-tab-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dps-page .woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dps-text);
    margin-bottom: var(--dps-space-lg);
    padding-bottom: var(--dps-space-sm);
    border-bottom: 2px solid var(--dps-primary-light);
}

/* What's Included grid */
.dps-included-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dps-space-lg);
}

.dps-included-item {
    padding: var(--dps-space-lg);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    transition: all 0.2s ease;
}

.dps-included-item:hover {
    border-color: var(--dps-primary);
    box-shadow: var(--dps-shadow-md);
    transform: translateY(-2px);
}

.dps-included-icon {
    font-size: 28px;
    margin-bottom: var(--dps-space-sm);
}

.dps-included-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dps-text);
    margin-bottom: 6px;
}

.dps-included-item p {
    font-size: 0.8125rem;
    color: var(--dps-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Reviews tab styling */
.dps-page .woocommerce #reviews #comments {
    margin-bottom: var(--dps-space-xl);
}

.dps-page .woocommerce #reviews #comments h2 {
    font-size: 1.35rem;
    font-weight: 700;
}

.dps-page .woocommerce #reviews ol.commentlist {
    padding: 0;
    list-style: none;
}

.dps-page .woocommerce #reviews ol.commentlist li {
    padding: var(--dps-space-md);
    margin-bottom: var(--dps-space-md);
    background: var(--dps-bg-alt);
    border-radius: var(--dps-radius-md);
    border: 1px solid var(--dps-border);
}

.dps-page .woocommerce #reviews #review_form #respond {
    margin-top: var(--dps-space-xl);
    padding-top: var(--dps-space-xl);
    border-top: 1px solid var(--dps-border);
}

/* ============================================
   Related Products — Colorful cards
   ============================================ */
.dps-page .woocommerce .related.products {
    margin-top: var(--dps-space-2xl);
    padding-top: var(--dps-space-2xl);
    border-top: 1px solid var(--dps-border);
}

.dps-page .woocommerce .related.products h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--dps-space-xl);
}

.dps-page .woocommerce .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--dps-space-lg);
}

.dps-page .woocommerce .related.products ul.products li.product {
    background: #fff;
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0;
}

.dps-page .woocommerce .related.products ul.products li.product:hover {
    border-color: var(--dps-primary);
    box-shadow: var(--dps-shadow-lg);
    transform: translateY(-4px);
}

.dps-page .woocommerce .related.products ul.products li.product img {
    border-radius: 0;
    margin: 0;
}

.dps-page .woocommerce .related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: var(--dps-space-sm) var(--dps-space-md) 0;
}

.dps-page .woocommerce .related.products ul.products li.product .price {
    padding: 0 var(--dps-space-md);
    color: var(--dps-accent);
    font-weight: 700;
}

.dps-page .woocommerce .related.products ul.products li.product .button {
    margin: var(--dps-space-sm) var(--dps-space-md) var(--dps-space-md);
    padding: 10px 20px;
    background: var(--dps-primary);
    color: #fff;
    border: none;
    border-radius: var(--dps-radius-md);
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.dps-page .woocommerce .related.products ul.products li.product .button:hover {
    background: var(--dps-primary-hover);
}

/* ---- Cart Page ---- */
.dps-page .woocommerce-cart-form {
    margin-bottom: var(--dps-space-xl);
}

.dps-page .woocommerce-cart-form .shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    overflow: hidden;
}

.dps-page .woocommerce-cart-form .shop_table thead {
    background: var(--dps-bg-alt);
}

.dps-page .woocommerce-cart-form .shop_table th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dps-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--dps-border);
}

.dps-page .woocommerce-cart-form .shop_table td {
    padding: 16px;
    border-bottom: 1px solid var(--dps-border);
    vertical-align: middle;
}

.dps-page .woocommerce-cart-form .shop_table tbody tr:last-child td {
    border-bottom: none;
}

.dps-page .cart-collaterals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--dps-space-xl);
    align-items: start;
}

.dps-page .cart_totals {
    background: var(--dps-bg-alt);
    border-radius: var(--dps-radius-lg);
    padding: var(--dps-space-xl);
    border: 1px solid var(--dps-border);
}

.dps-page .cart_totals h2 {
    font-size: var(--dps-text-xl);
    font-weight: 700;
    margin-bottom: var(--dps-space-md);
}

.dps-page .wc-proceed-to-checkout {
    margin-top: var(--dps-space-md);
}

.dps-page .checkout-button {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: var(--dps-text-lg);
    font-weight: 600;
    text-align: center;
    background: var(--dps-accent);
    color: #fff;
    border: none;
    border-radius: var(--dps-radius-md);
    text-decoration: none;
    transition: all var(--dps-transition);
}

.dps-page .checkout-button:hover {
    background: var(--dps-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--dps-shadow-md);
}

/* ---- Checkout Page ---- */
.dps-page .woocommerce-checkout {
    padding: var(--dps-space-2xl) 0;
}

.dps-page #customer_details,
.dps-page #order_review {
    background: #fff;
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    padding: var(--dps-space-xl);
    margin-bottom: var(--dps-space-lg);
}

.dps-page #customer_details h3,
.dps-page #order_review h3 {
    font-size: var(--dps-text-lg);
    font-weight: 600;
    color: var(--dps-text);
    margin-bottom: var(--dps-space-md);
    padding-bottom: var(--dps-space-sm);
    border-bottom: 1px solid var(--dps-border);
}

.dps-page .woocommerce-checkout #payment {
    background: var(--dps-bg-alt);
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    padding: var(--dps-space-xl);
}

.dps-page .woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--dps-border);
    padding-bottom: var(--dps-space-md);
    margin-bottom: var(--dps-space-md);
}

.dps-page .woocommerce-checkout #payment ul.payment_methods li {
    padding: 8px 0;
}

.dps-page .woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: var(--dps-primary);
}

.dps-page #place_order {
    display: block;
    width: 100%;
    padding: 18px;
    font-size: var(--dps-text-lg);
    font-weight: 700;
    text-align: center;
    background: var(--dps-accent);
    color: #fff;
    border: none;
    border-radius: var(--dps-radius-md);
    cursor: pointer;
    transition: all var(--dps-transition);
}

.dps-page #place_order:hover {
    background: var(--dps-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--dps-shadow-md);
}

.dps-page .woocommerce-checkout #payment #payment_method_paystack_label,
.dps-page .woocommerce-checkout #payment .payment_method_label {
    font-weight: 500;
}

.dps-page .woocommerce-checkout .place-order {
    margin-bottom: 0;
}

/* Order received / Thank you */
.dps-page .woocommerce-order {
    padding: var(--dps-space-2xl) 0;
    text-align: center;
}

.dps-page .woocommerce-order h2 {
    font-size: var(--dps-text-2xl);
    font-weight: 700;
    margin-bottom: var(--dps-space-md);
}

.dps-page .woocommerce-order .woocommerce-order-overview {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--dps-space-xl);
    margin: var(--dps-space-xl) 0;
}

.dps-page .woocommerce-order .woocommerce-order-overview li {
    text-align: center;
}

.dps-page .woocommerce-order .woocommerce-order-overview li strong {
    display: block;
    font-size: var(--dps-text-xs);
    font-weight: 600;
    color: var(--dps-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

/* ---- My Account Page ---- */
.dps-page .woocommerce-account {
    padding: var(--dps-space-2xl) 0;
}

.dps-page .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: var(--dps-space-xl);
}

.dps-page .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 4px;
    background: var(--dps-bg-alt);
    border-radius: var(--dps-radius-lg);
    border: 1px solid var(--dps-border);
    margin: 0;
}

.dps-page .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dps-text-secondary);
    text-decoration: none;
    border-radius: var(--dps-radius-md);
    transition: all var(--dps-transition);
}

.dps-page .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.dps-page .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #fff;
    color: var(--dps-primary);
    box-shadow: var(--dps-shadow-sm);
}

.dps-page .woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    padding: var(--dps-space-xl);
}

.dps-page .woocommerce-account h2 {
    font-size: var(--dps-text-xl);
    font-weight: 600;
    margin-bottom: var(--dps-space-lg);
}

.dps-page .woocommerce-account .woocommerce-OrdersTable {
    width: 100%;
    border-collapse: collapse;
}

.dps-page .woocommerce-account .woocommerce-OrdersTable th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dps-text-muted);
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid var(--dps-border);
    background: var(--dps-bg-alt);
}

.dps-page .woocommerce-account .woocommerce-OrdersTable td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--dps-border);
}

/* Downloads table */
.dps-page .woocommerce-account .woocommerce-order-downloads {
    margin-bottom: var(--dps-space-xl);
}

.dps-page .woocommerce-account .woocommerce-order-downloads table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    overflow: hidden;
}

.dps-page .woocommerce-account .woocommerce-order-downloads th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dps-text-muted);
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid var(--dps-border);
    background: var(--dps-bg-alt);
}

.dps-page .woocommerce-account .woocommerce-order-downloads td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--dps-border);
}

.dps-page .woocommerce-account .woocommerce-order-downloads .woocommerce-orders-table__cell-order-downloads {
    text-align: right;
}

.dps-page .woocommerce-account .woocommerce-order-downloads .download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--dps-accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--dps-radius-md);
    transition: all var(--dps-transition);
}

.dps-page .woocommerce-account .woocommerce-order-downloads .download:hover {
    background: var(--dps-accent-hover);
    color: #fff;
}

/* ---- WooCommerce Notices ---- */
.dps-page .woocommerce-error,
.dps-page .woocommerce-info,
.dps-page .woocommerce-message {
    border-radius: var(--dps-radius-md);
    padding: 14px 18px;
    margin-bottom: var(--dps-space-lg);
    font-size: 0.875rem;
    line-height: 1.6;
}

.dps-page .woocommerce-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.dps-page .woocommerce-info {
    background: var(--dps-primary-light);
    border: 1px solid #93c5fd;
    color: var(--dps-primary-dark);
}

.dps-page .woocommerce-message {
    background: var(--dps-accent-light);
    border: 1px solid #6ee7b7;
    color: #065f46;
}

/* ---- WooCommerce Forms ---- */
.dps-page .woocommerce form .form-row {
    margin-bottom: var(--dps-space-md);
}

.dps-page .woocommerce form .form-row label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dps-text);
    margin-bottom: 4px;
}

.dps-page .woocommerce form .form-row input.input-text,
.dps-page .woocommerce form .form-row textarea,
.dps-page .woocommerce form .form-row select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.875rem;
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-md);
    background: #fff;
    color: var(--dps-text);
    transition: border-color var(--dps-transition);
    box-sizing: border-box;
}

.dps-page .woocommerce form .form-row input.input-text:focus,
.dps-page .woocommerce form .form-row textarea:focus,
.dps-page .woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--dps-primary);
    box-shadow: 0 0 0 3px var(--dps-primary-light);
}

/* Login / Register forms */
.dps-page .woocommerce-form-login,
.dps-page .woocommerce-form-register {
    background: #fff;
    border: 1px solid var(--dps-border);
    border-radius: var(--dps-radius-lg);
    padding: var(--dps-space-xl);
    max-width: 500px;
    margin: 0 auto var(--dps-space-xl);
}

.dps-page .woocommerce-form-login h2,
.dps-page .woocommerce-form-register h2 {
    font-size: var(--dps-text-xl);
    font-weight: 600;
    margin-bottom: var(--dps-space-lg);
}

/* ============================================
   Responsive — Header Mobile Menu
   ============================================ */
@media (max-width: 768px) {
    .dps-site-header__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dps-site-header__nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--dps-border);
        box-shadow: var(--dps-shadow-lg);
        padding: var(--dps-space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .dps-site-header__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .dps-site-header__menu {
        flex-direction: column;
        gap: 4px;
    }

    .dps-site-header__menu a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    /* WC responsive */
    .dps-page .cart-collaterals {
        grid-template-columns: 1fr;
    }

    .dps-page .woocommerce-checkout #customer_details,
    .dps-page .woocommerce-checkout #order_review {
        padding: var(--dps-space-md);
    }

    .dps-page .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }

    .dps-page .woocommerce-order .woocommerce-order-overview {
        flex-direction: column;
        gap: var(--dps-space-md);
    }

    .dps-page .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-direction: column;
    }

    .dps-included-grid {
        grid-template-columns: 1fr;
    }

    .dps-trust-badges {
        justify-content: center;
    }
}

/* ============================================
   Product Slider — Related Products
   ============================================ */
.sp-related {
    background: #f8fafc;
    border-top: 1px solid var(--dps-border);
    border-bottom: 1px solid var(--dps-border);
}
.sp-slider {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    padding: 0 48px;
}
.sp-slider__track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.sp-slider__item {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
}
.sp-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--dps-border);
    background: #fff;
    color: var(--dps-text);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}
.sp-slider__arrow:hover {
    background: var(--dps-primary);
    color: #fff;
    border-color: var(--dps-primary);
}
.sp-slider__arrow--prev { left: 4px; }
.sp-slider__arrow--next { right: 4px; }
.sp-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.sp-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dps-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.sp-slider__dot--active {
    background: var(--dps-primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   Product Card — Shared across storefront
   ============================================ */
.sp-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--dps-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.sp-product-card:hover {
    border-color: var(--dps-primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    color: inherit;
}
.sp-product-card__img {
    position: relative;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    overflow: hidden;
}
.sp-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sp-product-card:hover .sp-product-card__img img {
    transform: scale(1.05);
}
.sp-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--dps-text-muted);
}
.sp-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--dps-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sp-product-card__badge--sale {
    background: #dc2626;
}
.sp-product-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sp-product-card__sku {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--dps-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.sp-product-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dps-text);
    margin: 0 0 4px;
    line-height: 1.3;
}
.sp-product-card__cat {
    font-size: 0.75rem;
    color: var(--dps-text-muted);
    margin-bottom: 8px;
}
.sp-product-card__price {
    margin-top: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dps-primary);
}
.sp-product-card__price del {
    color: var(--dps-text-muted);
    font-weight: 400;
    font-size: 0.8125rem;
    margin-right: 6px;
}
.sp-product-card__price ins {
    text-decoration: none;
    color: var(--dps-primary);
}
.sp-btn--sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
    margin-top: 12px;
}

/* Medium card — for sliders */
.sp-product-card--md .sp-product-card__img {
    aspect-ratio: 16/10;
}
.sp-product-card--md .sp-product-card__body {
    padding: 14px 16px 18px;
}
.sp-product-card--md .sp-product-card__title {
    font-size: 0.875rem;
}
.sp-product-card--md .sp-product-card__price {
    font-size: 0.9375rem;
}

/* Storefront slider — medium items */
.sf-top .sp-slider__item {
    flex: 0 0 calc(33.333% - 14px);
}

/* ============================================
   Storefront Hero
   ============================================ */
.sf-hero {
    background:
        radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(170deg, #111d33 0%, #1a2a4a 25%, #152340 50%, #111d33 75%, #0f1a2e 100%);
    background-size: 24px 24px, 100% 100%;
    color: #f8fafc;
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sf-hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -3%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.20) 0%, transparent 65%);
    pointer-events: none;
}
.sf-hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,230,118,0.15) 0%, transparent 65%);
    pointer-events: none;
}
.sf-hero__glow {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244,114,182,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.sf-hero__glow2 {
    position: absolute;
    bottom: 5%;
    right: 12%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(251,191,36,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.sf-hero .sp-container { position: relative; z-index: 1; }
.sf-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 12px;
    line-height: 1.15;
}
.sf-hero__sub {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.sf-hero__search {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}
.sf-search-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: #f8fafc;
    font-size: 0.9375rem;
    backdrop-filter: blur(4px);
}
.sf-search-input::placeholder { color: #64748b; }
.sf-search-input:focus {
    outline: none;
    border-color: rgba(0,230,118,0.5);
    background: rgba(255,255,255,0.10);
}

/* ============================================
   Storefront Sections — Colored backgrounds
   ============================================ */
.dps-storefront { background: #f0f4f8; }
.sf-section { padding: 56px 0; }
.sf-top { background: #e8f5e9; }
.sf-sale { background: #fff8e1; }
.sf-categories { background: #f0f4f8; }
.sf-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 32px;
}
.sf-section__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dps-text);
    margin: 8px 0 0;
}

/* ============================================
   Storefront Grid
   ============================================ */
.sf-grid {
    display: grid;
    gap: 20px;
}
.sf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sf-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   Filters & Sort
   ============================================ */
.sf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.sf-filter {
    padding: 8px 16px;
    border: 1px solid var(--dps-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dps-text-secondary);
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
}
.sf-filter:hover {
    border-color: var(--dps-primary);
    color: var(--dps-primary);
}
.sf-filter--active {
    background: var(--dps-primary);
    color: #fff;
    border-color: var(--dps-primary);
}
.sf-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dps-border);
}
.sf-sort__count {
    font-size: 0.875rem;
    color: var(--dps-text-muted);
}
.sf-sort__options {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--dps-text-muted);
}
.sf-sort-link {
    color: var(--dps-text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.sf-sort-link:hover { color: var(--dps-primary); }
.sf-sort-link--active {
    color: var(--dps-primary);
    font-weight: 600;
    background: var(--dps-primary-light);
}

/* ============================================
   Pagination
   ============================================ */
.sf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}
.sf-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--dps-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dps-text-secondary);
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
}
.sf-pagination__link:hover {
    border-color: var(--dps-primary);
    color: var(--dps-primary);
}
.sf-pagination__link--active {
    background: var(--dps-primary);
    color: #fff;
    border-color: var(--dps-primary);
}
.sf-pagination__link--disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================
   Empty State
   ============================================ */
.sf-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--dps-text-muted);
}
.sf-empty p {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

/* ============================================
   Storefront Responsive
   ============================================ */
@media (max-width: 1024px) {
    .sf-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .sp-slider__item { flex: 0 0 calc(33.333% - 14px); }
}
@media (max-width: 768px) {
    .sf-grid--3, .sf-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .sf-hero__search { flex-direction: column; }
    .sp-slider { padding: 0 36px; }
    .sp-slider__item { flex: 0 0 calc(50% - 10px); }
    .sf-section__header { flex-direction: column; align-items: start; gap: 12px; }
    .sf-sort { flex-direction: column; gap: 12px; align-items: start; }
}
@media (max-width: 480px) {
    .sf-grid--3, .sf-grid--4 { grid-template-columns: 1fr; }
    .sp-slider__item { flex: 0 0 100%; }
    .sf-filters { gap: 6px; }
    .sf-filter { padding: 6px 12px; font-size: 0.75rem; }
}

/* ============================================
   Customer Dashboard — Directive 5
   ============================================ */
.dps-dashboard { background: #f6f8fb; min-height: 60vh; }
.dps-dash-hero {
    background: linear-gradient(170deg, #111d33 0%, #1a2a4a 60%, #152340 100%);
    color: #f8fafc;
    padding: 64px 0 48px;
    text-align: center;
}
.dps-dash-intro { max-width: 640px; margin: 12px auto 0; color: #cbd5e1; }
.dps-dash-intro a, .dps-dash-intro strong { color: #00E676; }
.dps-dash-login {
    background: #fff; border: 1px solid var(--dps-border); border-radius: 16px;
    max-width: 460px; margin: 28px auto 0; padding: 28px; text-align: left;
}
.dps-dash-login p { margin-bottom: 12px; }
.dps-dash-login .login-remember { margin: 8px 0 14px; }
.dps-dash-register { margin-top: 16px; font-size: 0.9rem; color: var(--dps-text-muted); }
.dps-dash-register a { color: var(--dps-primary); font-weight: 600; }
.dps-dash-nav {
    background: #fff; border-bottom: 1px solid var(--dps-border);
    position: sticky; top: 0; z-index: 20;
}
.dps-dash-nav .sp-container { display: flex; gap: 4px; overflow-x: auto; }
.dps-dash-nav a {
    padding: 14px 16px; font-weight: 600; font-size: 0.9rem;
    color: var(--dps-text); text-decoration: none; white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.dps-dash-nav a:hover { color: var(--dps-primary); border-bottom-color: var(--dps-primary); }
.dps-dash-section { padding: 40px 0 8px; }
.dps-dash-section .sp-heading { font-size: 1.35rem; margin-bottom: 16px; }
.dps-dash-table-wrap { background: #fff; border: 1px solid var(--dps-border); border-radius: 12px; overflow-x: auto; }
.dps-dash-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dps-dash-table th {
    text-align: left; padding: 12px 16px; background: #f1f5f9;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #475569;
}
.dps-dash-table td { padding: 12px 16px; border-top: 1px solid var(--dps-border); }
.dps-dash-table code { background: #f1f5f9; padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; }
.dps-dash-empty { background: #fff; border: 1px dashed var(--dps-border); border-radius: 12px; padding: 24px; color: var(--dps-text-muted); }
.dps-dash-note { margin-top: 10px; font-size: 0.85rem; color: var(--dps-text-muted); }
.dps-dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dps-dash-card { background: #fff; border: 1px solid var(--dps-border); border-radius: 12px; padding: 20px; }
.dps-dash-card h4 { margin-bottom: 8px; font-size: 0.95rem; }
.dps-dash-card a { color: var(--dps-primary); font-weight: 600; }
.dps-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: #e2e8f0; color: #334155; }
.dps-status.active, .dps-status.completed { background: #dcfce7; color: #166534; }
.dps-status.pending, .dps-status.on-hold { background: #fef9c3; color: #854d0e; }
.dps-status.failed, .dps-status.cancelled, .dps-status.revoked { background: #fee2e2; color: #991b1b; }
.dps-download-button {
    display: inline-block; background: var(--dps-primary); color: #052e16 !important;
    padding: 7px 14px; border-radius: 8px; font-weight: 700; font-size: 0.85rem;
    text-decoration: none; margin: 2px 4px 2px 0;
}
.dps-download-button:hover { filter: brightness(0.95); }
.dps-download-unavailable { color: var(--dps-text-muted); font-size: 0.85rem; }
@media (max-width: 768px) {
    .dps-dash-hero { padding: 44px 0 32px; }
    .dps-dash-section { padding: 28px 0 6px; }
}
.dps-dash-login, .dps-dash-login label, .dps-dash-login .dps-dash-register { color: #0f172a; }
.dps-dash-login input[type="text"], .dps-dash-login input[type="password"] {
    width: 100%; max-width: 320px; padding: 10px 12px; border: 1px solid var(--dps-border);
    border-radius: 8px; font-size: 0.95rem;
}
.dps-dash-login p.login-submit input[type="submit"] {
    background: var(--dps-primary); color: #052e16; border: none; border-radius: 8px;
    padding: 11px 22px; font-weight: 700; cursor: pointer; font-size: 0.95rem;
}
.dps-dash-login p.login-submit input[type="submit"]:hover { filter: brightness(0.95); }
