/**
 * START - Products Section Component Styles - By INFXO
 */

.am-products-section,
.am-products-section * {
    box-sizing: border-box;
}

/* 1. Identity Canvas with Seamless Gradient Flow */
.am-products-section {
    position: relative;
    width: 100%;
    padding: 85px 0 115px;
    background-color: #ffffff !important;
    background-image: linear-gradient(180deg, #f6e8ef 0%, #fdf5f9 22%, #ffffff 60%, #ffffff 100%) !important;
    font-family: 'Cairo', sans-serif !important;
    overflow: hidden;
    direction: inherit;
}

/* Strictly Enforce Cairo Identity Across Entire Section */
.am-products-section h1,
.am-products-section h2,
.am-products-section h3,
.am-products-section h4,
.am-products-section h5,
.am-products-section h6,
.am-products-section p,
.am-products-section a,
.am-products-section span,
.am-products-section button,
.am-products-section .am-section-title,
.am-products-section .am-badge-text,
.am-products-section .am-all-products-link,
.am-products-section .am-filter-pill,
.am-products-section .am-dropdown-trigger,
.am-products-section .am-selected-label,
.am-products-section .am-selected-count,
.am-products-section .am-dropdown-option,
.am-products-section .am-option-name,
.am-products-section .am-option-count,
.am-products-section .am-card-dept-link,
.am-products-section .am-card-title,
.am-products-section .am-card-excerpt,
.am-products-section .am-btn-pill-quote,
.am-products-section .am-custom-feature-badge-float,
.am-products-section .am-custom-feature-badge-float span {
    font-family: 'Cairo', sans-serif !important;
}

body.rtl .am-products-section,
[dir="rtl"] .am-products-section {
    direction: rtl;
    text-align: right;
}

body:not(.rtl) .am-products-section,
[dir="ltr"] .am-products-section {
    direction: ltr;
    text-align: left;
}

.am-products-section .am-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 2;
}

/* 2. Executive Split Header */
.am-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
    position: relative;
    z-index: 3;
}

.am-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.am-badge-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    gap: 8px;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid rgba(113, 18, 64, 0.14);
    box-shadow: 0 2px 8px rgba(113, 18, 64, 0.04);
    margin-bottom: 14px;
    line-height: 1;
}

.am-badge-tag svg {
    width: 15px;
    height: 15px;
    color: #711240;
    flex-shrink: 0;
    display: block;
    align-self: center;
}

.am-badge-text {
    font-size: 13px;
    font-weight: 800;
    color: #711240;
    line-height: 1;
    display: inline-block;
    align-self: center;
    position: relative;
    top: -0.5px;
}

.am-section-title {
    font-size: clamp(2rem, 2.7vw, 2.9rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.3px;
    margin: 0;
}

.am-all-products-link {
    background: #ffffff;
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1.5px solid rgba(113, 18, 64, 0.16);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(113, 18, 64, 0.04);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.am-all-products-link:hover {
    background: #711240;
    border-color: #711240;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(113, 18, 64, 0.3);
}

.am-all-products-link svg {
    transition: transform 0.25s ease;
}

body.rtl .am-all-products-link:hover svg,
[dir="rtl"] .am-all-products-link:hover svg {
    transform: translateX(-4px);
}

body:not(.rtl) .am-all-products-link:hover svg,
[dir="ltr"] .am-all-products-link:hover svg {
    transform: translateX(4px);
}

/* 3. Category Filter UI (Pills on Desktop / Hidden on Mobile-Tablet) */
.am-filter-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    overflow-x: auto;
    padding-top: 8px !important;
    padding-bottom: 16px !important;
    padding-inline: 4px;
    position: relative;
    z-index: 3;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.am-filter-pills-row::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.am-filter-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(113, 18, 64, 0.14);
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 13.5px;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.am-filter-pill:hover {
    border-color: #711240;
    color: #711240;
    background: #ffffff;
}

.am-filter-pill.active {
    background: #711240;
    border-color: #711240;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(113, 18, 64, 0.28);
}

.am-filter-count {
    font-size: 11.5px;
    opacity: 0.85;
    margin-inline-start: 4px;
}

/* 4. Luxury Custom Dropdown UI (Replaces Native Select on Mobile & Tablet) */
.am-filter-select-wrap {
    display: none; /* Desktop default */
}

.am-custom-dropdown {
    position: relative;
    width: 100%;
}

.am-dropdown-trigger {
    width: 100%;
    min-height: 50px;
    border-radius: 50px !important;
    background: #fdf5f9 !important; /* Soft Light Pink-White */
    border: 1.5px solid rgba(113, 18, 64, 0.22) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(113, 18, 64, 0.05);
    transition: all 0.25s ease;
    outline: none !important;
}

.am-custom-dropdown.is-open .am-dropdown-trigger {
    border-color: #711240 !important;
    box-shadow: 0 4px 18px rgba(113, 18, 64, 0.12);
}

.am-trigger-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.am-selected-label {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

.am-selected-count {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #711240 !important;
    line-height: 1 !important;
}

.am-dropdown-chevron {
    width: 18px;
    height: 18px;
    color: #711240;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.am-custom-dropdown.is-open .am-dropdown-chevron {
    transform: rotate(180deg);
}

/* Custom Dropdown Panel with Luxury Rounded Edges & Soft Pink Background */
.am-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: #fdf5f9 !important; /* Soft Light Pink-White */
    border: 1.5px solid rgba(113, 18, 64, 0.18) !important;
    border-radius: 20px !important; /* Luxury Rounded Edges */
    box-shadow: 0 16px 40px -10px rgba(113, 18, 64, 0.18) !important;
    padding: 8px !important;
    z-index: 50;
    display: none;
    max-height: 290px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.am-dropdown-panel::-webkit-scrollbar {
    width: 5px;
}
.am-dropdown-panel::-webkit-scrollbar-thumb {
    background: rgba(113, 18, 64, 0.2);
    border-radius: 10px;
}

.am-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px !important;
    border-radius: 14px !important; /* Rounded Option Rows */
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 3px;
    color: #334155;
    user-select: none;
}

.am-dropdown-option:last-child {
    margin-bottom: 0;
}

.am-option-name {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.am-option-count {
    font-size: 12px !important;
    font-weight: 700 !important;
    opacity: 0.85;
}

/* Option Hover */
.am-dropdown-option:hover {
    background: #fae4ef !important;
    color: #711240 !important;
}

/* Option Active: Pure Burgundy Red (NO BLUE) */
.am-dropdown-option.active {
    background: #711240 !important; /* Burgundy Brand Red */
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(113, 18, 64, 0.3) !important;
}

.am-dropdown-option.active .am-option-count {
    color: #ffffff !important;
    opacity: 0.95;
}

/* 5. Products Grid (3 Desktop - 2 Tablet - 1 Mobile) */
.am-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 3;
    align-items: stretch;
}

.am-prod-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.am-prod-card:hover {
    transform: translateY(-6px);
    border-color: rgba(113, 18, 64, 0.2);
    box-shadow: 0 20px 45px -12px rgba(113, 18, 64, 0.1);
}

/* Flush Image Area */
.am-card-media {
    position: relative;
    width: 100%;
    height: 250px;
    background: radial-gradient(circle at center, #ffffff 30%, #fbf3f7 100%);
    border-bottom: 1px solid rgba(113, 18, 64, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.am-media-thumb-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-decoration: none !important;
    cursor: pointer;
}

.am-card-media img.am-product-thumb {
    max-height: 205px;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(113, 18, 64, 0.08));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-prod-card:hover .am-card-media img.am-product-thumb {
    transform: scale(1.06) translateY(-3px);
}

/* 6. Flat Delicate Micro-Badge with Icon & Balanced Padding (Right Corner) */
.am-custom-feature-badge-float {
    position: absolute !important;
    top: 14px !important;
    z-index: 7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 4px 10px !important;
    background: #fdf2f7 !important;
    border: 1px solid rgba(113, 18, 64, 0.18) !important;
    border-radius: 20px !important;
    pointer-events: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.rtl .am-custom-feature-badge-float,
[dir="rtl"] .am-custom-feature-badge-float {
    right: 14px !important;
    left: auto !important;
}

body:not(.rtl) .am-custom-feature-badge-float,
[dir="ltr"] .am-custom-feature-badge-float {
    left: 14px !important;
    right: auto !important;
}

.am-custom-feature-badge-float svg.am-badge-star-icon {
    width: 10px !important;
    height: 10px !important;
    fill: #711240 !important;
    color: #711240 !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.am-custom-feature-badge-float span {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #711240 !important;
    line-height: 1.2 !important;
    display: block !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 7. Brand Logo Pod Linked Directly to Brand Archive (Left Corner) */
.am-brand-badge-float {
    position: absolute !important;
    top: 14px !important;
    z-index: 7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 26px !important;
    max-width: 76px !important;
    padding: 3px 8px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.am-brand-badge-float:hover {
    transform: translateY(-1px) scale(1.04) !important;
    border-color: #711240 !important;
}

body.rtl .am-brand-badge-float,
[dir="rtl"] .am-brand-badge-float {
    left: 14px !important;
    right: auto !important;
}

body:not(.rtl) .am-brand-badge-float,
[dir="ltr"] .am-brand-badge-float {
    right: 14px !important;
    left: auto !important;
}

.am-brand-badge-float img {
    height: 16px !important;
    max-height: 16px !important;
    width: auto !important;
    max-width: 58px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.am-brand-badge-text {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Card Body Content */
.am-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.am-card-info-group {
    display: flex;
    flex-direction: column;
}

/* Engraved Department Link */
.am-card-dept-link {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-decoration: none !important;
    display: inline-block;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    width: fit-content;
}

.am-card-dept-link:hover {
    color: #711240;
}

/* Product Title */
.am-card-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 8px 0;
}

.am-card-title a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.am-card-title a:hover {
    color: #711240;
}

/* Truncated Short Excerpt */
.am-card-excerpt {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 46px;
}

/* 8. Actions Strip */
.am-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* Main Burgundy WhatsApp Pill */
.am-btn-pill-quote {
    flex: 1;
    background: #711240;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 800;
    padding: 11px 18px;
    border-radius: 50px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(113, 18, 64, 0.25);
    transition: all 0.25s ease;
    line-height: 1;
    white-space: nowrap;
}

.am-btn-pill-quote:hover {
    background: #490827;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(113, 18, 64, 0.35);
}

.am-btn-pill-quote svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Circular Details Button */
.am-btn-circle-details {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.am-btn-circle-details:hover {
    background: #711240;
    border-color: #711240;
    color: #ffffff;
    transform: translateY(-2px);
}

.am-btn-circle-details svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    display: block;
}

/* 9. Reference Micro-Dots Indicator */
.am-products-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    position: relative;
    z-index: 4;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.am-pagination-dot {
    height: 4.5px !important;
    width: 7px !important;
    min-width: unset !important;
    min-height: unset !important;
    max-height: 5px !important;
    border-radius: 9999px !important;
    background: rgba(113, 18, 64, 0.18) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.am-pagination-dot:hover {
    background: rgba(113, 18, 64, 0.4) !important;
}

.am-pagination-dot.active {
    width: 20px !important;
    background: #711240 !important;
}

/* 10. Scroll Reveal Stagger Animations */
.am-scroll-reveal {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.am-scroll-reveal[data-reveal="right"] {
    transform: translateX(30px);
}

body:not(.rtl) .am-scroll-reveal[data-reveal="right"],
[dir="ltr"] .am-scroll-reveal[data-reveal="right"] {
    transform: translateX(-30px);
}

.am-scroll-reveal[data-reveal="left"] {
    transform: translateX(-30px);
}

body:not(.rtl) .am-scroll-reveal[data-reveal="left"],
[dir="ltr"] .am-scroll-reveal[data-reveal="left"] {
    transform: translateX(30px);
}

.am-scroll-reveal.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

.am-stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.am-stagger-parent.in-view .am-stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.am-stagger-parent.in-view .am-stagger-item:nth-child(1) { transition-delay: 0.06s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(2) { transition-delay: 0.14s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(3) { transition-delay: 0.22s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(4) { transition-delay: 0.30s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(5) { transition-delay: 0.38s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(6) { transition-delay: 0.46s; }

/* 11. Responsiveness Breakpoints */
@media (max-width: 1024px) {
    /* Hide the horizontal pills on Tablet & Mobile */
    .am-filter-pills-row {
        display: none !important;
    }

    /* Show the Custom Luxury Dropdown */
    .am-filter-select-wrap {
        display: block !important;
        margin-bottom: 28px;
        width: 100%;
        position: relative;
        z-index: 10;
    }

    .am-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .am-products-section {
        padding: 55px 0 75px;
    }
    .am-products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .am-section-title {
        font-size: 1.85rem;
    }
    .am-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .am-all-products-link {
        width: 100%;
        justify-content: center;
    }
}

/**
 * END - Products Section Component Styles - infxo.com
 */