:root {
    --primary-violet: #5b4882;
    --accent-green: #c1e1c1;
    --text-dark: #333;
    --bg-light: #ffffff;
    --white: #ffffff;
    --surface-border: #e1d9eb;
    --surface-radius: 10px;
    --surface-shadow: 0 2px 8px rgba(0,0,0,0.035);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background-color: var(--white);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 70px;
    width: auto;
}

#site-name {
    color: var(--primary-violet);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--primary-violet);
    font-weight: 600;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #7d6ba8;
}

/* Mobile navigation elements hidden by default on desktop */
.hamburger-btn,
.mobile-nav-backdrop,
.mobile-nav-drawer {
    display: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3eff9;
    color: var(--primary-violet);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.social-link:hover {
    background-color: var(--primary-violet);
    color: var(--white);
    transform: scale(1.1);
}

.hero {
    background: linear-gradient(135deg, var(--accent-green) 0%, #e8f5e8 100%);
    padding: 1.25rem 5%;
    text-align: center;
    color: var(--primary-violet);
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 200px;
    height: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
}

.hero::before {
    left: 2%;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 350' fill='none' stroke='%235b4882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20,330 C45,260 55,180 45,60' stroke-width='3.5' /%3E%3Cpath d='M40,240 Q60,230 75,225' /%3E%3Cpath d='M75,225 C95,195 135,185 165,200 C130,225 100,235 75,225 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M75,225 C105,210 135,200 165,200' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M48,170 Q30,165 15,160' /%3E%3Cpath d='M15,160 C-5,140 -20,105 5,115 C20,130 35,145 15,160 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M15,160 C5,145 -5,130 5,115' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M46,120 Q60,115 75,110' /%3E%3Cpath d='M75,110 C95,85 130,75 155,90 C125,110 95,118 75,110 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M75,110 C105,98 130,90 155,90' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M45,80 Q30,75 18,70' /%3E%3Cpath d='M18,70 C1,55 -10,25 12,35 C22,45 35,60 18,70 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M18,70 C10,55 2,42 12,35' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M45,60 Q45,45 45,35' /%3E%3Cpath d='M45,35 C35,15 45,0 45,0 C45,0 55,15 45,35 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M45,35 C45,20 45,8 45,0' stroke-width='1.2' opacity='0.7' /%3E%3C/svg%3E");
}

.hero::after {
    right: 2%;
    transform: translateY(-50%) scaleX(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 350' fill='none' stroke='%235b4882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20,330 C45,260 55,180 45,60' stroke-width='3.5' /%3E%3Cpath d='M40,240 Q60,230 75,225' /%3E%3Cpath d='M75,225 C95,195 135,185 165,200 C130,225 100,235 75,225 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M75,225 C105,210 135,200 165,200' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M48,170 Q30,165 15,160' /%3E%3Cpath d='M15,160 C-5,140 -20,105 5,115 C20,130 35,145 15,160 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M15,160 C5,145 -5,130 5,115' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M46,120 Q60,115 75,110' /%3E%3Cpath d='M75,110 C95,85 130,75 155,90 C125,110 95,118 75,110 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M75,110 C105,98 130,90 155,90' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M45,80 Q30,75 18,70' /%3E%3Cpath d='M18,70 C1,55 -10,25 12,35 C22,45 35,60 18,70 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M18,70 C10,55 2,42 12,35' stroke-width='1.2' opacity='0.7' /%3E%3Cpath d='M45,60 Q45,45 45,35' /%3E%3Cpath d='M45,35 C35,15 45,0 45,0 C45,0 55,15 45,35 Z' fill='%235b4882' fill-opacity='0.25' /%3E%3Cpath d='M45,35 C45,20 45,8 45,0' stroke-width='1.2' opacity='0.7' /%3E%3C/svg%3E");
}

@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        width: 100px;
        height: 175px;
        opacity: 0.2;
    }
    .hero::before {
        left: 1%;
    }
    .hero::after {
        right: 1%;
    }
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    background-color: var(--primary-violet);
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    background-color: #4a3a6a;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
}

ul {
    list-style-position: inside;
    padding-left: 30px;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--primary-violet);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    text-decoration: underline;
}

.full-ingredients {
    display: none;
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.8rem;
    padding: 0.5rem;
    background-color: #ebe4f3;
    border-radius: 8px;
    line-height: 1.4;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary-violet);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-violet);
    color: white;
    padding: 1rem;
    z-index: 2000;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.section-title {
    text-align: center;
    margin: 2rem 0 2rem;
    color: var(--primary-violet);
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0 5% 4rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--surface-radius);
    overflow: hidden;
    box-shadow: var(--surface-shadow);
    border: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 0.8;
    overflow: hidden;
    background-color: #e8e2f0;
    object-fit: cover;
}

.product-card-image-link {
    display: block;
}

.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-violet);
}

.product-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.product-view-link {
    border-bottom: 1px solid currentColor;
    color: var(--primary-violet);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0;
    text-decoration: none;
}

.product-view-link:hover {
    color: #4a3a6a;
}

.product-page {
    padding: 2rem 5% 4rem;
}

.product-back-link {
    margin-bottom: 1rem;
}

.product-back-link a {
    color: var(--primary-violet);
    font-weight: 600;
}

.product-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    background: var(--white);
    overflow: hidden;
}

.product-page-images {
    display: grid;
    grid-auto-rows: minmax(170px, 1fr);
    background: var(--white);
}

.product-page-images img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
}

.product-page-details {
    padding: 2.5rem 2rem 2rem;
}

.product-page-details h1,
.product-page-details h3 {
    color: var(--primary-violet);
    margin-bottom: 1rem;
}

.product-detail-copy p,
.product-detail-section {
    margin-bottom: 1rem;
}

.product-detail-section h3,
.product-detail-section h4 {
    color: var(--primary-violet);
    margin-bottom: 0.35rem;
}

.product-detail-section ul {
    color: #666;
    font-size: 0.9rem;
}

.product-detail-section h4:not(:first-child) {
    margin-top: 0.75rem;
}

.product-warning {
    color: #666;
    font-size: 0.9rem;
}

.product-purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: sticky;
    top: 1rem;
    z-index: 1;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.related-products {
    padding-bottom: 4rem;
}

.youtube-page {
    padding: 0 5% 4rem;
}

.youtube-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr);
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}

.youtube-player {
    aspect-ratio: 16 / 9;
}

.youtube-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-feature-content,
.youtube-video-card-content {
    padding: 1.5rem;
}

.youtube-label,
.youtube-video-date {
    color: var(--primary-violet);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.youtube-feature-content h2,
.youtube-video-card h3 {
    color: var(--primary-violet);
    margin-bottom: 0.75rem;
}

.youtube-more-title {
    color: var(--primary-violet);
    margin: 3rem 0 1.5rem;
}

.youtube-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.youtube-video-card {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}

.youtube-video-image-link,
.youtube-video-image-link img {
    display: block;
    width: 100%;
}

.youtube-video-card h3 a {
    color: inherit;
    text-decoration: none;
}

.youtube-empty-state {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius);
    box-shadow: var(--surface-shadow);
    padding: 2rem;
    text-align: center;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .youtube-feature {
        grid-template-columns: 1fr;
    }

    .youtube-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-page-layout {
        grid-template-columns: 1fr;
    }

    .product-page-images {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .product-page-details {
        padding: 1.5rem;
    }

    .youtube-video-grid {
        grid-template-columns: 1fr;
    }

    .product-purchase-actions {
        position: static;
    }
}

.about {
    background-color: var(--bg-light);
    padding: 4rem 5%;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    background-color: var(--primary-violet);
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--accent-green);
    margin: 0 1rem;
    text-decoration: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 5%;
    }
    
    .logo-container img {
        height: 50px;
    }
    
    #site-name {
        font-size: 1.25rem;
    }

    .desktop-nav {
        display: none;
    }

    .hero h2 {
        font-size: 2rem;
    }

    /* Mobile Hamburger Trigger Style */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        position: relative;
        align-items: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }
    
    .hamburger-btn:hover,
    .hamburger-btn:focus-visible {
        background-color: rgba(91, 72, 130, 0.08);
    }

    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--primary-violet);
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 4px;
    }

    /* Transform hamburger into X when active */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Drawer Backdrop Overlay */
    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1050;
    }

    .mobile-nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Drawer Panel */
    .mobile-nav-drawer {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08);
        padding: 5rem 2rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        z-index: 1080;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-drawer.active {
        transform: translateX(0);
    }

    body.no-scroll {
        overflow: hidden;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-nav-link {
        display: block;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary-violet);
        text-decoration: none;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0edf5;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:focus-visible {
        color: #7d6ba8;
        padding-left: 0.5rem;
    }

    .mobile-nav-divider {
        height: 1px;
        background-color: #f0edf5;
        margin: 0.5rem 0;
    }

    .mobile-social-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        border-bottom: none;
        padding: 0.5rem 0;
    }

    .mobile-social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #f3eff9;
        color: var(--primary-violet);
        transition: background-color 0.3s, color 0.3s, transform 0.3s;
        flex-shrink: 0;
    }

    .mobile-social-link:hover .mobile-social-icon,
    .mobile-social-link:focus-visible .mobile-social-icon {
        background-color: var(--primary-violet);
        color: var(--white);
        transform: scale(1.05);
    }
}

/* Club Page specific styles */
.about-top-aligned {
    align-items: flex-start;
}

.about-image-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}

.club-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #d8cfe5;
}

.club-card h3 {
    color: var(--primary-violet);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.club-card p.club-intro {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.5;
}

.club-benefits {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.club-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.club-benefits li strong {
    color: var(--text-dark);
}

.club-benefits li .checkmark {
    color: var(--primary-violet);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Footer Etsy Badge styles */
.footer-etsy-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-etsy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-etsy-link:hover,
.footer-etsy-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-1px);
}

.etsy-badge-text {
    font-style: italic;
    opacity: 0.85;
}

.footer-etsy-link:hover .etsy-badge-text {
    opacity: 1;
}

.etsy-badge-logo {
    display: flex;
    align-items: center;
}

.etsy-badge-logo svg {
    width: 38px;
    height: auto;
    display: block;
}
