/* ============================================================
   Woo Collection Carousel – wcc-style.css
   Matches the "Shop by Collection" warm-cream design exactly.
   ============================================================ */

/* ── Reset / scope ── */
.wcc-wrapper *,
.wcc-wrapper *::before,
.wcc-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Outer wrapper ── */
.wcc-wrapper {
    --wcc-cream:      #f0ebe3;
    --wcc-circle-bg:  #ede8de;
    --wcc-text:       #3b2e22;
    --wcc-bar-track:  #d9d2c8;
    --wcc-bar-thumb:  #3b2e22;
    --wcc-speed:      40s;     /* overridden inline by PHP */

    width: 100%;
    overflow: hidden;
    background: var(--wcc-cream);
    padding: 40px 0 28px;
    font-family: 'Georgia', 'Times New Roman', serif;
    position: relative;
}

/* ── Heading injected by widget / theme ── */
.wcc-heading {
    font-family: inherit;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--wcc-text);
    padding: 0 32px 28px;
    letter-spacing: 0.01em;
}

/* ── Track: flex row, no wrap ── */
.wcc-track {
    display: flex;
    width: max-content;
}

/* ── Each strip scrolls left continuously ── */
.wcc-strip {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 0 6px;
    white-space: nowrap;
}

/* Animate only strip-a; strip-b is the seamless clone */
.wcc-strip--a { animation: wcc-scroll var(--wcc-speed) linear infinite; }
.wcc-strip--b { animation: wcc-scroll var(--wcc-speed) linear infinite; }

@keyframes wcc-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Pause on hover for accessibility */
.wcc-wrapper:hover .wcc-strip--a,
.wcc-wrapper:hover .wcc-strip--b {
    animation-play-state: paused;
}

/* ── Single category item ── */
.wcc-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    width: 155px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.wcc-item:hover {
    transform: translateY(-4px);
}

/* ── Circle image container ── */
.wcc-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--wcc-circle-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 46, 34, 0.08);
    transition: box-shadow 0.25s ease;
}
.wcc-item:hover .wcc-circle {
    box-shadow: 0 6px 20px rgba(59, 46, 34, 0.15);
}
.wcc-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* ── Category label ── */
.wcc-label {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--wcc-text);
    text-align: center;
    line-height: 1.35;
    white-space: normal;
    max-width: 130px;
    display: block;
}

/* ── Bottom progress / scroll bar ── */
.wcc-progress-bar {
    position: relative;
    width: calc(100% - 64px);
    margin: 24px auto 0;
    height: 3px;
    background: var(--wcc-bar-track);
    border-radius: 2px;
    overflow: hidden;
}
.wcc-progress-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 35%;
    background: var(--wcc-bar-thumb);
    border-radius: 2px;
    animation: wcc-progress var(--wcc-speed) linear infinite;
}

@keyframes wcc-progress {
    0%   { left: 0;   width: 35%; }
    50%  { left: 65%; width: 35%; }
    100% { left: 0;   width: 35%; }
}

/* Pause progress bar when track paused */
.wcc-wrapper:hover .wcc-progress-thumb {
    animation-play-state: paused;
}

/* ── Astra theme overrides ── */
.ast-container .wcc-wrapper,
.site-content .wcc-wrapper {
    max-width: 100%;
    margin-left:  calc(-1 * var(--ast-main-header-display, 0px));
    margin-right: calc(-1 * var(--ast-main-header-display, 0px));
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .wcc-circle {
        width: 110px;
        height: 110px;
    }
    .wcc-item {
        width: 120px;
    }
    .wcc-label {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .wcc-circle {
        width: 88px;
        height: 88px;
    }
    .wcc-item {
        width: 96px;
        gap: 10px;
    }
    .wcc-label {
        font-size: 0.76rem;
    }
}
