﻿/* ================================================
   BRIGHTBOOK ANIMATIONS & KEYFRAMES
   ================================================ */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Slide In From Bottom */
@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3), 0 0 10px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 30px rgba(99, 102, 241, 0.3);
    }
}

/* Wiggle Animation */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.15);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(1);
    }
}

/* Typing cursor Animation */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* ================================================
   ANIMATION UTILITY CLASSES
   ================================================ */

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ================================================
   SCROLL REVEAL ANIMATIONS (CSS-only)
   ================================================ */

/* Initially hidden for scroll animation */
[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animated {
    opacity: 1;
}

[data-animate="fadeUp"] {
    transform: translateY(40px);
}

[data-animate="fadeUp"].animated {
    transform: translateY(0);
}

[data-animate="fadeDown"] {
    transform: translateY(-40px);
}

[data-animate="fadeDown"].animated {
    transform: translateY(0);
}

[data-animate="fadeLeft"] {
    transform: translateX(-40px);
}

[data-animate="fadeLeft"].animated {
    transform: translateX(0);
}

[data-animate="fadeRight"] {
    transform: translateX(40px);
}

[data-animate="fadeRight"].animated {
    transform: translateX(0);
}

[data-animate="scaleUp"] {
    transform: scale(0.8);
}

[data-animate="scaleUp"].animated {
    transform: scale(1);
}

/* ================================================
   SKELETON LOADING & SHIMMER EFFECTS
   ================================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-image {
    aspect-ratio: 3/4;
    width: 100%;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* Page Transition */
.page-transition {
    animation: fadeInUp 0.5s ease-out;
}

/* Link Hover Effects */
a {
    transition: color 0.2s ease;
}

/* Image Hover Zoom */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.4s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Card Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ================================================
   MY ACCOUNT STYLES
   ================================================ */

.bb-account-main-wrapper {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    animation: fadeInUp 0.6s ease-out;
}
.bb-account-nav-horizontal {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.07);
    padding: 18px 32px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 0.5s ease-out;
}
.bb-account-nav-horizontal ul {
    display: flex;
    flex-direction: row;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.bb-account-nav-horizontal ul li a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    display: block;
    letter-spacing: 0.01em;
}
.bb-account-nav-horizontal ul li.is-active a,
.bb-account-nav-horizontal ul li a:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
}
.bb-account-hero {
    display: flex;
    align-items: center;
    gap: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(99,102,241,0.10);
    padding: 44px 48px;
    color: #fff;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}
.bb-account-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    color: #6366f1;
    font-size: 2.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(99,102,241,0.13);
    animation: scaleIn 0.5s ease-out 0.4s both;
}
.bb-account-welcome h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 0.01em;
}
.bb-account-welcome p {
    color: #e0e7ff;
    font-size: 1.13rem;
    margin-bottom: 22px;
}
.bb-btn.bb-btn-primary {
    background: #fff;
    color: #6366f1;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.12rem;
    padding: 14px 32px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.bb-btn.bb-btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
}
.bb-account-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}
.bb-account-stat {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.07);
    padding: 32px 18px 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.bb-account-stat:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.13);
}
.bb-account-stat-icon {
    color: var(--primary-color);
    background: #e0e7ff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.4rem;
}
.bb-account-stat-label {
    font-size: 1.08rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.bb-account-stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}
.bb-account-stat-link {
    color: var(--primary-color);
    font-size: 1.01rem;
    text-decoration: underline;
    margin-top: 4px;
    font-weight: 500;
    transition: color 0.2s;
}
.bb-account-stat-link:hover {
    color: var(--primary-dark);
}
@media (max-width: 1100px) {
    .bb-account-main-wrapper {
        padding: 0 4px;
        gap: 18px;
    }
    .bb-account-nav-horizontal ul {
        gap: 8px;
        flex-wrap: wrap;
    }
    .bb-account-nav-horizontal {
        padding: 10px 4px;
    }
    .bb-account-hero {
        flex-direction: column;
        gap: 18px;
        padding: 18px 8px;
    }
    .bb-account-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (max-width: 700px) {
    .bb-account-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bb-account-stat {
        padding: 18px 8px 14px 8px;
    }
}
/* Ẩn hoàn toàn layout mặc định WooCommerce My Account */
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
    display: none !important;
}
/* =============================================
   BRIGHTBOOK - MY ACCOUNT 1 COLUMN LAYOUT
   ============================================= */
.bb-account-main-wrapper {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.bb-account-nav-horizontal {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    padding: 18px 24px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bb-account-nav-horizontal ul {
    display: flex;
    flex-direction: row;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.bb-account-nav-horizontal ul li a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.bb-account-nav-horizontal ul li.is-active a,
.bb-account-nav-horizontal ul li a:hover {
    background: var(--primary-color);
    color: #fff;
}
@media (max-width: 900px) {
    .bb-account-main-wrapper {
        padding: 0 4px;
        gap: 18px;
    }
    .bb-account-nav-horizontal ul {
        gap: 8px;
        flex-wrap: wrap;
    }
    .bb-account-nav-horizontal {
        padding: 10px 4px;
    }
}
/* =============================================
   BRIGHTBOOK - MY ACCOUNT DASHBOARD REBUILD
   ============================================= */
.bb-account-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(99,102,241,0.10);
    padding: 40px 36px;
    margin-bottom: 36px;
    color: #fff;
}
.bb-account-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    color: #6366f1;
    font-size: 2.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(99,102,241,0.13);
}
.bb-account-welcome h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
.bb-account-welcome p {
    color: #e0e7ff;
    font-size: 1.08rem;
    margin-bottom: 18px;
}
.bb-btn.bb-btn-primary {
    background: #fff;
    color: #6366f1;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 12px 28px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.bb-btn.bb-btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
}
.bb-account-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}
.bb-account-stat {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    padding: 32px 18px 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.bb-account-stat-icon {
    color: var(--primary-color);
    background: #e0e7ff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.3rem;
}
.bb-account-stat-label {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
}
.bb-account-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}
.bb-account-stat-link {
    color: var(--primary-color);
    font-size: 0.98rem;
    text-decoration: underline;
    margin-top: 4px;
    font-weight: 500;
    transition: color 0.2s;
}
.bb-account-stat-link:hover {
    color: var(--primary-dark);
}
@media (max-width: 1100px) {
    .bb-account-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (max-width: 700px) {
    .bb-account-hero {
        flex-direction: column;
        gap: 18px;
        padding: 18px 8px;
    }
    .bb-account-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bb-account-stat {
        padding: 18px 8px 14px 8px;
    }
}
/* =============================================
   BRIGHTBOOK CONTACT PAGE STYLE
   ============================================= */
.contact-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.contact-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0 0 32px 32px;
    padding: 48px 0 32px 0;
    margin-bottom: 32px;
    color: #fff;
    box-shadow: 0 4px 24px rgba(99,102,241,0.10);
}
.contact-header .page-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-header .page-subtitle {
    color: #e0e7ff;
    font-size: 1.15rem;
    margin-bottom: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 48px;
    align-items: flex-start;
}
.contact-info {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    padding: 36px 28px 28px 28px;
    margin-bottom: 0;
}
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 24px 0 18px 0;
}
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-light);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.07);
}
.info-icon {
    background: #e0e7ff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
}
.info-content h3 {
    margin: 0 0 2px 0;
    font-size: 1.08rem;
    color: var(--primary-color);
    font-weight: 700;
}
.info-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 1.01rem;
}
.faq-teaser {
    margin-top: 18px;
}
.faq-list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
    color: var(--text-color);
}
.faq-list li {
    margin-bottom: 12px;
}
.faq-list strong {
    color: var(--primary-color);
    font-weight: 600;
}
.contact-form-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    padding: 36px 32px 28px 32px;
}
.contact-form-wrapper h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row {
    display: flex;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-light);
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}
.contact-form .btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.12rem;
    padding: 16px 0;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(99,102,241,0.13);
    text-align: center;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.contact-form .btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.form-message {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success-color);
    font-weight: 600;
    font-size: 1.08rem;
}
.form-message svg {
    color: var(--success-color);
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-info, .contact-form-wrapper {
        padding: 18px 8px 14px 8px;
    }
}
/* =============================================
   BRIGHTBOOK - MY ACCOUNT PAGE MODERN DASHBOARD LAYOUT (REBUILD)
   ============================================= */
.brightbook-account-wrapper {
    max-width: 1700px;
    margin: 0 auto 48px auto;
    padding: 0 32px;
    display: flex;
    gap: 72px;
    align-items: flex-start;
}
.brightbook-account-nav {
    width: 320px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(99,102,241,0.10);
    padding: 56px 32px 56px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 200px;
}
.brightbook-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.brightbook-account-nav ul li a {
    display: block;
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.brightbook-account-nav ul li.is-active a,
.brightbook-account-nav ul li a:hover {
    background: var(--primary-color);
    color: #fff;
}
.brightbook-account-content {
    flex: 1 1 0%;
    min-width: 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(99,102,241,0.10);
    padding: 56px 48px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
@media (max-width: 1100px) {
    .brightbook-account-wrapper {
        flex-direction: column;
        gap: 24px;
        max-width: 100%;
        padding: 0 4px;
    }
    .brightbook-account-nav {
        width: 100%;
        min-width: 0;
        padding: 24px 10px;
    }
    .brightbook-account-content {
        padding: 24px 10px;
    }
}
/* =============================================
   BRIGHTBOOK - MY ACCOUNT PAGE LAYOUT FINAL FIX
   ============================================= */
/* Ẩn layout cũ WooCommerce để dùng layout mới */
.woocommerce-account .woocommerce {
    display: none !important;
}
@media (max-width: 1400px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 220px 1fr;
        gap: 24px;
        max-width: 100%;
        padding: 0 8px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        max-width: 220px;
        padding: 18px 6px;
    }
}
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px;
        max-width: 100%;
        padding: 0 4px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
        padding: 18px 6px;
    }
}
/* =============================================
   BRIGHTBOOK - MY ACCOUNT PAGE LAYOUT FIX v3 (HARD FIX)
   ============================================= */
.woocommerce-account .woocommerce {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 48px auto;
    background: transparent;
    box-sizing: border-box;
    width: 100%;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    min-width: 230px;
    max-width: 260px;
    width: 240px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    padding: 36px 18px 36px 18px;
    margin: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 0%;
    min-width: 0;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    gap: 12px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1.08rem;
    display: block;
    transition: background 0.2s, color 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--primary-color);
    color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    list-style: none;
}
@media (max-width: 1100px) {
    .woocommerce-account .woocommerce {
        max-width: 100%;
        gap: 18px;
        padding: 0 8px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        min-width: 180px;
        max-width: 220px;
        width: 100%;
        padding: 18px 6px;
    }
}
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        flex-direction: column !important;
        gap: 18px;
        max-width: 100%;
        padding: 0 4px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
        padding: 18px 6px;
    }
}
/* =============================================
   BRIGHTBOOK - MY ACCOUNT PAGE LAYOUT FIX v2
   ============================================= */
.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: row;
    gap: 32px;
    max-width: 980px;
    margin: 0 auto 48px auto;
    background: transparent;
    align-items: flex-start;
    justify-content: center;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    min-width: 210px;
    max-width: 240px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(99,102,241,0.07);
    padding: 32px 18px 32px 18px;
    margin: 0;
    flex-shrink: 0;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 0%;
    min-width: 0;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    gap: 10px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1.04rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--primary-color);
    color: #fff;
}
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 18px;
        max-width: 100%;
        padding: 0 4px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
        padding: 18px 6px;
    }
}
/* =============================================
   BRIGHTBOOK - MY ACCOUNT PAGE LAYOUT FIX
   ============================================= */
.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 48px auto;
    background: transparent;
    align-items: flex-start;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    min-width: 220px;
    max-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(99,102,241,0.07);
    padding: 32px 24px 32px 32px;
    margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 0%;
    min-width: 0;
    background: transparent;
    padding: 0;
}
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 24px;
        max-width: 100%;
        padding: 0 4px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
        padding: 20px 12px;
    }
}
/* =============================================
   LEGAL / POLICY / STATIC PAGES STYLE
   ============================================= */
.page-main.policy-page,
.page-main.terms-page,
.page-main.refund-page,
.page-main.disclaimer-page,
.page-main.copyright-page {
    background: var(--bg-light);
    min-height: 60vh;
    padding: 48px 0 64px 0;
}
.page-main .container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    padding: 40px 32px 32px 32px;
}
.page-main .page-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
}
.page-main .page-content {
    font-size: 1.08rem;
    color: var(--text-color);
    line-height: 1.7;
}
.page-main .page-content h2 {
    font-size: 1.18rem;
    color: var(--primary-color);
    margin-top: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}
.page-main .page-content ul {
    margin: 12px 0 18px 24px;
    padding: 0;
    list-style: disc;
}
.page-main .page-content li {
    margin-bottom: 6px;
}
.page-main .page-content a {
    color: var(--primary-color);
    text-decoration: underline;
    word-break: break-all;
}
@media (max-width: 700px) {
    .page-main .container {
        padding: 18px 6px 18px 6px;
    }
    .page-main .page-title {
        font-size: 1.4rem;
    }
    .page-main .page-content {
        font-size: 1rem;
    }
}
/* =============================================
   BRIGHTBOOK CUSTOM CART FLEX LAYOUT
   ============================================= */
.cart-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}
.cart-items {
    flex: 2 1 380px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    padding: 32px 28px 18px 28px;
    min-width: 320px;
}
.cart-items-header {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 40px;
    gap: 0;
    font-weight: 700;
    color: var(--primary-color);
    background: #f1f5fd;
    border-radius: 12px;
    padding: 12px 10px;
    margin-bottom: 12px;
    font-size: 1.08rem;
}
.cart-item {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 40px;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 10px;
    background: #fff;
}
.cart-item:last-child {
    border-bottom: none;
}
.item-product {
    display: flex;
    align-items: center;
    gap: 16px;
}
.item-image img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.09);
}
.item-details {
    min-width: 0;
}
.item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-author {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2px;
    display: block;
}
.item-format {
    font-size: 0.92rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}
.item-price,
.item-subtotal {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.05rem;
    text-align: center;
}
.item-quantity {
    text-align: center;
}
.item-quantity input.qty {
    width: 60px;
    padding: 8px 0;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-align: center;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-color);
    margin: 0 4px;
}
.item-remove {
    text-align: center;
}
.remove-item {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.remove-item:hover {
    background: rgba(239, 68, 68, 0.08);
}
.cart-actions {
    display: flex;
    gap: 12px;
    margin: 18px 0 0 0;
    align-items: center;
}
.cart-actions .coupon {
    flex: 2;
    display: flex;
    gap: 8px;
}
.cart-actions .coupon input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-color);
}
.cart-actions .btn,
.cart-actions button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cart-actions .btn:hover,
.cart-actions button:hover {
    background: var(--primary-color);
    color: #fff;
}
.cart-summary {
    flex: 1 1 320px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    padding: 32px 28px 24px 28px;
    min-width: 280px;
}
.summary-card h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 1.05rem;
}
.summary-row.total {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 12px;
}
.summary-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.summary-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 16px 0;
    box-shadow: 0 4px 16px rgba(99,102,241,0.13);
    text-align: center;
    transition: background 0.2s, color 0.2s;
}
.summary-actions .btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
}
.summary-actions .continue-shopping {
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    text-decoration: underline;
    font-size: 1rem;
    margin-top: 2px;
}
.summary-trust {
    margin-top: 18px;
    color: var(--text-light);
    font-size: 0.98rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.summary-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 900px) {
    .cart-layout {
        flex-direction: column;
        gap: 24px;
    }
    .cart-items, .cart-summary {
        min-width: 0;
        width: 100%;
        padding: 18px 8px 12px 8px;
    }
    .cart-items-header, .cart-item {
        grid-template-columns: 2fr 1fr 1fr 1fr 32px;
        font-size: 0.98rem;
        padding: 10px 4px;
    }
}
/* =============================================
   WOOCOMMERCE CART PAGE STYLE
   ============================================= */
.woocommerce-cart .woocommerce {
    background: transparent;
    padding: 0;
}
.woocommerce-cart .cart-collaterals {
    margin-top: 40px;
}
.woocommerce-cart table.shop_table {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 32px;
}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
    padding: 18px 14px;
    border: none;
    font-size: 1.05rem;
    color: var(--text-color);
    background: #fff;
}
.woocommerce-cart table.shop_table th {
    background: #f1f5fd;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.08rem;
}
.woocommerce-cart table.shop_table td.product-remove {
    text-align: center;
}
.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.09);
}
.woocommerce-cart table.shop_table td.product-name {
    font-weight: 600;
    color: var(--primary-color);
}
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
    color: var(--dark-color);
    font-weight: 600;
}
.woocommerce-cart table.shop_table input.qty {
    width: 60px;
    padding: 8px 0;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-align: center;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-color);
    margin: 0 4px;
}
.woocommerce-cart .actions .button,
.woocommerce-cart .actions button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 28px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.woocommerce-cart .actions .button:hover,
.woocommerce-cart .actions button:hover {
    background: var(--primary-color);
    color: #fff;
}
.woocommerce-cart .cart-collaterals .cart_totals {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.09);
    padding: 32px 28px;
    margin-bottom: 32px;
}
.woocommerce-cart .cart-collaterals .cart_totals h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
    padding: 10px 0;
    border: none;
    font-size: 1.05rem;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 18px 0;
    margin-top: 18px;
    box-shadow: 0 4px 16px rgba(99,102,241,0.13);
    text-align: center;
    transition: background 0.2s, color 0.2s;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--primary-color);
    color: #fff;
}
@media (max-width: 900px) {
    .woocommerce-cart .cart-collaterals .cart_totals {
        padding: 18px 8px;
    }
    .woocommerce-cart table.shop_table th,
    .woocommerce-cart table.shop_table td {
        padding: 10px 6px;
        font-size: 0.98rem;
    }
}
/* =============================================
   WOOCOMMERCE EDIT ACCOUNT FORM STYLE
   ============================================= */
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
    max-width: 480px;
    margin: 0 auto 48px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.09);
    padding: 36px 32px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    display: block;
    font-size: 1.05rem;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-light);
    margin-bottom: 8px;
    transition: border 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm input[type="text"]:focus,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm input[type="email"]:focus,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin: 0 0 10px 0;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm legend {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm button[type="submit"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 14px 0;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm button[type="submit"]:hover {
    background: var(--primary-color);
    color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .clear {
    display: none;
}
/* =============================================
   WOOCOMMERCE MY ACCOUNT PAGE FIX & STYLE
   ============================================= */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    background: transparent;
    padding: 0;
}

.woocommerce-MyAccount-navigation {
    min-width: 220px;
    max-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(99,102,241,0.07);
    padding: 32px 24px 32px 32px;
    margin-top: 0;
    margin-bottom: 40px;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.woocommerce-MyAccount-navigation ul li {
    margin: 0;
}
.woocommerce-MyAccount-navigation ul li a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 10px 0 10px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--primary-color);
    color: #fff;
}

.woocommerce-MyAccount-content {
    flex: 1 1 0%;
    min-width: 0;
    background: transparent;
    padding: 0;
}

@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 24px;
    }
    .woocommerce-MyAccount-navigation {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
        padding: 20px 12px;
    }
}

/* Card style for account dashboard */
.woocommerce-account .woocommerce-MyAccount-content .account-dashboard-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(99,102,241,0.13);
    padding: 32px 32px 24px 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.woocommerce-account .woocommerce-MyAccount-content .account-dashboard-card .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6366f1;
    position: relative;
    overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-content .account-dashboard-card .avatar .avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    color: #6366f1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
    border: 2px solid #e0e7ff;
}
.woocommerce-account .woocommerce-MyAccount-content .account-dashboard-card .dashboard-info {
    flex: 1;
}
.woocommerce-account .woocommerce-MyAccount-content .account-dashboard-card .dashboard-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content .account-dashboard-card .dashboard-info p {
    color: #e0e7ff;
    margin: 0 0 18px 0;
    font-size: 1.05rem;
}
.woocommerce-account .woocommerce-MyAccount-content .account-dashboard-card .dashboard-info .btn {
    background: #fff;
    color: #6366f1;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.woocommerce-account .woocommerce-MyAccount-content .account-dashboard-card .dashboard-info .btn:hover {
    background: var(--primary-color);
    color: #fff;
}
/* =============================================
   BrightBook - Modern Header & Slide Cart CSS
   Mobile-First Responsive Design
   ============================================= */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --dark-color: #1e293b;
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* =============================================
   HEADER STYLES
   ============================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    animation: fadeInDown 0.5s ease-out;
}

.site-header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    padding: 12px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark-color);
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logo:hover .logo-img {
    animation: wiggle 0.5s ease-in-out;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 992px) {
    .main-navigation {
        display: block;
        flex: 1;
        margin: 0 32px;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

/* Dropdown Menu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    margin: 0;
    z-index: 100;
}

.nav-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.sub-menu li.view-all a {
    color: var(--primary-color);
    font-weight: 600;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 16px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-search-toggle,
.header-account,
.header-cart-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.header-search-toggle:hover,
.header-account:hover,
.header-cart-toggle:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.header-cart-toggle {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count.bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    order: -1;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 24px;
    transform: translateY(-100%);
    transition: var(--transition);
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 12px;
}

.search-overlay .search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-overlay .search-field:focus {
    border-color: var(--primary-color);
}

.search-overlay .search-submit {
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.search-overlay .search-submit:hover {
    background: var(--primary-dark);
}

.search-close {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
}

/* =============================================
   MOBILE MENU
   ============================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
}

.mobile-menu.active {
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: var(--bg-white);
    transform: translateX(-100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-color);
}

.mobile-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
}

.mobile-search input:focus {
    border-color: var(--primary-color);
}

.mobile-nav {
    flex: 1;
    padding: 16px 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-nav li a svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.mobile-menu-categories h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.mobile-menu-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-menu-categories li a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-white);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-menu-categories li a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =============================================
   SLIDE CART
   ============================================= */

.slide-cart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    visibility: hidden;
}

.slide-cart.active {
    visibility: visible;
}

.slide-cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.slide-cart.active .slide-cart-overlay {
    opacity: 1;
}

.slide-cart-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.slide-cart.active .slide-cart-content {
    transform: translateX(0);
}

.slide-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.slide-cart-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.slide-cart-header h3 svg {
    color: var(--primary-color);
}

.slide-cart-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.slide-cart-close:hover {
    background: var(--error-color);
    color: white;
}

.slide-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    color: var(--border-color);
    margin-bottom: 16px;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 70px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-color);
}

.cart-item-price .quantity {
    color: var(--text-light);
    margin-right: 4px;
}

.cart-item-price .price,
.cart-item-price .woocommerce-Price-amount {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.cart-item-remove svg {
    width: 18px;
    height: 18px;
}

.slide-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 1rem;
}

.cart-subtotal strong {
    font-size: 1.25rem;
    color: var(--dark-color);
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.cart-actions .btn {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Button Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* =============================================
   FLOATING CART BUTTON (MOBILE)
   ============================================= */

.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInBottom 0.5s ease-out 0.5s both;
}

.floating-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.floating-cart-btn:active {
    transform: scale(0.95);
}

.floating-cart-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.floating-cart-btn:hover svg {
    animation: wiggle 0.5s ease-in-out;
}

.floating-cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 22px;
    height: 22px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.3s ease-out;
}

@media (min-width: 992px) {
    .floating-cart-btn {
        display: none;
    }
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */

#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 360px;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.success .toast-icon {
    animation: scaleIn 0.3s ease-out 0.2s both;
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--error-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-light);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.toast-close:hover {
    color: var(--error-color);
    transform: scale(1.2);
}

@media (max-width: 480px) {
    #toast-container {
        left: 16px;
        right: 16px;
        top: 16px;
    }
    
    .toast {
        max-width: 100%;
    }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   PRODUCT CARDS
   ============================================= */

.products-grid,
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .products-grid,
    .woocommerce ul.products {
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card,
.woocommerce ul.products li.product {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img,
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    margin: 0 !important;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
}

.badge-sale {
    background: var(--error-color);
    color: white;
}

.badge-new {
    background: var(--success-color);
    color: white;
}

.badge-free {
    background: var(--secondary-color);
    color: white;
}

.product-quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn.added {
    background: #10b981;
    color: white;
    animation: heartbeat 0.6s ease-in-out;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6366f1;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 20px;
    width: fit-content;
}

.product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #6366f1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    color: var(--secondary-color);
}

.stars svg {
    width: 14px;
    height: 14px;
}

.rating-count {
    font-size: 0.8rem;
    color: #64748b;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.product-price,
.woocommerce ul.products li.product .price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.current-price,
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: #6366f1;
    text-decoration: none;
    background: none;
}

.original-price,
.woocommerce ul.products li.product .price del {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-add-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.product-add-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.product-add-btn:hover::before {
    width: 150px;
    height: 150px;
}

.product-add-btn:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.product-add-btn:active {
    transform: scale(0.95);
}

.product-add-btn.added {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse 0.5s ease-out;
}

.product-add-btn.loading {
    pointer-events: none;
}

.product-add-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* WooCommerce Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: none !important;
    margin-top: 12px !important;
    transition: var(--transition) !important;
    border: none !important;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--primary-dark) !important;
}

/* =============================================
   PAGE CONTENT
   ============================================= */

.site-main {
    min-height: calc(100vh - 200px);
    padding: 24px 0;
}

@media (min-width: 768px) {
    .site-main {
        padding: 40px 0;
    }
}

.page-header {
    margin-bottom: 32px;
}

/* Hide page header on checkout page */
.woocommerce-checkout .page-header,
body.woocommerce-checkout .page-header,
.woocommerce-checkout .page-main > .page-header {
    display: none !important;
}

.woocommerce-checkout .page-content {
    padding: 0 !important;
}

.woocommerce-checkout .page-main > .container {
    padding: 0;
    max-width: none;
}

/* Checkout page main wrapper - no padding, no margins */
.checkout-main {
    padding: 0 !important;
    margin: 0 !important;
}

.checkout-main .checkout-page {
    margin: 0;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.25rem;
    }
}

/* =============================================
   SHOP PAGE
   ============================================= */

.shop-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .shop-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.shop-filters,
.woocommerce .woocommerce-ordering {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-select,
.woocommerce .orderby {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    min-width: 150px;
}

.filter-select:focus,
.woocommerce .orderby:focus {
    outline: none;
    border-color: var(--primary-color);
}

.results-count,
.woocommerce .woocommerce-result-count {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* =============================================
   HOMEPAGE HERO
   ============================================= */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 0;
    overflow: hidden;
    min-height: 500px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -100px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    bottom: -50px;
    left: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

.hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background: white;
    top: 50%;
    right: 30%;
    animation: float 5s ease-in-out infinite 0.5s;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 100px 0;
        min-height: 600px;
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero-btn {
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.hero-btn-primary {
    background: white;
    color: var(--primary-color);
}

.hero-btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-image {
    flex: 0 0 400px;
    display: none;
}

@media (min-width: 992px) {
    .hero-image {
        display: block;
    }
}

.book-showcase {
    perspective: 1000px;
}

.book-stack {
    position: relative;
    width: 280px;
    height: 380px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.book {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.book-cover {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.book-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateX(0) translateZ(30px) rotateY(-5deg);
    z-index: 3;
}

.book-2 {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateX(40px) translateZ(0) rotateY(-10deg);
    z-index: 2;
}

.book-3 {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    transform: translateX(80px) translateZ(-30px) rotateY(-15deg);
    z-index: 1;
}

.book-stack:hover .book-1 {
    transform: translateX(-20px) translateZ(50px) rotateY(0deg);
}

.book-stack:hover .book-2 {
    transform: translateX(40px) translateZ(20px) rotateY(-5deg);
}

.book-stack:hover .book-3 {
    transform: translateX(100px) translateZ(-10px) rotateY(-10deg);
}

/* Trust Section */
.trust-section {
    background: var(--bg-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .trust-badges {
        gap: 48px;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.trust-badge svg {
    color: var(--primary-color);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 10px 40px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.category-card:hover .category-icon {
    animation: bounce 0.6s ease;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.category-icon svg {
    color: var(--primary-color);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Featured Section */
.featured-section {
    padding: 60px 0;
    background: var(--bg-white);
}

/* How It Works Section */
.how-it-works-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-icon {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.step-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.testimonial-text {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* Placeholder Cover */
.placeholder-cover {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    font-size: 3rem;
}

/* Product Info Styles for Homepage */
.product-info {
    padding: 16px;
}

.product-author {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
    display: block;
}

.product-info .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-info .product-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.product-info .product-title a:hover {
    color: var(--primary-color);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px 16px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--dark-color);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quick-add-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quick-add-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.quick-add-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Cart Item Placeholder */
.cart-item-placeholder {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* =============================================
   FOOTER
   ============================================= */

/* Newsletter Section */
.footer-newsletter {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 48px 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .newsletter-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.newsletter-text h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.newsletter-text p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.95rem;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255,255,255,0.25);
}

.newsletter-form .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fff;
    color: #6366f1;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.newsletter-form .btn svg {
    width: 18px;
    height: 18px;
}

/* Footer Main */
.footer-main {
    padding: 60px 0 32px;
}

.site-footer {
    background: #f8fafc;
    color: #475569;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .site-logo {
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand .site-logo .logo-img {
    height: 36px;
}

.footer-brand .logo-text {
    color: #1e293b;
    -webkit-text-fill-color: #1e293b;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #64748b;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: var(--radius-sm);
    color: #475569;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social a:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.footer-column h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #6366f1;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

body.menu-open,
body.cart-open,
body.search-open {
    overflow: hidden;
}

/* =============================================
   SHOP PAGE STYLES
   ============================================= */

.page-header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .page-header-section {
        padding: 60px 0;
    }
}

.page-header-section .page-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

@media (min-width: 768px) {
    .page-header-section .page-title {
        font-size: 2.5rem;
    }
}

.page-header-section .page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .shop-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.toolbar-left .results-count {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.toolbar-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select,
.shop-filters select,
.woocommerce-ordering select {
    padding: 10px 36px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 12px center no-repeat;
    background-size: 16px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
}

.filter-select:focus,
.shop-filters select:focus,
.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* WooCommerce Ordering */
.woocommerce-ordering {
    margin: 0;
}

/* Shop Pagination */
.shop-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.woocommerce-pagination,
.shop-pagination .woocommerce-pagination {
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce-pagination ul li a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.woocommerce-pagination ul li span.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products svg {
    color: var(--border-color);
    margin-bottom: 24px;
}

.no-products h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 0 0 12px;
}

.no-products p {
    color: var(--text-light);
    margin: 0 0 24px;
}

/* =============================================
   WOOCOMMERCE OVERRIDES
   ============================================= */

/* Reset WooCommerce defaults */
.woocommerce-page .woocommerce,
.woocommerce .woocommerce {
    padding: 0;
}

/* Hide WooCommerce breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

/* Hide default page title */
.woocommerce-products-header__title {
    display: none;
}

/* Product grid wrapper */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        gap: 20px !important;
    }
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Product card reset */
.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 16px 20px !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 24px !important;
    list-style: none !important;
}

.woocommerce-message {
    background: rgba(34, 197, 94, 0.1) !important;
    border-left: 4px solid var(--success-color) !important;
    border-top: none !important;
    color: var(--dark-color) !important;
}

.woocommerce-info {
    background: rgba(99, 102, 241, 0.1) !important;
    border-left: 4px solid var(--primary-color) !important;
    border-top: none !important;
    color: var(--dark-color) !important;
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid var(--error-color) !important;
    border-top: none !important;
    color: var(--dark-color) !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
    float: none !important;
    margin-left: 12px;
}

/* Remove default WooCommerce button styles */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--primary-dark) !important;
}

/* Hide sidebar completely on WooCommerce pages */
.woocommerce-page #secondary,
.woocommerce-page .widget-area,
.woocommerce-page aside.sidebar,
body.woocommerce-page .sidebar {
    display: none !important;
}

/* Full width content on WooCommerce pages */
.woocommerce-page #primary,
.woocommerce-page .content-area,
.woocommerce-page .site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* =============================================
   SINGLE PRODUCT PAGE
   ============================================= */

.product-page {
    background: var(--bg-light);
    padding-bottom: 60px;
}

/* Breadcrumbs */
.breadcrumb-wrapper {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 20px 0;
}

.breadcrumbs {
    color: rgba(255,255,255,0.9);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none !important;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li::before {
    display: none !important;
}

.breadcrumb-list li:not(:first-child)::before {
    content: '›';
    display: inline-block !important;
    color: rgba(255,255,255,0.6);
    margin-right: 0;
}

.breadcrumb-list li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list li a:hover {
    color: #fff;
}

.breadcrumb-list li.current {
    color: #fff;
    font-weight: 500;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
}

@media (min-width: 900px) {
    .product-layout {
        grid-template-columns: 400px 1fr;
        gap: 48px;
    }
}

@media (min-width: 1100px) {
    .product-layout {
        grid-template-columns: 450px 1fr;
        gap: 60px;
    }
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gallery-main img,
.gallery-main .product-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-main .badge-sale {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.placeholder-cover {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.placeholder-cover.large span {
    font-size: 5rem;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumbs .thumb {
    width: 70px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active {
    border-color: var(--primary-color);
}

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-header .product-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 12px;
}

.product-header .product-category:hover {
    background: rgba(99, 102, 241, 0.2);
}

.product-header .product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
    margin: 0 0 8px;
}

@media (min-width: 768px) {
    .product-header .product-title {
        font-size: 2rem;
    }
}

.product-header .product-author {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.product-header .product-author strong {
    color: var(--text-color);
}

/* Quick Info */
.product-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.product-quick-info .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 8px 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-quick-info .info-item svg {
    color: var(--primary-color);
}

/* Price */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.product-price-wrapper .price-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.product-price-wrapper .price-main del {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-right: 8px;
}

.product-price-wrapper .price-main ins {
    text-decoration: none;
    color: var(--primary-color);
}

.product-price-wrapper .savings {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Excerpt */
.product-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.product-excerpt p {
    margin: 0;
}

/* Add to Cart */
.product-actions {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-actions form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.product-actions .quantity {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.product-actions .quantity input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 8px;
}

.product-actions .quantity input:focus {
    outline: none;
}

.product-actions button.single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    padding: 14px 28px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s;
}

.product-actions button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Trust Items */
.product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.product-trust .trust-item svg {
    color: var(--success-color);
}

/* Social Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-share span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-color);
    transition: all 0.2s;
}

.product-share a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Product Tabs */
.product-tabs-section {
    margin-top: 40px;
}

.woocommerce-tabs {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary-color);
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #fff;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 30px;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: 1.25rem;
    margin: 0 0 16px;
    color: var(--dark-color);
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
    line-height: 1.8;
    color: var(--text-color);
}

/* Related Products */
.related-products-section {
    margin-top: 60px;
}

.related-products-section > h2,
.related.products > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 24px;
}

/* WooCommerce Form Overrides on Single Product */
.single-product .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.single-product .woocommerce-variation-price {
    margin-bottom: 16px;
}

/* WooCommerce Product Page Image Fix */
.woocommerce div.product div.images,
.woocommerce #content div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce-page #content div.product div.images {
    width: 100% !important;
    float: none !important;
}

.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary,
.woocommerce-page div.product div.summary,
.woocommerce-page #content div.product div.summary {
    width: 100% !important;
    float: none !important;
}

/* =============================================
   SINGLE PRODUCT PAGE - FULL WIDTH FIX
   ============================================= */

body.single-product #page,
body.single-product #page.site,
body.single-product .site,
body.single-product #content,
body.single-product #primary,
body.single-product #main,
body.single-product .site-main,
body.single-product .content-area,
body.single-product main,
body.single-product main.woocommerce,
body.single-product .woocommerce,
.woocommerce-page.single-product main,
.woocommerce-page.single-product main .woocommerce,
.woocommerce-page main .woocommerce,
body.single-product .sp-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* =============================================
   BRIGHTBOOK MY ACCOUNT - SIDEBAR LAYOUT 2026
   ============================================= */

/* Full width for My Account page */
.myaccount-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.myaccount-fullwidth .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* CRITICAL: Override page container for My Account */
.woocommerce-account .page-header,
.woocommerce-account .page-main > .container,
.woocommerce-account .page-content,
.woocommerce-account .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .page-header {
    display: none !important;
}

.woocommerce-account .page-main {
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account article {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide default WooCommerce navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Reset WooCommerce container */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Wrapper */
.bb-myaccount-wrapper {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.bb-myaccount-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Main Layout - Sidebar + Content */
.bb-account-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.bb-account-sidebar {
    width: 280px;
    min-width: 280px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
}

.bb-sidebar-profile {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.bb-sidebar-avatar {
    margin-bottom: 16px;
}

.bb-sidebar-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.bb-sidebar-name {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.bb-sidebar-email {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* Sidebar Navigation */
.bb-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bb-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.bb-nav-item:hover {
    background: #f1f5f9;
    color: #6366f1;
}

.bb-nav-item.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.bb-nav-item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.bb-nav-logout {
    margin-top: auto;
    color: #ef4444 !important;
}

.bb-nav-logout:hover {
    background: #fef2f2 !important;
}

/* Main Content Area */
.bb-account-main {
    flex: 1;
    padding: 40px 48px;
    overflow-y: auto;
}

/* Page Header */
.bb-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.bb-header-text h1 {
    color: #1e293b;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.bb-header-text p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.bb-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.bb-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: #fff;
}

/* Stats Row */
.bb-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.bb-stat-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.bb-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.bb-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bb-stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.bb-stat-icon.green {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.bb-stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.bb-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bb-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.bb-stat-text {
    font-size: 0.9rem;
    color: #64748b;
}

/* Sections */
.bb-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.bb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bb-section-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 20px;
}

.bb-section-header .bb-section-title {
    margin: 0;
}

.bb-link {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bb-link:hover {
    color: #8b5cf6;
}

/* Quick Actions Row */
.bb-actions-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.bb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bb-action-btn.blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.bb-action-btn.green {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.bb-action-btn.outline {
    background: transparent;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.bb-action-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.bb-action-btn.outline:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}

/* Orders Table */
.bb-orders-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bb-order-row {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.bb-order-row:hover {
    background: #f1f5f9;
}

.bb-order-id {
    color: #1e293b;
    font-weight: 700;
}

.bb-order-date {
    color: #64748b;
    font-size: 0.9rem;
}

.bb-order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
}

.bb-order-status.status-completed {
    background: #d1fae5;
    color: #059669;
}

.bb-order-status.status-processing {
    background: #dbeafe;
    color: #2563eb;
}

.bb-order-status.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.bb-order-status.status-on-hold {
    background: #e2e8f0;
    color: #475569;
}

.bb-order-total {
    color: #1e293b;
    font-weight: 700;
    text-align: right;
}

/* Empty Box */
.bb-empty-box {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.bb-empty-box svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.bb-empty-box p {
    margin: 0;
    font-size: 1rem;
}

.bb-empty-box a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}

.bb-empty-box a:hover {
    color: #8b5cf6;
}

/* Responsive */
@media (max-width: 1200px) {
    .bb-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .bb-account-layout {
        flex-direction: column;
    }
    
    .bb-account-sidebar {
        width: 100%;
        min-width: 100%;
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .bb-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .bb-nav-item {
        padding: 10px 16px;
    }
    
    .bb-nav-item span {
        display: none;
    }
    
    .bb-account-main {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .bb-stats-row {
        grid-template-columns: 1fr;
    }
    
    .bb-order-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .bb-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bb-actions-row {
        flex-direction: column;
    }
    
    .bb-action-btn {
        justify-content: center;
    }
}

/* Order Row with Actions */
.bb-order-row {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.bb-order-actions {
    display: flex;
    gap: 8px;
}

.bb-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #e0e7ff;
    color: #6366f1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bb-view-btn:hover {
    background: #6366f1;
    color: #fff;
}

/* Downloads Grid */
.bb-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bb-download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.bb-download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.bb-download-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.bb-download-info {
    flex: 1;
    min-width: 0;
}

.bb-download-info h3 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-download-meta {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.bb-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.bb-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
    color: #fff;
}

@media (max-width: 768px) {
    .bb-download-card {
        flex-direction: column;
        text-align: center;
    }
    
    .bb-download-info h3 {
        white-space: normal;
    }
}

/* Settings Form */
.bb-settings-form {
    max-width: 600px;
}

.bb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bb-form-group {
    margin-bottom: 20px;
}

.bb-form-group label {
    display: block;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.bb-input {
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.bb-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.bb-input::placeholder {
    color: #94a3b8;
}

.bb-form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.bb-form-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    gap: 16px;
}

.bb-form-divider::before,
.bb-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.bb-form-divider span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.bb-form-actions {
    margin-top: 32px;
}

.bb-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.bb-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

@media (max-width: 600px) {
    .bb-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Wishlist Grid */
.bb-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bb-wishlist-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.bb-wishlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.bb-wishlist-image {
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

.bb-wishlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-wishlist-info {
    padding: 20px;
}

.bb-wishlist-info h3 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-wishlist-price {
    color: #059669;
    font-size: 1.1rem;
    font-weight: 700;
}

.bb-wishlist-price del {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-right: 8px;
}

.bb-wishlist-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.bb-view-product-btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bb-view-product-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.bb-remove-wishlist-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-remove-wishlist-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* =============================================
   END OF MY ACCOUNT CSS
   ============================================= */

/* =============================================
   MY ACCOUNT - LIGHT THEME OVERRIDES
   ============================================= */

/* Force all My Account text to be visible - Light Theme */
.bb-myaccount-wrapper,
.bb-myaccount-wrapper * {
    color: inherit;
}

/* Sidebar - Light theme colors */
.bb-account-sidebar,
.bb-account-sidebar *,
.bb-sidebar-nav .bb-nav-item,
.bb-sidebar-nav .bb-nav-item span {
    color: #475569;
}

.bb-sidebar-nav .bb-nav-item:hover,
.bb-sidebar-nav .bb-nav-item:hover span {
    color: #6366f1;
}

.bb-sidebar-nav .bb-nav-item.active,
.bb-sidebar-nav .bb-nav-item.active span {
    color: #fff !important;
}

.bb-sidebar-name {
    color: #1e293b !important;
}

.bb-sidebar-email {
    color: #64748b !important;
}

/* Main content - Dark text on light background */
.bb-account-main h1,
.bb-account-main h2,
.bb-account-main h3,
.bb-header-text h1 {
    color: #1e293b !important;
}

.bb-account-main p,
.bb-header-text p {
    color: #64748b !important;
}

.bb-stat-number {
    color: #1e293b !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

.bb-stat-text {
    color: #64748b !important;
}

.bb-section-title {
    color: #1e293b !important;
}

.bb-order-id {
    color: #1e293b !important;
}

.bb-order-date {
    color: #64748b !important;
}

.bb-order-total {
    color: #1e293b !important;
}

.bb-empty-box,
.bb-empty-box p {
    color: #64748b !important;
}

.bb-empty-box a {
    color: #6366f1 !important;
}

/* Button text - Keep white for gradient buttons */
.bb-header-btn,
.bb-action-btn.blue,
.bb-action-btn.green,
.bb-download-btn,
.bb-save-btn,
.bb-view-product-btn {
    color: #fff !important;
}

.bb-view-btn {
    color: #6366f1 !important;
}

.bb-view-btn:hover {
    color: #fff !important;
}

/* Form labels - Dark text */
.bb-form-group label {
    color: #374151 !important;
}

.bb-input {
    color: #1e293b !important;
    background: #fff !important;
    border-color: #e2e8f0 !important;
}

.bb-input::placeholder {
    color: #94a3b8 !important;
}

.bb-form-hint {
    color: #64748b !important;
}

.bb-form-divider span {
    color: #64748b !important;
}

/* Download & Wishlist cards - Dark text */
.bb-download-info h3,
.bb-wishlist-info h3 {
    color: #1e293b !important;
}

.bb-download-meta {
    color: #64748b !important;
}

.bb-wishlist-price del {
    color: #94a3b8 !important;
}

.bb-wishlist-price {
    color: #059669 !important;
}

/* Links */
.bb-link {
    color: #6366f1 !important;
}

.bb-link:hover {
    color: #8b5cf6 !important;
}

/* Logout button */
.bb-nav-logout,
.bb-nav-logout span {
    color: #ef4444 !important;
}

.bb-nav-logout:hover {
    background: #fef2f2 !important;
}

