/* Zone Filtering Plugin - Multi-Step Flow Design */

/* ========================================
   Base Container
   ======================================== */
.zone-filtering-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    line-height: 1.6;
}

/* ========================================
   Steps
   ======================================== */
.zf-step {
    display: none;
    animation: zfFadeIn 0.4s ease-out;
}

.zf-step.active {
    display: block;
}

@keyframes zfFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.zf-step-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #000000;
    position: relative;
}

.zf-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #000000;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 20px;
}

.zf-step-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.zf-step-description {
    margin: 0;
    font-size: 16px;
    color: #666666;
    max-width: 500px;
    margin: 0 auto;
}

.zf-step-highlight {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 25px;
    background: #f8f8f8;
    border: 3px solid #000000;
    display: inline-block;
}

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.zf-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
}

.zf-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.zf-breadcrumb-link:hover {
    background: #000000;
    color: #ffffff;
}

.zf-breadcrumb-separator {
    color: #999999;
    font-size: 20px;
    font-weight: 300;
}

.zf-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.zf-breadcrumb-icon {
    font-size: 16px;
}

/* ========================================
   Area Search (Step 1)
   ======================================== */
.zf-area-search-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.zf-search-input-container {
    position: relative;
}

.zf-area-search-input {
    width: 100%;
    padding: 20px 60px 20px 25px;
    font-size: 18px;
    border: 3px solid #000000;
    background: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.zf-area-search-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.zf-area-search-input::placeholder {
    color: #999999;
}

.zf-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
}

/* Search Results Dropdown */
.zf-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 3px solid #000000;
    border-top: none;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.zf-search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.zf-search-result-item:last-child {
    border-bottom: none;
}

.zf-search-result-item:hover {
    background: #000000;
    color: #ffffff;
}

.zf-result-name {
    font-size: 16px;
    font-weight: 600;
}

.zf-result-zone {
    font-size: 13px;
    color: #666666;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 3px;
}

.zf-search-result-item:hover .zf-result-zone {
    background: #333333;
    color: #ffffff;
}

.zf-search-loading,
.zf-no-search-results,
.zf-search-error {
    padding: 20px;
    text-align: center;
    color: #666666;
    font-size: 14px;
}

/* Selected Areas */
.zf-selected-areas-wrapper {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 25px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
}

.zf-selected-areas-wrapper h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

.zf-selected-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zf-no-selection {
    margin: 0;
    color: #999999;
    font-style: italic;
}

.zf-area-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.zf-area-tag-zone {
    opacity: 0.7;
    font-size: 12px;
}

.zf-remove-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin-left: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.zf-remove-area:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Categories Grid (Step 2)
   ======================================== */
.zf-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.zf-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #ffffff;
    border: 3px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.zf-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.zf-category-card.active {
    background: #000000;
    color: #ffffff;
}

.zf-category-icon {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: color 0.3s ease;
}

.zf-category-icon svg {
    width: 48px;
    height: 48px;
}

.zf-category-card.active .zf-category-icon {
    color: #ffffff;
}

.zf-category-name {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Retailers Grid (Step 3)
   ======================================== */
.zf-retailers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.zf-retailer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: #ffffff;
    border: 3px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zf-retailer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #f8f8f8;
}

.zf-retailer-logo {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.zf-retailer-logo-placeholder {
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
}

.zf-retailer-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

/* Retailer Card Wrapper */
.zf-retailer-card-wrapper {
    display: flex;
    flex-direction: column;
}

.zf-visit-retailer-btn {
    display: block;
    padding: 12px 15px;
    background: #ffffff;
    color: #000000;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid #000000;
    border-top: none;
    transition: all 0.3s ease;
}

.zf-visit-retailer-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* Visit Retailer Top Button (Step 4) */
.zf-visit-retailer-top-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid #000000;
    transition: all 0.3s ease;
}

.zf-visit-retailer-top-btn:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   Products Grid (Step 4)
   ======================================== */
.zf-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.zf-product-card {
    background: #ffffff;
    border: 3px solid #000000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zf-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.zf-product-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 3px solid #000000;
    background: #f8f8f8;
}

.zf-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zf-product-card:hover .zf-product-image {
    transform: scale(1.05);
}

.zf-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999999;
    font-size: 14px;
    text-transform: uppercase;
}

.zf-product-info {
    padding: 20px;
}

.zf-product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    line-height: 1.3;
}

.zf-product-model {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zf-product-price {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 900;
    color: #000000;
}

.zf-product-description {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

.zf-buy-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: #000000;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zf-buy-button:hover {
    background: #333333;
    color: #ffffff;
    transform: scale(1.02);
}

/* ========================================
   Other Retailers Section
   ======================================== */
.zf-other-retailers-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 3px solid #000000;
    display: none;
}

.zf-other-retailers-header {
    text-align: center;
    margin-bottom: 40px;
}

.zf-other-retailers-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
}

.zf-other-retailers-header p {
    margin: 0;
    color: #666666;
    font-size: 16px;
}

.zf-other-retailers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.zf-other-retailer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.zf-other-retailer-card:hover {
    border-color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.zf-other-retailer-logo {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.zf-other-retailer-logo-placeholder {
    width: 70px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 10px;
}

.zf-other-retailer-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

/* ========================================
   Buttons & Actions
   ======================================== */
.zf-step-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.zf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zf-btn-primary {
    background: #000000;
    color: #ffffff;
}

.zf-btn-primary:hover:not(:disabled) {
    background: #333333;
    transform: translateY(-2px);
}

.zf-btn-primary:disabled {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}

.zf-btn-secondary {
    background: #ffffff;
    color: #000000;
}

.zf-btn-secondary:hover {
    background: #f0f0f0;
}

.zf-btn-outline {
    background: transparent;
    color: #000000;
}

.zf-btn-outline:hover {
    background: #000000;
    color: #ffffff;
}

.zf-btn-arrow {
    font-size: 18px;
}

/* ========================================
   Loading & Messages
   ======================================== */
.zf-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
}

.zf-loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #e0e0e0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: zfSpin 0.8s linear infinite;
}

@keyframes zfSpin {
    to {
        transform: rotate(360deg);
    }
}

.zf-no-results,
.zf-error {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
    font-size: 16px;
    border: 2px dashed #e0e0e0;
    margin: 20px 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .zone-filtering-container {
        padding: 20px 15px;
    }

    .zf-step-header h2 {
        font-size: 24px;
    }

    .zf-step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .zf-area-search-input {
        padding: 15px 50px 15px 15px;
        font-size: 16px;
    }

    .zf-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .zf-category-card {
        padding: 20px 15px;
    }

    .zf-category-icon {
        font-size: 36px;
    }

    .zf-category-name {
        font-size: 13px;
    }

    .zf-retailers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .zf-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .zf-breadcrumb {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .zf-breadcrumb-separator {
        display: none;
    }

    .zf-step-actions {
        flex-direction: column;
    }

    .zf-btn {
        width: 100%;
        justify-content: center;
    }

    .zf-other-retailers-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .zf-step-header h2 {
        font-size: 20px;
    }

    .zf-selected-areas-wrapper {
        padding: 15px;
    }

    .zf-area-tag {
        padding: 8px 12px;
        font-size: 13px;
    }

    .zf-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zf-product-info {
        padding: 15px;
    }

    .zf-product-title {
        font-size: 16px;
    }

    .zf-product-price {
        font-size: 20px;
    }
}
