/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.site-branding .custom-logo,
.etdfl-header-logo {
    height: 38px !important;
    max-height: 38px !important;
    max-width: 140px !important;
    width: auto !important;
    display: block;
    object-fit: contain !important;
    transition: transform 0.2s ease;
}

.site-branding .custom-logo:hover {
    transform: scale(1.03);
}

/* Global Section Utilities */
.section-padding {
    padding: 65px 0 !important;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0 !important;
    }
}

.section-title-wrap {
    margin-bottom: 35px;
}

.section-main-heading {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.section-sub-desc {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.text-accent-blue {
    color: #0082c8 !important;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: var(--color-primary);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg, 24px);
}

.main-navigation a {
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 6px 0;
    display: block;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--brand-blue, #0082c8);
}

/* Dropdown Menu (Desktop) */
.dropdown-toggle {
    display: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 230px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 999;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    display: block;
    animation: fadeInMenu 0.2s ease-out forwards;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #475569;
    transition: background-color 0.2s, color 0.2s;
}

.main-navigation .sub-menu a:hover {
    background-color: #f1f5f9;
    color: var(--color-success, #0082c8);
}

/* ==========================================================================
   HEADER ACTIONS (CART & MINI CART DROPDOWN)
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-cart-wrapper {
    position: relative;
    padding: 6px 0;
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: #334155;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.header-cart:hover,
.header-cart-wrapper:hover .header-cart {
    background: var(--color-success, #0082c8);
    color: #ffffff;
    border-color: var(--color-success, #0082c8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 130, 200, 0.35);
}

.header-cart .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-success, #0082c8);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.header-cart:hover .cart-count,
.header-cart-wrapper:hover .cart-count {
    background-color: #1e293b;
    border-color: #ffffff;
}

/* Mini Cart Dropdown (VIP Pro Aesthetic) */
.header-mini-cart-dropdown {
    position: absolute;
    top: calc(100% - 2px);
    right: -10px;
    width: 360px;
    max-width: 92vw;
    background: #ffffff !important;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
}

/* Triangle Pointer */
.header-mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #f8fafc;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transform: rotate(45deg);
    z-index: 2;
}

/* Show on Hover */
.header-cart-wrapper:hover .header-mini-cart-dropdown,
.header-cart-wrapper:focus-within .header-mini-cart-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(2px) !important;
    pointer-events: auto;
}

/* Mini Cart Header */
.header-mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    z-index: 3;
}

.header-mini-cart-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-mini-cart-header h4 i {
    color: var(--color-success, #0082c8);
}

.mini-cart-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-success, #0082c8);
    background: #eaf6ea;
    padding: 2px 8px;
    border-radius: 12px;
}

.widget_shopping_cart_content {
    background: #ffffff !important;
    padding: 16px 18px;
    max-height: 400px;
    overflow-y: auto;
}

/* Empty State */
.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 28px 12px;
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.woocommerce-mini-cart__empty-message::before {
    content: '\f290';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eaf6ea;
    color: var(--color-success, #0082c8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Product list */
.woocommerce-mini-cart.cart_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-mini-cart.cart_list li.mini_cart_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    margin-bottom: 10px;
    position: relative;
    transition: background-color 0.2s ease;
}

.woocommerce-mini-cart.cart_list li.mini_cart_item:hover {
    background: #f1f5f9;
}

.woocommerce-mini-cart.cart_list li.mini_cart_item a.remove {
    position: static;
    order: 3;
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.woocommerce-mini-cart.cart_list li.mini_cart_item a.remove:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}

.woocommerce-mini-cart.cart_list li.mini_cart_item a:not(.remove) {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    flex: 1;
}

.woocommerce-mini-cart.cart_list li.mini_cart_item a:not(.remove):hover {
    color: var(--color-success, #0082c8);
}

.woocommerce-mini-cart.cart_list li.mini_cart_item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2px;
    margin: 0;
    flex-shrink: 0;
}

.woocommerce-mini-cart.cart_list li.mini_cart_item .quantity {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 3px;
}

.woocommerce-mini-cart.cart_list li.mini_cart_item .quantity .amount {
    color: var(--color-success, #0082c8);
    font-weight: 700;
}

/* Subtotal */
.woocommerce-mini-cart__total.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 14px;
    padding-top: 14px;
    border-top: 2px dashed #e2e8f0;
    font-size: 0.95rem;
    color: #1e293b;
}

.woocommerce-mini-cart__total.total strong {
    font-weight: 700;
}

.woocommerce-mini-cart__total.total .amount {
    color: var(--color-success, #0082c8);
    font-size: 1.2rem;
    font-weight: 800;
}

/* Buttons */
.woocommerce-mini-cart__buttons.buttons {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.woocommerce-mini-cart__buttons.buttons a.button {
    flex: 1;
    text-align: center;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.woocommerce-mini-cart__buttons.buttons a.button:not(.checkout) {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.woocommerce-mini-cart__buttons.buttons a.button:not(.checkout):hover {
    background: #e2e8f0;
    color: #0f172a;
}

.woocommerce-mini-cart__buttons.buttons a.button.checkout {
    background: linear-gradient(135deg, #0082c8 0%, #006aa6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 130, 200, 0.35);
}

.woocommerce-mini-cart__buttons.buttons a.button.checkout:hover {
    background: linear-gradient(135deg, #0082c8 0%, #006aa6 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 130, 200, 0.45);
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger-box {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner { top: 50%; margin-top: -1px; }
.hamburger-inner::before { content: ""; top: -8px; }
.hamburger-inner::after { content: ""; bottom: -8px; }

/* ==========================================================================
   FOOTER (UNIFIED ETDFL COMPACT & MODERN)
   ========================================================================== */
.site-footer,
.site-footer.etdfl-footer {
    background-color: #d1d5db !important;
    color: #1f2937 !important;
    margin-top: 0;
    padding-top: 24px;
    padding-bottom: 0;
    border-top: 1px solid #cbd5e1;
}

.site-footer .footer-top {
    padding: 0 !important;
}

.site-footer .etdfl-footer-grid,
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.35fr 1fr;
    gap: 30px;
    align-items: center;
}

/* Col 1: Brand */
.footer-brand-logo-wrap {
    margin-bottom: 10px;
}

.footer-brand-logo-wrap .footer-logo {
    max-width: 135px;
    height: auto;
    display: block;
}

.footer-office-address p {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-style: italic;
    color: #374151;
    line-height: 1.35;
}

.footer-office-address p.country-tag {
    font-weight: 800;
    font-style: normal;
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: #111827;
}

/* Col 2: Sponsor Products */
.widget_etdfl_sponsor .widget-title {
    font-size: 13.5px !important;
    font-weight: 800;
    text-transform: uppercase;
    color: #111827 !important;
    margin: 0 0 8px 0 !important;
    padding-bottom: 4px;
    border-bottom: 2px solid #9ca3af;
    display: inline-block;
    letter-spacing: 0.03em;
}

.footer-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-products-list li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.footer-prod-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.footer-prod-item:hover {
    opacity: 0.85;
}

.footer-prod-thumb {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    background: #ffffff;
    border-radius: 4px;
    padding: 2px;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.footer-prod-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-prod-title {
    font-size: 12.5px !important;
    font-weight: 600;
    color: #1f2937 !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.footer-prod-item:hover .footer-prod-title {
    color: #0082c8 !important;
}

.footer-prod-price {
    font-size: 12.5px !important;
    font-weight: 700;
    color: #0082c8 !important;
    margin-top: 1px;
}

/* Col 3: Book Access */
.footer-book-showcase {
    text-align: center;
}

.footer-book-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.footer-book-mockup {
    max-width: 80px !important;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
    transition: transform 0.25s ease;
}

.footer-book-link:hover .footer-book-mockup {
    transform: scale(1.06);
}

.footer-book-label {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #0082c8 !important;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.03em;
    line-height: 1.15;
    transition: color 0.2s ease;
}

.footer-book-link:hover .footer-book-label {
    color: #005080 !important;
}

/* Footer Bottom Bar */
.site-footer .footer-bottom,
.etdfl-footer .footer-bottom {
    background-color: #ffffff !important;
    padding: 8px 0 !important;
    margin-top: 18px !important;
    border-top: 1px solid #e5e7eb;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #4b5563 !important;
}

.footer-bottom-flex p {
    margin: 0;
    color: #4b5563 !important;
}

@media (max-width: 991px) {
    .site-footer .etdfl-footer-grid,
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .footer-prod-item {
        justify-content: center;
    }
    .footer-brand-logo-wrap .footer-logo {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .footer-bottom-flex {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ==========================================================================
   SPONSOR PRODUCTS GRID & CARDS (GLOBAL)
   ========================================================================== */
.sponsor-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 35px;
}

.sponsor-product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sponsor-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
    border-color: #0082c8;
}

.prod-card-image-wrap {
    padding: 16px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prod-card-image-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.prod-card-thumb {
    max-height: 155px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.sponsor-product-card:hover .prod-card-thumb {
    transform: scale(1.05);
}

.prod-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.prod-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    margin: 0 0 10px 0;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prod-card-title a:hover {
    color: #0082c8;
}

.prod-card-price {
    font-size: 17px;
    font-weight: 800;
    color: #0082c8;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.prod-card-price del {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}

.prod-card-price ins {
    text-decoration: none;
    color: #0082c8;
}

.prod-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-product-add {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #0082c8;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-product-add:hover {
    background: #006da8;
    box-shadow: 0 4px 12px rgba(0, 130, 200, 0.3);
}

.btn-product-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    color: #64748b !important;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.btn-product-view:hover {
    background: #0082c8;
    color: #ffffff !important;
    border-color: #0082c8;
}

@media (max-width: 992px) {
    .sponsor-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .sponsor-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .site-branding .custom-logo,
    .etdfl-header-logo {
        height: 32px !important;
        max-height: 32px !important;
        max-width: 115px !important;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-card);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--box-shadow);
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 var(--spacing-md);
        display: none;
    }

    .main-navigation .menu-item-has-children {
        position: relative;
    }
    
    .main-navigation .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 48px;
        padding: 0;
        background: transparent;
        border: none;
        color: var(--color-text-main);
        cursor: pointer;
    }

    .main-navigation .dropdown-open > .sub-menu {
        display: block;
    }
}

/* ==========================================================================
   BACK TO TOP STICKER BUTTON (CIRCULAR SCROLL PROGRESS)
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 130, 200, 0.2);
    border: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 32px rgba(0, 130, 200, 0.35);
}

.back-to-top-btn .progress-ring {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 46px;
    height: 46px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.back-to-top-btn .progress-ring-circle {
    transition: stroke-dashoffset 0.15s ease-out;
}

.back-to-top-btn .btn-sticker-inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0082c8 0%, #005f96 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

.back-to-top-btn:hover .btn-sticker-inner {
    background: linear-gradient(135deg, #0082c8 0%, #005586 100%);
}

.back-to-top-btn:hover .btn-sticker-inner i {
    animation: bounceTop 0.6s ease infinite alternate;
}

@keyframes bounceTop {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    .back-to-top-btn .progress-ring {
        width: 42px;
        height: 42px;
    }
    .back-to-top-btn .btn-sticker-inner {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}


/* ==========================================================================
   MACHINE IMAGE CAROUSEL (SECTION 5)
   ========================================================================== */
.machine-carousel-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    user-select: none;
}

.carousel-slides-track {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
    z-index: 1;
}

.carousel-img-wrap {
    width: 100%;
    height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-img {
    max-height: 360px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.carousel-caption {
    margin-top: 14px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
    font-style: italic;
}

.carousel-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #cbd5e1;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background: #0082c8;
    color: #ffffff;
    border-color: #0082c8;
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn.prev-btn {
    left: 14px;
}

.carousel-nav-btn.next-btn {
    right: 14px;
}

.carousel-dots-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 5;
}

.carousel-dots-nav .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dots-nav .dot.active {
    background: #0082c8;
    width: 26px;
    border-radius: 5px;
}

/* AJAX Add to Cart Button States */
.btn-product-add.loading {
    opacity: 0.75;
    cursor: wait;
}

.btn-product-add.added-success {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
}

@media (max-width: 768px) {
    .carousel-slides-track {
        min-height: 300px;
    }
    .carousel-img-wrap {
        height: 260px;
    }
    .carousel-img {
        max-height: 250px;
    }
}

/* SECTION 7: #THE FREQUENCIES OF RIFING 2026 */
.etdfl-frequencies-section {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 70px 0;
}

.frequencies-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.35fr;
    gap: 40px;
    align-items: center;
}

.frequencies-book-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.frequencies-book-col .book-card-3d {
    width: 100%;
    max-width: 540px;
    text-align: center;
}

.frequencies-book-col .book-3d-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.14));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.frequencies-book-col .book-3d-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.2));
}

.frequencies-title {
    font-size: clamp(30px, 4vw, 44px) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    color: #111827;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.frequencies-lead {
    font-size: 19px;
    font-weight: 500;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Amazon Buy Button */
.frequencies-action-wrap {
    margin-top: 24px;
}

.btn-amazon-buy {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 26px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    color: #374151 !important;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.btn-amazon-buy i,
.btn-amazon-buy .fa-amazon {
    font-size: 22px;
    color: #111827;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-amazon-buy:hover {
    background: #f8fafc;
    border-color: #0f172a;
    color: #0f172a !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.btn-amazon-buy:hover i {
    color: #ff9900;
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .frequencies-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .frequencies-action-wrap {
        display: flex;
        justify-content: center;
    }
    .frequencies-book-col .book-3d-img {
        max-width: 420px;
    }
}




.btn-amazon-buy .amazon-icon {
    width: 20px;
    height: 20px;
    fill: #111827;
    transition: fill 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.btn-amazon-buy:hover .amazon-icon {
    fill: #ff9900;
    transform: scale(1.1);
}
