/**
 * WC Category Tiles Frontend Styles
 * Horizontal scrollable layout with button styling
 */

/* ---- Main Container ---- */
.wc-category-tiles-container {
    margin: 0 0 30px;
    position: relative;
    width: 100%;
    z-index: 5;
    overflow: hidden;
}

/* Custom tiles grid styling */
.wc-category-tiles-custom {
    margin-bottom: 10px;
}

/* Parent category heading */
.wc-category-tiles-heading {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin: 0 0 0px;
	padding: 0px 0 2px 2px;
	color: #000;
	font-weight: 500;
	line-height: 1.2;
}

/* ---- Tiles Grid ---- */
.wc-category-tiles-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 0;
    
    /* Extend beyond container for swipe effect */
    position: relative;
    margin-left: calc(-50vw + 50%);
    padding-left: 10px;
    padding-right: 10px;
}

/* Hide scrollbar */
.wc-category-tiles-grid::-webkit-scrollbar {
    display: none;
}

/* ---- Individual Tiles ---- */
.wc-category-tile {
    flex: 0 0 auto;
    margin-right: 5px;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

/* Tile inner content - button styling */
.wc-category-tile-inner {
    display: block;
    padding: 16px 18px;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #000;
    border: 1px solid #e0e0e0;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px; /* Larger touch target */
    display: flex;
    align-items: center;
}

/* Hover effect */
.wc-category-tile:hover .wc-category-tile-inner {
    border-color: #999;
}

/* Currently selected tile */
.wc-tile--selected .wc-category-tile-inner {
    border-color: #000;
    font-weight: 500;
}

/* ---- Breadcrumb Wrapper ---- */
.wc-category-tiles-breadcrumb-wrapper {
    display: none !important;
}

/* ---- Responsive Styles ---- */

/* Medium screens */
@media (min-width: 768px) {
    .wc-category-tiles-container {
        margin-bottom: 50px;
    }
    
    .wc-category-tiles-custom {
        margin-bottom: 20px;
    }
    
    .wc-category-tiles-heading {
        padding-left: 2px;
    }
    
    .wc-category-tiles-grid {
        padding-left: 20px;
    }
}

/* Large screens */
@media (min-width: 992px) {
    .wc-category-tiles-heading {
        padding-left: 0px;
     padding-top: 6px;
    }
    
    .wc-category-tiles-grid {
        padding-left: 25px;
    }
    
    .wc-category-tile {
        margin-right: 10px;
    }
}