/* Product Grid Layout */
.bh-summer-sale-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Shop Header */
.bh-shop-header {
    margin-bottom: 30px;
}

.bh-shop-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    display: none;
}

.bh-shop-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-family: Georgia, "Times New Roman", serif;
}

.bh-shop-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* Filters Section */
.bh-filter-section {
    margin-bottom: 16px;
}

.bh-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Pills */
.bh-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bh-cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background-color: #ffffff;
    color: #0B1920;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bh-cat-pill:hover {
    border-color: #14b8a6;
}

.bh-cat-pill.active {
    background-color: #FF6600;
    border-color: #FF6600;
    color: #ffffff;
}

.bh-summer-sale-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .bh-summer-sale-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bh-category-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
    }

    .bh-category-pills::-webkit-scrollbar {
        display: none;
    }

    .bh-cat-pill {
        flex-shrink: 0;
        padding: 6px 16px;
        font-size: 14px;
    }

    .bh-summer-sale-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bh-product-card {
        padding: 10px;
    }

    .bh-product-top {
        margin-bottom: 12px;
    }

    .bh-product-price-pill {
        font-size: 13px;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }

    .bh-product-price-pill del,
    .bh-product-price-pill del span,
    .bh-product-price-pill del bdi {
        font-size: 10px;
    }

    .bh-badge-new,
    .bh-badge-condition {
        padding: 2px 8px;
        font-size: 10px;
    }

    .bh-product-badges {
        bottom: 8px;
        left: 8px;
    }

    .bh-product-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .bh-product-meta {
        font-size: 11px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .bh-product-condition {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .bh-product-actions {
        margin-top: 10px;
    }

    .bh-add-to-cart-btn {
        padding: 8px 0;
        font-size: 12px;
    }
}

/* Product Card */
.bh-product-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bh-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bh-product-top {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f9fafb;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mix-blend-mode: multiply;
    /* Helps with white backgrounds */
}

.bh-product-price-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #FF6600;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    z-index: 10;
    line-height: 1.2;
}

.bh-product-price-pill,
.bh-product-price-pill ins,
.bh-product-price-pill bdi,
.bh-product-price-pill span {
    color: #ffffff !important;
}

.bh-product-price-pill del,
.bh-product-price-pill del span,
.bh-product-price-pill del bdi {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: normal;
    margin-right: 4px;
}

.bh-product-price-pill ins {
    text-decoration: none;
}

.bh-product-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 10;
}

.bh-badge-new {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bh-badge-condition {
    background-color: #111827;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Product Info */
.bh-product-info {
    flex-grow: 1;
}

.bh-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.bh-product-brand {
    color: #14b8a6;
    /* Teal */
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bh-product-size {
    color: #6b7280;
    font-weight: 500;
}

.bh-product-title {
    font-size: 16px;
    color: #111827;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.bh-product-condition {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Product Actions */
.bh-product-actions {
    margin-top: 20px;
}

.bh-add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #FF6600;
    color: #ffffff !important;
    padding: 12px 0;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.bh-add-to-cart-btn:hover {
    background-color: #E65C00;
    text-decoration: none;
}

.bh-add-to-cart-btn.loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.bh-add-to-cart-btn.loading svg {
    opacity: 0;
}

.bh-add-to-cart-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: bh-spin 0.6s linear infinite;
}

@keyframes bh-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Testimonials Section */
.bh-testimonials-section {
    grid-column: 1 / -1;
    margin: 20px 0 40px 0;
    width: 100%;
}

.bh-testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bh-testimonials-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.bh-testimonials-nav {
    display: flex;
    gap: 10px;
}

.bh-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E65C00;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.bh-nav-btn svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
    width: 20px;
    height: 20px;
}

.bh-nav-btn:hover {
    background: #cc5200;
    color: #ffffff !important;
}

.bh-testimonials-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bh-testimonials-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.bh-testimonial-card {
    flex: 0 0 calc(33.333% - 13.33px);
    /* 3 cards: (100% - 2*20px) / 3 */
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.bh-testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.bh-testimonial-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.bh-testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.bh-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.bh-testimonial-author {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

@media (max-width: 900px) {
    .bh-testimonial-card {
        flex: 0 0 calc(50% - 10px);
        /* 2 cards */
    }
}

@media (max-width: 600px) {
    .bh-testimonial-card {
        flex: 0 0 100%;
        /* 1 card */
    }

    .bh-testimonials-header h3 {
        font-size: 20px;
    }
}

/* Pagination */
.bh-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.bh-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.bh-pagination li {
    margin: 0;
}

.bh-pagination a,
.bh-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bh-pagination a:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.bh-pagination span.current {
    background-color: #FF6600;
    color: #ffffff;
}

.bh-no-products {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    padding: 40px 0;
}

/* Sticky Cart Bar */
.bh-sticky-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 650px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding: 8px 12px;
}

.bh-sticky-cart-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bh-sticky-icon-wrap {
    width: 48px;
    height: 48px;
    background-color: #E65C00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bh-sticky-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.bh-sticky-content-wrap {
    flex-grow: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bh-sticky-text-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.5px;
}

.bh-sticky-progress-bg {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.bh-sticky-progress-bar {
    height: 100%;
    background-color: #E65C00;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bh-sticky-action-wrap {
    flex-shrink: 0;
}

.bh-sticky-btn {
    background-color: #E65C00;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.bh-sticky-btn:hover {
    background-color: #1f2937;
    text-decoration: none;
}

@media (max-width: 600px) {
    .bh-sticky-cart-bar {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 8px;
    }

    .bh-sticky-icon-wrap {
        width: 40px;
        height: 40px;
    }

    .bh-sticky-icon-wrap svg {
        width: 18px;
        height: 18px;
    }

    .bh-sticky-content-wrap {
        padding: 0 12px;
    }

    .bh-sticky-text-row {
        font-size: 11px;
    }

    .bh-sticky-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}