/* === CLIO ARTFRAME - Journal3 Integration === */

/* Allow frame/shadow to show outside Journal3 swiper containers */
.clio-artframe-active-category .main-image,
.clio-artframe-active-category .main-image .swiper-container,
.clio-artframe-active-category .main-image .swiper-wrapper,
.clio-artframe-active-category .main-image .swiper-slide {
    overflow: visible !important;
}

/* Hide the original img - we use background-image on canvas div */
.clio-artframe-active-category .main-image .swiper-slide img {
    display: none !important;
}

/* Make swiper slide a flex container to center our canvas */
.clio-artframe-active-category .main-image .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Hide canvas until JS initializes it */
#clio-artframe-canvas {
    opacity: 0;
}

/* === THE CANVAS - exactly like original demo === */
.clio-artframe-canvas {
    box-sizing: content-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: var(--canvas-width, 200px);
    height: var(--canvas-height, 200px);
    border-style: solid;
    border-color: transparent;
    border-width: var(--frame-width, 0px);
    border-image-slice: var(--frame-slice, 0);
    border-image-repeat: round;
    box-shadow: var(--frame-shadow, none);
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Hide the native OpenCart option - driven by our custom buttons */
.clio-artframe-active-category .product-options {
    display: none !important;
}

/* === CONTROLS === */
.clio-artframe-controls {
    margin-top: 20px;
    margin-bottom: 20px;
}

.clio-artframe-group {
    margin-bottom: 15px;
}

.clio-artframe-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clio-artframe-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clio-artframe-btn {
    padding: 10px 18px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.clio-artframe-btn:hover {
    background-color: #ececec;
}

.clio-artframe-btn.clio-artframe-active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* === TABS === */
.clio-artframe-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.clio-artframe-tab-btn {
    padding: 8px 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.clio-artframe-tab-btn:hover {
    color: #333;
}

.clio-artframe-tab-btn.clio-tab-active {
    color: #333;
    border-bottom-color: #333;
}

/* === FRAME BUTTONS WITH THUMBS === */
.clio-artframe-frame-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    width: 120px;
}

.clio-frame-btn-label {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    display: block;
}

.clio-frame-btn-thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 2px;
}