/* ============================================
   BigFoto Theme - Main Stylesheet
   For use with Divi Code Modules
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bf-primary: #1a1a2e;
    --bf-primary-light: #16213e;
    --bf-accent: #e94560;
    --bf-accent-hover: #c73e54;
    --bf-text: #2d2d2d;
    --bf-text-light: #6b7280;
    --bf-bg: #ffffff;
    --bf-bg-light: #f8f9fa;
    --bf-bg-warm: #faf8f5;
    --bf-border: #e5e7eb;
    --bf-border-light: #f0f0f0;
    --bf-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --bf-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --bf-shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --bf-radius: 12px;
    --bf-radius-sm: 8px;
    --bf-transition: .3s cubic-bezier(.4,0,.2,1);
    --bf-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --bf-max-width: 1320px;
}

/* --- Base Reset for Divi Code Modules --- */
.bf-section *,
.bf-section *::before,
.bf-section *::after {
    box-sizing: border-box;
}

.bf-section {
    font-family: var(--bf-font);
    color: var(--bf-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bf-container {
    max-width: var(--bf-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER + MEGA MENU
   ============================================ */
.bf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bf-bg);
    border-bottom: 1px solid var(--bf-border-light);
    transition: box-shadow var(--bf-transition);
}

.bf-header.bf-scrolled {
    box-shadow: var(--bf-shadow-md);
}

.bf-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.bf-logo img {
    height: 48px;
    width: auto;
    transition: height var(--bf-transition);
}

.bf-header.bf-scrolled .bf-logo img {
    height: 36px;
}

.bf-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.bf-search input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border: 2px solid var(--bf-border);
    border-radius: 50px;
    font-family: var(--bf-font);
    font-size: 14px;
    outline: none;
    transition: border-color var(--bf-transition);
    background: var(--bf-bg-light);
}

.bf-search input:focus {
    border-color: var(--bf-primary);
    background: var(--bf-bg);
}

.bf-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bf-primary);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--bf-transition);
}

.bf-search button:hover {
    background: var(--bf-accent);
}

.bf-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bf-header-action {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--bf-text);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--bf-transition);
    position: relative;
}

.bf-header-action:hover {
    color: var(--bf-accent);
}

.bf-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--bf-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.bf-nav {
    background: var(--bf-primary);
}

.bf-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.bf-nav-item {
    position: relative;
}

.bf-nav-link {
    display: block;
    padding: 14px 22px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: background var(--bf-transition);
}

.bf-nav-link:hover,
.bf-nav-item:hover .bf-nav-link {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* Mega Menu Dropdown */
.bf-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 600px;
    background: var(--bf-bg);
    border-radius: 0 0 var(--bf-radius) var(--bf-radius);
    box-shadow: var(--bf-shadow-lg);
    padding: 32px;
    display: none;
    z-index: 100;
}

.bf-nav-item:hover .bf-mega-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    animation: bfFadeDown .25s ease;
}

@keyframes bfFadeDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bf-mega-column h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--bf-primary);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bf-accent);
}

.bf-mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bf-mega-column li {
    margin-bottom: 6px;
}

.bf-mega-column a {
    color: var(--bf-text);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    display: block;
    transition: color var(--bf-transition), padding-left var(--bf-transition);
}

.bf-mega-column a:hover {
    color: var(--bf-accent);
    padding-left: 6px;
}

.bf-mega-image {
    border-radius: var(--bf-radius-sm);
    overflow: hidden;
    max-height: 200px;
}

.bf-mega-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile menu */
.bf-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bf-text);
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.bf-hero {
    position: relative;
    overflow: hidden;
    background: var(--bf-bg-light);
}

.bf-hero-slider {
    position: relative;
}

.bf-hero-slide {
    display: none;
    position: relative;
}

.bf-hero-slide.bf-active {
    display: block;
}

.bf-hero-slide a {
    display: block;
    position: relative;
}

.bf-hero-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.bf-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
}

.bf-hero-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
}

.bf-hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 16px;
    opacity: .9;
}

.bf-hero-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--bf-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: background var(--bf-transition), transform var(--bf-transition);
}

.bf-hero-cta:hover {
    background: var(--bf-accent-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* Slider controls */
.bf-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--bf-text);
    z-index: 10;
    transition: background var(--bf-transition), transform var(--bf-transition);
    box-shadow: var(--bf-shadow-sm);
}

.bf-hero-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.bf-hero-prev { left: 20px; }
.bf-hero-next { right: 20px; }

.bf-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bf-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    transition: background var(--bf-transition), transform var(--bf-transition);
}

.bf-hero-dot.bf-active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================================
   PROMO BLOCKS
   ============================================ */
.bf-promo-section {
    padding: 40px 0;
}

.bf-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bf-promo-block {
    position: relative;
    border-radius: var(--bf-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.bf-promo-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.bf-promo-block:hover img {
    transform: scale(1.05);
}

.bf-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,.5));
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--bf-transition);
}

.bf-promo-block:hover .bf-promo-overlay {
    opacity: 1;
}

.bf-promo-overlay h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* Hover effects */
.bf-hover-shake:hover img {
    animation: bfShake .5s;
}

@keyframes bfShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.bf-hover-fade:hover img {
    opacity: .8;
}

/* ============================================
   PRODUCT TABS
   ============================================ */
.bf-products-section {
    padding: 60px 0;
    background: var(--bf-bg-light);
}

.bf-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.bf-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bf-primary);
    margin: 0 0 8px;
}

.bf-section-subtitle {
    font-size: 16px;
    color: var(--bf-text-light);
    margin: 0;
}

.bf-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.bf-tab {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--bf-border);
    border-radius: 50px;
    font-family: var(--bf-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-text-light);
    cursor: pointer;
    transition: all var(--bf-transition);
}

.bf-tab:hover {
    border-color: var(--bf-primary);
    color: var(--bf-primary);
}

.bf-tab.bf-active {
    background: var(--bf-primary);
    border-color: var(--bf-primary);
    color: #fff;
}

.bf-tab-content {
    display: none;
}

.bf-tab-content.bf-active {
    display: block;
    animation: bfFadeIn .4s ease;
}

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

/* Product grid */
.bf-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bf-product-card {
    background: var(--bf-bg);
    border-radius: var(--bf-radius);
    overflow: hidden;
    transition: transform var(--bf-transition), box-shadow var(--bf-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.bf-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bf-shadow-lg);
}

.bf-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bf-bg-light);
}

.bf-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

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

.bf-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bf-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.bf-product-actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all var(--bf-transition);
    display: flex;
    gap: 8px;
}

.bf-product-card:hover .bf-product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bf-product-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bf-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bf-shadow-md);
    transition: background var(--bf-transition);
    color: var(--bf-text);
}

.bf-product-action-btn:hover {
    background: var(--bf-accent);
    color: #fff;
}

.bf-product-info {
    padding: 16px;
}

.bf-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-text);
    margin: 0 0 8px;
    line-height: 1.4;
    min-height: 2.8em;
}

.bf-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color var(--bf-transition);
}

.bf-product-name a:hover {
    color: var(--bf-accent);
}

.bf-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--bf-primary);
}

.bf-product-price .bf-old-price {
    font-size: 14px;
    color: var(--bf-text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 8px;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.bf-trust-section {
    padding: 50px 0;
    background: var(--bf-bg);
    border-top: 1px solid var(--bf-border-light);
    border-bottom: 1px solid var(--bf-border-light);
}

.bf-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.bf-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bf-trust-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bf-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--bf-primary);
    transition: transform var(--bf-transition), background var(--bf-transition);
}

.bf-trust-item:hover .bf-trust-icon {
    transform: translateY(-4px);
    background: var(--bf-primary);
    color: #fff;
}

.bf-trust-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bf-primary);
    margin: 0;
}

.bf-trust-desc {
    font-size: 13px;
    color: var(--bf-text-light);
    margin: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.bf-testimonials-section {
    padding: 60px 0;
    background: var(--bf-bg-warm);
}

.bf-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bf-testimonial-card {
    background: var(--bf-bg);
    border-radius: var(--bf-radius);
    padding: 32px;
    box-shadow: var(--bf-shadow-sm);
    transition: transform var(--bf-transition), box-shadow var(--bf-transition);
}

.bf-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bf-shadow-md);
}

.bf-testimonial-stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 12px;
}

.bf-testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--bf-text);
    margin: 0 0 16px;
    font-style: italic;
}

.bf-testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.bf-footer {
    background: var(--bf-primary);
    color: #fff;
    padding: 60px 0 0;
}

.bf-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.bf-footer-brand p {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0 0;
}

.bf-footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.bf-footer h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.bf-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bf-footer li {
    margin-bottom: 10px;
}

.bf-footer a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--bf-transition), padding-left var(--bf-transition);
}

.bf-footer a:hover {
    color: #fff;
    padding-left: 4px;
}

.bf-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bf-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

.bf-footer-contact-item .material-icons {
    font-size: 20px;
    color: var(--bf-accent);
}

.bf-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.bf-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--bf-transition), transform var(--bf-transition);
}

.bf-footer-social a:hover {
    background: var(--bf-accent);
    transform: translateY(-3px);
    padding-left: 0;
}

.bf-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

.bf-footer-payments {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bf-footer-payments img {
    height: 24px;
    opacity: .6;
    transition: opacity var(--bf-transition);
}

.bf-footer-payments img:hover {
    opacity: 1;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.bf-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.bf-newsletter input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-family: var(--bf-font);
    font-size: 13px;
    outline: none;
}

.bf-newsletter input::placeholder {
    color: rgba(255,255,255,.4);
}

.bf-newsletter button {
    padding: 10px 20px;
    background: var(--bf-accent);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: var(--bf-font);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--bf-transition);
}

.bf-newsletter button:hover {
    background: var(--bf-accent-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .bf-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

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

@media (max-width: 768px) {
    .bf-mobile-toggle {
        display: block;
    }

    .bf-nav-list {
        display: none;
        flex-direction: column;
    }

    .bf-nav-list.bf-open {
        display: flex;
    }

    .bf-mega-menu {
        position: static;
        transform: none;
        min-width: auto;
        box-shadow: none;
        border-radius: 0;
        padding: 16px;
    }

    .bf-nav-item:hover .bf-mega-menu {
        grid-template-columns: 1fr;
    }

    .bf-header-top {
        flex-wrap: wrap;
    }

    .bf-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .bf-promo-grid {
        grid-template-columns: 1fr;
    }

    .bf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bf-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .bf-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .bf-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bf-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .bf-hero-title {
        font-size: 22px;
    }

    .bf-hero-content {
        padding: 20px;
    }

    .bf-section-title {
        font-size: 22px;
    }

    .bf-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .bf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bf-product-info {
        padding: 10px;
    }

    .bf-product-name {
        font-size: 12px;
    }

    .bf-product-price {
        font-size: 15px;
    }

    .bf-trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bf-container {
        padding: 0 12px;
    }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.bf-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--bf-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--bf-transition);
    box-shadow: var(--bf-shadow-md);
}

.bf-scroll-top.bf-visible {
    opacity: 1;
    transform: translateY(0);
}

.bf-scroll-top:hover {
    background: var(--bf-accent);
    transform: translateY(-3px);
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.bf-category-header {
    padding: 40px 0;
    background: var(--bf-bg-light);
    text-align: center;
}

.bf-category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bf-primary);
    margin: 0 0 8px;
}

.bf-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bf-text-light);
    flex-wrap: wrap;
}

.bf-breadcrumb a {
    color: var(--bf-text-light);
    text-decoration: none;
    transition: color var(--bf-transition);
}

.bf-breadcrumb a:hover {
    color: var(--bf-accent);
}

.bf-breadcrumb span {
    color: var(--bf-text-light);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bf-text-center { text-align: center; }
.bf-mt-0 { margin-top: 0; }
.bf-mb-0 { margin-bottom: 0; }
.bf-hidden { display: none !important; }


/* ================================================================
   WOOCOMMERCE + DIVI — COMPLETE OVERRIDES
   ================================================================ */

/* --- DIVI Theme Builder: Header/Footer full viewport width --- */
header.et-l.et-l--header,
footer.et-l.et-l--footer {
    width: 100% !important;
    max-width: 100% !important;
}

header.et-l.et-l--header .et_builder_inner_content,
footer.et-l.et-l--footer .et_builder_inner_content {
    width: 100% !important;
    max-width: 100% !important;
}

header.et-l.et-l--header .et_pb_section,
footer.et-l.et-l--footer .et_pb_section,
header.et-l.et-l--header .et_pb_fullwidth_section,
footer.et-l.et-l--footer .et_pb_fullwidth_section {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

header.et-l.et-l--header .et_pb_row,
footer.et-l.et-l--footer .et_pb_row {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

header.et-l.et-l--header .et_pb_column,
footer.et-l.et-l--footer .et_pb_column {
    padding: 0 !important;
}

header.et-l.et-l--header .et_pb_code_inner,
footer.et-l.et-l--footer .et_pb_code_inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* Legacy fallback for non-Theme Builder pages */
.bf-header,
.bf-footer,
.bf-section.bf-header,
.bf-section.bf-footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box;
}

body.et-tb-has-header .bf-header,
body.et-tb-has-footer .bf-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.et_pb_section .bf-header,
.et_pb_section .bf-footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.et_pb_section:has(.bf-header),
.et_pb_section:has(.bf-footer) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.et_pb_row:has(.bf-header),
.et_pb_row:has(.bf-footer) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.et_pb_column:has(.bf-header),
.et_pb_column:has(.bf-footer) {
    padding: 0 !important;
}

/* --- DIVI: Container width override for WooCommerce --- */
body.bfm-wc-fullwidth #main-content > .container,
body.woocommerce-page #main-content > .container,
body.woocommerce #main-content > .container,
body.single-product #main-content > .container,
body.woocommerce-cart #main-content > .container,
body.woocommerce-checkout #main-content > .container,
body.post-type-archive-product #main-content > .container,
body.woocommerce-account #main-content > .container,
body.bfm-wc-fullwidth #main-content .container,
body.woocommerce #main-content .container,
body.single-product #main-content .container,
body.woocommerce-page #main-content .container {
    width: 95% !important;
    max-width: var(--bf-max-width) !important;
}

body.bfm-wc-fullwidth #main-content > .container::before,
body.bfm-wc-fullwidth #main-content .container::before,
body.woocommerce-page #main-content > .container::before,
body.woocommerce #main-content > .container::before,
body.woocommerce #main-content .container::before,
body.single-product #main-content > .container::before,
body.single-product #main-content .container::before,
body.woocommerce-cart #main-content > .container::before,
body.woocommerce-checkout #main-content > .container::before,
body.post-type-archive-product #main-content > .container::before,
body.woocommerce-account #main-content > .container::before,
body.et_pb_gutters3.bfm-wc-fullwidth #main-content .container::before,
body.et_right_sidebar.bfm-wc-fullwidth #main-content .container::before {
    display: none !important;
    content: none !important;
}

/* Override Divi gutters + sidebar specific selectors */
body.et_pb_gutters3.et_right_sidebar.bfm-wc-fullwidth #left-area,
body.et_pb_gutters3.et_right_sidebar.single-product #left-area,
body.et_pb_gutters3.et_right_sidebar.woocommerce #left-area,
body.et_pb_gutters3.et_right_sidebar.woocommerce-page #left-area,
body.et_pb_gutters3.et_right_sidebar.woocommerce-cart #left-area,
body.et_pb_gutters3.et_right_sidebar.post-type-archive-product #left-area {
    width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
}

body.et_pb_gutters3.et_right_sidebar.bfm-wc-fullwidth #main-content .container::before,
body.et_pb_gutters3.et_right_sidebar.single-product #main-content .container::before,
body.et_pb_gutters3.et_right_sidebar.woocommerce #main-content .container::before {
    display: none !important;
    content: none !important;
}

/* Divi's WooCommerce product grid width overrides */
body.et_pb_gutters3.et_right_sidebar.woocommerce-page #main-content ul.products li.product,
body.et_pb_gutters3.bfm-wc-fullwidth.woocommerce-page #main-content ul.products li.product,
body.et_pb_gutters3.et_full_width_page.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin-right: 0 !important;
}

/* --- DIVI: Sidebar kill na WooCommerce --- */
body.bfm-wc-fullwidth #sidebar,
body.bfm-wc-fullwidth aside#sidebar,
body.bfm-wc-fullwidth .et_pb_widget_area,
body.bfm-wc-fullwidth .widget-area,
body.single-product #sidebar,
body.woocommerce-cart #sidebar,
body.woocommerce-checkout #sidebar,
body.woocommerce #sidebar,
body.post-type-archive-product #sidebar,
body.woocommerce-account #sidebar,
.woocommerce-page #secondary,
.single-product #secondary,
.woocommerce-page aside.widget-area,
.single-product aside.widget-area {
    display: none !important;
}

body.bfm-wc-fullwidth #left-area,
body.bfm-wc-fullwidth .et_pb_gutters3 #left-area,
body.bfm-wc-fullwidth.et_pb_gutters3 #left-area,
body.single-product #left-area,
body.woocommerce-cart #left-area,
body.woocommerce-checkout #left-area,
body.woocommerce #left-area,
body.post-type-archive-product #left-area,
body.woocommerce-account #left-area,
body.et_right_sidebar.bfm-wc-fullwidth #left-area,
body.et_right_sidebar.single-product #left-area,
body.et_right_sidebar.woocommerce-cart #left-area,
body.et_right_sidebar.woocommerce #left-area,
body.et_right_sidebar.post-type-archive-product #left-area,
.woocommerce-page #primary,
.woocommerce-page .content-area,
.woocommerce-page #content,
.single-product #primary,
.single-product .content-area,
.single-product #content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding-right: 0 !important;
}

/* Divi row max-width */
body.bfm-wc-fullwidth .et_pb_row,
body.single-product .et_pb_row,
body.woocommerce-cart .et_pb_row,
body.woocommerce-checkout .et_pb_row {
    max-width: var(--bf-max-width) !important;
}

/* --- DIVI: Nuclear full-width override for ALL WooCommerce pages --- */
body.bfm-wc-fullwidth #page-container,
body.single-product #page-container,
body.woocommerce #page-container,
body.woocommerce-page #page-container {
    overflow-x: hidden;
}

body.bfm-wc-fullwidth #et-main-area,
body.single-product #et-main-area,
body.woocommerce #et-main-area,
body.woocommerce-page #et-main-area {
    width: 100% !important;
    max-width: 100% !important;
}

body.bfm-wc-fullwidth .container,
body.bfm-wc-fullwidth #main-content .container,
body.bfm-wc-fullwidth #main-content > .container,
body.bfm-wc-fullwidth div.container,
body.single-product .container,
body.single-product #main-content .container,
body.single-product #main-content > .container,
body.single-product div.container,
body.woocommerce .container,
body.woocommerce #main-content .container,
body.woocommerce #main-content > .container,
body.woocommerce-page .container:not(.et_pb_container),
body.woocommerce-page #main-content .container,
body.woocommerce-page #main-content > .container {
    width: 95% !important;
    max-width: var(--bf-max-width) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.bfm-wc-fullwidth .container::before,
body.bfm-wc-fullwidth .container::after,
body.single-product .container::before,
body.single-product .container::after,
body.woocommerce .container::before,
body.woocommerce .container::after,
body.woocommerce-page #main-content .container::before,
body.woocommerce-page #main-content .container::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
}

body.bfm-wc-fullwidth #left-area,
body.single-product #left-area,
body.woocommerce #left-area,
body.woocommerce-page #left-area,
body[class*="woocommerce"] #left-area,
body.et_right_sidebar.bfm-wc-fullwidth #left-area,
body.et_right_sidebar.single-product #left-area,
body.et_right_sidebar.woocommerce #left-area,
body.et_right_sidebar.woocommerce-page #left-area,
body.et_pb_gutters3 #left-area:has(.product),
body.et_pb_gutters3 #left-area:has(.woocommerce),
body.et_pb_gutters3.et_right_sidebar #left-area:has(.product),
body.et_pb_gutters3.et_right_sidebar #left-area:has(.woocommerce) {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.bfm-wc-fullwidth #sidebar,
body.single-product #sidebar,
body.woocommerce #sidebar,
body.woocommerce-page #sidebar,
body[class*="woocommerce"] #sidebar,
body.et_right_sidebar.bfm-wc-fullwidth #sidebar,
body.et_right_sidebar.single-product #sidebar {
    display: none !important;
    width: 0 !important;
}

/* --- GLOBAL WOO FONT --- */
body.woocommerce-page,
body.single-product,
body.woocommerce-cart,
body.woocommerce-checkout,
body.post-type-archive-product {
    font-family: var(--bf-font);
    color: var(--bf-text);
}

/* --- SEARCH: BigFoto custom search in header (high specificity vs Divi) --- */
#bf-header .bf-search input[type="text"],
.bf-header .bf-search input[type="text"],
.bf-section.bf-header .bf-search input,
.bf-search input[type="text"],
.bf-search input {
    width: 100% !important;
    padding: 12px 48px 12px 20px !important;
    border: 2px solid var(--bf-border) !important;
    border-radius: 50px !important;
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    outline: none !important;
    background: var(--bf-bg-light) !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: normal !important;
    color: var(--bf-text) !important;
    -webkit-appearance: none !important;
    transition: border-color var(--bf-transition) !important;
}

#bf-header .bf-search input[type="text"]:focus,
.bf-search input[type="text"]:focus,
.bf-search input:focus {
    border-color: var(--bf-primary) !important;
    background: var(--bf-bg) !important;
}

#bf-header .bf-search button,
.bf-section.bf-header .bf-search button,
.bf-search button {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: var(--bf-primary) !important;
    border: none !important;
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background var(--bf-transition) !important;
}

#bf-header .bf-search button:hover,
.bf-search button:hover {
    background: var(--bf-accent) !important;
}

/* --- SEARCH: Divi default search overrides --- */
#main-header .et-search-form input,
.et_search_form_container input.et-search-field,
.et_pb_module .et_pb_search input.et_pb_s,
#et_search_icon ~ .et_search_form_container input {
    padding: 12px 48px 12px 20px !important;
    border: 2px solid var(--bf-border) !important;
    border-radius: 50px !important;
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    outline: none !important;
    background: var(--bf-bg-light) !important;
    box-shadow: none !important;
    height: auto !important;
    -webkit-appearance: none;
}

/* ============================================
   WOOCOMMERCE — BREADCRUMBS
   ============================================ */
.woocommerce-breadcrumb {
    font-family: var(--bf-font);
    font-size: 13px;
    color: var(--bf-text-light);
    padding: 20px 0;
    margin-bottom: 0 !important;
}

.woocommerce-breadcrumb a {
    color: var(--bf-text-light);
    text-decoration: none;
    transition: color var(--bf-transition);
}

.woocommerce-breadcrumb a:hover {
    color: var(--bf-accent);
}

/* ============================================
   WOOCOMMERCE — SHOP CATEGORIES GRID
   ============================================ */
.bfm-shop-categories {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bf-border-light);
}

.bfm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.bfm-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border-radius: var(--bf-radius);
    border: 1px solid var(--bf-border-light);
    background: var(--bf-bg);
    transition: all var(--bf-transition);
    text-decoration: none !important;
    color: var(--bf-text) !important;
}

.bfm-category-card:hover {
    border-color: var(--bf-accent);
    box-shadow: var(--bf-shadow-md);
    transform: translateY(-3px);
}

.bfm-category-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 3px solid var(--bf-border-light);
    transition: border-color var(--bf-transition);
}

.bfm-category-card:hover .bfm-category-img {
    border-color: var(--bf-accent);
}

.bfm-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bfm-category-info h3 {
    font-family: var(--bf-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-primary);
    margin: 0 0 4px;
    padding: 0;
    line-height: 1.3;
}

.bfm-category-count {
    font-size: 12px;
    color: var(--bf-text-light);
}

@media (max-width: 768px) {
    .bfm-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .bfm-category-img {
        width: 70px;
        height: 70px;
    }
    .bfm-category-info h3 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bfm-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   WOOCOMMERCE — SHOP / ARCHIVE PAGE (/sklep)
   ============================================ */
body.post-type-archive-product .woocommerce,
body.tax-product_cat .woocommerce {
    max-width: var(--bf-max-width);
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Shop page title */
body.post-type-archive-product .page-title,
body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .page-title,
body.tax-product_cat .woocommerce-products-header__title,
.woocommerce-products-header h1 {
    font-family: var(--bf-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--bf-primary);
    text-align: center;
    padding: 30px 0 10px;
}

/* Category description */
.woocommerce-products-header .term-description,
.tax-product_cat .term-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 15px;
    color: var(--bf-text-light);
    line-height: 1.7;
}

/* Ordering/Results */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    font-family: var(--bf-font);
    font-size: 13px;
    color: var(--bf-text-light);
    margin-bottom: 20px;
}

.woocommerce .woocommerce-ordering select {
    padding: 8px 32px 8px 14px;
    border: 2px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    font-family: var(--bf-font);
    font-size: 13px;
    background: var(--bf-bg);
    cursor: pointer;
    outline: none;
}

.woocommerce .woocommerce-ordering select:focus {
    border-color: var(--bf-primary);
}

/* Products grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
}

@media (max-width: 1024px) {
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .woocommerce ul.products { grid-template-columns: 1fr; }
}

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    border-radius: var(--bf-radius) !important;
    overflow: hidden;
    transition: all var(--bf-transition);
    background: var(--bf-bg);
    border: 1px solid var(--bf-border-light);
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--bf-shadow-md);
    transform: translateY(-4px);
    border-color: var(--bf-border);
}

.woocommerce ul.products li.product a img {
    margin-bottom: 0 !important;
    border-radius: 0;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--bf-text);
    padding: 14px 16px 6px !important;
    line-height: 1.4;
    margin: 0;
    min-height: 2.8em;
}

.woocommerce ul.products li.product .price {
    font-family: var(--bf-font);
    font-size: 17px !important;
    font-weight: 700;
    color: var(--bf-accent) !important;
    padding: 0 16px 12px;
    margin-top: auto;
}

.woocommerce ul.products li.product .price del {
    opacity: .5;
    font-size: 13px;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.product_type_simple {
    background: var(--bf-primary) !important;
    color: #fff !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    margin: 0 16px 16px;
    border: none;
    transition: all var(--bf-transition);
    text-transform: uppercase;
    letter-spacing: .3px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
    background: var(--bf-accent) !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--bf-accent) !important;
    color: #fff;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    line-height: 1;
    min-width: 0;
    min-height: 0;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--bf-radius-sm);
    font-family: var(--bf-font);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--bf-transition);
    text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li a {
    background: var(--bf-bg-light);
    color: var(--bf-text);
    border: 1px solid var(--bf-border);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--bf-primary);
    color: #fff;
    border-color: var(--bf-primary);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--bf-primary) !important;
    color: #fff !important;
    border: 1px solid var(--bf-primary);
}

/* ============================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   ============================================ */
.single-product div.product {
    max-width: var(--bf-max-width);
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-family: var(--bf-font);
}

.single-product div.product .product_title {
    font-family: var(--bf-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--bf-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Price */
.single-product div.product p.price,
.single-product div.product span.price {
    font-size: 26px !important;
    font-weight: 700;
    color: var(--bf-accent) !important;
    margin-bottom: 20px;
}

.single-product div.product p.price del {
    opacity: .5;
    font-size: 18px;
}

.single-product div.product p.price ins {
    text-decoration: none;
    font-weight: 700;
}

/* Gallery */
.single-product div.product div.images {
    margin-bottom: 30px;
}

.single-product div.product div.images .woocommerce-product-gallery__image img {
    border-radius: var(--bf-radius);
}

.single-product div.product div.images .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.single-product div.product div.images .flex-control-thumbs li {
    flex: 0 0 70px;
}

.single-product div.product div.images .flex-control-thumbs li img {
    border-radius: var(--bf-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--bf-transition);
    opacity: .7;
}

.single-product div.product div.images .flex-control-thumbs li img:hover,
.single-product div.product div.images .flex-control-thumbs li img.flex-active {
    border-color: var(--bf-primary);
    opacity: 1;
}

/* Summary */
.single-product div.product .summary {
    font-family: var(--bf-font);
}

.single-product div.product .summary .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--bf-text);
    margin-bottom: 24px;
}

/* SKU + Categories */
.single-product div.product .product_meta {
    font-size: 13px;
    color: var(--bf-text-light);
    padding: 16px 0;
    border-top: 1px solid var(--bf-border-light);
    margin-top: 20px;
}

.single-product div.product .product_meta a {
    color: var(--bf-accent);
    text-decoration: none;
}

.single-product div.product .product_meta a:hover {
    text-decoration: underline;
}

/* Stock status */
.single-product div.product .stock {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.single-product div.product .stock.in-stock {
    color: #16a34a;
}

.single-product div.product .stock.out-of-stock {
    color: var(--bf-accent);
}

/* Quantity + Add to cart */
.single-product div.product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.single-product div.product form.cart .quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    overflow: hidden;
}

.single-product div.product form.cart .quantity input.qty {
    width: 60px;
    text-align: center;
    border: none;
    font-family: var(--bf-font);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 4px;
    -moz-appearance: textfield;
    outline: none;
    background: transparent;
}

.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
.single-product div.product form.cart .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product div.product form.cart button.single_add_to_cart_button,
.single-product .single_add_to_cart_button {
    background: var(--bf-primary) !important;
    color: #fff !important;
    border: none;
    padding: 14px 36px;
    border-radius: var(--bf-radius-sm);
    font-family: var(--bf-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--bf-transition);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.single-product div.product form.cart button.single_add_to_cart_button:hover,
.single-product .single_add_to_cart_button:hover {
    background: var(--bf-accent) !important;
    transform: translateY(-2px);
    box-shadow: var(--bf-shadow-md);
}

/* Tabs — card style */
.single-product div.product .woocommerce-tabs {
    margin-top: 40px;
    background: var(--bf-bg-light);
    border-radius: var(--bf-radius);
    border: 1px solid var(--bf-border-light);
    overflow: hidden;
}

.single-product div.product .woocommerce-tabs ul.tabs {
    list-style: none !important;
    display: flex;
    gap: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--bf-bg);
    border-bottom: 1px solid var(--bf-border-light);
}

.single-product div.product .woocommerce-tabs ul.tabs::before,
.single-product div.product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.single-product div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.single-product div.product .woocommerce-tabs ul.tabs li::before,
.single-product div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.single-product div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 16px 28px;
    font-family: var(--bf-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-text-light);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all var(--bf-transition);
    background: transparent;
}

.single-product div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--bf-primary);
    border-bottom-color: var(--bf-accent);
    background: var(--bf-bg-light);
}

.single-product div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--bf-primary);
    background: var(--bf-bg-light);
}

.single-product div.product .woocommerce-tabs .panel,
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 30px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.single-product div.product .woocommerce-tabs .panel h2,
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-family: var(--bf-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--bf-primary);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bf-border-light);
}

/* --- Product description auto-styling --- */
.single-product .woocommerce-Tabs-panel--description,
.single-product .woocommerce-product-details__short-description {
    font-family: var(--bf-font);
    font-size: 15px;
    line-height: 1.8;
    color: var(--bf-text);
}

.single-product .woocommerce-Tabs-panel--description p,
.single-product .woocommerce-product-details__short-description p {
    margin-bottom: 16px;
}

.single-product .woocommerce-Tabs-panel--description strong,
.single-product .woocommerce-product-details__short-description strong {
    color: var(--bf-primary);
    font-weight: 700;
}

.single-product .woocommerce-Tabs-panel--description ul,
.single-product .woocommerce-Tabs-panel--description ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.single-product .woocommerce-Tabs-panel--description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.single-product .woocommerce-Tabs-panel--description ul li::marker {
    color: var(--bf-accent);
}

.single-product .woocommerce-Tabs-panel--description h3,
.single-product .woocommerce-Tabs-panel--description h4 {
    font-family: var(--bf-font);
    font-weight: 700;
    color: var(--bf-primary);
    margin: 24px 0 12px;
}

.single-product .woocommerce-Tabs-panel--description h3 {
    font-size: 18px;
}

.single-product .woocommerce-Tabs-panel--description h4 {
    font-size: 16px;
}

.single-product .woocommerce-Tabs-panel--description a {
    color: var(--bf-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-product .woocommerce-Tabs-panel--description a:hover {
    color: var(--bf-primary);
}

.single-product .woocommerce-Tabs-panel--description blockquote {
    border-left: 4px solid var(--bf-accent);
    padding: 16px 24px;
    margin: 20px 0;
    background: var(--bf-bg);
    border-radius: 0 var(--bf-radius-sm) var(--bf-radius-sm) 0;
    font-style: italic;
    color: var(--bf-text-light);
}

.single-product .woocommerce-Tabs-panel--description table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.single-product .woocommerce-Tabs-panel--description table th,
.single-product .woocommerce-Tabs-panel--description table td {
    padding: 10px 14px;
    border: 1px solid var(--bf-border-light);
    text-align: left;
}

.single-product .woocommerce-Tabs-panel--description table th {
    background: var(--bf-bg);
    font-weight: 600;
    color: var(--bf-primary);
}

/* Additional info tab table */
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes {
    font-family: var(--bf-font);
    border: none !important;
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
    font-weight: 600;
    color: var(--bf-primary);
    background: var(--bf-bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--bf-border-light);
    width: 200px;
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bf-border-light);
}

/* Reviews tab */
.single-product .woocommerce-Tabs-panel--reviews #reviews {
    font-family: var(--bf-font);
}

.single-product #reviews .comment-text {
    border: 1px solid var(--bf-border-light) !important;
    border-radius: var(--bf-radius-sm);
    padding: 16px !important;
}

.single-product #reviews .star-rating {
    color: #f59e0b;
}

/* Related Products */
.single-product section.related {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--bf-border-light);
}

.single-product section.related > h2 {
    font-family: var(--bf-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--bf-primary);
    margin-bottom: 24px;
}

/* (Product cards + sale badge defined in Shop section above) */

/* ============================================
   WOOCOMMERCE — CART
   ============================================ */
.woocommerce-cart .woocommerce {
    max-width: var(--bf-max-width);
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-family: var(--bf-font);
}

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper + .woocommerce-cart-form,
.woocommerce-cart .woocommerce .woocommerce-cart-form {
    width: 100%;
}

.woocommerce-cart .wc-block-cart,
.woocommerce-cart .wp-block-woocommerce-cart {
    max-width: var(--bf-max-width);
    margin: 0 auto;
    font-family: var(--bf-font);
}

/* Page titles */
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title,
.woocommerce-cart .wc-block-cart h2,
.woocommerce-checkout h2 {
    font-family: var(--bf-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--bf-primary);
    margin-bottom: 30px;
}

/* Cart table (classic) */
.woocommerce table.shop_table {
    border: 1px solid var(--bf-border-light) !important;
    border-radius: var(--bf-radius) !important;
    border-collapse: separate;
    overflow: hidden;
    font-family: var(--bf-font);
    width: 100%;
}

.woocommerce table.shop_table th {
    background: var(--bf-bg-light);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--bf-text-light);
    padding: 14px 20px;
    border-bottom: 1px solid var(--bf-border-light);
}

.woocommerce table.shop_table td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bf-border-light);
    font-size: 14px;
}

.woocommerce table.shop_table td.product-name a {
    color: var(--bf-primary);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce table.shop_table td.product-name a:hover {
    color: var(--bf-accent);
}

.woocommerce table.shop_table td.product-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--bf-radius-sm);
    border: 1px solid var(--bf-border-light);
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    font-weight: 600;
    color: var(--bf-primary);
}

.woocommerce table.shop_table td.product-remove a.remove {
    color: var(--bf-accent) !important;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff0f3;
    transition: all var(--bf-transition);
}

.woocommerce table.shop_table td.product-remove a.remove:hover {
    background: var(--bf-accent) !important;
    color: #fff !important;
}

/* Quantity in cart */
.woocommerce table.shop_table .quantity input.qty {
    width: 60px;
    text-align: center;
    border: 2px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    padding: 8px 4px;
    font-family: var(--bf-font);
    font-size: 15px;
    font-weight: 600;
}

/* Cart totals */
.woocommerce .cart-collaterals,
.woocommerce-cart .cart-collaterals {
    margin-top: 30px;
}

.woocommerce .cart_totals {
    width: 100%;
    max-width: 450px;
    float: right;
}

.woocommerce .cart_totals h2 {
    font-family: var(--bf-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--bf-primary);
    margin-bottom: 16px;
}

.woocommerce .cart_totals table {
    border: 1px solid var(--bf-border-light) !important;
    border-radius: var(--bf-radius) !important;
}

/* Update cart + Coupon */
.woocommerce .cart .coupon .input-text {
    padding: 12px 16px;
    border: 2px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    font-family: var(--bf-font);
    font-size: 14px;
    outline: none;
}

.woocommerce .cart .coupon .input-text:focus {
    border-color: var(--bf-primary);
}

/* WooCommerce buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-block-components-button {
    background: var(--bf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    cursor: pointer;
    transition: all var(--bf-transition);
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1.4;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .wc-block-components-button:hover {
    background: var(--bf-accent) !important;
    transform: translateY(-1px);
    box-shadow: var(--bf-shadow-sm);
}

.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce .wc-block-components-checkout-place-order-button,
.woocommerce .checkout-button {
    background: var(--bf-accent) !important;
    color: #fff !important;
    font-size: 15px;
    padding: 14px 36px;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce .checkout-button:hover {
    background: var(--bf-primary) !important;
}

/* ============================================
   WOOCOMMERCE — CHECKOUT
   ============================================ */
.woocommerce-checkout .woocommerce {
    max-width: var(--bf-max-width);
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-family: var(--bf-font);
}

/* Block-based checkout */
.woocommerce-checkout .wp-block-woocommerce-checkout,
.woocommerce-checkout .wc-block-checkout {
    max-width: var(--bf-max-width);
    margin: 0 auto;
    font-family: var(--bf-font);
}

/* Classic form fields */
.woocommerce form .form-row {
    margin-bottom: 16px;
}

.woocommerce form .form-row label {
    font-family: var(--bf-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-text);
    margin-bottom: 6px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout .woocommerce-input-wrapper select,
.wc-block-components-text-input input,
.wc-block-components-textarea textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    font-family: var(--bf-font);
    font-size: 14px;
    outline: none;
    transition: border-color var(--bf-transition);
    background: var(--bf-bg);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.wc-block-components-text-input input:focus {
    border-color: var(--bf-primary);
}

/* Checkout columns */
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    width: 100%;
}

/* Order review */
.woocommerce-checkout #order_review_heading {
    font-family: var(--bf-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--bf-primary);
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--bf-border-light);
}

.woocommerce-checkout #order_review {
    background: var(--bf-bg-light);
    border-radius: var(--bf-radius);
    padding: 24px;
    margin-top: 16px;
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: var(--bf-bg-light) !important;
    border-radius: var(--bf-radius) !important;
    border: 1px solid var(--bf-border-light);
    padding: 24px;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 12px 0;
    border-bottom: 1px solid var(--bf-border-light);
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: none;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600;
    cursor: pointer;
}

.woocommerce-checkout #payment div.payment_box {
    background: var(--bf-bg) !important;
    border-radius: var(--bf-radius-sm);
    padding: 16px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--bf-text-light);
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

.woocommerce-checkout #payment #place_order {
    width: 100%;
    font-size: 16px;
    padding: 16px 24px;
    margin-top: 16px;
}

/* Error notices */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner {
    font-family: var(--bf-font);
    border-radius: var(--bf-radius-sm) !important;
    font-size: 14px;
    padding: 14px 20px;
    margin-bottom: 20px !important;
}

.woocommerce-error {
    border-left: 4px solid var(--bf-accent);
    background: #fff0f3;
    color: #991b1b;
}

.woocommerce-message {
    border-left: 4px solid #22c55e;
    background: #f0fdf4;
    color: #166534;
}

.woocommerce-info {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

/* ============================================
   WOOCOMMERCE — BLOCK CART + CHECKOUT (comprehensive)
   ============================================ */

/* Block cart/checkout wrapper */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
    font-family: var(--bf-font) !important;
    max-width: var(--bf-max-width) !important;
    margin: 0 auto !important;
}

/* Cart & checkout page title */
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-cart h1.main_title,
body.woocommerce-checkout h1.main_title {
    font-family: var(--bf-font) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--bf-primary) !important;
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
}

/* Product names */
.wc-block-cart .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-product-name {
    font-weight: 600 !important;
    color: var(--bf-primary) !important;
    text-decoration: none !important;
    font-family: var(--bf-font) !important;
}

.wc-block-cart .wc-block-components-product-name:hover,
.wc-block-checkout .wc-block-components-product-name:hover {
    color: var(--bf-accent) !important;
}

/* Product prices */
.wc-block-cart .wc-block-components-product-price,
.wc-block-checkout .wc-block-components-product-price {
    font-weight: 700 !important;
    color: var(--bf-primary) !important;
    font-family: var(--bf-font) !important;
}

/* Product images in cart */
.wc-block-cart .wc-block-components-product-image img,
.wc-block-checkout .wc-block-components-product-image img {
    border-radius: var(--bf-radius-sm) !important;
    border: 1px solid var(--bf-border-light) !important;
}

/* Totals */
.wc-block-cart .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-item__label {
    font-family: var(--bf-font) !important;
    font-weight: 500 !important;
}

.wc-block-cart .wc-block-components-totals-item__value,
.wc-block-checkout .wc-block-components-totals-item__value {
    font-weight: 700 !important;
    color: var(--bf-primary) !important;
    font-family: var(--bf-font) !important;
}

/* Totals footer (grand total) */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 20px !important;
    color: var(--bf-accent) !important;
}

/* Quantity selector */
.wc-block-components-quantity-selector {
    border: 2px solid var(--bf-border) !important;
    border-radius: var(--bf-radius-sm) !important;
    overflow: hidden;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    font-family: var(--bf-font) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    background: var(--bf-bg-light) !important;
    border: none !important;
    color: var(--bf-text) !important;
    font-weight: 700 !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
    background: var(--bf-primary) !important;
    color: #fff !important;
}

/* Remove link */
.wc-block-cart .wc-block-components-product-metadata .wc-block-components-product-details li,
.wc-block-cart .wc-block-cart-item__remove-link {
    font-family: var(--bf-font) !important;
}

.wc-block-cart-item__remove-link {
    color: var(--bf-accent) !important;
    font-size: 13px !important;
}

/* Checkout steps */
.wc-block-components-checkout-step__heading {
    font-family: var(--bf-font) !important;
    font-weight: 700 !important;
    color: var(--bf-primary) !important;
}

.wc-block-components-checkout-step__description {
    font-family: var(--bf-font) !important;
    color: var(--bf-text-light) !important;
}

/* Form inputs */
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-combobox .components-combobox-control input {
    border: 2px solid var(--bf-border) !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    transition: border-color var(--bf-transition) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus {
    border-color: var(--bf-primary) !important;
    box-shadow: none !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label {
    font-family: var(--bf-font) !important;
    font-size: 13px !important;
    color: var(--bf-text-light) !important;
}

/* Buttons */
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    background: var(--bf-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 14px 36px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    transition: all var(--bf-transition) !important;
    cursor: pointer !important;
}

.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background: var(--bf-primary) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--bf-shadow-md) !important;
}

/* Sidebar / totals panel */
.wc-block-cart .wc-block-cart__sidebar,
.wc-block-checkout .wc-block-checkout__sidebar {
    background: var(--bf-bg-light) !important;
    border-radius: var(--bf-radius) !important;
    padding: 20px !important;
    border: 1px solid var(--bf-border-light) !important;
}

/* Payment methods */
.wc-block-components-radio-control__label,
.wc-block-components-payment-method-label {
    font-family: var(--bf-font) !important;
    font-weight: 600 !important;
}

/* Order summary */
.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    font-family: var(--bf-font) !important;
}

/* Shipping options */
.wc-block-components-shipping-rates-control__package {
    border: 1px solid var(--bf-border-light) !important;
    border-radius: var(--bf-radius-sm) !important;
    padding: 16px !important;
}

/* Notice banners */
.wc-block-components-notice-banner {
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font) !important;
}

.wc-block-components-notice-banner.is-error {
    border-left: 4px solid var(--bf-accent) !important;
    background: #fff0f3 !important;
}

.wc-block-components-notice-banner.is-success {
    border-left: 4px solid #22c55e !important;
    background: #f0fdf4 !important;
}

/* Coupon form */
.wc-block-components-totals-coupon .wc-block-components-totals-coupon__input input {
    border: 2px solid var(--bf-border) !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font) !important;
}

.wc-block-components-totals-coupon .wc-block-components-totals-coupon__button {
    background: var(--bf-primary) !important;
    color: #fff !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font) !important;
    font-weight: 600 !important;
}

/* ============================================
   WOOCOMMERCE — MY ACCOUNT (comprehensive)
   ============================================ */

/* Page title */
body.woocommerce-account .entry-title,
body.woocommerce-account h1.main_title {
    font-family: var(--bf-font) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--bf-primary) !important;
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
    line-height: 1.3 !important;
}

/* Wrapper */
body.woocommerce-account .woocommerce,
body.woocommerce-account .entry-content .woocommerce {
    max-width: var(--bf-max-width);
    margin: 0 auto;
    padding: 0 0 60px;
    font-family: var(--bf-font);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Navigation */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 240px !important;
    float: none !important;
    flex-shrink: 0;
    margin-right: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--bf-bg-light) !important;
    border-radius: var(--bf-radius) !important;
    overflow: hidden;
    border: 1px solid var(--bf-border-light) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--bf-border-light);
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li::before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li::marker {
    display: none !important;
    content: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 14px 20px !important;
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--bf-text) !important;
    text-decoration: none !important;
    transition: all var(--bf-transition) !important;
    line-height: 1.4 !important;
    border-left: 3px solid transparent;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders.is-active a {
    background: var(--bf-primary) !important;
    color: #fff !important;
    border-left-color: var(--bf-accent) !important;
    font-weight: 600 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--bf-bg) !important;
    color: var(--bf-primary) !important;
    border-left-color: var(--bf-accent) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a:hover {
    background: var(--bf-primary) !important;
    color: #fff !important;
}

/* Content area */
body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    overflow: visible !important;
    font-family: var(--bf-font) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-family: var(--bf-font) !important;
    font-weight: 700 !important;
    color: var(--bf-primary) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content p {
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: var(--bf-text) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--bf-accent) !important;
    text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-decoration: underline !important;
}

/* Notices wrapper inside account */
body.woocommerce-account .woocommerce-notices-wrapper {
    width: 100% !important;
    flex-basis: 100% !important;
}

/* WooCommerce notices — override Divi buttons */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error,
body.bfm-theme .woocommerce-message,
body.bfm-theme .woocommerce-info,
body.bfm-theme .woocommerce-error {
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 16px 24px !important;
    border-radius: var(--bf-radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

body.bfm-theme .woocommerce-message {
    background: #f0fdf4 !important;
    border-left: 4px solid #22c55e !important;
    color: #166534 !important;
    border-top: none !important;
}

body.bfm-theme .woocommerce-info {
    background: #eff6ff !important;
    border-left: 4px solid #3b82f6 !important;
    color: #1e40af !important;
    border-top: none !important;
}

body.bfm-theme .woocommerce-error {
    background: #fff0f3 !important;
    border-left: 4px solid var(--bf-accent) !important;
    color: #991b1b !important;
    border-top: none !important;
}

body.bfm-theme .woocommerce-message::before,
body.bfm-theme .woocommerce-info::before,
body.bfm-theme .woocommerce-error::before {
    display: none !important;
}

/* Buttons inside notices — override Divi's .et_pb_button style */
body.bfm-theme .woocommerce-message .button,
body.bfm-theme .woocommerce-info .button,
body.bfm-theme .woocommerce-error .button,
body.bfm-theme .woocommerce-message a.button,
body.bfm-theme .woocommerce-info a.button,
body.bfm-theme .woocommerce-error a.button,
body.bfm-theme .woocommerce-message .woocommerce-Button,
body.bfm-theme .woocommerce-info .woocommerce-Button {
    background: var(--bf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--bf-radius-sm) !important;
    padding: 10px 24px !important;
    font-family: var(--bf-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    text-decoration: none !important;
    transition: all var(--bf-transition) !important;
    cursor: pointer !important;
    float: none !important;
    order: 2;
    flex-shrink: 0;
    line-height: 1.4 !important;
}

body.bfm-theme .woocommerce-message .button::after,
body.bfm-theme .woocommerce-info .button::after,
body.bfm-theme .woocommerce-error .button::after,
body.bfm-theme .woocommerce-message a.button::after,
body.bfm-theme .woocommerce-info a.button::after {
    display: none !important;
}

body.bfm-theme .woocommerce-message .button:hover,
body.bfm-theme .woocommerce-info .button:hover,
body.bfm-theme .woocommerce-error .button:hover {
    background: var(--bf-accent) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--bf-shadow-sm) !important;
    padding: 10px 24px !important;
}

/* Login form */
body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register {
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 40px !important;
    background: var(--bf-bg-light) !important;
    border-radius: var(--bf-radius) !important;
    border: 1px solid var(--bf-border-light) !important;
}

body.woocommerce-account .woocommerce-form-login h2,
body.woocommerce-account .woocommerce-form-register h2 {
    font-family: var(--bf-font) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--bf-primary) !important;
    margin-bottom: 24px !important;
    text-align: center !important;
}

body.woocommerce-account .woocommerce-form-login label,
body.woocommerce-account .woocommerce-form-register label {
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--bf-text) !important;
    margin-bottom: 6px !important;
    display: block !important;
}

body.woocommerce-account .woocommerce-form-login input.input-text,
body.woocommerce-account .woocommerce-form-register input.input-text,
body.woocommerce-account .woocommerce-Input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--bf-border) !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color var(--bf-transition) !important;
    background: var(--bf-bg) !important;
    box-sizing: border-box !important;
}

body.woocommerce-account .woocommerce-form-login input.input-text:focus,
body.woocommerce-account .woocommerce-Input:focus {
    border-color: var(--bf-primary) !important;
}

body.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit,
body.woocommerce-account .woocommerce-form-register .woocommerce-form__submit {
    width: 100% !important;
    background: var(--bf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--bf-radius-sm) !important;
    padding: 14px 24px !important;
    font-family: var(--bf-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all var(--bf-transition) !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    margin-top: 8px !important;
}

body.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit:hover,
body.woocommerce-account .woocommerce-form-register .woocommerce-form__submit:hover {
    background: var(--bf-accent) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--bf-shadow-md) !important;
}

body.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit::after,
body.woocommerce-account .woocommerce-form-register .woocommerce-form__submit::after {
    display: none !important;
}

body.woocommerce-account .woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: var(--bf-font) !important;
    font-size: 13px !important;
    color: var(--bf-text-light) !important;
    margin-bottom: 16px !important;
}

body.woocommerce-account .lost_password {
    text-align: center !important;
    margin-top: 16px !important;
}

body.woocommerce-account .lost_password a {
    font-family: var(--bf-font) !important;
    font-size: 13px !important;
    color: var(--bf-accent) !important;
    text-decoration: none !important;
}

body.woocommerce-account .lost_password a:hover {
    text-decoration: underline !important;
}

/* Addresses */
body.woocommerce-account .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

body.woocommerce-account .woocommerce-Address {
    background: var(--bf-bg-light) !important;
    border-radius: var(--bf-radius) !important;
    padding: 24px !important;
    border: 1px solid var(--bf-border-light) !important;
}

body.woocommerce-account .woocommerce-Address header h3,
body.woocommerce-account .woocommerce-column__title {
    font-family: var(--bf-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--bf-primary) !important;
    margin-bottom: 12px !important;
}

body.woocommerce-account .woocommerce-Address address {
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: var(--bf-text) !important;
    font-style: normal !important;
}

/* Edit account form */
body.woocommerce-account .woocommerce-EditAccountForm {
    max-width: 600px !important;
}

body.woocommerce-account .woocommerce-EditAccountForm label {
    font-family: var(--bf-font) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--bf-text) !important;
}

body.woocommerce-account .woocommerce-EditAccountForm input.input-text {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--bf-border) !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font) !important;
    font-size: 14px !important;
    outline: none !important;
    background: var(--bf-bg) !important;
}

body.woocommerce-account .woocommerce-EditAccountForm input.input-text:focus {
    border-color: var(--bf-primary) !important;
}

/* Order table */
body.woocommerce-account table.woocommerce-orders-table {
    border: 1px solid var(--bf-border-light) !important;
    border-radius: var(--bf-radius) !important;
    border-collapse: separate !important;
    overflow: hidden;
    font-family: var(--bf-font) !important;
    width: 100% !important;
}

body.woocommerce-account table.woocommerce-orders-table th {
    background: var(--bf-bg-light) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    color: var(--bf-text-light) !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--bf-border-light) !important;
}

body.woocommerce-account table.woocommerce-orders-table td {
    padding: 14px 20px !important;
    font-size: 14px !important;
    border-bottom: 1px solid var(--bf-border-light) !important;
    vertical-align: middle !important;
}

body.woocommerce-account table.woocommerce-orders-table .button {
    font-size: 12px !important;
    padding: 8px 16px !important;
}

/* Global: Divi .et_pb_button override inside WooCommerce */
body.bfm-theme .woocommerce .et_pb_button,
body.bfm-theme .woocommerce a.et_pb_button,
body.bfm-theme .woocommerce .button.et_pb_button {
    background: var(--bf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--bf-radius-sm) !important;
    font-family: var(--bf-font) !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    font-size: 14px !important;
    transition: all var(--bf-transition) !important;
}

body.bfm-theme .woocommerce .et_pb_button::after,
body.bfm-theme .woocommerce a.et_pb_button::after {
    display: none !important;
}

body.bfm-theme .woocommerce .et_pb_button:hover,
body.bfm-theme .woocommerce a.et_pb_button:hover {
    background: var(--bf-accent) !important;
    padding: 12px 28px !important;
}

/* ============================================
   WOOCOMMERCE — RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .single-product div.product .product_title {
        font-size: 22px;
    }

    .single-product div.product p.price {
        font-size: 22px !important;
    }

    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
        border-bottom: none !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 16px !important;
        font-size: 13px !important;
        border-left: none !important;
        border-radius: var(--bf-radius-sm) !important;
    }

    body.woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-account .woocommerce-form-login,
    body.woocommerce-account .woocommerce-form-register {
        padding: 24px !important;
    }

    .woocommerce .cart_totals {
        float: none;
        max-width: 100%;
    }

    .woocommerce table.shop_table {
        font-size: 13px;
    }

    .woocommerce table.shop_table td {
        padding: 10px 12px;
    }
}
