/* ========================================
   MODERN HOMEPAGE THEME - PRODUCT CARDS
   ======================================== */

/* ===== Search Result Dropdown Fix ===== */
.ps-product.ps-product--search-result {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fff !important;
    overflow: visible !important;
}

.ps-product.ps-product--search-result:last-child {
    border-bottom: none !important;
}

.ps-product.ps-product--search-result .ps-product__thumbnail.search-thumb {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
}

.ps-product.ps-product--search-result .search-thumb a {
    display: block !important;
    width: 60px !important;
    height: 60px !important;
}

.ps-product.ps-product--search-result .search-thumb .search-thumb__img {
    width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
}

.ps-product--search-result .ps-product__content {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.ps-product--search-result .ps-product__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 4px !important;
}

.ps-product--search-result .ps-product__price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #FF6B35 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ps-product--search-result .ps-product__price del {
    font-size: 12px !important;
    color: #9ca3af !important;
    font-weight: 400 !important;
}

.ps-product--search-result .rating_wrap {
    margin: 2px 0 !important;
}

.ps-product--search-result:hover {
    background: #f8f9fc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== Product List View (Search/Category pages) ===== */
/* Exclude search-result dropdown items from wide thumbnail sizing */
.ps-product.ps-product--wide:not(.ps-product--search-result) .ps-product__thumbnail {
    width: 220px !important;
    min-width: 220px !important;
    height: 220px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #f5f5f5 !important;
}

.ps-product.ps-product--wide:not(.ps-product--search-result) .ps-product__thumbnail a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.ps-product.ps-product--wide:not(.ps-product--search-result) .ps-product__thumbnail img {
    width: 220px !important;
    height: 220px !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    .ps-product.ps-product--wide:not(.ps-product--search-result) .ps-product__thumbnail,
    .ps-product.ps-product--wide:not(.ps-product--search-result) .ps-product__thumbnail img {
        width: 140px !important;
        min-width: 140px !important;
        height: 140px !important;
    }
}

@media (max-width: 480px) {
    .ps-product.ps-product--wide:not(.ps-product--search-result) .ps-product__thumbnail,
    .ps-product.ps-product--wide:not(.ps-product--search-result) .ps-product__thumbnail img {
        width: 110px !important;
        min-width: 110px !important;
        height: 110px !important;
    }
}

/* Modern Product Card Styles */
.ps-product {
    position: relative;
    padding: 0 !important;
    margin: 0 3px 20px !important;
    border: none !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Product Price - Modern Styling */
.ps-product .ps-product__price {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-top: 8px !important;
}

.ps-product .ps-product__price.sale {
    color: #FF6B35 !important;
}

.ps-product .ps-product__price.sale del {
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-left: 8px !important;
}

/* Product Title - Better Typography */
.ps-product .ps-product__title {
    padding: 0 0 8px !important;
    font-size: 14px !important;
    line-height: 1.4em !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Product Badge - Modern Pills */
.ps-product .ps-product__badge {
    top: 12px !important;
    right: 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    background-color: #FF4D4D !important;
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3) !important;
    z-index: 2 !important;
}

.ps-product .ps-product__badge.out-stock {
    background-color: #000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.ps-product .ps-product__badge.hot {
    background-color: #ff8c46 !important;
    box-shadow: 0 2px 8px rgba(255, 140, 70, 0.3) !important;
}

/* Product Thumbnail - Rounded Corners */
/* Product Thumbnail - Rounded Corners */
.ps-product .ps-product__thumbnail {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    background: #f8f8f8 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.ps-product .ps-product__thumbnail>a {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.ps-product .ps-product__thumbnail img {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    transition: transform 0.4s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Product Container - Better Padding */
.ps-product .ps-product__container {
    padding: 15px 18px 18px !important;
}

/* Product Vendor - Subtle Styling */
.ps-product .ps-product__vendor {
    font-size: 11px !important;
    color: #666 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
}

/* Product Actions - Smooth Transitions */
.ps-product .ps-product__actions li a {
    transition: all 0.2s ease !important;
}

.ps-product .ps-product__actions li a:hover {
    transform: scale(1.1) !important;
}

/* Hover Effects - Lift Animation */
.ps-product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.ps-product:hover .ps-product__thumbnail img {
    transform: scale(1.05) !important;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .ps-product {
        border-radius: 8px !important;
    }

    .ps-product .ps-product__thumbnail {
        border-radius: 8px 8px 0 0 !important;
    }

    .ps-product .ps-product__container {
        padding: 12px 14px 14px !important;
    }

    .ps-product .ps-product__badge {
        top: 8px !important;
        right: 8px !important;
        font-size: 11px !important;
        padding: 4px 10px !important;
    }
}

/* ========================================
   PREMIUM SECTION HEADERS — EDITORIAL DARK
   ======================================== */

/* Strip orange gradient — clean transparent base */
.ps-product-list .ps-section__header,
.ps-product-list--2 .ps-section__header {
    background: transparent !important;
    padding: 0 0 18px !important;
    margin: 0 0 28px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #EBEBEB !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Bold editorial title with gradient left-mark */
.ps-product-list .ps-section__header h3,
.ps-product-list--2 .ps-section__header h3 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0D0D0D !important;
    text-shadow: none !important;
    letter-spacing: -0.4px !important;
    padding-left: 15px !important;
    position: relative !important;
    margin: 0 !important;
}

.ps-product-list .ps-section__header h3::before,
.ps-product-list--2 .ps-section__header h3::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 20px !important;
    background: linear-gradient(180deg, #FF6B35 0%, #F7931E 100%) !important;
    border-radius: 2px !important;
}

/* Tab pills — gradient active, neutral idle */
.ps-product-list .ps-section__links,
.ps-product-list--2 .ps-section__links {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ps-product-list .ps-section__links li a,
.ps-product-list--2 .ps-section__links li a {
    color: #666 !important;
    background: #F2F2F2 !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: block !important;
    white-space: nowrap !important;
}

.ps-product-list .ps-section__links li a.active,
.ps-product-list .ps-section__links li a:hover,
.ps-product-list--2 .ps-section__links li a.active,
.ps-product-list--2 .ps-section__links li a:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3) !important;
    text-decoration: none !important;
}

/* ========================================
   SPACING & LAYOUT IMPROVEMENTS
   ======================================== */

/* Better Grid Spacing on Desktop */
@media (min-width: 768px) {
    .ps-shopping-product .row {
        margin: 0 -12px !important;
    }

    .ps-shopping-product .row>* {
        padding: 0 12px !important;
    }

    .ps-shopping-product .ps-product {
        margin-bottom: 24px !important;
    }
}

/* Mobile Grid Spacing */
@media (max-width: 767px) {
    .ps-shopping-product .row {
        margin: 0 -8px !important;
    }

    .ps-shopping-product .row>* {
        padding: 0 8px !important;
    }

    .ps-shopping-product .ps-product {
        margin-bottom: 16px !important;
    }
}

/* ========================================
   ADDITIONAL POLISH
   ======================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.ps-product:focus-within {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* Loading States */
.ps-product.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   PREMIUM CATEGORY SECTION
   ======================================== */

.hp-categories {
    background: #fff;
    padding: 48px 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Section header — matches premium editorial style */
.hp-categories__header {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid #EBEBEB;
}

.hp-categories__title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0D0D0D !important;
    letter-spacing: -0.4px !important;
    margin: 0 !important;
    position: relative !important;
    padding-left: 15px !important;
    line-height: 1.2 !important;
}

.hp-categories__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #FF6B35 0%, #F7931E 100%);
    border-radius: 2px;
}

/* CSS grid — no carousel needed for categories */
.hp-categories__grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 16px !important;
}

/* Category card */
.hp-cat-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    background: #FAFAFA !important;
    border: 1px solid #F0F0F0 !important;
    border-radius: 16px !important;
    padding: 22px 12px 18px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.hp-cat-card:hover {
    background: #fff !important;
    border-color: #E0E0E0 !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09) !important;
    transform: translateY(-5px) !important;
    text-decoration: none !important;
}

/* Circular image container */
.hp-cat-card__img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09) !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.hp-cat-card__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.35s ease !important;
    display: block !important;
}

.hp-cat-card:hover .hp-cat-card__img img {
    transform: scale(1.1) !important;
}

/* Category name */
.hp-cat-card__name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    line-height: 1.35 !important;
    transition: color 0.2s ease !important;
}

.hp-cat-card:hover .hp-cat-card__name {
    color: #0D0D0D !important;
}

/* Responsive breakpoints */
@media (max-width: 1199px) {
    .hp-categories__grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .hp-categories__grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .hp-cat-card__img {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 575px) {
    .hp-categories__grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .hp-cat-card {
        padding: 16px 8px 14px !important;
        border-radius: 12px !important;
    }

    .hp-cat-card__img {
        width: 52px !important;
        height: 52px !important;
        margin-bottom: 10px !important;
    }

    .hp-cat-card__name {
        font-size: 12px !important;
    }
}

/* ========================================
   GLOBAL BUTTON GRADIENT — .ps-btn
   ======================================== */

/* Primary gradient button */
.ps-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.28) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.ps-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(255, 107, 53, 0.38) !important;
}

.ps-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.25) !important;
}

/* Secondary dark button — keeps hierarchy (used for "Add to Cart" vs "Buy Now") */
.ps-btn.ps-btn--black {
    background: #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.ps-btn.ps-btn--black:hover {
    background: #333 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

/* ========================================
   FIX: Remove excess gap above footer category showcase
   ======================================== */
#homepage-1 {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.ps-newsletter {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}