/* ============================================================
   WooCommerce Product Grid & Slider — Elementor Widget Styles
   v2.0.0
   ============================================================ */

/* ---------- Grid layout ---------- */
.wpge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .wpge-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .wpge-grid { grid-template-columns: 1fr; }
}

/* ---------- Section heading (Related Products) ---------- */
.wpge-related-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 28px;
    padding: 0;
    line-height: 1.3;
}

/* ---------- Slider wrapper ---------- */
.wpge-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 56px;
    box-sizing: border-box;
    overflow: hidden;
}

.wpge-swiper {
    width: 100%;
    overflow: hidden;
}

.wpge-swiper .swiper-wrapper {
    align-items: stretch;
}

.wpge-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

/* ---------- Navigation arrows ---------- */
.wpge-nav-btn {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #1a56db;
    background: #ffffff;
    color: #1a56db;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 0;
    line-height: 1;
}

.wpge-nav-btn:hover {
    background: #1a56db;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(26,86,219,0.30);
}

.wpge-nav-prev { left: 4px; }
.wpge-nav-next { right: 4px; }

/* Arrow icons via span — left/right chevron using borders */
.wpge-nav-prev .wpge-nav,
.wpge-nav-next .wpge-nav {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    flex-shrink: 0;
}

.wpge-nav-prev .wpge-nav {
    transform: rotate(-135deg) translateX(-1px);
}

.wpge-nav-next .wpge-nav {
    transform: rotate(45deg) translateX(-1px);
}

.wpge-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ---------- Pagination dots ---------- */
.wpge-pagination {
    text-align: center;
    margin-top: 20px;
}

.wpge-pagination .swiper-pagination-bullet {
    background: #1a56db;
    opacity: 0.4;
    width: 8px;
    height: 8px;
    transition: opacity 0.2s, transform 0.2s;
}

.wpge-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.25);
}

/* ---------- Product Card ---------- */
.wpge-product-card {
    border-radius: 20px;
    overflow: hidden;
    background: #e8f4fd;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.wpge-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* ---------- Image area ---------- */
.wpge-card-img {
    position: relative;
    width: 100%;
    padding-top: 68%;
    overflow: hidden;
    flex-shrink: 0;
}

.wpge-card-img a {
    display: block;
    position: absolute;
    inset: 0;
}

.wpge-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s;
}

.wpge-product-card:hover .wpge-card-img img {
    transform: scale(1.05);
}

/* ---------- Card Body ---------- */
.wpge-card-body {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
    gap: 8px;
}

/* ---------- Sizes ---------- */
.wpge-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

/* Bullet dots on either side */
.wpge-sizes::before,
.wpge-sizes::after {
    content: '•';
    font-size: 10px;
    color: var(--wpge-accent, #1a56db);
    font-weight: 700;
    line-height: 1;
}

.wpge-size-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
}

.wpge-size-badge + .wpge-size-badge::before {
    content: ' / ';
    color: #aaa;
}

/* ---------- Title ---------- */
.wpge-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
}

.wpge-title a {
    color: inherit;
    text-decoration: none;
}

.wpge-title a:hover {
    color: var(--wpge-accent, #1a56db);
}

/* ---------- Rating ---------- */
.wpge-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.wpge-star {
    font-size: 15px;
    line-height: 1;
}

.wpge-star--full { color: #f5a623; }
.wpge-star--empty { color: #ddd; }

/* Half-star gradient */
.wpge-star--half {
    background: linear-gradient(90deg, #f5a623 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpge-review-count {
    font-size: 12px;
    color: #888;
    margin-left: 3px;
}

/* ---------- Price ---------- */
.wpge-price {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: auto;
}

.wpge-from-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #888;
    text-transform: uppercase;
}

.wpge-price .woocommerce-Price-amount {
    font-size: 16px;
    color: #1a1a2e;
    font-weight: 700;
}

/* ---------- Shop Now Button ---------- */
.wpge-btn-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #1a56db;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 6px;
    border: none;
    cursor: pointer;
}

.wpge-btn-shop:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,86,219,0.30);
}

/* Button arrow — diagonal northeast arrow via span border */
.wpge-btn-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-bottom: 1px;
}

/* ---------- No products ---------- */
.wpge-no-products {
    text-align: center;
    padding: 40px;
    color: #888;
    width: 100%;
}

/* ---------- Equal-height slides ---------- */
.wpge-swiper .swiper-slide .wpge-product-card {
    height: 100%;
}
