/**
 * TikTok Scroller Tabs Styles
 * Tab navigation at the top
 */

/* Top Tabs */
.tiktok-scroller-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex: 1;
    z-index: 10004;
    position: relative;
}

.tiktok-tab {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 0;
    border-radius: 12px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
}

.tiktok-tab i {
    font-size: 18px;
    flex-shrink: 0;
}

.tiktok-tab-label {
    display: none; /* Same size as close/profile: icons only */
}

@media (min-width: 480px) {
    .tiktok-tab {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        padding: 0;
    }
    .tiktok-tab-label {
        display: none;
    }
}

.tiktok-tab.active {
    background: var(--primary-color, #DC143C);
    color: white;
    transform: scale(1.05);
}

.tiktok-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure tab container clips sliding panes */
.tiktok-scroller-container {
    overflow-x: hidden;
}

/* Tab Content */
.tiktok-tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 1;
    transition: transform 0.28s ease-out;
    transform: translateX(0);
    flex-direction: column;
}

.tiktok-tab-content.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.tiktok-tab-content.prev {
    transform: translateX(-100%);
}

/* Slide animation: outgoing pane */
.tiktok-tab-content.tiktok-tab-slide-out-left {
    display: flex !important;
    transform: translateX(-100%);
}

.tiktok-tab-content.tiktok-tab-slide-out-right {
    display: flex !important;
    transform: translateX(100%);
}

/* Slide animation: incoming pane starting position */
.tiktok-tab-content.tiktok-tab-slide-in-from-right {
    transform: translateX(100%);
}

.tiktok-tab-content.tiktok-tab-slide-in-from-left {
    transform: translateX(-100%);
}

/* Categories Grid – top padding so first row (Featured) starts below the header; scrollbar hidden */
.tiktok-categories-grid {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 92px 16px 20px 16px;
    background: #000;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tiktok-categories-grid::-webkit-scrollbar {
    display: none;
}

.tiktok-categories-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}

/* New layout: Featured → full-width scroller → pairs of (2 tiles + 2 scroller rows) */
.tiktok-categories-layout {
    display: block;
    max-width: 1600px;
    margin: 0 auto;
}
.tiktok-cat-block {
    margin-bottom: 0.5rem;
}
.tiktok-cat-block-featured .tiktok-category-fullwidth {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}
.tiktok-cat-block-fullwidth-expandable .tiktok-cat-fullwidth-tile {
    position: relative;
    z-index: 2;
}
.tiktok-cat-fullwidth-tile {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}
.tiktok-cat-fullwidth-tile .tiktok-category-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.tiktok-cat-fullwidth-tile.tiktok-cat-fullwidth-color .tiktok-category-bg-image {
    background-image: none !important;
}
.tiktok-cat-fullwidth-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 48px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.tiktok-cat-block-fullwidth-expandable {
    margin: 3px 0;
}
.tiktok-cat-block-fullwidth-expandable.selected .tiktok-cat-fullwidth-tile {
    box-shadow: inset 0 0 0 3px var(--primary-color, #DC143C);
}
.tiktok-cat-block-fullwidth-expandable[data-section-id="specials"].selected .tiktok-cat-fullwidth-tile {
    box-shadow: inset 0 0 0 3px #ffc107;
}

/* Expand arrow: fixed-size box so rotation stays in place (down = collapsed, up = expanded) */
.tiktok-cat-expand-arrow {
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    transform-origin: 50% 50%;
    z-index: 2;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    animation: tiktok-cat-arrow-bounce 2s ease-in-out 1 forwards;
    box-sizing: border-box;
}
.tiktok-cat-tile-wrap .tiktok-cat-expand-arrow {
    bottom: 2px;
    width: 24px;
    height: 24px;
    font-size: 12px;
}
@keyframes tiktok-cat-arrow-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    25% { transform: translateX(-50%) translateY(4px); }
    50% { transform: translateX(-50%) translateY(0); }
    75% { transform: translateX(-50%) translateY(3px); }
}
/* Selected = expanded: arrow rotates 180° in place (same position, no jump) */
.tiktok-cat-tile-wrap.selected .tiktok-cat-expand-arrow,
.tiktok-cat-block-fullwidth-expandable.selected .tiktok-cat-expand-arrow {
    animation: none;
    transform: translateX(-50%) rotate(180deg);
}
.tiktok-cat-fullwidth-scroller-row {
    position: relative;
    z-index: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease-out;
    flex-shrink: 0;
}
.tiktok-cat-fullwidth-scroller-row.expanded {
    max-height: 480px;
}
.tiktok-cat-fullwidth-scroller-row.expanded .tiktok-cat-scroller-inner {
    margin-top: 0.5rem;
    overflow: hidden;
}
.tiktok-cat-block-fullscroller {
    width: 100%;
}
.tiktok-cat-block-fullscroller .beta-unified-section {
    margin-bottom: 0;
}
/* Each pair full width so tiles + scroller rows stack below (same as Featured section) */
.tiktok-categories-grid-inner .tiktok-cat-pair {
    grid-column: 1 / -1;
}
.tiktok-cat-pair {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}
.tiktok-cat-row-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
    padding: 3px;
    position: relative;
    z-index: 2;
    transition: transform 0.28s ease-out, opacity 0.22s ease-out;
    opacity: 1;
    transform: translateY(0);
}
.tiktok-cat-row-tiles.tiktok-cat-row-out {
    opacity: 0.92;
    transform: translateY(120px);
}
.tiktok-cat-row-tiles.tiktok-cat-row-in-view {
    opacity: 1;
    transform: translateY(0);
}
/* Parallax: each .tiktok-cat-pair (tiles + scroller rows) slides in/out as one unit */
.tiktok-cat-pair.tiktok-cat-pair-out {
    opacity: 0.92;
    transform: translateY(120px);
}
.tiktok-cat-pair.tiktok-cat-pair-in-view {
    opacity: 1;
    transform: translateY(0);
}
.tiktok-cat-pair {
    transition: transform 0.28s ease-out, opacity 0.22s ease-out;
}
.tiktok-cat-tile-wrap {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: visible;
    margin: 3px;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.tiktok-cat-tile-wrap .tiktok-category-card {
    border-radius: 15px;
    overflow: hidden;
}
.tiktok-cat-fullwidth-tile {
    transition: opacity 0.5s ease, box-shadow 0.25s ease, transform 0.2s ease, filter 0.4s ease;
}
.tiktok-cat-block-fullwidth-expandable {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    transition: transform 0.28s ease-out, opacity 0.22s ease-out;
    opacity: 1;
    transform: translateY(0);
}
.tiktok-cat-block-fullwidth-expandable.tiktok-cat-block-out {
    opacity: 0.92;
    transform: translateY(120px);
}
.tiktok-cat-block-fullwidth-expandable.tiktok-cat-block-in-view {
    opacity: 1;
    transform: translateY(0);
}
/* Embedded grid: never dim rows; no vertical parallax so panel transition is horizontal only (no "up and left") */
#tiktok-categories-grid-embedded .tiktok-cat-row-out,
#tiktok-categories-grid-embedded .tiktok-cat-pair-out,
#tiktok-categories-grid-embedded .tiktok-cat-block-out {
    opacity: 1 !important;
    transform: translateY(0);
}
#tiktok-categories-grid-embedded .tiktok-cat-row-tiles.tiktok-cat-row-out,
#tiktok-categories-grid-embedded .tiktok-cat-pair.tiktok-cat-pair-out,
#tiktok-categories-grid-embedded .tiktok-cat-block-fullwidth-expandable.tiktok-cat-block-out {
    transform: translateY(0);
}
/* Lighter tile text gradient in embedded grid so bottom rows are not covered by dark overlay */
#tiktok-categories-grid-embedded .tiktok-category-text-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
}
#tiktok-categories-grid-embedded .tiktok-cat-fullwidth-tile .tiktok-category-text-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}
.tiktok-cat-block-fullwidth-expandable .tiktok-cat-fullwidth-tile {
    flex-shrink: 0;
}
.tiktok-cat-fullwidth-scroller-row {
    flex-shrink: 0;
}
.tiktok-cat-block-fullwidth-expandable .tiktok-cat-fullwidth-tile {
    flex-shrink: 0;
    margin-bottom: 0.25rem;
    transition: opacity 0.5s ease, box-shadow 0.25s ease, transform 0.2s ease, filter 0.4s ease;
}
/* Category tile cart grid: stays inside tile (left+right), compact cells, doesn’t cover text */
/* Category tile cart bubble: count of items in cart for this category */
.tiktok-cat-tile-cart-bubble,
.tiktok-cat-tile-wrap .tiktok-cat-tile-cart-bubble,
.tiktok-cat-block-fullwidth-expandable .tiktok-cat-tile-cart-bubble {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-color, #DC143C);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.tiktok-cat-tile-cart-bubble.visible,
.tiktok-cat-tile-wrap .tiktok-cat-tile-cart-bubble.visible,
.tiktok-cat-block-fullwidth-expandable .tiktok-cat-tile-cart-bubble.visible {
    opacity: 1;
}
.tiktok-cat-tile-wrap[data-section-id="specials"] .tiktok-cat-tile-cart-bubble,
.tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .tiktok-cat-tile-cart-bubble {
    background: #ffc107;
    color: #fff;
}

.tiktok-cat-tile-cart-grid,
.tiktok-cat-tile-wrap .tiktok-cat-tile-cart-grid,
.tiktok-cat-block-fullwidth-expandable .tiktok-cat-tile-cart-grid {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: auto;
    width: auto;
    height: auto;
    max-height: calc(100% - 44px);
    display: grid;
    grid-auto-flow: row;
    gap: 4px;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    align-content: start;
    justify-content: end;
    overflow: hidden;
}
.tiktok-cat-tile-cart-grid.visible {
    opacity: 1;
    pointer-events: auto;
}
.tiktok-cat-cart-grid-item {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid var(--primary-color, #DC143C);
    background-color: var(--primary-color, #DC143C);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transform: scale(1);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.tiktok-cat-cart-grid-item--new {
    transform: scale(0);
}
.tiktok-cat-cart-grid-item--removing {
    transform: scale(0);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.tiktok-cat-cart-grid-item--overflow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #DC143C) !important;
    background-image: none !important;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.tiktok-cat-cart-grid-item__count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--primary-color, #DC143C);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}
/* Specials tile: yellow border/badge to match specials styling */
.tiktok-cat-tile-wrap[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item,
.tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item,
.tiktok-categories-grid .tiktok-cat-tile-wrap[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item,
.tiktok-categories-grid .tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item {
    border-color: #ffc107;
}
.tiktok-cat-tile-wrap[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item__count,
.tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item__count,
.tiktok-categories-grid .tiktok-cat-tile-wrap[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item__count,
.tiktok-categories-grid .tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item__count {
    background: #ffc107;
    color: #000;
}
.tiktok-cat-tile-wrap[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item--overflow,
.tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item--overflow,
.tiktok-categories-grid .tiktok-cat-tile-wrap[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item--overflow,
.tiktok-categories-grid .tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .tiktok-cat-tile-cart-grid .tiktok-cat-cart-grid-item--overflow {
    background: #ffc107 !important;
    color: #000;
}

/* Categories 3D slider: + button at bottom-right (magnifier is top-right) */
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable {
    bottom: 6px;
    right: 6px;
    top: auto;
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded {
    min-height: 36px;
}
/* Categories 3D slider: cart bubble = square with rounded corners; simple expand/collapse (no circle flash) */
.tiktok-categories-grid .beta-cart-circle {
    background: var(--primary-color, #DC143C) !important;
    border: 2px solid var(--primary-color, #DC143C) !important;
    border-radius: 8px !important;
    color: #fff !important;
}
/* Only hide circle when expanded; during collapse show circle so pill just shrinks into it */
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-circle {
    display: none !important;
}
.tiktok-categories-grid .beta-cart-circle .beta-cart-circle-content {
    color: #fff !important;
}
.tiktok-categories-grid .beta-cart-circle:hover {
    filter: brightness(1.1);
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable .beta-cart-expanded {
    position: absolute !important;
    bottom: 0;
    right: 0;
    top: auto;
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded {
    overflow: visible !important;
    border: 2px solid var(--primary-color, #DC143C) !important;
    border-radius: 12px !important;
    transition: max-width 0.22s ease-out, opacity 0.18s ease-out;
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded .unified-cart-btn-inCart {
    display: flex !important;
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded .unified-cart-btn-right {
    display: flex !important;
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded:hover {
    border-color: var(--primary-color, #DC143C);
}
.tiktok-categories-grid .beta-cart-expanded .unified-cart-btn-center {
    background: var(--primary-color, #DC143C) !important;
    color: #fff !important;
    border-radius: 8px !important;
}
.tiktok-categories-grid .beta-cart-expanded .unified-cart-btn-left,
.tiktok-categories-grid .beta-cart-expanded .unified-cart-btn-right {
    border-radius: 8px !important;
}
/* Special Offers section: yellow magnifier to match theme – white icon */
.cat-3d-slider[data-section-id="specials"] .cat-3d-slide-magnifier,
.tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .cat-3d-slide-magnifier,
.tiktok-cat-tile-wrap[data-section-id="specials"] .cat-3d-slide-magnifier {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #fff !important;
}
.cat-3d-slider[data-section-id="specials"] .cat-3d-slide-magnifier:hover,
.tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .cat-3d-slide-magnifier:hover,
.tiktok-cat-tile-wrap[data-section-id="specials"] .cat-3d-slide-magnifier:hover {
    filter: brightness(1.1);
}
.cat-3d-slider[data-section-id="specials"] .cat-3d-slide-magnifier:active,
.tiktok-cat-block-fullwidth-expandable[data-section-id="specials"] .cat-3d-slide-magnifier:active,
.tiktok-cat-tile-wrap[data-section-id="specials"] .cat-3d-slide-magnifier:active {
    filter: brightness(0.9);
}

/* Special Offers section: yellow cart (circle + pill) – all states so no red flash on update */
.cat-3d-slider[data-section-id="specials"] .beta-cart-circle,
.cat-3d-slider[data-section-id="specials"] .beta-cart-circle.special-item,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable .beta-cart-circle {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #333 !important;
}
.cat-3d-slider[data-section-id="specials"] .beta-cart-circle:hover,
.cat-3d-slider[data-section-id="specials"] .beta-cart-circle.special-item:hover {
    filter: brightness(1.1);
    background: #ffc107 !important;
    border-color: #ffc107 !important;
}
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded:hover,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.updating .beta-cart-expanded {
    border-color: #ffc107 !important;
}
.cat-3d-slider[data-section-id="specials"] .beta-cart-expanded .unified-cart-btn-center,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded .unified-cart-btn-center {
    background: rgba(255, 193, 7, 0.9) !important;
    color: #fff !important;
}
.cat-3d-slider[data-section-id="specials"] .beta-cart-expanded .unified-cart-btn-left,
.cat-3d-slider[data-section-id="specials"] .beta-cart-expanded .unified-cart-btn-right,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded .unified-cart-btn-left,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded .unified-cart-btn-right {
    border-color: #ffc107 !important;
    color: #fff !important;
}
.cat-3d-slider[data-section-id="specials"] .beta-cart-expanded .unified-cart-btn-left i,
.cat-3d-slider[data-section-id="specials"] .beta-cart-expanded .unified-cart-btn-right i,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded .unified-cart-btn-left i,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded .unified-cart-btn-right i {
    color: #fff !important;
}
.cat-3d-slider[data-section-id="specials"] .beta-cart-expanded .unified-cart-btn-left:hover,
.cat-3d-slider[data-section-id="specials"] .beta-cart-expanded .unified-cart-btn-right:hover {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
}
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-add,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-container.beta-cart-expandable.expanded .beta-cart-expanded .unified-cart-btn-add {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
}
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-add:hover,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-add:active,
.cat-3d-slider[data-section-id="specials"] .unified-cart-btn-add:focus {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
}
/* Per-tile special-item (product has special offer) – yellow when not in section-based rule */
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable:has(.special-item) .beta-cart-circle {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded:has(.special-item) .beta-cart-expanded {
    border-color: #ffc107 !important;
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded:has(.special-item) .beta-cart-expanded .unified-cart-btn-center {
    background: #ffc107 !important;
    color: #fff !important;
}
.tiktok-categories-grid .unified-cart-btn-container.beta-cart-expandable.expanded:has(.special-item) .beta-cart-expanded .unified-cart-btn-center .cart-quantity {
    color: #fff !important;
}

.tiktok-cat-tile-wrap .tiktok-category-card {
    height: 150px;
    border-radius: 15px;
}
@media (hover: hover) {
    .tiktok-cat-row-tiles.tiktok-cat-row-in-view .tiktok-cat-tile-wrap:hover {
        transform: scale(1.02);
    }
}
.tiktok-cat-tile-wrap.selected {
    box-shadow: 0 0 0 3px var(--primary-color, #DC143C);
    transform: translateY(0) scale(1);
}
.tiktok-cat-tile-wrap[data-section-id="specials"].selected {
    box-shadow: 0 0 0 3px #ffc107;
}
.tiktok-cat-tile-wrap.selected:hover {
    transform: translateY(0) scale(1);
}
.tiktok-cat-scroller-row {
    position: relative;
    z-index: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease-out;
    margin-top: 0;
}
.tiktok-cat-scroller-row.expanded {
    max-height: 480px;
}
/* Keep slider below tiles: gap so scrollers sit in flow below tiles, not behind */
.tiktok-cat-scroller-row.expanded .tiktok-cat-scroller-inner {
    margin-top: 0.25rem;
    overflow: hidden;
}
.tiktok-cat-scroller-inner {
    padding: 0.5rem 0 1rem;
}
.tiktok-cat-scroller-inner .horizontal-scroller,
.tiktok-cat-scroller-inner .horizontal-scroller-list {
    margin: 0;
}

/* Pair layout: make each scroller card the same width as a category tile so 2 columns line up */
.tiktok-cat-pair .tiktok-cat-scroller-inner .horizontal-scroller-container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}
.tiktok-cat-pair .tiktok-cat-scroller-inner .horizontal-scroller-list {
    gap: 12px;
}
.tiktok-cat-pair .tiktok-cat-scroller-inner .horizontal-scroller-list .horizontal-scroller-item {
    width: calc((100% - 12px) / 2) !important;
    min-width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Single-item groups: full-width card (same as main beta page), don't force 50% */
.tiktok-cat-pair .tiktok-cat-scroller-inner .beta-unified-section-single .horizontal-scroller-list .horizontal-scroller-item {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.tiktok-categories-grid .product-tile {
    flex-shrink: 0;
}

/* Featured: Full width */
.tiktok-category-fullwidth {
    grid-column: 1 / -1;
    height: 200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Category card with background image */
.tiktok-category-with-bg {
    position: relative;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

/* Background image */
.tiktok-category-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Text overlay with shadow container - only covers text area, not entire image */
.tiktok-category-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 20px 15px 15px 15px;
    text-align: center;
    color: white;
    min-height: auto;
}
/* Full-width tiles (Featured, etc.): reserve space for arrow so it doesn't sit over the label */
.tiktok-cat-fullwidth-tile .tiktok-category-text-overlay {
    padding-bottom: 40px;
}

.tiktok-category-text-overlay h5 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.tiktok-category-text-overlay span {
    font-size: 12px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.95);
}

/* Attribute categories: Color background with icon - same size as other category tiles */
.tiktok-category-attribute {
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tiktok-category-icon-only {
    font-size: 32px;
    color: white;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tiktok-category-card-content {
    padding: 8px;
    color: white;
    text-align: center;
}

.tiktok-category-card-content h5 {
    margin: 0 0 3px 0;
    font-size: 13px;
    font-weight: 600;
}

.tiktok-category-card-content span {
    font-size: 10px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

@media (hover: hover) {
    .tiktok-category-card:hover {
        transform: scale(1.05);
    }
    .tiktok-category-card:hover .tiktok-category-bg-image {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }
}
.tiktok-cat-tile-wrap.selected .tiktok-category-card,
.tiktok-cat-tile-wrap.selected .tiktok-category-card:hover {
    transform: none;
}
.tiktok-cat-tile-wrap.selected .tiktok-category-card .tiktok-category-bg-image {
    transform: none;
}

/* "Show All" button - special styling */
.tiktok-category-show-all {
    height: 150px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.8) 0%, rgba(220, 53, 69, 0.6) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tiktok-category-show-all:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(220, 53, 69, 0.7) 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.tiktok-category-show-all .tiktok-category-card-content {
    text-align: center;
    color: white;
    padding: 15px;
}

.tiktok-category-show-all .tiktok-category-card-content i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.tiktok-category-show-all .tiktok-category-card-content h5 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.tiktok-category-show-all .tiktok-category-card-content span {
    font-size: 12px;
    opacity: 0.9;
}

/* Community Posts */
.tiktok-community-post {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Post Author Profile Picture */
.tiktok-post-author {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10003;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.tiktok-post-author:hover {
    transform: scale(1.1);
    border-color: white;
}

.tiktok-post-author img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tiktok-community-post img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
}

.tiktok-community-post-content {
    color: white;
    text-align: center;
    max-width: 600px;
}

.tiktok-community-post-content h5 {
    font-size: 24px;
    margin-bottom: 15px;
}

.tiktok-community-post-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tiktok-community-post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.tiktok-community-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

