@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Montserrat:wght@300;400;500;600;700&display=swap');

.theme-duo {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #ffffff;
    color: #111111;
    -webkit-font-smoothing: antialiased;
}

.theme-duo.directory-container {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0 5vw !important;
    box-sizing: border-box;
    margin: 0 !important;
}

/* === CONTROLS & FILTER WRAPPER === */
.theme-duo .duo-controls-wrapper {
    position: relative;
    margin-bottom: 60px;
    z-index: 50;
}

.theme-duo .duo-directory-controls {
    display: flex;
    gap: 20px;
}

.theme-duo .duo-search-wrapper {
    flex: 1;
    position: relative;
}

.theme-duo .duo-search-input {
    width: 100%;
    padding: 18px 25px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    color: #111111;
    border: 1px solid #E5E5E5 !important;
    background-color: #F9F8F6 !important;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    height: auto !important;
}

.theme-duo .duo-search-input:focus {
    border-color: #947C6C !important;
    background-color: #ffffff !important;
}

.theme-duo .duo-search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
}

.theme-duo .duo-filter-btn {
    padding: 0 40px !important;
    background-color: transparent !important;
    border: 1px solid #947C6C !important;
    color: #947C6C !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-duo .duo-filter-btn:hover, 
.theme-duo .duo-filter-btn.is-active {
    background-color: #947C6C !important;
    color: #ffffff !important;
}

/* === ANIMATED FILTER DROPDOWN === */
.theme-duo .duo-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #E5E5E5;
    border-top: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    
    /* The Smooth Single-Reveal Animation */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none; /* Prevents invisible clicks */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-duo .duo-filter-dropdown.is-open {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Flex Layout */
.theme-duo .duo-filter-layout {
    display: flex;
    width: 100%;
}

.theme-duo .duo-filter-col {
    padding: 40px;
    position: relative; /* Essential for the floating dividers */
}

/* Specific column sizing */
.theme-duo .col-categories { flex: 2; }
.theme-duo .col-floors { flex: 1; }
.theme-duo .col-features { flex: 1; }

/* === THE 80% FLOATING DIVIDERS (DESKTOP) === */
.theme-duo .duo-filter-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%; /* Starts 10% down from the top */
    height: 60%; /* Takes up exactly 80% of the column height */
    width: 1px;
    background-color: #E5E5E5;
}

/* Filter Content Typography & Layout */
.theme-duo .duo-filter-heading {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111111;
    margin: 0 0 25px 0 !important;
}

.theme-duo .duo-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme-duo .duo-two-col-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

.theme-duo .duo-row-list {
    display: flex;
    gap: 30px;
}

.theme-duo .duo-filter-link {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    color: #555555;
    transition: color 0.3s ease;
}

.theme-duo .duo-filter-link:hover,
.theme-duo .duo-filter-link.is-active {
    color: #947C6C;
}

/* Custom Checkboxes */
.theme-duo .duo-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.theme-duo .duo-checkbox-label {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    color: #555555;
    cursor: pointer;
}

.theme-duo .duo-checkbox-input {
    display: none;
}

.theme-duo .duo-custom-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.theme-duo .duo-checkbox-input:checked + .duo-custom-checkbox {
    background-color: #947C6C;
    border-color: #947C6C;
}

.theme-duo .duo-custom-checkbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.theme-duo .duo-checkbox-input:checked + .duo-custom-checkbox::after {
    opacity: 1;
}

/* === MOBILE LAYOUT & DIVIDERS === */
@media (max-width: 900px) {
    .theme-duo .duo-filter-layout {
        flex-direction: column;
    }
    .theme-duo .duo-filter-col {
        padding: 30px 20px;
    }
    
    /* Flip the 80% Divider from Vertical to Horizontal for Mobile */
    .theme-duo .duo-filter-col:not(:last-child)::after {
        right: auto;
        top: auto;
        bottom: 0;
        left: 10%; /* Starts 10% in from the left */
        width: 80%; /* Takes up 80% of the width */
        height: 1px; /* Transforms into a horizontal line */
    }
}

/* === DIRECTORY GRID === */
.theme-duo .duo-store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* === STORE CARD === */
.theme-duo .duo-card {
    background: #ffffff;
    border: 1px solid #E5E5E5 !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    padding: 0 !important;
    align-items: stretch !important;
}

.theme-duo .duo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #947C6C;
}

/* Logo Container - Smooth Zoom Logic */
.theme-duo .duo-card-logo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 20px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-bottom: 1px solid #F0F0F0;
    overflow: hidden; /* Keeps the zoom inside the box */
}

.theme-duo .duo-card-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background-color: transparent !important;
    object-fit: contain !important;
    opacity: 0.9;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.theme-duo .duo-card:hover .duo-card-logo {
    opacity: 1;
    transform: scale(1.08); /* The refined zoom effect */
}

/* Info Container */
.theme-duo .duo-card-info {
    padding: 35px 30px;
    background-color: #F9F8F6;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Voucher Pill - Refined to Bronze */
.theme-duo .duo-voucher-pill {
    padding: 6px 12px;
    border: 1px solid #947C6C;
    color: #947C6C;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 20px;
    background: transparent;
}

/* Spacer to keep titles aligned if voucher is missing */
.theme-duo .duo-voucher-spacer {
    height: 26px; /* Matches the height of the pill */
    margin-bottom: 20px;
}

.theme-duo .duo-store-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #111111;
    margin: 0 0 15px 0 !important;
    line-height: 1.2;
}

.theme-duo .duo-store-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.theme-duo .duo-meta-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.theme-duo .duo-meta-item:last-child {
    margin-bottom: 0;
}

.theme-duo .duo-meta-item i {
    color: #947C6C;
    width: 20px;
    font-size: 14px;
    flex-shrink: 0;
}

/* Promotion Badge */
.theme-duo .duo-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid #111111;
    color: #111111;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto; /* Forces badge to the bottom of the card */
    background-color: transparent;
    transition: all 0.3s ease;
}

.theme-duo .duo-promo-badge i {
    font-size: 14px;
}

/* Ending Soon Modifier */
.theme-duo .duo-promo-badge.ending-soon {
    border-color: #B22222; /* A refined, premium red */
    color: #B22222;
}

/* Active filters specific to DUO theme */
.theme-duo .active-filters {
    margin-top: -30px;
    margin-bottom: 30px;
    display: none;
    justify-content: center !important;
    align-items: center;
}

.theme-duo .active-filters span {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    color: #555;
}

.theme-duo .reset-filter {
    background-color: transparent !important;
    border: none !important;
    color: #947C6C !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 15px;
}

/* Load More button for DUO theme */
.theme-duo .load-more-btn {
    border: 1px solid #947C6C !important;
    padding: 15px 40px !important;
    background-color: #947C6C !important;
    color: white !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin: 40px auto 0 !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-duo .load-more-btn:hover {
    background-color: transparent !important;
    color: #947C6C !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .theme-duo .duo-store-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .theme-duo.directory-container { padding: 0 20px !important; }
    .theme-duo .duo-directory-controls { flex-direction: column; }
    .theme-duo .duo-filter-btn { padding: 18px 40px !important; }
    .theme-duo .duo-store-grid { grid-template-columns: 1fr; }
}
