/**
 * Small Senior Dog Website - Custom Styles
 * Enhanced Design 2026
 */

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors - Warm Purple */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #8b93ff;

    /* Warm Accent Colors */
    --warm-orange: #f0932b;
    --warm-coral: #ff7675;
    --warm-peach: #ffeaa7;
    --soft-cream: #fef9f3;

    /* CTA Colors */
    --cta-color: #00b894;
    --cta-hover: #00a085;
    --cta-gradient: linear-gradient(135deg, #00b894 0%, #00cec9 100%);

    /* Neutral Colors */
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --text-light: #b2bec3;
    --border-light: #dfe6e9;
    --bg-light: #f8f9fa;
    --white: #ffffff;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 80px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== Global Styles ========== */
body {
    color: var(--text-dark);
    background-color: var(--soft-cream);
}

/* Force center content for Gallery and Shop pages - override Astra defaults */
.ast-container {
    max-width: 1240px !important;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Center content for Gallery and Shop pages */
.sdg-container,
.shop-container,
.sdv-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure headers are centered */
.sdg-header,
.shop-header,
.sdv-header {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
}

/* Center align all section titles */
.sdg-section-title,
.shop-section-title,
.sdv-section-title {
    text-align: center;
    display: block;
}

.sdg-section-title::after,
.shop-section-title::after,
.sdv-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Grid Centering */
.sdg-gallery-grid,
.sdg-story-grid,
.shop-grid,
.sdv-video-grid {
    justify-items: center;
}

/* Center cards within grid */
.sdg-story-card,
.shop-card,
.sdv-video-card {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ========== Force Center for WordPress Pages ========== */
/* Target WordPress default page content containers */
.entry-content {
    max-width: 100%;
    padding: 0;
}

.entry-content > *:not(.sdg-container):not(.shop-container):not(.sdv-container) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Force center for Gallery and Shop pages using body classes */
body.page-template-default #primary {
    max-width: 1200px;
    margin: 0 auto;
}

body.page-template-default .entry-content {
    max-width: 100%;
}

/* ========== Header & Navigation ========== */
.site-header {
    box-shadow: var(--shadow-sm);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header-menu .menu-item {
    margin: 0 4px;
}

.main-header-menu .menu-link {
    padding: 12px 18px !important;
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    color: var(--text-dark);
}

.main-header-menu .menu-link:hover {
    background: var(--primary-gradient);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.main-header-menu .current-menu-item .menu-link,
.main-header-menu .current-page-ancestor .menu-link {
    background: var(--primary-gradient);
    color: var(--white) !important;
}

/* Mobile Menu */
@media (max-width: 921px) {
    .main-header-menu .menu-link {
        padding: 15px 20px !important;
        border-radius: var(--radius-sm);
    }
}

/* ========== Hero Section (Homepage) ========== */
.homepage .hero {
    background: var(--primary-gradient);
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="600" cy="300" r="400" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.homepage .hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.homepage .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-cta-buttons .btn-primary,
.hero-cta-buttons .btn-secondary {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
}

.hero-cta-buttons .btn-primary {
    background: var(--cta-gradient);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0,184,148,0.4);
}

.hero-cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,184,148,0.5);
}

.hero-cta-buttons .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.hero-cta-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ========== Page Header ========== */
.page-header {
    background: var(--primary-gradient);
    padding: 80px 20px 60px;
    text-align: center;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: var(--spacing-xl);
}

.page-header .entry-title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-header .entry-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
    line-height: 1.6;
}

/* ========== Story Cards ========== */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
}

.story-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.story-card-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.story-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.story-card:hover .story-card-image img {
    transform: scale(1.08);
}

.story-card-category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--primary-gradient);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    color: var(--text-dark);
}

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

.story-card-title a:hover {
    color: var(--primary-color);
}

.story-card-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.story-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-light);
}

.story-card-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.story-card-read-more:hover {
    gap: 10px;
}

/* ========== Article Cards (Blog) ========== */
.ast-article-post {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    background: var(--white);
}

.ast-article-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.ast-article-post .ast-featured-img {
    overflow: hidden;
}

.ast-article-post .ast-featured-img img {
    transition: transform var(--transition-slow);
}

.ast-article-post:hover .ast-featured-img img {
    transform: scale(1.05);
}

/* ========== Product Cards ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-card-image {
    position: relative;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: var(--bg-light);
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-md);
    transition: transform var(--transition-base);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--warm-orange);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.product-card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--spacing-xs);
    color: #f1c40f;
    font-size: 14px;
}

.product-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.product-card-amazon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FF9900;
    color: var(--white);
    padding: 12px var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    margin-top: auto;
}

.product-card-amazon:hover {
    background: #ec8a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== Buttons ========== */
.ast-button,
.wp-block-button__link,
.btn-primary {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.ast-button:hover,
.wp-block-button__link:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.btn-cta {
    background: var(--cta-gradient);
    box-shadow: 0 4px 15px rgba(0,184,148,0.3);
}

.btn-cta:hover {
    box-shadow: 0 8px 25px rgba(0,184,148,0.4);
}

/* ========== Section Styling ========== */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xxl) 20px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

/* ========== Newsletter Section ========== */
.newsletter-section {
    background: var(--primary-gradient);
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    border-radius: var(--radius-xl);
    margin: var(--spacing-xxl) 0;
}

.newsletter-section h3 {
    color: var(--white);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: var(--spacing-xs);
}

.newsletter-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    outline: none;
}

.newsletter-form button {
    background: var(--cta-gradient);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== Care Guide Categories ========== */
.care-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.care-category-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.care-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.care-category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.care-category-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* ========== Featured Story (Large) ========== */
.featured-story {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: var(--spacing-xl) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .featured-story {
        grid-template-columns: 1fr;
    }
}

.featured-story-image {
    position: relative;
    min-height: 400px;
}

.featured-story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-story-content {
    padding: var(--spacing-xxl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-story-badge {
    display: inline-block;
    background: var(--warm-coral);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    align-self: flex-start;
}

.featured-story-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.featured-story-excerpt {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* ========== Filter/Tabs ========== */
.filter-tabs {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.filter-tab {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 2px solid var(--border-light);
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-size: 14px;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========== Social Share Buttons ========== */
.social-share {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-share-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 18px;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-share-btn.facebook { background: #1877f2; }
.social-share-btn.twitter { background: #1da1f2; }
.social-share-btn.pinterest { background: #e60023; }
.social-share-btn.email { background: var(--text-gray); }

/* ========== Comments Section ========== */
.comments-area {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.comment-body {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.comment-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-widget a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .story-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-buttons .btn-primary,
    .hero-cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========== Animation Keyframes ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse:hover {
    animation: pulse 1.5s ease infinite;
}

/* ========== Utility Classes ========== */
.text-center { text-align: center; }
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-cream { background: var(--soft-cream); }
.shadow-hover:hover { box-shadow: var(--shadow-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* ========== Senior Dog Videos (SDV) ========== */
.sdv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sdv-header {
    text-align: center;
    padding: 80px 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    margin-bottom: 50px;
    box-shadow: var(--shadow-lg);
}

.sdv-header h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.sdv-header p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.sdv-section {
    margin-bottom: 60px;
}

.sdv-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    position: relative;
}

.sdv-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--warm-orange);
}

.sdv-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.sdv-video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.sdv-video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.sdv-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.sdv-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.sdv-video-card:hover .sdv-thumbnail img {
    opacity: 1;
}

.sdv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.sdv-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid var(--primary-color);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.sdv-video-card:hover .sdv-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--white);
}

.sdv-info {
    padding: 20px;
}

.sdv-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.sdv-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sdv-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.sdv-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 50px;
}

.sdv-cta h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.sdv-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.sdv-submit-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition-base);
}

.sdv-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== YouTube Video Wrapper - Responsive ========== */
.sdv-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.sdv-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========== Shop Page Styles ========== */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.shop-header {
    text-align: center;
    padding: 80px 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    margin-bottom: 50px;
    box-shadow: var(--shadow-lg);
}

.shop-header h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.shop-header p {
    color: rgba(255,255,255,0.95);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.shop-section {
    margin-bottom: 60px;
}

.shop-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    position: relative;
}

.shop-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--warm-orange);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.shop-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.shop-card.featured {
    border-color: var(--warm-orange);
}

.shop-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f0932b 0%, #ff7675 100%);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.shop-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.shop-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.shop-btn {
    display: block;
    background: #FF9900;
    color: var(--white);
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
    margin-top: auto;
}

.shop-btn:hover {
    background: #ec8a00;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.shop-affiliate {
    background: var(--soft-cream);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-top: 40px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.shop-affiliate strong {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .sdv-video-grid,
    .shop-grid,
    .sdg-gallery-grid,
    .sdg-story-grid {
        grid-template-columns: 1fr;
    }

    .sdv-header,
    .shop-header,
    .sdg-header {
        padding: 50px 20px;
    }

    .sdv-header h1,
    .shop-header h1,
    .sdg-header h1 {
        font-size: 1.8rem;
    }

    .sdv-header p,
    .shop-header p,
    .sdg-header p {
        font-size: 1rem;
    }

    .sdv-section-title,
    .shop-section-title,
    .sdg-section-title {
        font-size: 1.4rem;
    }
}

/* ========== Product Recommendation Box (In-Article) ========== */
.product-rec-box {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-sm);
}

.product-rec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-light);
}

.product-rec-icon {
    font-size: 1.8rem;
}

.product-rec-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.product-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.product-rec-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
}

.product-rec-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-rec-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: var(--spacing-xs);
}

.product-rec-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-rec-rating {
    color: #f1c40f;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-rec-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.product-rec-btn {
    display: block;
    background: #FF9900;
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
}

.product-rec-btn:hover {
    background: #ec8a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== Sidebar Product Widget ========== */
.sidebar-product-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-product-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-product-item:last-child {
    border-bottom: none;
}

.sidebar-product-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.sidebar-product-info {
    flex: 1;
}

.sidebar-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.sidebar-product-rating {
    color: #f1c40f;
    font-size: 12px;
    margin-bottom: 4px;
}

.sidebar-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-product-link {
    display: block;
    background: #FF9900;
    color: var(--white);
    text-align: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-top: 6px;
    transition: all var(--transition-base);
}

.sidebar-product-link:hover {
    background: #ec8a00;
}

/* ========== CTA Banner (Bottom) ========== */
.cta-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    border-radius: var(--radius-xl);
    margin: var(--spacing-xxl) 0;
}

.cta-banner-title {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.cta-banner-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-banner-btn.secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-banner-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* ========== Product Comparison Table ========== */
.product-comparison {
    overflow-x: auto;
    margin: var(--spacing-xl) 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.comparison-table th:first-child {
    text-align: left;
    background: var(--primary-dark);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.comparison-product-name {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-check {
    color: #27ae60;
    font-size: 1.2rem;
}

.comparison-cross {
    color: #e74c3c;
    font-size: 1.2rem;
}

/* ========== Affiliate Disclosure ========== */
.affiliate-disclosure {
    background: var(--soft-cream);
    border-left: 4px solid var(--warm-orange);
    padding: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: var(--spacing-lg) 0;
}

.affiliate-disclosure strong {
    color: var(--text-dark);
}

/* ========== Editor's Pick Badge ========== */
.editors-pick {
    position: relative;
}

.editors-pick-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.5px;
}

/* ========== Limited Time Offer Bar ========== */
.offer-bar {
    background: linear-gradient(90deg, #ff7675 0%, #f0932b 100%);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.offer-bar a {
    color: var(--white);
    text-decoration: underline;
}

/* ========== Email Subscribe Box ========== */
.email-subscribe-box {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    padding: var(--spacing-xxl) var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.email-subscribe-box h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.email-subscribe-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
}

.email-subscribe-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 450px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-subscribe-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    outline: none;
}

.email-subscribe-form button {
    background: var(--text-dark);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.email-subscribe-form button:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== Star Rating Component ========== */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star-rating .star {
    color: #f1c40f;
}

.star-rating .star.empty {
    color: var(--border-light);
}

.review-count {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-left: 6px;
}

/* ========== Senior Dog Gallery (SDG) - Profit-Oriented Design ========== */
.sdg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sdg-header {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
}

.sdg-header h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.sdg-header p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 10px;
    line-height: 1.7;
}

.sdg-subscribe-cta {
    background: rgba(255,255,255,0.15);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 15px;
}

.sdg-subscribe-cta a {
    color: var(--warm-peach);
    font-weight: 700;
    text-decoration: underline;
}

.sdg-subscribe-cta a:hover {
    color: var(--white);
}

.sdg-section {
    margin-bottom: 60px;
}

.sdg-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    position: relative;
}

.sdg-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--warm-orange);
}

.sdg-section-description {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 15px;
}

.sdg-section-intro {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--soft-cream);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.sdg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Story Card Grid - New Profit Design */
.sdg-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    justify-content: center;
}

.sdg-story-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.sdg-story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.sdg-story-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.sdg-story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.sdg-story-card:hover .sdg-story-image img {
    transform: scale(1.08);
}

.sdg-story-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--warm-orange);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.sdg-story-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sdg-story-dog-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.sdg-story-breed {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.sdg-story-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.sdg-story-quote {
    background: var(--soft-cream);
    border-left: 4px solid var(--warm-coral);
    padding: 15px;
    margin: 15px 0;
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.95rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.sdg-story-product {
    background: linear-gradient(135deg, #fef9f3 0%, #fff5e6 100%);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.sdg-product-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.sdg-product-link {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.sdg-product-link:hover {
    color: var(--warm-orange);
    transform: translateX(5px);
}

.sdg-story-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-gray);
}

.sdg-share-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.sdg-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.sdg-share-btn.pinterest {
    background: #e60023;
}

.sdg-share-btn.facebook {
    background: #1877f2;
}

/* Gallery CTA Section */
.sdg-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 60px;
}

.sdg-cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.sdg-cta-section > p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.sdg-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.sdg-cta-btn {
    padding: 16px 36px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sdg-cta-btn.primary {
    background: var(--cta-gradient);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0,184,148,0.4);
}

.sdg-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,184,148,0.5);
}

.sdg-cta-btn.secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.sdg-cta-btn.secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--white);
    transform: translateY(-3px);
}

.sdg-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-light);
}

.sdg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.sdg-gallery-item:hover img {
    transform: scale(1.1);
}

.sdg-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 60px 20px 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sdg-gallery-item:hover .sdg-overlay {
    opacity: 1;
}

.sdg-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Gallery Lightbox */
.sdg-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.sdg-lightbox.active {
    display: flex;
}

.sdg-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.sdg-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
}

.sdg-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.sdg-lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 15px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sdg-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .sdg-header {
        padding: 40px 15px;
    }

    .sdg-section-title {
        font-size: 1.4rem;
    }

    .sdg-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
        padding: 80px 15px 15px;
    }

    .sdg-overlay h3 {
        font-size: 1rem;
    }
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    margin: 40px auto;
    max-width: 600px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.empty-state-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========== Product Comparison Table ========== */
.sdg-comparison-wrapper {
    margin: 40px 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sdg-comparison-title {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 20px;
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
}

.sdg-comparison-table-container {
    overflow-x: auto;
}

.sdg-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.sdg-comparison-table th,
.sdg-comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.sdg-comparison-table thead th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.sdg-comparison-table .feature-column {
    text-align: left;
    font-weight: 600;
    color: var(--text-gray);
    background: var(--bg-light);
    width: 150px;
}

.sdg-comparison-table .product-column {
    width: 200px;
}

.sdg-comparison-table .product-header img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.sdg-comparison-table .product-header h4 {
    font-size: 1rem;
    margin: 10px 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.sdg-comparison-table .rating {
    color: #f1c40f;
    font-size: 1.1rem;
    margin: 8px 0;
}

.sdg-comparison-table .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 8px 0;
}

.sdg-comparison-table .feature-row:nth-child(odd) {
    background: var(--soft-cream);
}

.sdg-comparison-table .feature-row:hover {
    background: var(--bg-light);
}

.sdg-comparison-table .cta-row td {
    padding-top: 20px;
    padding-bottom: 20px;
}

.sdg-comparison-disclosure {
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    background: var(--bg-light);
    margin: 0;
}

/* CTA Box Component */
.sdg-cta-box {
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid;
}

.sdg-cta-box.cta-info {
    background: #e3f2fd;
    border-color: #2196f3;
}

.sdg-cta-box.cta-warning {
    background: #fff3e0;
    border-color: #ff9800;
}

.sdg-cta-box.cta-success {
    background: #e8f5e9;
    border-color: #4caf50;
}

.sdg-cta-box.cta-tip {
    background: #fff9c4;
    border-color: #ffc107;
}

.sdg-cta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.sdg-cta-icon {
    font-size: 1.5rem;
}

.sdg-cta-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.sdg-cta-content {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.sdg-cta-button {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.sdg-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Product Box Component */
.sdg-product-box {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.sdg-product-box:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.sdg-product-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.sdg-product-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 10px;
}

.sdg-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sdg-product-info {
    flex: 1;
}

.sdg-product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-dark);
}

.sdg-product-rating {
    color: #f1c40f;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sdg-product-rating .star {
    color: #f1c40f;
}

.sdg-product-rating .star.empty {
    color: var(--border-light);
}

.sdg-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sdg-product-features {
    background: var(--soft-cream);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.sdg-product-features h4 {
    font-size: 1rem;
    margin: 0 0 10px;
    color: var(--text-dark);
}

.sdg-product-features ul {
    margin: 0;
    padding-left: 20px;
}

.sdg-product-features li {
    margin-bottom: 8px;
    color: var(--text-gray);
    line-height: 1.5;
}

.sdg-product-button {
    display: block;
    background: #FF9900;
    color: var(--white);
    text-align: center;
    padding: 15px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all var(--transition-base);
}

.sdg-product-button:hover {
    background: #ec8a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Pros and Cons Component */
.sdg-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .sdg-pros-cons {
        grid-template-columns: 1fr;
    }
}

.sdg-pros, .sdg-cons {
    padding: 20px;
    border-radius: var(--radius-lg);
}

.sdg-pros {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.sdg-cons {
    background: #ffebee;
    border: 2px solid #f44336;
}

.sdg-pros h4, .sdg-cons h4 {
    font-size: 1.1rem;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sdg-pros ul, .sdg-cons ul {
    margin: 0;
    padding-left: 20px;
}

.sdg-pros li, .sdg-cons li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Amazon Button */
.sdg-btn-amazon {
    display: inline-block;
    background: #FF9900;
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.sdg-btn-amazon:hover {
    background: #ec8a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sdg-btn-amazon span {
    margin-right: 5px;
}

.sdg-btn-primary {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-base);
}

.sdg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* In-article Affiliate Disclosure */
.in-article-disclosure {
    background: #fef9f3;
    border-left: 3px solid var(--primary-color);
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--text-gray);
}

.in-article-disclosure a {
    color: var(--primary-color);
    text-decoration: none;
}

.in-article-disclosure a:hover {
    text-decoration: underline;
}

/* Affiliate Disclosure Bar (Footer) */
.affiliate-disclosure-bar {
    background: #fef9f3;
    border-top: 1px solid #ffeaa7;
    border-bottom: 1px solid #ffeaa7;
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
}

.affiliate-disclosure-bar a {
    color: var(--primary-color);
    text-decoration: none;
}

.affiliate-disclosure-bar a:hover {
    text-decoration: underline;
}

/* Responsive for Comparison Table */
@media (max-width: 768px) {
    .sdg-comparison-table th,
    .sdg-comparison-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .sdg-comparison-table .product-header img {
        width: 80px;
        height: 80px;
    }

    .sdg-product-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sdg-product-image {
        width: 120px;
        height: 120px;
    }
}

/* ========== Breadcrumb Navigation ========== */
.sdg-breadcrumbs {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.sdg-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sdg-breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.sdg-breadcrumbs span {
    color: var(--text-light);
}

/* ========== Table of Contents ========== */
.sdg-toc {
    background: var(--soft-cream);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    margin: 25px 0;
    max-width: 100%;
}

.sdg-toc h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px;
}

.sdg-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sdg-toc li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.sdg-toc li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.sdg-toc li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sdg-toc li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========== Related Posts ========== */
.sdg-related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-light);
}

.sdg-related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.sdg-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.sdg-related-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.sdg-related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.sdg-related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.sdg-related-card:hover img {
    transform: scale(1.05);
}

.sdg-related-card h4 {
    margin: 0;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.sdg-related-card h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sdg-related-card h4 a:hover {
    color: var(--primary-color);
}

/* ========== Author Box ========== */
.sdg-author-box {
    display: flex;
    gap: 20px;
    background: var(--soft-cream);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-top: 40px;
    align-items: center;
}

.sdg-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--primary-light);
}

.sdg-author-info {
    flex: 1;
}

.sdg-author-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.sdg-author-info p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Responsive for New Components */
@media (max-width: 768px) {
    .sdg-related-grid {
        grid-template-columns: 1fr;
    }

    .sdg-author-box {
        flex-direction: column;
        text-align: center;
    }

    .sdg-author-avatar {
        margin: 0 auto;
    }
}

/* ========== FORCE CENTER LAYOUT (Final Fallback) ========== */
/* This ensures gallery and shop pages are always centered like stories */
.ast-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Force center alignment for page content */
#primary {
    width: 100%;
    max-width: 100%;
}

/* Ensure grids display centered */
.sdg-gallery-grid,
.sdg-story-grid,
.shop-grid,
.sdv-video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Fix grid items width */
.sdg-gallery-grid > *,
.sdg-story-grid > *,
.shop-grid > *,
.sdv-video-grid > * {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

@media (max-width: 992px) {
    .sdg-gallery-grid > *,
    .sdg-story-grid > *,
    .shop-grid > *,
    .sdv-video-grid > * {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .sdg-gallery-grid > *,
    .sdg-story-grid > *,
    .shop-grid > *,
    .sdv-video-grid > * {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========== ULTRA FORCE CENTER (Absolute Last Resort) ========== */
/* Target pages by body class - uses !important to override everything */
body.page-id .site-content .ast-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Center all content inside entry-content for gallery/shop pages */
body.page .entry-content > div:not([class*="sdg"]):not([class*="shop"]):not([class*="sdv"]),
body.page .entry-content > section:not([class*="sdg"]):not([class*="shop"]):not([class*="sdv"]) {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Force center for primary content area */
body.page #primary {
    max-width: 100% !important;
    padding: 0 !important;
}
