/* MyChango Catalog Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.mychango-catalog-container {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* MyChango 4: Top Bar */
.mc-top-bar {
    height: 60px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    flex-shrink: 0;
}

.mc-tb-left, .mc-tb-center, .mc-tb-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mc-tb-center {
    flex: 1;
    justify-content: center;
}

.mc-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.mc-cart-btn:hover {
    background: #333;
    color: #fff;
}

.mc-canvas-area {
    flex: 1;
    position: relative;
    display: flex;
    overflow: hidden;
    background: #e9ecef;
}

.mychango-catalog-viewer-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    gap: 10px;
}

.mychango-page-container {
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: white;
}

.mychango-page-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    direction: ltr;
}

.mychango-catalog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Navigation Arrows (Canvas Edges) */
.mychango-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.mychango-nav-arrow:hover {
    background: #f8f9fa;
    transform: translateY(-50%) scale(1.1);
}

.mychango-nav-arrow.left {
    left: 20px;
}

.mychango-nav-arrow.right {
    right: 20px;
}

.mychango-nav-arrow svg {
    width: 24px;
    height: 24px;
}

.mychango-btn-icon {
    background: transparent;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mychango-btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mychango-page-counter {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mychango-page-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    font-family: inherit;
    font-weight: 600;
}

.mychango-add-layer {
    position: absolute;
    pointer-events: auto;
    background: var(--mc-hs-bg, rgba(0, 0, 0, 0.65));
    backdrop-filter: blur(4px);
    border: var(--mc-hs-border-width, 1px) solid var(--mc-hs-border-color, rgba(255, 255, 255, 0.2));
    border-radius: var(--mc-hs-radius, 8px);
    box-shadow: var(--mc-hs-shadow, none);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.mychango-add-layer:hover {
    background: var(--mc-hs-hover-bg, #111) !important;
    transform: scale(1.05);
    animation-play-state: paused;
    z-index: 20;
}

.mychango-add-layer span {
    color: var(--mc-hs-text-color, #fff);
    font-weight: bold;
    font-size: inherit;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    padding: 0 0.4em;
    box-sizing: border-box;
    display: inline-block;
    transition: all 0.2s;
}

.mychango-add-layer:hover span {
    color: var(--mc-hs-text-hover, #fff) !important;
}

/* Native Animations */
.mc-anim-pulse { animation: mcPulse 2s infinite; }
.mc-anim-float { animation: mcFloat 3s ease-in-out infinite; }
.mc-anim-wiggle { animation: mcWiggle 3s ease-in-out infinite; }

@keyframes mcPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes mcFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}
@keyframes mcWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* Shape: Circle */
.mychango-add-layer[data-shape="circle"] {
    aspect-ratio: 1 / 1;
    height: auto !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mychango-add-layer[data-shape="circle"] span {
    padding: 0;
}

/* Preset: Classic */
.mychango-add-layer[data-preset="classic"]:hover {
    background-color: var(--mc-hs-hover-bg) !important;
    transform: scale(1.05);
}
.mychango-add-layer[data-preset="classic"]:hover span, .mychango-add-layer[data-preset="classic"]:hover svg {
    color: var(--mc-hs-text-hover) !important;
}

/* Preset: 3D Push */
.mychango-add-layer[data-preset="3dpush"] {
    box-shadow: 0 6px 0 var(--mc-hs-border-color) !important;
    border: none !important;
    margin-bottom: 6px;
}
.mychango-add-layer[data-preset="3dpush"]:hover {
    background-color: var(--mc-hs-hover-bg) !important;
    transform: scale(1) !important;
}
.mychango-add-layer[data-preset="3dpush"]:active {
    box-shadow: 0 0px 0 var(--mc-hs-border-color) !important;
    transform: translateY(6px) scale(1) !important;
}
.mychango-add-layer[data-preset="3dpush"]:hover span, .mychango-add-layer[data-preset="3dpush"]:hover svg {
    color: var(--mc-hs-text-hover) !important;
}

/* Preset: Neo-Brutalism */
.mychango-add-layer[data-preset="neobrutal"] {
    box-shadow: 4px 4px 0 #000000 !important;
}
.mychango-add-layer[data-preset="neobrutal"]:hover {
    box-shadow: 6px 6px 0 #000000 !important;
    transform: translate(-2px, -2px) scale(1) !important;
    background-color: var(--mc-hs-hover-bg) !important;
}
.mychango-add-layer[data-preset="neobrutal"]:active {
    box-shadow: 0px 0px 0 #000000 !important;
    transform: translate(4px, 4px) scale(1) !important;
}
.mychango-add-layer[data-preset="neobrutal"]:hover span, .mychango-add-layer[data-preset="neobrutal"]:hover svg {
    color: var(--mc-hs-text-hover) !important;
}

/* Preset: Glass */
.mychango-add-layer[data-preset="glass"] {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
}
.mychango-add-layer[data-preset="glass"]:hover {
    background-color: var(--mc-hs-hover-bg) !important;
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05) !important;
}
.mychango-add-layer[data-preset="glass"]:hover span, .mychango-add-layer[data-preset="glass"]:hover svg {
    color: var(--mc-hs-text-hover) !important;
}

/* Preset: Neon */
.mychango-add-layer[data-preset="neon"] {
    box-shadow: 0 0 10px var(--mc-hs-border-color), inset 0 0 10px var(--mc-hs-border-color) !important;
}
.mychango-add-layer[data-preset="neon"]:hover {
    background-color: var(--mc-hs-hover-bg) !important;
    box-shadow: 0 0 20px var(--mc-hs-border-color), inset 0 0 20px var(--mc-hs-border-color) !important;
    text-shadow: 0 0 8px var(--mc-hs-text-hover);
    transform: scale(1.05) !important;
}
.mychango-add-layer[data-preset="neon"]:hover span, .mychango-add-layer[data-preset="neon"]:hover svg {
    color: var(--mc-hs-text-hover) !important;
}

/* App-like notifications */
.mychango-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111;
    color: #fff;
    padding: 18px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 15px;
    z-index: 99999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mychango-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.mychango-notification.error {
    border-left-color: #e74c3c;
}

/* Quick View Modal styling */
.mychango-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.mychango-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mychango-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: mychangoModalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mychangoModalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.mychango-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mychango-modal-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
    transform: scale(1.1);
}

.mychango-modal-body {
    padding: 35px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Inside the Quickview Grid */
.mychango-quickview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.mychango-qv-images {
    flex: 1;
    min-width: 250px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.mychango-qv-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

.mychango-qv-summary {
    flex: 1.5;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.mychango-qv-summary .product_title {
    margin-top: 0;
    font-size: 26px;
    color: var(--mc-mod-title, #2c3e50);
    margin-bottom: 15px;
    font-weight: 700;
}

.mychango-qv-summary .price {
    font-size: 22px;
    color: var(--mc-mod-price, #2ecc71);
    font-weight: 700;
    margin-bottom: 20px;
}

.mychango-qv-summary .woocommerce-product-details__short-description {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 15px;
}

/* Adjust WC forms inside modal */
.mychango-qv-summary form.cart {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mychango-qv-summary form.cart .quantity {
    display: inline-block;
}

.mychango-qv-summary form.cart .quantity input.qty {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    width: 60px;
    text-align: center;
    color: #111;
    font-weight: 600;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: background 0.2s;
}

.mychango-qv-summary form.cart .quantity input.qty:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: #111;
}

.mychango-qv-summary form.cart button[type="submit"] {
    background: var(--mc-mod-btn-bg, #111);
    color: var(--mc-mod-btn-txt, #fff);
    border: 1px solid var(--mc-mod-btn-bg, #111);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mychango-qv-summary form.cart button[type="submit"]:hover:not(:disabled) {
    background: var(--mc-mod-btn-bg-hover, #fff);
    color: var(--mc-mod-btn-txt-hover, #111);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Style the added to cart success link */
.mychango-qv-summary form.cart .added_to_cart {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    padding: 12px 20px;
    background: var(--mc-mod-btn-bg-add, #f8f9fa);
    color: var(--mc-mod-btn-txt-add, #111);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.mychango-qv-summary form.cart .added_to_cart:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.mychango-qv-summary form.cart button[type="submit"]:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* Sidebar Index UI */
.mychango-sidebar-index {
    position: absolute;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    z-index: 100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.mychango-sidebar-index.open {
    left: 0;
}
.mychango-sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mychango-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}
#mychango-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}
#mychango-index-list li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    font-weight: 500;
    color: #444;
    display: flex;
    justify-content: space-between;
    transition: background 0.2s;
}
#mychango-index-list li:hover {
    background: rgba(46, 204, 113, 0.1);
    color: #2c3e50;
}
#mychango-index-list li span {
    color: #888;
    font-size: 13px;
}

/* Search Engine UI */
.mychango-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.mychango-search-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 8px 15px 8px 35px !important;
    width: 200px !important;
    max-width: 200px !important;
    height: 38px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.2s;
}
.mychango-search-input:focus {
    background: rgba(255, 255, 255, 0.9);
    width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.mychango-search-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}
.mychango-dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    font-size: 13px;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mychango-dropdown-item:hover:not(.no-hover) {
    background: rgba(46, 204, 113, 0.1);
}
.mychango-dropdown-item strong {
    color: #2c3e50;
}

/* Page Num Input */
.mychango-page-input {
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    height: 28px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-align: center;
    font-family: inherit;
    font-weight: 600;
    color: #2c3e50;
    padding: 2px !important;
    outline: none;
}
.mychango-page-input::-webkit-outer-spin-button,
.mychango-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.mychango-page-input:focus {
    background: #fff;
    border-color: #2c3e50;
}

/* Offcanvas Cart */
.mychango-sidebar-cart {
    position: absolute;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mychango-sidebar-cart.open {
    right: 0;
}

.mc-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mc-cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.mychango-cart-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mc-cart-item {
    transition: background 0.2s;
}

.mc-cart-item:hover {
    background: #fdfdfd !important;
}