/* ==========================================================================
   Levra theme overrides — full-width hero slider + general design polish
   Loaded after style.css from theme config.php
   ========================================================================== */

/* ---------- Full-width hero slider when no side ad rail is present ------ */
#homepage-1 .ps-home-banner.ps-home-banner--full {
    margin-bottom: 40px;
    padding-top: 24px;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .ps-container {
    display: block;          /* override the flex two-column layout */
    max-width: 100%;
    padding: 0;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .owl-main-slider,
#homepage-1 .ps-home-banner.ps-home-banner--full .owl-slider {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    overflow: hidden;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .ps-banner {
    min-height: 280px;
    height: clamp(260px, 30vw, 440px);
    max-height: 440px;
    background-color: #f5f5f5;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .ps-banner picture,
#homepage-1 .ps-home-banner.ps-home-banner--full .ps-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .owl-stage-outer,
#homepage-1 .ps-home-banner.ps-home-banner--full .owl-stage,
#homepage-1 .ps-home-banner.ps-home-banner--full .owl-item {
    height: 100%;
}

/* Move dots inside the slider, polished pill style */
#homepage-1 .ps-home-banner.ps-home-banner--full .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .owl-dots .owl-dot {
    width: 28px;
    height: 6px;
    padding: 0;
    margin: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    transition: background 0.25s ease, width 0.25s ease;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .owl-dots .owl-dot.active {
    background: #fff;
    width: 42px;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .owl-dots .owl-dot span {
    display: none;
}

/* Soft, themed nav arrows */
#homepage-1 .ps-home-banner.ps-home-banner--full .owl-nav button.owl-prev,
#homepage-1 .ps-home-banner.ps-home-banner--full .owl-nav button.owl-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    color: #222;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

#homepage-1 .ps-home-banner.ps-home-banner--full:hover .owl-nav button.owl-prev,
#homepage-1 .ps-home-banner.ps-home-banner--full:hover .owl-nav button.owl-next {
    opacity: 1;
}

#homepage-1 .ps-home-banner.ps-home-banner--full .owl-nav button.owl-prev:hover,
#homepage-1 .ps-home-banner.ps-home-banner--full .owl-nav button.owl-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

/* Mobile tweaks */
@media (max-width: 767px) {
    #homepage-1 .ps-home-banner.ps-home-banner--full .ps-banner {
        min-height: 240px;
        height: 56vw;
    }
    #homepage-1 .ps-home-banner.ps-home-banner--full .owl-nav {
        display: none;
    }
}

/* ---------- General design polish ---------------------------------------- */

/* Tighter, modern card shadows everywhere */
.ps-product,
.ps-block--store,
.ps-block--vendor,
.ps-block--category {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ps-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Smooth section transitions */
.ps-section__header h3,
.ps-section__title {
    letter-spacing: -0.01em;
}

/* Make primary CTAs feel more premium */
.ps-btn,
.ps-btn--fullwidth,
button.ps-btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ps-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Cleaner header search field */
.ps-search-table input,
.ps-form--quick-search input {
    border-radius: 6px;
}

/* ---------- Uniform product card image size ----------------------------- */
/* Force every product thumbnail to a consistent square aspect ratio so the
   grid never has mismatched heights, regardless of source image dimensions. */
.ps-product .ps-product__thumbnail,
.ps-product--inner .ps-product__thumbnail,
.ps-product--standard .ps-product__thumbnail,
.ps-product--detail .ps-product__thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
    border-radius: 4px;
}

.ps-product .ps-product__thumbnail > a,
.ps-product--inner .ps-product__thumbnail > a,
.ps-product--standard .ps-product__thumbnail > a {
    display: block;
    width: 100%;
    height: 100%;
}

.ps-product .ps-product__thumbnail img,
.ps-product--inner .ps-product__thumbnail img,
.ps-product--standard .ps-product__thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Don't break the gallery on the product detail page */
.ps-product--detail .ps-product__thumbnail {
    aspect-ratio: auto;
    background: transparent;
}

/* ---------- Uniform category card image size ---------------------------- */
.ps-block--category .ps-block__thumbnail,
.ps-block--category-2 .ps-block__thumbnail,
.ps-block--category-vertical .ps-block__thumbnail,
.widget-product-categories .ps-block__thumbnail,
.ps-section--featured-categories .ps-block__thumbnail,
.ps-section--featured-categories .ps-block--category .ps-block__thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 12px;
}

.ps-block--category .ps-block__thumbnail img,
.ps-block--category-2 .ps-block__thumbnail img,
.ps-block--category-vertical .ps-block__thumbnail img,
.widget-product-categories .ps-block__thumbnail img,
.ps-section--featured-categories .ps-block__thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

/* The default martfury .ps-block--category uses min-height/padding instead of an
   image area — give it a consistent total height so the grid is even. */
.ps-block--category {
    min-height: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

/* Featured-categories shortcode uses .ps-block--category > img directly (no
   thumbnail wrapper). Force uniform image area inside the card. */
.ps-top-categories .ps-block--category > img,
.ps-block--category > img,
.ps-block--category > picture > img {
    width: 100% !important;
    height: 130px !important;
    object-fit: contain !important;
    object-position: center;
    display: block;
    margin: 0 auto 10px;
    transition: transform 0.4s ease-out;
}

.ps-top-categories .ps-block--category p,
.ps-block--category p {
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 575px) {
    .ps-block--category {
        min-height: 180px;
        height: 180px;
    }
    .ps-top-categories .ps-block--category > img,
    .ps-block--category > img {
        height: 100px !important;
    }
}

/* Subtle hover lift for category tiles */
.ps-block--category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

/* ---------- Banner / collection cards same height ----------------------- */
#homepage-1 .ps-home-banner .ps-collection .ps-banner,
#homepage-1 .ps-home-banner .ps-collection img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#homepage-1 .ps-home-banner .ps-collection {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
}
