/**
 * Get the Look Button Block Styles
 *
 * Functional styles only - no visual styling
 */

.get-the-look-button-block .kb-button {
    background: var(--global-palette-btn-sec-bg);
    color: var(--global-palette-btn-sec);
    border: 2px solid var(--global-palette-btn-sec-bg);
    padding: clamp(15px, calc(-3.478px + 1.014vw), 17px) clamp(13px, calc(5.522px + 1.014vw), 17px);
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1;
    font-family: Rajdhani, sans-serif;
}
.get-the-look-button-block .kb-button:hover,
.get-the-look-button-block .kb-button:focus {
    background: var(--global-palette-btn-sec-bg-hover);
    color: var(--global-palette-btn-sec-hover);
    border-color: var(--global-palette-btn-sec-bg-hover);
}

/* Button Functional Styles */
.get-the-look-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.get-the-look-btn svg {
    width: 16px;
    height: 16px;
}

/* Panel Functional Styles */
.get-the-look-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    z-index: 9999;
    transition: right 0.3s ease;
    display: none;
}

.get-the-look-panel.active {
    display: block;
}

.get-the-look-panel.visible {
    right: 0;
}

/* Panel Overlay */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Panel Header */
.panel-header h3 {
    margin-bottom: var(--wp--preset--spacing--sm);
}

/* Panel Content */
.panel-content {
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    background-color: var(--global-palette8, #F7FAFC);
    padding: 50px var(--wp--preset--spacing--md) var(--wp--preset--spacing--md);
}

body.admin-bar .panel-content {
    top: var(--kb-admin-bar-visible);
}

button.get-the-look-modal-close {
    position: absolute;
    top: 15px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    line-height: 1;
    opacity: 1;
    color: var(--global-palette-highlight);
    box-shadow: none;
}

.get-the-look-modal-close span:first-child {
    font-size: var( --wp--preset--font-size--medium);
}

.get-the-look-modal-close:hover,
.get-the-look-modal-close:focus {
    opacity: 0.7;
}

/* Panel Title Link */
.panel-title-link:hover,
.panel-title-link:focus {
    text-decoration: underline;
    color: var(--global-palette1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--wp--preset--spacing--gap-md);
    row-gap: var(--wp--preset--spacing--gap-md);
}

.product-link {
    display: block;
    text-decoration: none;
}

.product-link:hover .product-title,
.product-link:focus .product-title {
    text-decoration: underline;
}

.product-link:hover .external-link-icon,
.product-link:focus .external-link-icon {
    text-decoration: none;
}

.product-image {
    width: 100%;
    aspect-ratio: 420 / 385;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--global-palette9);
}

.product-image--placeholder {
    background-image: url(../../img/image-placeholder.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-title {
    margin-top: var(--wp--preset--spacing--xxs);
    font-size: var(--wp--preset--font-size--medium);
}

/* Body class when panel is open */
.get-the-look-panel-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 600px) {
    .get-the-look-panel {
        max-width: 100%;
        right: -100%;
    }
}
