

.wb-archive-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.wb-archive-result-count {
    font-size: 14px;
    color: #666;
}

.wb-archive-ordering select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.2s ease;
}

.wb-archive-ordering select:focus {
    outline: none;
    border-color: #7c3aed;
}

.wb-archive-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.wb-archive-widget {
    transition: opacity 0.3s ease;
}

.wb-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid #e2e2e2;
    border-left: 1px solid #e2e2e2;
}

.wb-archive-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.wb-archive-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.wb-archive-card-image {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.wb-archive-card-image a {
    display: block;
}

.wb-archive-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wb-archive-card:hover .wb-archive-card-image img {
    transform: scale(1.04);
}

.wb-archive-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1.4;
}

.wb-badge-sale {
    background: #ef4444;
    color: #fff;
}

.wb-badge-new {
    background: #10b981;
    color: #fff;
}

.wb-archive-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    flex: 1;
}

.wb-archive-category {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wb-archive-category a {
    color: inherit;
    text-decoration: none;
}

.wb-archive-category a:hover {
    text-decoration: underline;
}

.wb-archive-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.wb-archive-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wb-archive-title a:hover {
    color: #7c3aed;
}

.wb-archive-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.wb-archive-rating .star-filled {
    color: #f5a623;
}

.wb-archive-rating .star-empty {
    color: #ddd;
}

.wb-archive-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.wb-archive-price del {
    color: #aaa;
    font-weight: 400;
    font-size: 13px;
    margin-right: 4px;
}

.wb-archive-price ins {
    text-decoration: none;
    color: #ef4444;
}

.wb-archive-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.wb-archive-sku {
    font-size: 12px;
    color: #999;
}

.wb-archive-brand {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.wb-archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.wb-archive-tags span {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: #666;
    background: #f3f4f6;
    border-radius: 20px;
    line-height: 1.5;
}

.wb-archive-button {
    display: inline-block;
    margin-top: auto;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: #7c3aed;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.15s ease;
    align-self: flex-start;
}

.wb-archive-button:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    color: #fff;
}

.wb-archive-pagination {
    margin-top: 32px;
    text-align: center;
}

.wb-archive-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wb-archive-pagination li {
    display: inline-block;
}

.wb-archive-pagination a,
.wb-archive-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.wb-archive-pagination a {
    color: #333;
    background: #f3f4f6;
}

.wb-archive-pagination a:hover {
    background: #7c3aed;
    color: #fff;
}

.wb-archive-pagination .current {
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
}

.wb-banner-carousel-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.wb-banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.wb-banner-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.wb-banner-slide {
    flex-shrink: 0;
    width: 100%;
    line-height: 0;
}

.wb-banner-slide a {
    display: block;
    line-height: 0;
}

.wb-banner-slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.wb-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.25s ease, transform 0.2s ease, opacity 0.3s ease;
    padding: 0;
    opacity: 0;
}

.wb-banner-carousel-wrap:hover .wb-banner-arrow {
    opacity: 1;
}

.wb-banner-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.wb-banner-arrow svg {
    width: 22px;
    height: 22px;
}

.wb-banner-prev {
    left: 12px;
}

.wb-banner-next {
    right: 12px;
}

.wb-banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 14px;
}

.wb-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.2s ease, width 0.3s ease;
}

.wb-banner-dot.active {
    background: #7c3aed;
    transform: scale(1.2);
    width: 24px;
    border-radius: 5px;
}

.wb-banner-slide {
    position: relative;
}

.wb-banner-text-overlay {
    position: absolute;
    z-index: 5;
    padding: 20px 28px;
    max-width: 70%;
    pointer-events: none;
}

.wb-banner-text-bottom-left {
    bottom: 0;
    left: 0;
}

.wb-banner-text-top-left {
    top: 0;
    left: 0;
}

.wb-banner-text-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 80%;
}

.wb-banner-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    margin-bottom: 6px;
}

.wb-banner-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

.wb-archive-carousel-wrap {
    position: relative;
    overflow: hidden;
}

.wb-archive-carousel {
    overflow: hidden;
}

.wb-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wb-carousel-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

.wb-carousel-slide .wb-archive-card {
    height: 100%;
    margin: 0 auto;
}

.wb-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.3s ease;
    padding: 0;
}

.wb-carousel-arrow:hover {
    background: #7c3aed;
    color: #fff;
}

.wb-carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.wb-carousel-prev {
    left: 8px;
}

.wb-carousel-next {
    right: 8px;
}

.wb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
}

.wb-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.2s ease;
}

.wb-carousel-dot.active {
    background: #7c3aed;
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .wb-archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .wb-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .wb-archive-top-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .wb-archive-result-count {
        width: 100%;
        text-align: center;
    }

    .wb-archive-ordering {
        width: 100%;
    }

    .wb-archive-ordering select {
        width: 100%;
    }

    .wb-archive-card-image img {
        height: 160px;
    }

    .wb-archive-card-content {
        padding: 10px 12px;
        gap: 4px;
    }

    .wb-archive-title {
        font-size: 13px;
    }

    .wb-archive-price {
        font-size: 13px;
    }

    .wb-archive-price del {
        font-size: 11px;
    }

    .wb-archive-category {
        font-size: 11px;
    }

    .wb-archive-description {
        font-size: 12px;
    }

    .wb-archive-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .wb-archive-pagination a,
    .wb-archive-pagination .current {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .wb-carousel-arrow {
        width: 32px;
        height: 32px;
    }

    .wb-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }

    .wb-banner-slide img {
        height: 200px;
    }

    .wb-banner-arrow {
        width: 34px;
        height: 34px;
        opacity: 1;
    }

    .wb-banner-arrow svg {
        width: 16px;
        height: 16px;
    }

    .wb-banner-text-overlay {
        padding: 12px 16px;
        max-width: 85%;
    }

    .wb-banner-title {
        font-size: 18px !important;
    }

    .wb-banner-subtitle {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .wb-archive-grid {
        grid-template-columns: 1fr;
    }
}
