/* Premium Wholesale Categories Section */
.wcats {
    --wcat-primary: #4F6F52;
    --wcat-secondary: #739072;
    --wcat-bg: transparent;
    --wcat-accent: #DDE5D4;
    --wcat-text: #2B2B2B;
    --wcat-gray-600: #6b7280;
    --wcat-radius-card: 22px;
    --wcat-radius-btn: 14px;
    --wcat-radius-img: 20px;
    --wcat-shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.08);
    --wcat-shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.15);
    background: var(--wcat-bg);
    padding: 120px 0 84px;
    font-family: 'Heebo', 'Rubik', sans-serif;
    color: var(--wcat-text);
    position: relative;
    z-index: 1;
}

.wcats__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.wcats__title {
    font-family: 'Heebo', 'Rubik', sans-serif;
    font-size: clamp(2rem, 5vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--wcat-text);
}

.wcats__subtitle {
    font-size: clamp(1rem, 2vw, 20px);
    font-weight: 400;
    color: var(--wcat-gray-600);
    margin: 0;
    line-height: 1.6;
}

.wcats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Card */
.wcat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--wcat-radius-card);
    box-shadow: var(--wcat-shadow-soft);
    text-decoration: none;
    color: var(--wcat-text);
    overflow: visible;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(40px);
}

.wcat-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

.wcat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--wcat-shadow-hover);
}

/* Image */
.wcat-card__media {
    position: relative;
    height: 220px;
    border-radius: var(--wcat-radius-img) var(--wcat-radius-img) 0 0;
    overflow: hidden;
    background: var(--wcat-accent);
}

.wcat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    opacity: 0;
}

.wcat-card__img.is-loaded {
    opacity: 1;
}

.wcat-card:hover .wcat-card__img {
    transform: scale(1.08);
}

.wcat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 43, 43, 0) 40%, rgba(43, 43, 43, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wcat-card:hover .wcat-card__overlay {
    opacity: 1;
}

/* Skeleton loader */
.wcat-card__skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eceee8 25%, #f5f6f2 37%, #eceee8 63%);
    background-size: 400% 100%;
    animation: wcat-shimmer 1.4s ease infinite;
}

.wcat-card__img.is-loaded + .wcat-card__skeleton {
    display: none;
}

@keyframes wcat-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Badge - glassmorphism */
.wcat-card__badge {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 3;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: rgba(79, 111, 82, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.wcat-card__badge--sale { background: rgba(193, 86, 71, 0.55); }
.wcat-card__badge--popular { background: rgba(214, 158, 46, 0.6); }
.wcat-card__badge--stock { background: rgba(56, 102, 124, 0.55); }

/* Floating icon */
.wcat-card__icon {
    position: absolute;
    top: 220px;
    inset-inline-start: 24px;
    transform: translateY(-50%);
    z-index: 4;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--wcat-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, color 0.35s ease;
}

.wcat-card:hover .wcat-card__icon {
    transform: translateY(-50%) rotate(10deg);
    color: var(--wcat-secondary);
}

/* Content */
.wcat-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 44px 24px 24px;
}

.wcat-card__name {
    font-size: clamp(1.4rem, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--wcat-text);
}

.wcat-card__desc {
    font-size: 0.95rem;
    color: var(--wcat-gray-600);
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.wcat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.wcat-card__count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wcat-primary);
}

.wcat-card__btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--wcat-radius-btn);
    background: var(--wcat-accent);
    color: var(--wcat-primary);
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease;
    white-space: nowrap;
}

.wcat-card:hover .wcat-card__btn {
    background: var(--wcat-primary);
    color: #fff;
}

.wcat-card__arrow {
    transition: transform 0.35s ease;
    display: inline-flex;
}
/* RTL: arrow points left, moves left on hover */
body.rtl .wcat-card__arrow { transform: scaleX(-1); }
.wcat-card:hover .wcat-card__arrow { transform: translateX(-4px); }
body.rtl .wcat-card:hover .wcat-card__arrow { transform: scaleX(-1) translateX(-4px); }

/* Ripple */
.wcat-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.5);
    animation: wcat-ripple 0.6s linear;
    pointer-events: none;
}

@keyframes wcat-ripple {
    to { transform: scale(3); opacity: 0; }
}

/* Responsive */
@media (max-width: 992px) {
    .wcats { padding: 80px 0; }
    .wcats__grid { grid-template-columns: repeat(2, 1fr); }
    .wcats__header { margin-bottom: 48px; }
}

@media (max-width: 575px) {
    .wcats { padding: 64px 0; }
    .wcats__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .wcat-card,
    .wcat-card__img,
    .wcat-card__icon,
    .wcat-card__btn,
    .wcat-card__arrow {
        transition: none;
    }
    .wcat-card { opacity: 1; transform: none; }
}

/* Category text bar — simple names-only strip */
.catbar {
    background: var(--white, #fff);
    border-top: 1px solid var(--border, #E8E0D8);
    border-bottom: 1px solid var(--border, #E8E0D8);
    /* extra bottom space: the next section overlaps upward by 48px */
    padding: 2.25rem 0 calc(2.25rem + 48px);
}

.catbar__title {
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--text, #2E2E2E);
}

.catbar__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.catbar__link {
    display: inline-block;
    padding: 0.5rem 1.15rem;
    border: 1px solid var(--border, #E8E0D8);
    border-radius: 50px;
    color: var(--text, #2E2E2E);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.catbar__link:hover,
.catbar__link:focus-visible {
    background: var(--primary, #6D8B74);
    border-color: var(--primary, #6D8B74);
    color: #fff;
}

@media (max-width: 767px) {
    .catbar { padding: 1.5rem 0 calc(1.5rem + 48px); }
    .catbar__nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .catbar__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.25rem;
    }
    .catbar__link { font-size: 0.92rem; padding: 0.45rem 1rem; }
}

